Home | History | Annotate | Line # | Download | only in gdb.stabs
      1 # Put everything in this csect, which seems to make things work.
      2 # The compiler actually puts the stabs in .csect [PR], but that didn't
      3 # work here (I guess because there is no text section).
      4 1i\
      5 	.csect .data[RW]
      6 # .stabs string,type,0,0,value  ->  .stabx string,value,type,0
      7 s/^[ 	]*\.stabs[ 	]*("(\"|[^"])*"),[ 	]*([^,]*),[ 	]*0,0,[ 	]*(.*)$/.stabx \1,\4,\3,0/
      8 s/N_GSYM/128/
      9 # This needs to be C_DECL, which is used for types, not C_LSYM, which is
     10 # ignored on the initial scan.
     11 s/N_LSYM/140/
     12 s/\.begin_common/.bc/
     13 # The AIX assembler doesn't want the name in a .ec directive
     14 s/\.end_common.*/.ec/
     15 s/\.align_it/.align 1/
     16 /\.data/d
     17 /^#/d
     18