[gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp
authorTom de Vries <tdevries@suse.de>
Fri, 10 Sep 2021 15:16:48 +0000 (17:16 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 10 Sep 2021 15:16:48 +0000 (17:16 +0200)
Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp by naming commands more
uniquely.

gdb/testsuite/gdb.base/global-var-nested-by-dso.exp

index 7afe253b81de71dcddb393ca52c415b558a3845f..fa4e747898a0cc0ee9bf66f71b9aee7fb52ba991 100644 (file)
@@ -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"