From: Thiago Jung Bauermann Date: Wed, 13 Apr 2011 18:28:27 +0000 (+0000) Subject: * breakpoint.c (save_breakpoints): Verify whether X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26063d4963d175aad03043fbf637f4ed18288bfd;p=binutils-gdb.git * breakpoint.c (save_breakpoints): Verify whether breakpoint_ops.print_recreate is defined before calling it. --- 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 {