]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* breakpoint.c (save_breakpoints): Verify whether
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Fri, 15 Apr 2011 04:16:42 +0000 (04:16 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Fri, 15 Apr 2011 04:16:42 +0000 (04:16 +0000)
breakpoint_ops.print_recreate is defined before calling it.

gdb/ChangeLog
gdb/breakpoint.c

index 27426f46aa653414026cce38bf2c51d165a77132..ab24e93cc8639465a6e58a113cf6c063e30c4cf5 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpoint.c (save_breakpoints): Verify whether
+       breakpoint_ops.print_recreate is defined before calling it.
+
 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix DW_AT_accessibility compatibility with gcc-4.6+.
index 3b1367bb4659e5bae9a85161e3fcd7a30f560eeb..502ac148fb5828d97c784a62ba3956ac2d836c8c 100644 (file)
@@ -12360,7 +12360,7 @@ save_breakpoints (char *filename, int from_tty,
     if (filter && !filter (tp))
       continue;
 
-    if (tp->ops != NULL)
+    if (tp->ops != NULL && tp->ops->print_recreate != NULL)
       (tp->ops->print_recreate) (tp, fp);
     else
       {