aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2014-10-12 21:52:39 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2014-10-12 21:52:39 +0200
commit99894e1175c04ef470761406c0d20f61f5a7e9ba (patch)
tree34691cd93e5116fde6cff900c74cf25fa1fe377a /gdb/breakpoint.c
parent6e1ac5a3735abf8284c09563fdcba18f88226abb (diff)
downloadgdb-99894e1175c04ef470761406c0d20f61f5a7e9ba.zip
gdb-99894e1175c04ef470761406c0d20f61f5a7e9ba.tar.gz
gdb-99894e1175c04ef470761406c0d20f61f5a7e9ba.tar.bz2
Fix "save breakpoints" for "disable $bpnum" command.
gdb/ChangeLog 2014-10-12 Miroslav Franc <mfranc@redhat.com> Fix "save breakpoints" for "disable $bpnum" command. * breakpoint.c (save_breakpoints): Add $bpnum for disable. gdb/testsuite/ChangeLog 2014-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> Fix "save breakpoints" for "disable $bpnum" command. * gdb.base/save-bp.c (main): Add label. * gdb.base/save-bp.exp: Add 8th disabled breakpoint. Match it.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 3044916..a144a7e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -16130,7 +16130,7 @@ save_breakpoints (char *filename, int from_tty,
}
if (tp->enable_state == bp_disabled)
- fprintf_unfiltered (fp, "disable\n");
+ fprintf_unfiltered (fp, "disable $bpnum\n");
/* If this is a multi-location breakpoint, check if the locations
should be individually disabled. Watchpoint locations are