From 26063d4963d175aad03043fbf637f4ed18288bfd Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Wed, 13 Apr 2011 18:28:27 +0000 Subject: * breakpoint.c (save_breakpoints): Verify whether breakpoint_ops.print_recreate is defined before calling it. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb') 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 + + * breakpoint.c (save_breakpoints): Verify whether + breakpoint_ops.print_recreate is defined before calling it. + 2011-04-11 Gary Benson 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 { -- cgit v1.1