* breakpoint.h (enum enable): New enum shlib_disabled for
authorJeff Law <law@redhat.com>
Fri, 8 Mar 1996 19:16:33 +0000 (19:16 +0000)
committerJeff Law <law@redhat.com>
Fri, 8 Mar 1996 19:16:33 +0000 (19:16 +0000)
        shared library breakpoints that have been temporarily disabled.
        * breakpoint.c: Handle temporarily disabled shared library
        breakpoints like disabled breakpoints in most places.
        (insert_breakpoints): Use shlib_disabled to indicate
        that an unsettable breakpoint is only temporarily disabled.
        (re_enable_breakpoints_in_shlibs): New function.
        * corelow.c (solib_add_stub): After adding shared libraries,
        try to reenable any temporarily disabled breakpoints.
        * infcmd.c (attach_command): Likewise.
        * infrun.c (wait_for_inferior): Likewise.
Hopefully the last 7763 related patches for a while.

gdb/corelow.c

index d0626c3aec17dc1b535bee2f65b4f3301147bfdc..48bc1843f7b06110b9bfc0684b05c86546fa4bc0 100644 (file)
@@ -107,6 +107,7 @@ solib_add_stub (from_ttyp)
      char *from_ttyp;
 {
   SOLIB_ADD (NULL, *(int *)from_ttyp, &current_target);
+  re_enable_breakpoints_in_shlibs ();
   return 0;
 }
 #endif /* SOLIB_ADD */