* breakpoint.c (remove_breakpoint): Do not fail if unable to remove
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 26 Aug 2008 17:36:44 +0000 (17:36 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 26 Aug 2008 17:36:44 +0000 (17:36 +0000)
breakpoint from shared library.

gdb/ChangeLog
gdb/breakpoint.c

index 845b3b581ce69e2587e53ea2663cf974f223fffd..0477f24f67c647fbdeea28fd238a38060abae776 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
+       breakpoint from shared library.
+
 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * solib-svr4.c (read_program_header): New function.
index 18e207fdf8d126dda41fce5865962523e43f2eb0..847de00610ea7848167bb54b79293d206050734a 100644 (file)
@@ -1665,6 +1665,13 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
              val = 0;
            }
        }
+
+      /* In some cases, we might not be able to remove a breakpoint
+        in a shared library that has already been removed, but we
+        have not yet processed the shlib unload event.  */
+      if (val && solib_address (b->address))
+       val = 0;
+
       if (val)
        return val;
       b->inserted = (is == mark_inserted);
This page took 0.032463 seconds and 4 git commands to generate.