diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nat/windows-nat.c | 8 | ||||
-rw-r--r-- | gdb/nat/windows-nat.h | 7 |
3 files changed, 12 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4bb6ef8..16c0ef7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2021-04-30 Tom Tromey <tromey@adacore.com> + * nat/windows-nat.h (get_image_name): Don't declare. + * nat/windows-nat.c (get_image_name): Now static. + +2021-04-30 Tom Tromey <tromey@adacore.com> + * windows-nat.c (windows_nat::handle_load_dll): Update. (windows_nat_target::get_windows_debug_event): Call dll_loaded_event. diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index 377810c..0bb87ec 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -120,7 +120,13 @@ windows_thread_info::resume () suspended = 0; } -const char * +/* Return the name of the DLL referenced by H at ADDRESS. UNICODE + determines what sort of string is read from the inferior. Returns + the name of the DLL, or NULL on error. If a name is returned, it + is stored in a static buffer which is valid until the next call to + get_image_name. */ + +static const char * get_image_name (HANDLE h, void *address, int unicode) { #ifdef __CYGWIN__ diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h index 821866b..d8c5cfb 100644 --- a/gdb/nat/windows-nat.h +++ b/gdb/nat/windows-nat.h @@ -220,13 +220,6 @@ extern bool wow64_process; extern bool ignore_first_breakpoint; #endif -/* Return the name of the DLL referenced by H at ADDRESS. UNICODE - determines what sort of string is read from the inferior. Returns - the name of the DLL, or NULL on error. If a name is returned, it - is stored in a static buffer which is valid until the next call to - get_image_name. */ -extern const char *get_image_name (HANDLE h, void *address, int unicode); - typedef enum { HANDLE_EXCEPTION_UNHANDLED = 0, |