From d85c48475feb99f061897d641adc54881a41762f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 22 May 2013 16:18:12 +0000 Subject: [PATCH] Fix reporting of DLL unload events on MS-Windows. gdb/windows-nat.c (handle_unload_dll): Don't call solib_add for the unloaded DLL, it will be done by handle_solib_event. See http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the details. --- gdb/ChangeLog | 7 +++++++ gdb/windows-nat.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f972b53b816..bc787a734c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2013-05-22 Eli Zaretskii + + * windows-nat.c (handle_unload_dll): Don't call solib_add for the + unloaded DLL, it will be done by handle_solib_event. See + http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the + details. + 2013-05-22 Phil Muldoon * ui-out.c: Create typedef ui_out_level_p and define vector diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 41c1701c25c..db3188b0c17 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -891,7 +891,6 @@ handle_unload_dll (void *dummy) DEBUG_EVENTS (("gdb: Unloading dll \"%s\".\n", sodel->so_name)); windows_free_so (sodel); - solib_add (NULL, 0, NULL, auto_solib_add); return 1; } -- 2.30.2