Changeset 75873cf


Ignore:
Timestamp:
Dec 7, 2021, 10:07:14 AM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
63f2697
Parents:
295dd61
Message:

print more information when asm check fails to find debug C code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/as.cc

    r295dd61 r75873cf  
    1111// Created On       : Wed Aug  1 10:49:42 2018
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Mon Dec  6 16:57:45 2021
    14 // Update Count     : 104
     13// Last Modified On : Tue Dec  7 10:03:34 2021
     14// Update Count     : 108
    1515//
    1616
     
    5959                        cursor -= 2;                                                            // backup over "c\n" language value
    6060                        if ( *(cursor - 1) != 'x' ) {                           // 0x before code
     61                                for ( int i = 0; i < 8; i += 1 ) {                      // move N (magic) lines forward
     62                                        cursor = strstr( cursor, "\n" ) + 1;
     63                                } // for
    6164                                fprintf( stderr, "*** ERROR *** Invalid C language code found in assembler file: %s\n"
    6265                                                 "Assembler debug information:\n%.*s",
Note: See TracChangeset for help on using the changeset viewer.