From: Tom de Vries Date: Fri, 10 Sep 2021 15:16:48 +0000 (+0200) Subject: [gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7d1029e6261c2455f335663f8c9cffb440f1a6a;p=binutils-gdb.git [gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp by naming commands more uniquely. --- diff --git a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp index 7afe253b81d..fa4e747898a 100644 --- a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp +++ b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp @@ -52,6 +52,6 @@ if { ![runto_main] } { return -1 } -gdb_test "next" "$decimal.*b_main \\(\\);" -gdb_test "next" "$decimal.*return 0;" +gdb_test "next" "$decimal.*b_main \\(\\);" "step over c_main" +gdb_test "next" "$decimal.*return 0;" "step over b_main" gdb_test "print test" " = 42"