This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/15461] crash: gdb-7.6 gdbarch in archpy_disassemble() overwritten with NULL causes crash due to assert(gdbarch != NULL)
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 28 Aug 2013 10:45:17 +0000
- Subject: [Bug python/15461] crash: gdb-7.6 gdbarch in archpy_disassemble() overwritten with NULL causes crash due to assert(gdbarch != NULL)
- Auto-submitted: auto-generated
- References: <bug-15461-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15461
Phil Muldoon <pmuldoon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Phil Muldoon <pmuldoon at redhat dot com> ---
gdb.Architecture should never be instantiated directly. Regardless, we should
gate the calls to the functions to check that there is a valid architecture. I
have a patch pending for this. I will update the PR when it is submitted,
reviewed and accepted.
Just as a note, to get an architecture object, one should obtain it from a
frame.
For example:
frame = gdb.selected_frame()
arch = frame.architecture()
As each frame can have a different architecture.
--
You are receiving this mail because:
You are on the CC list for the bug.