www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4148] New: debug symbols names include .d from filename

reply d-bugmail puremagic.com writes:
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



---
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 02 2010
next sibling parent d-bugmail puremagic.com writes:
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



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 02 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4148


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



---
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: -------
May 02 2010