This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PR Python/12212
- From: Tom Tromey <tromey at redhat dot com>
- To: pmuldoon at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 16 Nov 2010 10:32:46 -0700
- Subject: Re: PR Python/12212
- References: <m37hgdmti0.fsf@redhat.com>
>>>>> "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