[committed,gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp

Message ID 20210910164339.GA15732@delia.home
State New
Headers show
Series
  • [committed,gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp
Related show

Commit Message

Lancelot SIX via Gdb-patches Sept. 10, 2021, 4:43 p.m.
Hi,

Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp by naming commands more
uniquely.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Fix DUPLICATE in gdb.base/global-var-nested-by-dso.exp

---
 gdb/testsuite/gdb.base/global-var-nested-by-dso.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

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"