[2/2] gdb/testsuite: Default to assembler's preferred debug format in asm-source.exp

Message ID 20230404175915.288558-3-thiago.bauermann@linaro.org
State New
Headers
Series Fix regression in stabs debug info |

Commit Message

Thiago Jung Bauermann April 4, 2023, 5:59 p.m. UTC
  The stabs debug format is obsolete and there's no reason to think that
toolchains still have good support for it. Therefore, if a specific debug
format wasn't set in asm-source.exp then leave it to the assembler to
decide which one to use.
---
 gdb/testsuite/gdb.asm/asm-source.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 41bb3d1e677f..af852b731f5e 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -212,7 +212,7 @@  if { [string equal ${asm-flags} ""] } {
 }
 
 if { [string equal ${debug-flags} ""] } {
-    set debug-flags "-gstabs"
+    set debug-flags "-g"
 }
 
 # Allow the target board to override the debug flags.