mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
* 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.
This commit is contained in:
10
gdb/thread.h
10
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 */
|
||||
|
Reference in New Issue
Block a user