Make get_image_name static
authorTom Tromey <tromey@adacore.com>
Fri, 30 Apr 2021 16:22:23 +0000 (10:22 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 30 Apr 2021 16:22:24 +0000 (10:22 -0600)
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.

gdb/ChangeLog
gdb/nat/windows-nat.c
gdb/nat/windows-nat.h

index 4bb6ef832d9ce540b011b97de0b77268d27fa21d..16c0ef746d994d3e888fc4eb8ac20881770b23f9 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 377810c9f0ed9ac9cfd93209426b24a2c31f3ea7..0bb87ec067438c36cbd3b8463881e90d9d9a7489 100644 (file)
@@ -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__
index 821866bc63feab8be050b7ee5f07b23ae7d7c8a9..d8c5cfb2bd5fcfe2a3a6eb99cb79043cb83d109d 100644 (file)
@@ -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,
This page took 0.033871 seconds and 4 git commands to generate.