[Issue 4149] refs displayed as pointers in gdb
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 2 14:15:39 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4149
--- Comment #4 from Brad Roberts <braddr at puremagic.com> 2010-05-02 14:15:36 PDT ---
I've been looking at how to patch up that part of the code, and it looks like
the ref-ness has been lost at this layer:
(gdb) print *t
$2 = {id = 4660, Tty = 29, Tflags = 0, Tmangle = 7 '\a', Tcount = 1, Tnext =
0x81ffd20, {Tdim = 0, Tel = 0x0, Tparamtypes = 0x0, Ttag = 0x0, Tident = 0x0,
Tkey = 0x0}, Texcspec = 0x0}
(gdb) print t->Tnext
$3 = (TYPE *) 0x81ffd20
(gdb) print t->Tnext[0]
$4 = {id = 4660, Tty = 10, Tflags = 0, Tmangle = 0 '\000', Tcount = 3, Tnext =
0x0, {Tdim = 0, Tel = 0x0, Tparamtypes = 0x0, Ttag = 0x0, Tident = 0x0, Tkey =
0x0}, Texcspec = 0x0}
Tty 29 == 0x1d == TYnptr
If it was still a TYnref, it'd be easy.
--
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