diff options
author | Pedro Alves <pedro@palves.net> | 2020-10-11 21:58:31 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-10-13 22:34:54 +0100 |
commit | b75d55d4d2fdcabb0e198ef456bcc78d84ad5c7c (patch) | |
tree | 0a63ed30a00d185922de6c2d73dd7039305148ba /gdb/testsuite/gdb.mi/gdb792.exp | |
parent | e777225bfd79e0667ba7105f1f9f8375a6abc034 (diff) | |
download | fsf-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/gdb792.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/gdb792.exp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.mi/gdb792.exp b/gdb/testsuite/gdb.mi/gdb792.exp index 8922703..1fec75b 100644 --- a/gdb/testsuite/gdb.mi/gdb792.exp +++ b/gdb/testsuite/gdb.mi/gdb792.exp @@ -13,20 +13,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# test gdb/792 -# +# Test that children of classes are properly reported. Regression +# test for gdb/792. if { [skip_cplus_tests] } { continue } load_lib mi-support.exp set MIFLAGS "-i=mi" -gdb_exit -if [mi_gdb_start] { - continue -} - standard_testfile .cc if [get_compiler_info "c++"] { @@ -38,10 +32,9 @@ if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != "" return -1 } -# Test that children of classes are properly reported +mi_clean_restart $binfile -# Run to main -mi_run_to_main +mi_runto_main mi_create_varobj "var1" "a" "create var for class A" |