aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-04-30 10:22:23 -0600
committerTom Tromey <tromey@adacore.com>2021-04-30 10:22:24 -0600
commit1bee48c7ad5b75896ef8d84fedc774e181fb09a7 (patch)
tree330e7962a512f2897e0b3ff2ece6d39b49d5d4b5 /gdb/nat
parente228ef975e92d3bc860fc6b87039447392ba53aa (diff)
downloadgdb-1bee48c7ad5b75896ef8d84fedc774e181fb09a7.zip
gdb-1bee48c7ad5b75896ef8d84fedc774e181fb09a7.tar.gz
gdb-1bee48c7ad5b75896ef8d84fedc774e181fb09a7.tar.bz2
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 <tromey@adacore.com> * nat/windows-nat.h (get_image_name): Don't declare. * nat/windows-nat.c (get_image_name): Now static.
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/windows-nat.c8
-rw-r--r--gdb/nat/windows-nat.h7
2 files changed, 7 insertions, 8 deletions
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,