www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3389] New: gdb: using -gc is mandatory but not well documented

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3389

           Summary: gdb: using -gc is mandatory but not well documented
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody puremagic.com
        ReportedBy: llucax gmail.com


--- Comment #0 from Leandro Lucarella <llucax gmail.com> 2009-10-12 14:23:14
PDT ---
-g is known to be broken when using GDB (I don't know if this is how it's
supposed to be or if it's a bug). -gc usually works (there are a few bugs
still), but it's not very well documented that when using GDB you should use
-gc (which is supposed to mean, "pretend to be C", so it's not very easy to
figure out that that flag should be used instead of -g).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 12 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3389


Robert Clipsham <robert octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert octarineparrot.com


--- Comment #1 from Robert Clipsham <robert octarineparrot.com> 2010-04-01
13:37:35 BST ---
-g not working is how it's meant to be, at least until gdb adds support for the
D extensions to DWARF. I've hopefully fixed the remaining bugs with -gc (on
linux at least). My solution to this would be to add in a -gd, and make -g an
alias to -gc until better support for debug info is added to debuggers. This
way users get working debug output with -g, and don't blame it on a buggy dmd
:)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 01 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3389



--- Comment #2 from Leandro Lucarella <llucax gmail.com> 2010-04-28 09:31:36
PDT ---
Seems reasonable.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 28 2010