diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-03-27 12:53:54 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-04-04 21:05:30 -0400 |
commit | 3c8af02fa0b140edcde2a65d016f565aad1a699b (patch) | |
tree | 7d738cf49a90ef27a9b700b5e914f6d91b765e73 /gdb/python | |
parent | 91385d13a8820bf3e6274ec51d4da613bae67554 (diff) | |
download | gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.zip gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.tar.gz gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.tar.bz2 |
gdb: make find_thread_ptid an inferior method
Make find_thread_ptid (the overload that takes an inferior) a method of
struct inferior.
Change-Id: Ie5b9fa623ff35aa7ddb45e2805254fc8e83c9cd4
Reviewed-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-threadevent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-threadevent.c b/gdb/python/py-threadevent.c index b29f69a..05a833d 100644 --- a/gdb/python/py-threadevent.c +++ b/gdb/python/py-threadevent.c @@ -28,8 +28,7 @@ py_get_event_thread (ptid_t ptid) if (non_stop) { thread_info *thread - = find_thread_ptid (current_inferior ()->process_target (), - ptid); + = current_inferior ()->find_thread (ptid); if (thread != nullptr) return thread_to_thread_object (thread); PyErr_SetString (PyExc_RuntimeError, "Could not find event thread"); |