mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 18:57:01 +08:00
gdb/
* python/py-inferior.c (infpy_threads): Call update_thread_list (). gdb/testsuite/ * gdb.python/py-inferior.c (thread): New function. (check_threads): New function. (test_threads): New function. * gdb.python/py-inferior.exp: Added test. Replaced runto with continue to breakpoint.
This commit is contained in:
@ -300,9 +300,14 @@ infpy_threads (PyObject *self, PyObject *args)
|
||||
struct threadlist_entry *entry;
|
||||
inferior_object *inf_obj = (inferior_object *) self;
|
||||
PyObject *tuple;
|
||||
volatile struct gdb_exception except;
|
||||
|
||||
INFPY_REQUIRE_VALID (inf_obj);
|
||||
|
||||
TRY_CATCH (except, RETURN_MASK_ALL)
|
||||
update_thread_list ();
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
tuple = PyTuple_New (inf_obj->nthreads);
|
||||
if (!tuple)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user