From: Christopher Faylor Date: Fri, 22 Feb 2002 01:35:59 +0000 (+0000) Subject: * win32-nat.c (register_loaded_dll): Just use raw name when we can't find the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6badb179ab59d9516c37ad956ba058fa7a2f7223;p=binutils-gdb.git * win32-nat.c (register_loaded_dll): Just use raw name when we can't find the complete path to a loaded DLL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a1808ecb49..02c3e792cc2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-21 Christopher Faylor + + * win32-nat.c (register_loaded_dll): Just use raw name when we can't + find the complete path to a loaded DLL. + 2002-02-21 Fred Fish * dbxread.c (process_one_symbol): When finding an N_FUN symbol diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index cd288be2c74..2ef28e0e538 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -582,7 +582,9 @@ register_loaded_dll (const char *name, DWORD load_addr) HANDLE h = FindFirstFile(name, &w32_fd); size_t len; - if (h != INVALID_HANDLE_VALUE) + if (h == INVALID_HANDLE_VALUE) + strcpy (buf, name); + else { FindClose (h); strcpy (buf, name); diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index cd288be2c74..2ef28e0e538 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -582,7 +582,9 @@ register_loaded_dll (const char *name, DWORD load_addr) HANDLE h = FindFirstFile(name, &w32_fd); size_t len; - if (h != INVALID_HANDLE_VALUE) + if (h == INVALID_HANDLE_VALUE) + strcpy (buf, name); + else { FindClose (h); strcpy (buf, name);