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:
parent
8223e12c08
commit
f66713d24a
5 changed files with 70 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue