This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/10586] Anonymous unions/structs not handled correctly under MI
- From: "elethiomel at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 10 Oct 2009 02:23:31 -0000
- Subject: [Bug mi/10586] Anonymous unions/structs not handled correctly under MI
- References: <20090901200751.10586.elethiomel@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From elethiomel at gmail dot com 2009-10-10 02:23 -------
Thanks for looking at this. I have applied the patch to the latest cvs snapshot
of GDB (7.0.50.20091009) and still get "Duplicate variable object name" using
the posted testcase. Here's the debugger session.
(gdb)
343-stack-list-arguments 0 0 0
343^done,stack-args=[frame={level="0",args=[]}]
(gdb)
344-stack-list-locals 0
344^done,locals=[name="bar"]
(gdb)
345 whatis bar
&"whatis bar\n"
~"type = test\n"
345^done
(gdb)
346 ptype test
&"ptype test\n"
~"type = struct test {\n"
~" test::<anonymous struct>;\n"
~" test::<anonymous struct>;\n"
~"}\n"
346^done
(gdb)
347-var-create - * bar
347^done,name="var1",numchild="1",value="{...}",type="test",thread-id="1",has_more="0"
(gdb)
348-var-evaluate-expression var1
348^done,value="{...}"
(gdb)
349-var-show-attributes var1
349^done,attr="noneditable"
(gdb)
350-data-evaluate-expression bar
350^done,value="{{a = 1209049076, b = 3.9881805e-34}, {c = 134514617, d =
148095.812}}"
(gdb)
351-var-list-children var1
351^done,numchild="1",children=[child={name="var1.public",exp="public",numchild="2",thread-id="1"}],has_more="0"
(gdb)
352-var-info-expression var1
352^done,lang="C++",exp="bar"
(gdb)
353-var-list-children var1.public
353^error,msg="Duplicate variable object name"
(gdb)
354-var-list-children var1
354^done,numchild="1",children=[child={name="var1.public",exp="public",numchild="2",thread-id="1"}],has_more="0"
(gdb)
355-var-list-children var1.public
355^error,msg="Duplicate variable object name"
(gdb)
356-data-evaluate-expression bar
356^done,value="{{a = 1209049076, b = 3.9881805e-34}, {c = 134514617, d =
148095.812}}"
(gdb)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10586
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.