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/15461] crash: gdb-7.6 gdbarch in archpy_disassemble() overwritten with NULL causes crash due to assert(gdbarch != NULL)


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.


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