mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
PR python/12212 * python/py-inferior.c (find_thread_object): Check if PIDGET returns 0. 2010-11-23 Phil Muldoon <pmuldoon@redhat.com> PR python/12212 * gdb.python/python.exp: Check that selected_thread raises an error when no inferior is loaded.
This commit is contained in:
@ -130,6 +130,9 @@ find_thread_object (ptid_t ptid)
|
||||
PyObject *inf_obj;
|
||||
|
||||
pid = PIDGET (ptid);
|
||||
if (pid == 0)
|
||||
return NULL;
|
||||
|
||||
inf_obj = find_inferior_object (pid);
|
||||
|
||||
if (inf_obj)
|
||||
|
Reference in New Issue
Block a user