diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-02-12 04:55:15 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-02-12 04:55:15 +0000 |
commit | ecc13e538fab510f27fb5de27f93b6be8aff983f (patch) | |
tree | d14b3e7cd2851ae1599d0781e5f01e5fc77072ed /gdb | |
parent | 9468ae890567c94052e244a4f71af25590037065 (diff) | |
download | gdb-ecc13e538fab510f27fb5de27f93b6be8aff983f.zip gdb-ecc13e538fab510f27fb5de27f93b6be8aff983f.tar.gz gdb-ecc13e538fab510f27fb5de27f93b6be8aff983f.tar.bz2 |
Spurious "dll not found" error messages on x64-windows.
* windows-nat.c: Add include of complaints.h.
(handle_unload_dll): Change dll-not-found error into a complaint.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/windows-nat.c | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bb2b49..f2df5df 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-02-12 Joel Brobecker <brobecker@adacore.com> + + Spurious "dll not found" error messages on x64-windows. + * windows-nat.c: Add include of complaints.h. + (handle_unload_dll): Change dll-not-found error into a complaint. + 2010-02-12 Pedro Alves <pedro@codesourcery.com> * breakpoint.c (allocate_bp_location): Use bp_loc_other for diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 2740366..9ac2b24 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -64,6 +64,7 @@ #include "windows-tdep.h" #include "windows-nat.h" #include "i386-nat.h" +#include "complaints.h" #define AdjustTokenPrivileges dyn_AdjustTokenPrivileges #define DebugActiveProcessStop dyn_DebugActiveProcessStop @@ -783,8 +784,15 @@ handle_unload_dll (void *dummy) return 1; } - error (_("Error: dll starting at %s not found."), - host_address_to_string (lpBaseOfDll)); + /* We did not find any DLL that was previously loaded at this address, + so register a complaint. We do not report an error, because we have + observed that this may be happening under some circumstances. For + instance, running 32bit applications on x64 Windows causes us to receive + 4 mysterious UNLOAD_DLL_DEBUG_EVENTs during the startup phase (these + events are apparently caused by the WOW layer, the interface between + 32bit and 64bit worlds). */ + complaint (&symfile_complaints, _("dll starting at %s not found."), + host_address_to_string (lpBaseOfDll)); return 0; } |