summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e228ef9)
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.
+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.
2021-04-30 Tom Tromey <tromey@adacore.com>
* windows-nat.c (windows_nat::handle_load_dll): Update.
+/* 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__
get_image_name (HANDLE h, void *address, int unicode)
{
#ifdef __CYGWIN__
extern bool ignore_first_breakpoint;
#endif
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,
typedef enum
{
HANDLE_EXCEPTION_UNHANDLED = 0,