* config/obj-aout.h: Fix comment typos.
[deliverable/binutils-gdb.git] / gdb / breakpoint.c
index 0e95e208cc352a324f9b0eefaa27f033e6140b1d..02874bcf290d66ea755791d1a2ef81685937bf91 100644 (file)
@@ -4297,11 +4297,12 @@ re_enable_breakpoints_in_shlibs (void)
   ALL_BREAKPOINTS (b)
     if (b->enable_state == bp_shlib_disabled)
     {
-      char buf[1];
+      char buf[1], *lib;
 
       /* Do not reenable the breakpoint if the shared library
          is still not mapped in.  */
-      if (target_read_memory (b->loc->address, buf, 1) == 0)
+      lib = PC_SOLIB (b->loc->address);
+      if (lib != NULL && target_read_memory (b->loc->address, buf, 1) == 0)
        b->enable_state = bp_enabled;
     }
 }
This page took 0.022999 seconds and 4 git commands to generate.