arc: Don't build arc-analyze-prologue.S with -g
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
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.
Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
---
gdb/testsuite/gdb.arch/arc-analyze-prologue.exp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Comments
On 2/22/24 09:02, Yuriy Kolerov wrote:
> 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.
>
> Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
> ---
> gdb/testsuite/gdb.arch/arc-analyze-prologue.exp | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
Approved-By: Shahab Vahedi <shahab@synopsys.com>
@@ -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
}