diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-04-13 18:28:27 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-04-13 18:28:27 +0000 |
commit | 26063d4963d175aad03043fbf637f4ed18288bfd (patch) | |
tree | 1d883fca0b6eccbc0d5c2b2342ca6418d596d523 /gdb/breakpoint.c | |
parent | d26ccb4f7bfbb24cccb40e71726ca4d0a6fee365 (diff) | |
download | gdb-26063d4963d175aad03043fbf637f4ed18288bfd.zip gdb-26063d4963d175aad03043fbf637f4ed18288bfd.tar.gz gdb-26063d4963d175aad03043fbf637f4ed18288bfd.tar.bz2 |
* breakpoint.c (save_breakpoints): Verify whether
breakpoint_ops.print_recreate is defined before calling it.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |