- Update to fedora rawhide @ 0481d32. Maintenance script import-fedora.sh: * Skip gdb-fix-bg-execution-repeat.patch. - Add MIT in License tag due to gdbsupport/unordered_dense.h. - Update to fedora rawhide @ 89e3933. Maintenance script import-fedora.sh: * Drop gdb-6.8-bz466901-backtrace-full-prelinked.patch from skip_patches. - Update to fedora rawhide @ 660c52f. Drop patches: * gdb-rhbz1149205-catch-syscall-after-fork-test.patch - Update to fedora rawhide @ 885cdf8. Update patches: * gdb-add-rpm-suggestion-script.patch Drop patches: * fixup-gdb-add-rpm-suggestion-script.patch - Update to fedora rawhide @ 9c718a5. Drop patches: * gdb-6.3-mapping-zero-inode-test.patch - Update to fedora rawhide @ 15778f3. Drop patches: * gdb-archer-next-over-throw-cxx-exec.patch - Update to fedora rawhide @ 152468c. Maintenance script import-fedora.sh: * Rename gdb-6.3-rh-testversion-20041202.patch to gdb-test-show-version.patch in skip_patches. Patches dropped (Renamed to ...): * gdb-add-rpm-suggestion-script.patch Patches added (... this): * gdb-rpm-suggestion-script.patch - Move some patches from "Backport from gdb-patches" to "Backports from master, available in GDB 17". - Add patches (swo#33000): * gdb-tdep-fix-gdb.ada-finish-var-size.exp-on-ppc64le-.patch - Add patches (swo#32409): * gdb-ada-fix-gdb.ada-overloads.exp-on-s390x.patch - Add patches: * gdb-testsuite-make-gdb.reverse-time-reverse.exp-more.patch * gdb-testsuite-fix-gdb.reverse-time-reverse.exp-timeo.patch * gdb-testsuite-handle-asm-frame-in-gdb.python-py-miss.patch * gdb-testsuite-fix-gdb.base-ptype.exp-with-gcc-15.patch * gdb-testsuite-fix-gdb.python-py-objfile.exp-with-gcc.patch * gdb-testsuite-fix-gdb.ada-scalar_storage.exp-on-s390.patch * gdb-testsuite-fix-gdb.base-bp-permanent.exp-with-gcc.patch * gdb-testsuite-don-t-run-to-main-in-gdb.cp-cplusfuncs.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=465
57 lines
1.9 KiB
Diff
57 lines
1.9 KiB
Diff
From f55b4c909bb988fd264bdcae417e5f6ebb17fd93 Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Tue, 29 Apr 2025 17:30:07 +0200
|
|
Subject: [PATCH 5/6] [gdb/testsuite] Fix gdb.base/ptype.exp with gcc 15
|
|
|
|
With test-case gdb.base/ptype.exp and gcc 15 I run into:
|
|
...
|
|
(gdb) ptype old_fptr^M
|
|
type = double (*)(void)^M
|
|
(gdb) FAIL: $exp: ptype old_fptr (compiler doesn't emit unprototyped types)
|
|
...
|
|
|
|
Since C23, non-prototype function declarations are no longer supported, so
|
|
"double (*old_fptr) ()" is interpreted as "double (*old_fptr) (void)".
|
|
|
|
We could try to fix this by detecting the language dialect used, and accepting
|
|
the output in that case, but that feels fragile.
|
|
|
|
We could try to fix this by hard-coding the language dialect, but that doesn't
|
|
work for all compilers.
|
|
|
|
So instead, we opt for the simplest solution: just accept this output, and
|
|
produce a pass.
|
|
|
|
Tested on aarch64-linux.
|
|
|
|
Approved-By: Tom Tromey <tom@tromey.com>
|
|
|
|
PR testsuite/32756
|
|
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32756
|
|
---
|
|
gdb/testsuite/gdb.base/ptype.exp | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.base/ptype.exp b/gdb/testsuite/gdb.base/ptype.exp
|
|
index bdec993dc2b..702839c87c9 100644
|
|
--- a/gdb/testsuite/gdb.base/ptype.exp
|
|
+++ b/gdb/testsuite/gdb.base/ptype.exp
|
|
@@ -544,10 +544,10 @@ proc ptype_maybe_prototyped { id prototyped plain { overprototyped "NO-MATCH" }
|
|
fail "ptype $id (compiler doesn't emit prototyped types)"
|
|
}
|
|
-re "type = $overprototyped\[\r\n\]+$gdb_prompt $" {
|
|
- if { [test_compiler_info "armcc-*"] } {
|
|
- setup_xfail "*-*-*"
|
|
- }
|
|
- fail "ptype $id (compiler doesn't emit unprototyped types)"
|
|
+ # C23 no longer supports non-prototype function declaration, in which
|
|
+ # case the overprototyped regexp is the expected one. Simply pass
|
|
+ # in all cases.
|
|
+ pass "ptype $id (overprototyped)"
|
|
}
|
|
}
|
|
}
|
|
--
|
|
2.43.0
|
|
|