]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
arc: Don't build arc-analyze-prologue.S with -g
authorYuriy Kolerov <kolerov93@gmail.com>
Thu, 22 Feb 2024 08:02:19 +0000 (08:02 +0000)
committerShahab Vahedi <shahab@synopsys.com>
Tue, 27 Feb 2024 14:10:08 +0000 (15:10 +0100)
arc-analyze-prologue.S test does not contain debug information thus
it must be compiled without -g option. Otherwise GDB will try to
unwind frames using debug information (which does not exist for .S
code!) instead of analyzing frames manually.

Approved-By: Shahab Vahedi <shahab@synopsys.com>
gdb/testsuite/gdb.arch/arc-analyze-prologue.exp

index 32387c00169826c21d5ec0087964425cfb79357f..b8d9a8fb75f9b13af60b3e001433e8b98fe28961 100644 (file)
@@ -19,7 +19,13 @@ require {istarget "arc*-*-*"}
 
 standard_testfile .S
 
-if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
+# arc-analyze-prologue.S test does not contain debug information thus it must
+# be compiled without -g option. Otherwise GDB will try to unwind frames using
+# debug information (which does not exist for .S code!) instead of analyzing
+# frames manually.
+set options {}
+
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } {
     return -1
 }