This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/10805] GDB Type.fields() crashes on non-struct/class types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]