[Issue 2604] DW_TAG_module and GDB
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 23 17:07:16 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2604
------- Comment #2 from mihail.zenkov at gmail.com 2009-01-23 19:07 -------
>For those of us waiting for this bug to get fixed, is there any relatively easy
>thing we can do to get gdb to work?
1. Use GDC or DMD-1.028. Currently DMD specific DWARF extensions not supported.
http://www.digitalmars.com/d/1.0/abi.html
2. Try patch binary before debug it.
For example we have binary crash_test.
With next command we can see if DW_TAG_module have "has children" flag:
objdump -W crash_test 2>/dev/null | grep DW_TAG_module
<1><138>: Abbrev Number: 2 (DW_TAG_module)
2 DW_TAG_module [has children]
Try patch it:
sed "s/\x1e\x01\x03\x08/\x1e\x00\x03\x08/" -i crash_test
And see again what we have:
objdump -W crash_test 2>/dev/null | grep DW_TAG_module
<1><138>: Abbrev Number: 2 (DW_TAG_module)
2 DW_TAG_module [no children]
--
More information about the Digitalmars-d-bugs
mailing list