mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Make last_wait_event static
Now that last_wait_event is entirely handled in nat/windows-nat.c, it can be made static. gdb/ChangeLog 2020-04-08 Tom Tromey <tromey@adacore.com> * nat/windows-nat.h (last_wait_event): Don't declare. (wait_for_debug_event): Update comment. * nat/windows-nat.c (last_wait_event): Now static.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2020-04-08 Tom Tromey <tromey@adacore.com>
|
||||||
|
|
||||||
|
* nat/windows-nat.h (last_wait_event): Don't declare.
|
||||||
|
(wait_for_debug_event): Update comment.
|
||||||
|
* nat/windows-nat.c (last_wait_event): Now static.
|
||||||
|
|
||||||
2020-04-08 Tom Tromey <tromey@adacore.com>
|
2020-04-08 Tom Tromey <tromey@adacore.com>
|
||||||
|
|
||||||
* windows-nat.c (wait_for_debug_event): Move to
|
* windows-nat.c (wait_for_debug_event): Move to
|
||||||
|
@ -31,7 +31,14 @@ DWORD current_process_id;
|
|||||||
DWORD main_thread_id;
|
DWORD main_thread_id;
|
||||||
enum gdb_signal last_sig = GDB_SIGNAL_0;
|
enum gdb_signal last_sig = GDB_SIGNAL_0;
|
||||||
DEBUG_EVENT current_event;
|
DEBUG_EVENT current_event;
|
||||||
DEBUG_EVENT last_wait_event;
|
|
||||||
|
/* The most recent event from WaitForDebugEvent. Unlike
|
||||||
|
current_event, this is guaranteed never to come from a pending
|
||||||
|
stop. This is important because only data from the most recent
|
||||||
|
event from WaitForDebugEvent can be used when calling
|
||||||
|
ContinueDebugEvent. */
|
||||||
|
static DEBUG_EVENT last_wait_event;
|
||||||
|
|
||||||
windows_thread_info *current_windows_thread;
|
windows_thread_info *current_windows_thread;
|
||||||
DWORD desired_stop_thread_id = -1;
|
DWORD desired_stop_thread_id = -1;
|
||||||
std::vector<pending_stop> pending_stops;
|
std::vector<pending_stop> pending_stops;
|
||||||
|
@ -165,13 +165,6 @@ extern enum gdb_signal last_sig;
|
|||||||
stop. */
|
stop. */
|
||||||
extern DEBUG_EVENT current_event;
|
extern DEBUG_EVENT current_event;
|
||||||
|
|
||||||
/* The most recent event from WaitForDebugEvent. Unlike
|
|
||||||
current_event, this is guaranteed never to come from a pending
|
|
||||||
stop. This is important because only data from the most recent
|
|
||||||
event from WaitForDebugEvent can be used when calling
|
|
||||||
ContinueDebugEvent. */
|
|
||||||
extern DEBUG_EVENT last_wait_event;
|
|
||||||
|
|
||||||
/* Info on currently selected thread */
|
/* Info on currently selected thread */
|
||||||
extern windows_thread_info *current_windows_thread;
|
extern windows_thread_info *current_windows_thread;
|
||||||
|
|
||||||
@ -245,7 +238,7 @@ extern gdb::optional<pending_stop> fetch_pending_stop (bool debug_events);
|
|||||||
extern BOOL continue_last_debug_event (DWORD continue_status,
|
extern BOOL continue_last_debug_event (DWORD continue_status,
|
||||||
bool debug_events);
|
bool debug_events);
|
||||||
|
|
||||||
/* A simple wrapper for WaitForDebugEvent that also sets
|
/* A simple wrapper for WaitForDebugEvent that also sets the internal
|
||||||
'last_wait_event' on success. */
|
'last_wait_event' on success. */
|
||||||
|
|
||||||
extern BOOL wait_for_debug_event (DEBUG_EVENT *event, DWORD timeout);
|
extern BOOL wait_for_debug_event (DEBUG_EVENT *event, DWORD timeout);
|
||||||
|
Reference in New Issue
Block a user