aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-frame-regs.exp
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-10-11 21:58:31 +0100
committerPedro Alves <pedro@palves.net>2020-10-13 22:34:54 +0100
commitb75d55d4d2fdcabb0e198ef456bcc78d84ad5c7c (patch)
tree0a63ed30a00d185922de6c2d73dd7039305148ba /gdb/testsuite/gdb.mi/mi-frame-regs.exp
parente777225bfd79e0667ba7105f1f9f8375a6abc034 (diff)
downloadfsf-binutils-gdb-b75d55d4d2fdcabb0e198ef456bcc78d84ad5c7c.zip
fsf-binutils-gdb-b75d55d4d2fdcabb0e198ef456bcc78d84ad5c7c.tar.gz
fsf-binutils-gdb-b75d55d4d2fdcabb0e198ef456bcc78d84ad5c7c.tar.bz2
Eliminate mi_run_to_main, introduce mi_clean_restart
Since we now have mi_runto_main which is like runto_main, eliminate mi_run_to_main, in favor of a new MI clean_restart counterpart -- mi_clean_restart -- and mi_runto_main. This makes MI testcases look a bit more like CLI testcases. gdb/testsuite/ChangeLog: * lib/mi-support.exp (mi_clean_restart): New. (mi_run_to_main): Delete. All callers adjust to use mi_clean_restart / mi_runto_main. Change-Id: I34920bab4fea1f23fb752928c2969c1f6ad714b6
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-frame-regs.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-frame-regs.exp14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-frame-regs.exp b/gdb/testsuite/gdb.mi/mi-frame-regs.exp
index c5cec8d..420fe7a 100644
--- a/gdb/testsuite/gdb.mi/mi-frame-regs.exp
+++ b/gdb/testsuite/gdb.mi/mi-frame-regs.exp
@@ -58,17 +58,16 @@ proc breakpoint_address {bpnum} {
# breakpoints in different functions.
proc_with_prefix do_floating_varobj_test {} {
- global srcfile
+ global srcfile binfile
global hex
global expect_out
- gdb_exit
- if {[mi_gdb_start]} then {
+ if {[mi_clean_restart $binfile]} {
fail "couldn't start gdb"
return
}
- mi_run_to_main
+ mi_runto_main
# Create a floating varobj for $pc.
mi_gdb_test "-var-create --thread 1 --frame 0 - @ \$pc" \
@@ -111,16 +110,15 @@ proc_with_prefix do_floating_varobj_test {} {
# counter changes (without substantially changing the stack).
proc_with_prefix do_fixed_varobj_test {} {
- global srcfile
+ global srcfile binfile
global hex
- gdb_exit
- if {[mi_gdb_start]} then {
+ if {[mi_clean_restart $binfile] != 0} {
fail "couldn't start gdb"
return
}
- mi_run_to_main
+ mi_runto_main
# Run to the function 'callee3' so we have several frames.
mi_create_breakpoint "basics.c:callee3" \