gdb/testsuite: Default to assembler's preferred debug format in asm-source.exp
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Tue, 4 Apr 2023 02:06:34 +0000 (02:06 +0000)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 5 Apr 2023 19:56:09 +0000 (19:56 +0000)
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.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.asm/asm-source.exp

index 41bb3d1e677f696ef0483730437124b7a300ab77..af852b731f5ee73ab560aaed1b75f45b4ea4a246 100644 (file)
@@ -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.