This is the mail archive of the gdb-patches@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]

Re: PR Python/12212


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> This patches fixes a case where the API can request the currently
Phil> selected thread from GDB when no inferior is loaded.  This triggers an
Phil> error via assert.  Handle it in Python code instead.

This changes gdb.selected_thread to throw an exception if there is no
thread.  However, this is wrong -- the function is documented to return
None in this case.

Tom


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