summaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2002-02-22 01:35:59 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2002-02-22 01:35:59 +0000
commita5aa29b71fae3293651e7d8421a98a5191830553 (patch)
tree6c24e38ef07f46981cf5e59553dd937a9d165a4a /gdb/win32-nat.c
parent2c37f3c2965253549fadc1d9fa39c4dd08eaf3ee (diff)
downloadgdb-a5aa29b71fae3293651e7d8421a98a5191830553.tar.gz
* win32-nat.c (register_loaded_dll): Just use raw name when we can't find the
complete path to a loaded DLL.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r--gdb/win32-nat.c4
1 files changed, 3 insertions, 1 deletions
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);