aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-08-16 19:54:17 +0000
committerJason Molenda <jmolenda@apple.com>1999-08-16 19:54:17 +0000
commit041d852c0324c4928e2607571e07c447adcd35c9 (patch)
tree9898edfeab5a5c0b0d71e4e991a52892d807dfdb
parent114502711bc334a6c530a544033d4769c0703c70 (diff)
downloadgdb-041d852c0324c4928e2607571e07c447adcd35c9.zip
gdb-041d852c0324c4928e2607571e07c447adcd35c9.tar.gz
gdb-041d852c0324c4928e2607571e07c447adcd35c9.tar.bz2
import gdb-1999-08-16 snapshot
-rw-r--r--gdb/windows-nat.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 71d8efd..eaac180 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -323,7 +323,7 @@ handle_load_dll (PTR dummy)
DWORD dll_name_ptr;
DWORD done;
char dll_buf[MAX_PATH + 1];
- char *p, *dll_name = NULL, *dll_basename;
+ char *p, *dll_name = NULL;
struct objfile *objfile;
MEMORY_BASIC_INFORMATION minfo;
@@ -411,28 +411,6 @@ handle_load_dll (PTR dummy)
while ((p = strchr (dll_name, '\\')))
*p = '/';
- /* FIXME!! It would be nice to define one symbol which pointed to the
- front of the dll if we can't find any symbols. */
-
- if (!(dll_basename = strrchr (dll_name, '/')))
- dll_basename = dll_name;
- else
- dll_basename++;
-
- ALL_OBJFILES (objfile)
- {
- char *objfile_basename;
- objfile_basename = strrchr (objfile->name, '/');
-
- if (objfile_basename &&
- strcmp (dll_basename, objfile_basename + 1) == 0)
- {
- printf_unfiltered ("%x:%s (symbols previously loaded)\n",
- event->lpBaseOfDll, dll_name);
- goto out;
- }
- }
-
/* The symbols in a dll are offset by 0x1000, which is the
the offset from 0 of the first byte in an image - because
of the file header and the section alignment.
@@ -443,7 +421,6 @@ handle_load_dll (PTR dummy)
symbol_file_add (dll_name, 0, (int) event->lpBaseOfDll + 0x1000, 0, 0, 0, 0, 1);
printf_unfiltered ("\n");
-out:
return 1;
}