* gdb-rhbz1773651-gdb-index-internal-error.patch - Patches added (backport from master): * gdb-support-rseq-auxvs.patch * gdb-symtab-fix-line-number-of-static-const-class-mem.patch * gdb-symtab-fix-too-many-symbols-in-gdbpy_lookup_stat.patch * gdb-symtab-handle-pu-in-iterate_over_some_symtabs.patch * gdb-symtab-work-around-pr-gas-29517.patch * gdb-testsuite-add-kfail-for-pr-ada-30908.patch * gdb-testsuite-add-xfail-for-gdb-29965-in-gdb.threads.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-with-newer.patch * gdb-testsuite-fix-gdb.arch-i386-signal.exp-on-x86_64.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-regression-on-.patch * gdb-testsuite-fix-gdb.dwarf2-nullptr_t.exp-with-cc-w.patch * gdb-testsuite-fix-regexps-in-gdb.base-step-over-sysc.patch * gdb-symtab-find-main-language-without-symtab-expansi.patch * gdb-testsuite-add-wait-for-index-cache-in-gdb.dwarf2.patch - Patches moved (from "Backport from gdb-patches" to "Backports from master, available in next release"): * gdb-cli-handle-pending-c-after-rl_callback_read_char.patch * gdb-testsuite-add-have_host_locale.patch - Maintenance script qa.sh: * Remove PR28463, PR28108, PR29247 and PR29160 kfails. * Remove PR30540, PR30908, PR29965 kfails. * Remove gdb.ada/mi_task_arg.exp kfail. - Limit "Suggests: %{python}-Pygments" to SLE-15 and later. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=365
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 335a151d834199610b515e67f1924d6e0a211db2 Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Wed, 30 Aug 2023 23:33:31 +0200
|
|
Subject: [PATCH 09/12] [gdb/testsuite] Fix gdb.dwarf2/nullptr_t.exp with
|
|
cc-with-dwz-m
|
|
|
|
When running test-case gdb.dwarf2/nullptr_t.exp with target board
|
|
cc-with-dwz-m, I run into:
|
|
...
|
|
FAIL: gdb.dwarf2/nullptr_t.exp: decltype(nullptr) symbol
|
|
...
|
|
|
|
The problem is that were looking for "typedef void decltype\\(nullptr\\)"
|
|
using "maint print symbols -source $srcfile", but dwz has moved the typedef to
|
|
a PU, so it's shown by "maint print symbols -source <unknown>" instead.
|
|
|
|
Fix this by dropping the "-source $srcfile" bit.
|
|
|
|
Tested on x86_64-linux, with make-check-all.sh.
|
|
---
|
|
gdb/testsuite/gdb.dwarf2/nullptr_t.exp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp b/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
|
|
index a02ebbf109e..e78d90fdb25 100644
|
|
--- a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
|
|
+++ b/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
|
|
@@ -34,6 +34,6 @@ with_complaints 5 {
|
|
gdb_test $cmd $re "$cmd without complaints"
|
|
}
|
|
|
|
-gdb_test "maint print symbols -source $srcfile" \
|
|
+gdb_test "maint print symbols" \
|
|
"typedef void decltype\\(nullptr\\); \r\n.*" \
|
|
"decltype(nullptr) symbol"
|
|
--
|
|
2.35.3
|
|
|