[PATCH] arc: Fix some of the failing arc-analyze-prologue.exp test cases

Shahab Vahedi shahab.vahedi@gmail.com
Mon Jan 25 23:02:36 GMT 2021


From: Anton Kolesov <Anton.Kolesov@synopsys.com>

Some of the cases in arc-analyze-prologue.exp started to fail because
assembly file was compiled with `-g` so there was a "debug info" for
assembly functions, and GDB doesn't print "Saved registers" information
for functions with debug information.  To make those tests valid again
it is needed to specify that `-g` shouldn't be used, then GDB would print
information about saved registers.

gdb/testsuite/ChangeLog

	* gdb.arch/arc-analyze-prologue.exp: Ensure that executable file will
	  not have debug symbols.
---
 gdb/testsuite/gdb.arch/arc-analyze-prologue.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
index abc3487b7b2..8aedd81a91f 100644
--- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
+++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
@@ -22,7 +22,7 @@ if {![istarget "arc*-*-*"]} then {
 
 standard_testfile .S
 
-if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile {}] } {
     return -1
 }
 
-- 
2.30.0



More information about the Gdb-patches mailing list