February 14, 2014 [Issue 4149] refs displayed as pointers in gdb | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=4149 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com Platform|Other |All OS/Version|Windows |All --- Comment #17 from Iain Buclaw <ibuclaw@ubuntu.com> 2014-02-14 02:22:13 PST --- Confirmed on Linux, changing platform from 'Other', 'Windows' to 'All', 'All' --- void foo(ref int a) { a = 42; } void main() { int i; foo(i); assert(i == 42); } --- (gdb) break test.foo(ref int) Breakpoint 2 at 0x41705c: file test.d, line 3. (gdb) continue Continuing. Breakpoint 2, test.foo(ref int) (a=0x7fffffffde68) at test.d:3 (gdb) ptype a type = int * --- Also, cannot reproduce on GDC, so this is DMD-specific. (gdb) break test.foo(ref int) Breakpoint 2 at 0x402c0f: file test.d, line 3. (gdb) continue Continuing. Breakpoint 2, test.foo(ref int) (a=@0x7fffffffdf4c: 0) at test.d:3 (gdb) ptype a type = int & --- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation