mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-11 06:04:12 +00:00
2013-04-23 Hui Zhu <hui@codesourcery.com>
PR gdb/15293 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf. 2013-04-23 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * gdb.base/dprintf.exp: Add ignore command.
This commit is contained in:
parent
2d9442cc40
commit
a11cfd87c0
@ -1,3 +1,9 @@
|
||||
2013-04-23 Hui Zhu <hui@codesourcery.com>
|
||||
|
||||
PR gdb/15293
|
||||
|
||||
* breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
|
||||
|
||||
2013-04-23 Hui Zhu <hui@codesourcery.com>
|
||||
|
||||
PR gdb/15165
|
||||
|
@ -5529,7 +5529,10 @@ bpstat_what (bpstat bs_head)
|
||||
break;
|
||||
|
||||
case bp_dprintf:
|
||||
this_action = BPSTAT_WHAT_STOP_SILENT;
|
||||
if (bs->stop)
|
||||
this_action = BPSTAT_WHAT_STOP_SILENT;
|
||||
else
|
||||
this_action = BPSTAT_WHAT_SINGLE;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -1,3 +1,9 @@
|
||||
2013-04-23 Hui Zhu <hui@codesourcery.com>
|
||||
|
||||
PR gdb/15293
|
||||
|
||||
* gdb.base/dprintf.exp: Add ignore command.
|
||||
|
||||
2013-04-23 Hui Zhu <hui@codesourcery.com>
|
||||
|
||||
PR gdb/15165
|
||||
|
@ -40,6 +40,8 @@ gdb_breakpoint "main"
|
||||
gdb_test "dprintf foo,\"At foo entry\\n\"" \
|
||||
"Dprintf .*"
|
||||
|
||||
gdb_test "ignore \$bpnum 1" ".*Will ignore next crossing of breakpoint.*"
|
||||
|
||||
gdb_test "dprintf $dp_location1,\"arg=%d, g=%d\\n\", arg, g" \
|
||||
"Dprintf .*"
|
||||
|
||||
@ -61,7 +63,7 @@ gdb_run_cmd
|
||||
|
||||
gdb_test "" "Breakpoint"
|
||||
|
||||
gdb_test "continue" "At foo entry.*arg=1234, g=1234.*" "1st dprintf, gdb"
|
||||
gdb_test "continue" "arg=1234, g=1234.*" "1st dprintf, gdb"
|
||||
|
||||
gdb_test "continue" "At foo entry.*arg=1235, g=2222.*" "2nd dprintf, gdb"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user