[Issue 4212] New: DWARF: void arrays cause gdb errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 20 12:04:48 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4212
Summary: DWARF: void arrays cause gdb errors
Product: D
Version: 1.057
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nfxjfg at gmail.com
--- Comment #0 from nfxjfg at gmail.com 2010-05-20 12:04:46 PDT ---
(This bug report is for dmd 1.061)
This code:
extern (C) void abort();
struct X {
union {
void[] a;
void[a.sizeof] b;
}
}
void foo(X b) {
abort();
}
void main() {
foo(X.init);
}
Makes gdb output "Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at
0x68 [in module /tmp/test/dr]" when the abort() jumps back into the debugger,
and you request a stacktrace with "bt".
I suspect something is wrong with static void[] arrays.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list