This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/10805] GDB Type.fields() crashes on non-struct/class types
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 20 Oct 2009 10:12:18 -0000
- Subject: [Bug python/10805] GDB Type.fields() crashes on non-struct/class types
- References: <20091019102313.10805.pmuldoon@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pmuldoon at redhat dot com 2009-10-20 10:12 -------
This is what I see currently in both FSF HEAD and archer-tromey-python branch:
37 return 0; /* break to inspect struct and union */
(gdb) p st
$2 = {
a = 3,
b = 5
}
(gdb) python st = gdb.history(0)
(gdb) py print st
{
a = 3,
b = 5
}
(gdb) p ar
$3 = {1, 2}
(gdb) py ar = gdb.history (0)
(gdb) py print ar
{1, 2}
(gdb) python fields = st.type.fields()
(gdb) py print fields[0].name
a
(gdb) py print fields[1].name
b
(gdb) python fields = ar.type.fields()
Segmentation fault (core dumped)
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|pmuldoon at redhat dot com
|org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
http://sourceware.org/bugzilla/show_bug.cgi?id=10805
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.