aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-07-04 17:48:37 +0000
committerJeff Law <law@redhat.com>1995-07-04 17:48:37 +0000
commit88a294b1b7144dba23e36f9797772d9208995f8d (patch)
treeb5768971fd24f58ca2a1424550d925ec151bd5a9 /gdb/thread.h
parent7158d2b1a33bdb747c3310f5fe5884dec8e31a72 (diff)
downloadgdb-88a294b1b7144dba23e36f9797772d9208995f8d.zip
gdb-88a294b1b7144dba23e36f9797772d9208995f8d.tar.gz
gdb-88a294b1b7144dba23e36f9797772d9208995f8d.tar.bz2
* infrun.c (wait_for_inferior): When switching from one thread to
another, save infrun's state for the old thread and load infrun's previous state for the new thread. * thread.c (struct thread_info): Add new fields for thread specific state saved/restored in infrun.c. (add_thread): Initialize new fields. (load_infrun_state): New function. (save_infrun_state): New function. * thread.h (load_infrun_state): Provide external decl. (save_infrun_state): Likewise. More single-stepping patches for lynx-6100.
Diffstat (limited to 'gdb/thread.h')
-rw-r--r--gdb/thread.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/thread.h b/gdb/thread.h
index 2ec94fc..1316b7a 100644
--- a/gdb/thread.h
+++ b/gdb/thread.h
@@ -33,4 +33,14 @@ extern int pid_to_thread_id PARAMS ((int pid));
extern int valid_thread_id PARAMS ((int thread));
+extern void load_infrun_state PARAMS ((int, CORE_ADDR *, CORE_ADDR *, char **,
+ int *, struct breakpoint **,
+ struct breakpoint **, CORE_ADDR *,
+ CORE_ADDR *, CORE_ADDR *, int *, int *));
+
+extern void save_infrun_state PARAMS ((int, CORE_ADDR, CORE_ADDR, char *,
+ int, struct breakpoint *,
+ struct breakpoint *, CORE_ADDR,
+ CORE_ADDR, CORE_ADDR, int, int));
+
#endif /* THREAD_H */