Thread overview | |||||
---|---|---|---|---|---|
|
May 02, 2010 [Issue 4148] New: debug symbols names include .d from filename | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4148 Summary: debug symbols names include .d from filename Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: braddr@puremagic.com --- Comment #0 from Brad Roberts <braddr@puremagic.com> 2010-05-02 12:58:16 PDT --- sample code: module test.d; void foo() { } void main() { foo(); } $ dmd -v -g -c debug-names.d (or -gc instead of -g, same results) $ objdump --syms debug-names.o debug-names.o: file format elf32-i386 SYMBOL TABLE: (output edited to hide parts not relevant) 00000000 l df *ABS* 00000000 debug-names.d 00000000 l d .text._D4test1d3fooFZv 00000000 .text._D4test1d3fooFZv 00000000 g F .text._D4test1d3fooFZv 00000005 _D4test1d3fooFZv secondary evidence (gdb from cvs with the recent patches to support d): (gdb) list test.d.foo 1 module test.d; 2 3 void foo() 4 { 5 } 6 7 void main() 8 { 9 foo(); 10 } (gdb) list test.foo Can't find member of namespace, class, struct, or union named "test.foo" Hint: try 'test.foo<TAB> or 'test.foo<ESC-?> (Note leading single quote.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 03, 2010 [Issue 4148] debug symbols names include .d from filename | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | http://d.puremagic.com/issues/show_bug.cgi?id=4148 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r.sagitario@gmx.de --- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2010-05-02 23:42:19 PDT --- You should not add the file extension to the module statement. I can't test it with gdb, but I guess "module test;" will work as expected. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 03, 2010 [Issue 4148] debug symbols names include .d from filename | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | http://d.puremagic.com/issues/show_bug.cgi?id=4148 Brad Roberts <braddr@puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Brad Roberts <braddr@puremagic.com> 2010-05-02 23:48:11 PDT --- Good god, did I actually do that? I did, TWICE. Um.. nevermind, closing as an invalid bug report. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation