Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Remove "readnow" from two tests
@ 2026-01-27 15:48 Tom Tromey
  2026-02-02 17:48 ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2026-01-27 15:48 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

These tests both claim that -readnow is needed for proper operation,
but (1) this isn't true, and (2) if it were true it would be a bug in
gdb.  So, remove the use of readnow.
---
 gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp |  7 +------
 gdb/testsuite/gdb.dwarf2/symtab-producer.exp     | 12 +++---------
 2 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
index 5057ff2c2d8..5bfd0099b11 100644
--- a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
@@ -91,12 +91,7 @@ if {[build_executable ${testfile}.exp ${testfile} \
     return -1
 }
 
-# We need --readnow because otherwise we never read in the CU we
-# created above.
-save_vars { GDBFLAGS } {
-    append set GDBFLAGS " -readnow"
-    clean_restart ${testfile}
-}
+clean_restart ${testfile}
 
 if {![runto_main]} {
     return -1
diff --git a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp
index 49bc2c25635..c90bf77518c 100644
--- a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp
+++ b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp
@@ -71,15 +71,9 @@ Dwarf::assemble $asm_file {
     }
 }
 
-# We need --readnow because otherwise we never read in the CUs we
-# created above.
-save_vars { GDBFLAGS } {
-    set GDBFLAGS "$GDBFLAGS -readnow"
-
-    if { [prepare_for_testing "failed to prepare" ${testfile} \
-	      [list $srcfile $asm_file] {nodebug}] } {
-	return -1
-    }
+if { [prepare_for_testing "failed to prepare" ${testfile} \
+	  [list $srcfile $asm_file] {nodebug}] } {
+    return
 }
 
 gdb_py_test_silent_cmd "python with_producer = gdb.lookup_global_symbol(\"with_producer\")" \
-- 
2.49.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-02 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-27 15:48 [PATCH] Remove "readnow" from two tests Tom Tromey
2026-02-02 17:48 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox