* breakpoint.c (save_breakpoints): Verify whether

breakpoint_ops.print_recreate is defined before calling it.
This commit is contained in:
Thiago Jung Bauermann 2011-04-13 18:28:27 +00:00
parent d26ccb4f7b
commit 26063d4963
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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
{