From 1bee48c7ad5b75896ef8d84fedc774e181fb09a7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 30 Apr 2021 10:22:23 -0600 Subject: Make get_image_name static The only callers of get_image_name are nat/windows-nat.c, so make it static. gdb/ChangeLog 2021-04-30 Tom Tromey * nat/windows-nat.h (get_image_name): Don't declare. * nat/windows-nat.c (get_image_name): Now static. --- gdb/nat/windows-nat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/nat/windows-nat.c') 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__ -- cgit v1.1