]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix reporting of DLL unload events on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Wed, 22 May 2013 16:18:12 +0000 (16:18 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 22 May 2013 16:18:12 +0000 (16:18 +0000)
 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
gdb/windows-nat.c

index f972b53b816f4902ccfa33f8d8b5e5cfa3e6665b..bc787a734c9a23168b1b54eba3628f5a9061e377 100644 (file)
@@ -1,3 +1,10 @@
+2013-05-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <pmuldoon@redhat.com>
 
        * ui-out.c: Create typedef ui_out_level_p and define vector
index 41c1701c25c6c597f32f25479952791f25e0d772..db3188b0c1799ea0d904a19eab317e6e556899ef 100644 (file)
@@ -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;
       }