projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Share parts of gdb/gdbthread.h with gdbserver
[deliverable/binutils-gdb.git]
/
gdb
/
gdbserver
/
inferiors.c
diff --git
a/gdb/gdbserver/inferiors.c
b/gdb/gdbserver/inferiors.c
index b65a7266e3f4085330149cf465c146cc00a882f4..5a4a0d1c23bc95b4ba46e0df6b143ef988727ccf 100644
(file)
--- a/
gdb/gdbserver/inferiors.c
+++ b/
gdb/gdbserver/inferiors.c
@@
-468,3
+468,12
@@
make_cleanup_restore_current_thread (void)
{
return make_cleanup (do_restore_current_thread_cleanup, current_thread);
}
+
+/* See common/common-gdbthread.h. */
+
+void
+switch_to_thread (ptid_t ptid)
+{
+ if (!ptid_equal (ptid, minus_one_ptid))
+ current_thread = find_thread_ptid (ptid);
+}
This page took
0.024512 seconds
and
4
git commands to generate.