aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYuriy Kolerov <kolerov93@gmail.com>2024-02-22 08:02:19 +0000
committerShahab Vahedi <shahab@synopsys.com>2024-02-27 15:10:08 +0100
commit5998b4a287772756e33d311a570df080a4f6e051 (patch)
treecd06953cfb9055e68fc4667ca276076a7d380213 /gdb
parent896a639babe2d883467978abce7a4c55bc9f00ed (diff)
downloadbinutils-5998b4a287772756e33d311a570df080a4f6e051.zip
binutils-5998b4a287772756e33d311a570df080a4f6e051.tar.gz
binutils-5998b4a287772756e33d311a570df080a4f6e051.tar.bz2
arc: Don't build arc-analyze-prologue.S with -g
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>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.arch/arc-analyze-prologue.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
index 32387c0..b8d9a8f 100644
--- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
+++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
@@ -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
}