- Patches added: * avoid-crash-with-length.patch * correct-bounds-check-when-working-around-gas-dwarf-5.patch * fix-crash-in-f-typeprint.c.patch - Patches added (swo#33560, bsc#1251213): * bfd-elf-handle-prstatus-of-156-bytes-in-elf32_arm_na.patch * gdb-corefiles-fix-segfault-in-add_thread_silent.patch - Patches added (swo#32542, swo#33354): * change-return-value-of-_bfd_mmap_temporary.patch - Patches added (swo#33068, swo#33069): * gdb-fix-handling-of-aborted-inferior-call.patch - Patches added (swo#33620): * gdb-rust-fix-handling-of-unsigned-discriminant.patch - Patches added (swo#33444): * have-gdb.threadexitedevent-inherit-from-gdb.threadev.patch - Patches added (swo#33617): * mark-pascal-as-case-insensitive.patch - Patches added (testsuite): * check-gnatmake-version-in-gnat_version_compare.patch * gdb-testsuite-fix-build-id-check-in-gdb.python-py-mi.patch * gdb-testsuite-fix-gdb.mi-mi-sym-info.exp.patch * gdb-testsuite-fix-gdb.rust-methods.exp-on-i686-linux.patch * gdb-testsuite-fix-main-in-gdb.trace-mi-trace-frame-c.patch * gdb-testsuite-fix-possible-tcl-errors-in-gdb.threads.patch * gdb-testsuite-fix-sizeof-test-in-gdb.rust-simple.exp.patch * gdb-testsuite-fix-xfail-in-gdb.ada-array_of_variant..patch * gdb-testsuite-fix-xfail-in-gdb.ada-variant_record_fi.patch * gdb-testsuite-force-dwarf-in-gdb.pascal.patch * gdb-testsuite-rust-fix-for-empty-array.patch * gdb-testsuite-use-expect_build_id_in_core_file-a-bit.patch * gdb-testsuite-use-std-c99-in-gdb.base-callfuncs.exp.patch * gdb-testsuite-use-std-c99-in-gdb.base-nodebug.exp.patch * powerpc-mark-rtti-typeid-tests-as-expected-fail-befo.patch - Maintenance script import-patches.sh: * Use git instead of osc. - Maintenance script qa.sh: * Add PR32893 kfail.
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From 4361e02cc1aaf367e09f66a03ab9f5621a59486b Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Mon, 10 Nov 2025 19:36:46 +0100
|
|
Subject: [PATCH 18/25] [gdb/testsuite] Force DWARF in gdb.pascal
|
|
|
|
On i686-linux (and likewise arm-linux), I run into:
|
|
...
|
|
(gdb) file str-chars^M
|
|
Reading symbols from str-chars...^M
|
|
warning: stabs debug information is not supported.^M
|
|
(No debugging symbols found in str-chars)^M
|
|
(gdb) delete breakpoints^M
|
|
...
|
|
|
|
Fix this by using fpc option -gw2.
|
|
|
|
Tested on i686-linux.
|
|
|
|
Approved-By: Simon Marchi <simon.marchi@efficios.com>
|
|
|
|
PR testsuite/33564
|
|
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33564
|
|
---
|
|
gdb/testsuite/lib/pascal.exp | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/gdb/testsuite/lib/pascal.exp b/gdb/testsuite/lib/pascal.exp
|
|
index 236eca17dcb..31a8ae64d73 100644
|
|
--- a/gdb/testsuite/lib/pascal.exp
|
|
+++ b/gdb/testsuite/lib/pascal.exp
|
|
@@ -128,7 +128,9 @@ proc fpc_compile {source destfile type options} {
|
|
if [board_info $dest exists debug_flags] {
|
|
append add_flags " [board_info $dest debug_flags]"
|
|
} else {
|
|
- append add_flags " -g"
|
|
+ # GDB no longer supports STABS, so force DWARF debug info.
|
|
+ # Use v2 assuming support is more mature than later versions.
|
|
+ append add_flags " -g -gw2"
|
|
}
|
|
}
|
|
if { $i == "class" } {
|
|
--
|
|
2.51.0
|
|
|