diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:33:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:47:57 -0600 |
commit | e56f8ccb07890fc2c0413c530d27d105c74f622c (patch) | |
tree | 5fefedb7c02d7e92add01e26a03055653c59044f /gdbserver/win32-low.h | |
parent | 93366324f5232374bc19d94d94b5ed6159326240 (diff) | |
download | gdb-e56f8ccb07890fc2c0413c530d27d105c74f622c.zip gdb-e56f8ccb07890fc2c0413c530d27d105c74f622c.tar.gz gdb-e56f8ccb07890fc2c0413c530d27d105c74f622c.tar.bz2 |
Rename win32_thread_info to windows_thread_info
This renames win32_thread_info to windows_thread_info in gdbserver.
This renaming helps make it possible to share some code between gdb
and gdbserver.
gdbserver/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* win32-low.h (struct windows_thread_info): Rename from
win32_thread_info. Remove typedef.
(struct win32_target_ops, win32_require_context): Update.
* win32-low.c (win32_get_thread_context)
(win32_set_thread_context, win32_prepare_to_resume)
(win32_require_context, thread_rec, child_add_thread)
(delete_thread_info, continue_one_thread)
(child_fetch_inferior_registers, child_store_inferior_registers)
(win32_resume, suspend_one_thread, win32_get_tib_address):
Update.
* win32-i386-low.c (update_debug_registers)
(win32_get_current_dr, i386_get_thread_context)
(i386_prepare_to_resume, i386_thread_added, i386_single_step)
(i386_fetch_inferior_register, i386_store_inferior_register):
Update.
* win32-arm-low.c (arm_get_thread_context)
(arm_fetch_inferior_register, arm_store_inferior_register):
Update.
Diffstat (limited to 'gdbserver/win32-low.h')
-rw-r--r-- | gdbserver/win32-low.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index 9d2f0b4..2bd94e8 100644 --- a/gdbserver/win32-low.h +++ b/gdbserver/win32-low.h @@ -29,7 +29,7 @@ extern const struct target_desc *win32_tdesc; /* Thread information structure used to track extra information about each thread. */ -typedef struct win32_thread_info +struct windows_thread_info { /* The Win32 thread identifier. */ DWORD tid; @@ -54,7 +54,7 @@ typedef struct win32_thread_info /* Whether debug registers changed since we last set CONTEXT back to the thread. */ int debug_registers_changed; -} win32_thread_info; +}; struct win32_target_ops { @@ -68,23 +68,23 @@ struct win32_target_ops void (*initial_stuff) (void); /* Fetch the context from the inferior. */ - void (*get_thread_context) (win32_thread_info *th); + void (*get_thread_context) (windows_thread_info *th); /* Called just before resuming the thread. */ - void (*prepare_to_resume) (win32_thread_info *th); + void (*prepare_to_resume) (windows_thread_info *th); /* Called when a thread was added. */ - void (*thread_added) (win32_thread_info *th); + void (*thread_added) (windows_thread_info *th); /* Fetch register from gdbserver regcache data. */ void (*fetch_inferior_register) (struct regcache *regcache, - win32_thread_info *th, int r); + windows_thread_info *th, int r); /* Store a new register value into the thread context of TH. */ void (*store_inferior_register) (struct regcache *regcache, - win32_thread_info *th, int r); + windows_thread_info *th, int r); - void (*single_step) (win32_thread_info *th); + void (*single_step) (windows_thread_info *th); const unsigned char *breakpoint; int breakpoint_len; @@ -171,7 +171,7 @@ public: }; /* Retrieve the context for this thread, if not already retrieved. */ -extern void win32_require_context (win32_thread_info *th); +extern void win32_require_context (windows_thread_info *th); /* Map the Windows error number in ERROR to a locale-dependent error message string and return a pointer to it. Typically, the values |