Jump to page: 1 2
Thread overview
[Issue 3207] New: [meta] Push GDB support to upstream
Jul 24, 2009
llucax@gmail.com
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Aug 08, 2009
Leandro Lucarella
Sep 04, 2009
Leandro Lucarella
Sep 16, 2009
Leandro Lucarella
[Issue 3207] gdb: Push D patches upstream
Nov 18, 2009
Leandro Lucarella
Jan 10, 2010
Leandro Lucarella
Apr 23, 2010
Leandro Lucarella
Apr 23, 2010
Leandro Lucarella
Apr 28, 2010
Leandro Lucarella
Apr 29, 2010
Robert Clipsham
Apr 29, 2010
Leandro Lucarella
July 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207

           Summary: [meta] Push GDB support to upstream
           Product: D
           Version: 1.046
          Platform: x86
               URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10142
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: llucax@gmail.com
        Depends on: 2575,2604


This is a meta bug to track the progress on making the GDB patches merge to upstream possible.

The main GDB bug report to include D patches is here: http://sourceware.org/bugzilla/show_bug.cgi?id=10142

All bugs stopping this from happening should block this one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #1 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:48:42 PDT ---
The Wed, 05 Aug 2009 13:36:49 -0700, Walter sent us (Jason, Mihail and me) a new DMD version to test, trying to address the issues listed in here:

> Try the attached linux executable, which addresses 2604 and 2575. Please let me know.

(I'll post the rest of the thread here, with permission)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #2 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:49:22 PDT ---
Wed, 05 Aug 2009 20:10:46 -0400, Jason House wrote:

Unfortunately, I don't see an observable change in gdb behavior :(

$ cat main.d
int main(){
  enum foo{ bar };
  foo x;
  final switch(x){ case foo.bar: return 0; }
  assert(0); // required due to bugzilla 3229
}
$ dmd2/linux/bin/dmd -g main.d -ofmain
$ gdb main
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x80490b7
(gdb) run
Starting program: /home/jhouse/housebot/test/main
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e9a6d0 (LWP 6222)]
[Switching to Thread 0xb7e9a6d0 (LWP 6222)]

Breakpoint 1, 0x080490b7 in main ()
Current language:  auto; currently asm
(gdb) list
1       in ../sysdeps/i386/elf/start.S

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #3 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:50:18 PDT ---
(In reply to comment #2)
Wed, 05 Aug 2009 21:36:36 -0700, Walter Bright wrote:

I didn't think changing the MIPS tag would fix it, but it's a start. I also removed the children from the MODULE tag. What's next?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #4 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:51:41 PDT ---
(In reply to comment #1)
Walter Bright wrote (Wed, 05 Aug 2009 22:42:19 -0700):

Fixed a problem with dwarf output.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #5 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:53:52 PDT ---
Created an attachment (id=436)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=436)
LDC debug output

(In reply to comment #4)
Jason House wrote (Thu, 06 Aug 2009 07:55:55 -0400):

No luck with gdb.  Here's something interesting though:

$ dmd2/linux/bin/dmd -g main.d -ofmain
$ objdump -g main > info.dmd
objdump: Warning: .debug_info offset of 0x12c in .debug_pubnames section
does not point to a CU header.
$ ldc-0.9.1-x86_32/bin/ldc -g main.d
$ objdump -g main > info.ldc
objdump: Warning: Bogus end-of-siblings marker detected at offset 226
in .debug_info section
objdump: Warning: Bogus end-of-siblings marker detected at offset 227
in .debug_info section
objdump: Warning: Bogus end-of-siblings marker detected at offset 228
in .debug_info section
objdump: Warning: Further warnings about bogus end-of-sibling markers
suppressed

When comparing the output, I do see that ldc outputs dw_at_subprogram when dmd outputs dw_at_module.  I think it's safe to ignore that ldc outputs _D4main16__moduleinfoCtorZ and dmd does not.

I see this in the ldc output but not dmd:
    DW_AT_MIPS_linkage_name DW_FORM_string
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_block1

I also see
    DW_AT_decl_line    DW_FORM_data1   (in ldc)
    DW_AT_decl_line    DW_FORM_data2   (in dmd)

There's a few other differences, but I nievely thing they're either trivial or related to the above.  LDC outputs a few "identical" tags in a slightly different order.  I can provide details on that if it'd help.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #6 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:54:55 PDT ---
Created an attachment (id=437)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=437)
DMD debug output

(Part of comment #4)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #7 from Leandro Lucarella <llucax@gmail.com>  2009-08-07 20:55:46 PDT ---
(In reply to comment #5)
Jason House wrote (Thu, 6 Aug 2009 08:20:17 -0400):

I should add main.d is "void main(){}"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 04, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207





--- Comment #8 from Leandro Lucarella <llucax@gmail.com>  2009-09-03 17:31:38 PDT ---
The latest patch were sent to gdb-patches. Mihail is waiting for the legal GDB papers to sign them, John Demme seems to be lost again :(

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 16, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3207



--- Comment #9 from Leandro Lucarella <llucax@gmail.com> 2009-09-15 18:50:52 PDT ---
John Demme has told me today that he signed the copyright assignment, so we one
(big) step forward =)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2