aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2011-04-13 18:28:27 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2011-04-13 18:28:27 +0000
commit26063d4963d175aad03043fbf637f4ed18288bfd (patch)
tree1d883fca0b6eccbc0d5c2b2342ca6418d596d523 /gdb
parentd26ccb4f7bfbb24cccb40e71726ca4d0a6fee365 (diff)
downloadfsf-binutils-gdb-26063d4963d175aad03043fbf637f4ed18288bfd.zip
fsf-binutils-gdb-26063d4963d175aad03043fbf637f4ed18288bfd.tar.gz
fsf-binutils-gdb-26063d4963d175aad03043fbf637f4ed18288bfd.tar.bz2
* breakpoint.c (save_breakpoints): Verify whether
breakpoint_ops.print_recreate is defined before calling it.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c2ab9f2..994ec96 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * breakpoint.c (save_breakpoints): Verify whether
+ breakpoint_ops.print_recreate is defined before calling it.
+
2011-04-11 Gary Benson <gbenson@redhat.com>
Fix failure with --enable-maintainer-mode.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2352191..5633f15 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -12337,7 +12337,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
{