mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
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.
This commit is contained in:
parent
067ff88c91
commit
5bf480a5cb
@ -1,3 +1,10 @@
|
|||||||
|
2013-01-11 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2012-12-25 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-12-25 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* gdb.mi/mi-fullname-deleted.exp: New file.
|
* gdb.mi/mi-fullname-deleted.exp: New file.
|
||||||
|
@ -43,6 +43,17 @@ gdb_test "dprintf foo,\"At foo entry\\n\"" \
|
|||||||
gdb_test "dprintf $dp_location1,\"arg=%d, g=%d\\n\", arg, g" \
|
gdb_test "dprintf $dp_location1,\"arg=%d, g=%d\\n\", arg, g" \
|
||||||
"Dprintf .*"
|
"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" \
|
gdb_test "break $bp_location1" \
|
||||||
"Breakpoint .*"
|
"Breakpoint .*"
|
||||||
|
|
||||||
@ -107,6 +118,17 @@ if $target_can_dprintf {
|
|||||||
|
|
||||||
gdb_test "continue" "Breakpoint \[0-9\]+, foo .*" "2nd dprintf, agent"
|
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\"." \
|
gdb_test "set dprintf-style foobar" "Undefined item: \"foobar\"." \
|
||||||
|
@ -96,7 +96,7 @@ proc test_insert_delete_modify { } {
|
|||||||
$test
|
$test
|
||||||
set test "dprintf marker, \"arg\" \""
|
set test "dprintf marker, \"arg\" \""
|
||||||
mi_gdb_test $test \
|
mi_gdb_test $test \
|
||||||
{.*=breakpoint-created,bkpt=\{number="6",type="dprintf".*\}.*\n\^done} \
|
{.*=breakpoint-created,bkpt=\{number="6",type="dprintf".*,script=\{\"printf \\\\\"arg\\\\\" \\\\\"\",\"continue\"\}.*\}\r\n\^done} \
|
||||||
$test
|
$test
|
||||||
|
|
||||||
# 2. when modifying condition
|
# 2. when modifying condition
|
||||||
|
Loading…
Reference in New Issue
Block a user