bebbo / binutils-gdb

Unofficial mirror of sourceware binutils-gdb repository. Updated daily.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
3 stars 3 forks source link

Debugger runs into assertion while debugging ScummVM #12

Closed mheyer32 closed 2 years ago

mheyer32 commented 4 years ago

As soon as the first breakpoint is hit, I'm running into this assertion and the debugger will quit the debugee:

>~"/home/matze/amigatoolchain/amiga-gcc/projects/binutils/gdb/gdbtypes.c:1765: internal-error: int internal_type_vptr_fieldno(type*): AssertionTYPE_CODE (type) == TYPE_CODE_STRUCT || TYPE_CODE (type) == TYPE_CODE_UNION' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? "`

mheyer32 commented 4 years ago

~"/home/matze/amigatoolchain/amiga-gcc/projects/binutils/gdb/gnu-v3-abi.c:209: internal-error: int gnuv3_dynamic_class(type*): Assertion `TYPE_CODE (type) == TYPE_CODE_STRUCT || TYPE_CODE (type) == TYPE_CODE_UNION' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nCreate a core file of GDB? " ~"(y or n) [answered Y; input not from terminal]\n"

bebbo commented 4 years ago

binutils is currently an open construction site... ... you could try to build gdb from binutils-gdb 2d5c5290ca131b44b79cb8c36c19cddc20ba4752

mheyer32 commented 4 years ago

I had time testing this today. 2d5c529 did not work for me. It produced a corrupted executable that will crash in illegal instructions.

mheyer32 commented 4 years ago

YoDawg SCNR :-)

bebbo commented 3 years ago

is this still valid?