From 26063d4963d175aad03043fbf637f4ed18288bfd Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Wed, 13 Apr 2011 18:28:27 +0000 Subject: [PATCH] * 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(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2ab9f2e5b3..994ec96e000 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 235219178a0..5633f15cd05 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 { -- 2.30.2