aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/dprintf.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-01-11 00:31:58 +0000
committerYao Qi <yao@codesourcery.com>2013-01-11 00:31:58 +0000
commit5bf480a5cb916990831390cd06149459fad67627 (patch)
tree53ba6042298c66f1483c0aa472c3eb4ca3978dfd /gdb/testsuite/gdb.base/dprintf.exp
parent067ff88c916dd21526e5a08a838a832705409908 (diff)
downloadgdb-5bf480a5cb916990831390cd06149459fad67627.zip
gdb-5bf480a5cb916990831390cd06149459fad67627.tar.gz
gdb-5bf480a5cb916990831390cd06149459fad67627.tar.bz2
gdb/testsuite/
* gdb.base/dprintf.exp: Check the output of 'info breakpoints' for dprintf. * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Check the fields in "=breakpoint-created" for dprintf.
Diffstat (limited to 'gdb/testsuite/gdb.base/dprintf.exp')
-rw-r--r--gdb/testsuite/gdb.base/dprintf.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/dprintf.exp b/gdb/testsuite/gdb.base/dprintf.exp
index f99d75e..fb626fa 100644
--- a/gdb/testsuite/gdb.base/dprintf.exp
+++ b/gdb/testsuite/gdb.base/dprintf.exp
@@ -43,6 +43,17 @@ gdb_test "dprintf foo,\"At foo entry\\n\"" \
gdb_test "dprintf $dp_location1,\"arg=%d, g=%d\\n\", arg, g" \
"Dprintf .*"
+gdb_test_sequence "info breakpoints" "dprintf info 1" {
+ "\[\r\n\]Num Type Disp Enb Address What"
+ "\[\r\n\]2 breakpoint"
+ "\[\r\n\]3 dprintf"
+ "\[\r\n\] printf \"At foo entry\\\\n\""
+ "\[\r\n\] continue"
+ "\[\r\n\]4 dprintf"
+ "\[\r\n\] printf \"arg=%d, g=%d\\\\n\", arg, g"
+ "\[\r\n\] continue"
+}
+
gdb_test "break $bp_location1" \
"Breakpoint .*"
@@ -107,6 +118,17 @@ if $target_can_dprintf {
gdb_test "continue" "Breakpoint \[0-9\]+, foo .*" "2nd dprintf, agent"
+ gdb_test_sequence "info breakpoints" "dprintf info 2" {
+ "\[\r\n\]Num Type Disp Enb Address What"
+ "\[\r\n\]2 breakpoint"
+ "\[\r\n\]\tbreakpoint already hit 2 times"
+ "\[\r\n\]3 dprintf"
+ "\[\r\n\]\tbreakpoint already hit 2 times"
+ "\[\r\n\] agent-printf \"At foo entry\\\\n\""
+ "\[\r\n\]4 dprintf"
+ "\[\r\n\]\tbreakpoint already hit 2 times"
+ "\[\r\n\] agent-printf \"arg=%d, g=%d\\\\n\", arg, g"
+ }
}
gdb_test "set dprintf-style foobar" "Undefined item: \"foobar\"." \