From 4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Thu, 1 Apr 2021 14:31:24 -0300 Subject: Fix timeout for gdb.xml/tdesc-reload.exp For aarch64, the "info all-registers" output is very verbose. If you run this test using read1, it will timeout before the command output is done being read. Read line-by-line so we don't run into timeouts. gdb/testsuite/ChangeLog: 2021-04-27 Luis Machado * gdb.xml/tdesc-reload.exp: Pass -lbl. --- gdb/testsuite/gdb.xml/tdesc-reload.exp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.xml') diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index bc0f88b7e..a3bb2fb 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -70,8 +70,11 @@ if ![runto_main] then { # Run info registers just to check this appears to run fine with the # new target description. -gdb_test "info all-registers" ".*" \ - "Run info registers" +gdb_test_multiple "info all-registers" "Run info registers" -lbl { + -re -wrap "" { + pass $gdb_test_name + } +} # Write out the current target description. gdb_test_no_output "pipe maint print xml-tdesc | cat > $xml_file_3" \ -- cgit v1.1