aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:28:01 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:28:01 +0000
commit41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67 (patch)
treec82ea17b7df6f8187aa15cd97695703bad77cc09 /gdb/testsuite
parent33a7ffc270cc08ccec978d8e6ca2ea29e75c5478 (diff)
downloadgdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.zip
gdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.tar.gz
gdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.tar.bz2
* breakpoint.c (create_breakpoint, create_breakpoints)
(break_command_really, set_breakpoint): New parameter enabled. (create_breakpoint, break_command_really): Make breakpoint disabled if so requested. * breakpoint.h (set_breakpoint): New parameter enabled. * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.mi/mi-break.exp16
2 files changed, 21 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e4ec632..9e636b9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
+
+ * gdb.mi/mi-break.exp (test_disabled_creation): New.
+ Call it.
+
2009-01-28 Doug Evans <dje@google.com>
* gdb.arch/amd64-disp-step.S: New file.
diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp
index 84dcf0a..6ea59fc 100644
--- a/gdb/testsuite/gdb.mi/mi-break.exp
+++ b/gdb/testsuite/gdb.mi/mi-break.exp
@@ -183,6 +183,20 @@ proc test_error {} {
"update varobj for function call"
}
+proc test_disabled_creation {} {
+ global mi_gdb_prompt
+ global hex
+ global line_callee2_body
+
+ mi_gdb_test "-break-insert -d basics.c:callee2" \
+ "\\^done,bkpt=\{number=\"6\",type=\"breakpoint\",disp=\"keep\",enabled=\"n\",addr=\"$hex\",func=\"callee2\",file=\".*basics.c\",fullname=\".*\",line=\"$line_callee2_body\",times=\"0\",original-location=\".*\"\}" \
+ "test disabled creation"
+
+ mi_gdb_test "-break-delete" \
+ "\\^done" \
+ "test disabled creation: cleanup"
+}
+
test_tbreak_creation_and_listing
test_rbreak_creation_and_listing
@@ -190,5 +204,7 @@ test_ignore_count
test_error
+test_disabled_creation
+
mi_gdb_exit
return 0