https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #263 from Larkin Nickle <me at larbob dot org> ---
I'm having trouble actually getting a GDB that can read the resulting symbols
properly. 

readelf --debug-dump=info cc1 | grep -A 2 'Compilation Unit @'
  Compilation Unit @ offset 0x0:
   Length:        0xa390 (32-bit)
   Version:       2

As shown above, using readelf, I've confirmed I am now getting DWARF2 symbols,
but I'm unable to read them with my own built GDB 7.3.1 or GDB 7.5.1 from
http://ftp.nluug.nl/os/HPUX/itrc/gcc-4.7.2-11.31.sd.bz. HP GDB 6.7 is able to
handle them somewhat:

Object file is generated with GNU compiler: GNU C++17 11.1.0 -g -O2 -fno-PIE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables
HP WDB does not support debugging of programs compiled with GNU compiler.
Some features may work, but it is not guaranteed.
HP recommends using HP aCC compiler, Refer:  http://www.hp.com/go/aCC
Refer http://www.hp.com/go/wdb for the support statement

done.

Running cc1 w/ the arguments that lead to the illegal instruction error (as
verified with -v):

Program received signal SIGILL, Illegal instruction
  si_code: 9 - ILL_REGNAT - Register NaT Consumption.
0x54af7f0:1 in get_ref_base_and_extent (exp=<not available>,
    poffset=<not available>, psize=<not available>, pmax_size=<not available>,
    preverse=<not available>) at ../../gcc/tree-dfa.c:525
525                       maxsize = wi::to_poly_offset (asize) - bit_offset;

However, trying to get a backtrace with `bt` results in HP GDB core dumping:

#0  0x54af7f0:1 in get_ref_base_and_extent (exp=<not available>,
    poffset=<not available>, psize=<not available>, pmax_size=<not available>,
    preverse=<not available>) at ../../gcc/tree-dfa.c:525
Assertion failed: stacki == 0, file ../../../Src/gnu/gdb/dwarf2read.c, line
1579
ABORT instruction (core dumped)

Reply via email to