[Issue 4149] refs displayed as pointers in gdb

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 9 01:10:00 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4149



--- Comment #7 from Brad Roberts <braddr at puremagic.com> 2010-05-09 01:09:56 PDT ---
Created an attachment (id=625)
Fix some plumbing and change the dwarf code to emit ref types.

The ref'ness was lost before it got into the dwarf stage, but also easy to fix,
assuming that Walter is right about the backend being ready to handle TYref's
now.

I've attached the diff I've whipped up.  It does work to emit the right debug
info, but I haven't tested it on much more than the simplest code
(specifically, the code at the top of this bug report).

A snippit from a gdb session:

Breakpoint 1, test.foo (x=@0xbffff62c) at inline.d:5
5      ++x;
(gdb) print x
$1 = (int &) @0xbffff62c: 0
(gdb) next
0x08049112 in test.foo (x=@0xbffff62c)
(gdb) print x
$2 = (int &) @0xbffff62c: 1

So, gdb is using C++ style demangling, but that can be addressed by someone
working on gdb.

-- 
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