diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2016-12-22 13:30:42 -0500 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2017-06-07 19:56:01 -0400 |
commit | 043a49349c713dc329a2dfc413b082c3826ecdb8 (patch) | |
tree | 3c4c07e3fe64b479579a21ae40bd71723639857c /gdb/gdbthread.h | |
parent | 156525114c1cbbace0dec223494b842ffc60d52e (diff) | |
download | gdb-043a49349c713dc329a2dfc413b082c3826ecdb8.zip gdb-043a49349c713dc329a2dfc413b082c3826ecdb8.tar.gz gdb-043a49349c713dc329a2dfc413b082c3826ecdb8.tar.bz2 |
Share parts of gdb/gdbthread.h with gdbserver
GDB and gdbserver now share 'switch_to_thread' because of
fork_inferior. To make things clear, I created a new file name
common/common-gdbthread.h, and left the implementation specific to
each part.
gdb/ChangeLog:
2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
* Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
* common/common-gdbthread.h: New file, with parts from
"gdb/gdbthread.h".
* gdbthread.h: Include "common-gdbthread.h".
(switch_to_thread): Moved to "common/common-gdbthread.h".
gdb/gdbserver/ChangeLog:
2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
* inferiors.c (switch_to_thread): New function.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 7bf2070..046bf95 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -32,6 +32,7 @@ struct symtab; #include "target/waitstatus.h" #include "cli/cli-utils.h" #include "common/refcounted-object.h" +#include "common-gdbthread.h" /* Frontend view of the thread state. Possible extensions: stepping, finishing, until(ling),... */ @@ -493,10 +494,6 @@ extern struct thread_info *iterate_over_threads (thread_callback_func, void *); extern int thread_count (void); -/* Switch from one thread to another. Also sets the STOP_PC - global. */ -extern void switch_to_thread (ptid_t ptid); - /* Switch from one thread to another. Does not read registers and sets STOP_PC to -1. */ extern void switch_to_thread_no_regs (struct thread_info *thread); |