Ignore:
Timestamp:
Nov 22, 2019, 2:40:46 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9aa1317
Parents:
c701332a (diff), 2909b515 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    rc701332a rf1397d14  
    1010// Created On       : Tue Jan 17 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun 20 17:21:23 2019
    13 // Update Count     : 25
     12// Last Modified On : Thu Nov 21 16:46:59 2019
     13// Update Count     : 27
    1414//
    1515
     
    824824        if(thrd) {
    825825                int len = snprintf( abort_text, abort_text_size, "Error occurred while executing thread %.256s (%p)", thrd->self_cor.name, thrd );
    826                 __cfaabi_dbg_bits_write( abort_text, len );
     826                __cfaabi_bits_write( STDERR_FILENO, abort_text, len );
    827827
    828828                if ( &thrd->self_cor != thrd->curr_cor ) {
    829829                        len = snprintf( abort_text, abort_text_size, " in coroutine %.256s (%p).\n", thrd->curr_cor->name, thrd->curr_cor );
    830                         __cfaabi_dbg_bits_write( abort_text, len );
     830                        __cfaabi_bits_write( STDERR_FILENO, abort_text, len );
    831831                }
    832832                else {
    833                         __cfaabi_dbg_bits_write( ".\n", 2 );
     833                        __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 );
    834834                }
    835835        }
    836836        else {
    837837                int len = snprintf( abort_text, abort_text_size, "Error occurred outside of any thread.\n" );
    838                 __cfaabi_dbg_bits_write( abort_text, len );
     838                __cfaabi_bits_write( STDERR_FILENO, abort_text, len );
    839839        }
    840840}
     
    847847
    848848extern "C" {
    849         void __cfaabi_dbg_bits_acquire() {
     849        void __cfaabi_bits_acquire() {
    850850                lock( kernel_debug_lock __cfaabi_dbg_ctx2 );
    851851        }
    852852
    853         void __cfaabi_dbg_bits_release() {
     853        void __cfaabi_bits_release() {
    854854                unlock( kernel_debug_lock );
    855855        }
Note: See TracChangeset for help on using the changeset viewer.