Skip to content

Commit 0216af7

Browse files
committed
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 <[email protected]>
1 parent 20a84d0 commit 0216af7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gdb/testsuite/gdb.arch/arc-analyze-prologue.exp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ require {istarget "arc*-*-*"}
1919

2020
standard_testfile .S
2121

22-
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
22+
# arc-analyze-prologue.S test does not contain debug information thus it must
23+
# be compiled without -g option. Otherwise GDB will try to unwind frames using
24+
# debug information (which does not exist for .S code!) instead of analyzing
25+
# frames manually.
26+
set options {}
27+
28+
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } {
2329
return -1
2430
}
2531

0 commit comments

Comments
 (0)