Compare commits
124 Commits
master
...
f38-riscv6
Author | SHA1 | Date | |
---|---|---|---|
9bbdd8c6d1 | |||
|
ef8cdc2db8 | ||
|
b00a04230b | ||
4ca353674f | |||
|
dd4bbfd655 | ||
|
b626920545 | ||
|
fc4e284a6d | ||
|
9b284f749c | ||
|
b752f3a714 | ||
719dfc5e05 | |||
|
a246e1e4e3 | ||
|
a65cdc2ca4 | ||
09d80e320f | |||
|
ad65e1854b | ||
|
00fe7519d4 | ||
|
a5f9e28701 | ||
|
6de2f1fd32 | ||
|
06da7ee788 | ||
|
8d8fb49148 | ||
|
e2df45df10 | ||
|
b443fb3970 | ||
|
ed2e95dc63 | ||
|
8e9d3a4cf8 | ||
|
69f0c792d6 | ||
|
0f5a6ebc3c | ||
|
4896bb074a | ||
|
b3008271fb | ||
|
056260a609 | ||
|
47989c5833 | ||
|
c09759de79 | ||
|
7e69ec9711 | ||
|
7ca61ebe91 | ||
|
e1f49fc494 | ||
|
46e82ad3b5 | ||
|
910689b88d | ||
|
3d614802ea | ||
|
7de4cb0e83 | ||
|
73953d59d4 | ||
|
eff447ffe1 | ||
|
89341dc865 | ||
|
d6591abf53 | ||
|
e599c1296e | ||
|
c5ab349836 | ||
|
267b55ff0e | ||
|
a6e7b2b18f | ||
|
fbba720a74 | ||
|
ddf8291871 | ||
|
b8b001a927 | ||
|
45e744e200 | ||
|
0803f3fa54 | ||
|
3b849ade04 | ||
|
e0417821a6 | ||
|
a896134f83 | ||
|
d959eac300 | ||
|
b3cbe4b669 | ||
|
c14e8367f2 | ||
|
1f1906c4c7 | ||
|
148a0e2e0a | ||
|
8751d74736 | ||
|
d6ddcf6b62 | ||
|
3410a513b2 | ||
|
e6e68cd22d | ||
|
45ae8fcd2b | ||
|
e00d5e46ee | ||
|
6a0ae4aca3 | ||
|
994c1c4b69 | ||
|
5368b8a55e | ||
|
af7adbba8b | ||
|
e66c7e71e7 | ||
|
ea7e7acd00 | ||
|
e4fab29564 | ||
|
d27f55e39a | ||
|
adc0bf8d9d | ||
|
f7bcd3d6e0 | ||
|
02309bbf2d | ||
|
fd47e2fe66 | ||
|
dac5d9920c | ||
|
08e6f457a2 | ||
|
e2a1df0b4f | ||
|
8093dfb75d | ||
|
f2c0fdf050 | ||
|
8fedf35634 | ||
|
1c15f132e5 | ||
|
622c8fecdb | ||
|
76962235f8 | ||
|
39bde43193 | ||
|
002d745538 | ||
|
7051cf9b48 | ||
|
170c3b942c | ||
|
4cf9f20b12 | ||
|
dedb76cf02 | ||
|
8e2afa6b29 | ||
|
96774cfcb2 | ||
|
8a5c84de70 | ||
|
0459b344e6 | ||
|
71264766c5 | ||
|
8f22c5cbd3 | ||
|
506c836503 | ||
|
ca26ddfa99 | ||
|
6b2d2db242 | ||
|
0a3a5ea5a6 | ||
|
9a3fa11c4d | ||
|
2f55d67d0a | ||
|
db92bd60db | ||
|
f293e66ec1 | ||
|
c7fa157806 | ||
|
5e056f9db9 | ||
|
cd8eacd152 | ||
|
6c6f63f3a8 | ||
|
0ba7f47499 | ||
|
de24db0eb7 | ||
|
443e2a0c34 | ||
|
f923d71406 | ||
|
a1361a0b59 | ||
|
23564f9afb | ||
|
ce991fb7c0 | ||
|
ff1b575a1d | ||
|
9cdc7613c9 | ||
|
048587f69b | ||
|
0d98e10811 | ||
|
04fc1c001a | ||
|
4f6865e66b | ||
|
61d59b7323 | ||
|
a8884a5be0 |
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/binutils-gdb
|
/new-fedora-release
|
||||||
/gdb-libstdc++-v3-python-8.1.1-20180626.tar.xz
|
/gdb-libstdc++-v3-python-8.1.1-20180626.tar.xz
|
||||||
/v2.0.2.tar.gz
|
/v2.0.5.tar.gz
|
||||||
/gdb-10.1.tar.xz
|
/gdb-13.1.tar.xz
|
||||||
|
/gdb-13.2.tar.xz
|
||||||
|
@ -2,383 +2,269 @@
|
|||||||
#=fedora
|
#=fedora
|
||||||
Patch001: gdb-6.3-rh-testversion-20041202.patch
|
Patch001: gdb-6.3-rh-testversion-20041202.patch
|
||||||
|
|
||||||
# VLA (Fortran dynamic arrays) from Intel + archer-jankratochvil-vla tests.
|
|
||||||
#=push
|
|
||||||
Patch002: gdb-vla-intel-fortran-strides.patch
|
|
||||||
|
|
||||||
#=push
|
|
||||||
Patch003: gdb-vla-intel-fortran-vla-strings.patch
|
|
||||||
|
|
||||||
#=push+jan
|
|
||||||
Patch004: gdb-vla-intel-stringbt-fix.patch
|
|
||||||
|
|
||||||
# Add a wrapper script to GDB that implements pstack using the
|
# Add a wrapper script to GDB that implements pstack using the
|
||||||
# --readnever option.
|
# --readnever option.
|
||||||
#=push
|
#=push
|
||||||
Patch005: gdb-6.3-gstack-20050411.patch
|
Patch002: gdb-6.3-gstack-20050411.patch
|
||||||
|
|
||||||
# VSYSCALL and PIE
|
|
||||||
#=fedoratest
|
|
||||||
Patch006: gdb-6.3-test-pie-20050107.patch
|
|
||||||
|
|
||||||
# Get selftest working with sep-debug-info
|
|
||||||
#=fedoratest
|
|
||||||
Patch007: gdb-6.3-test-self-20050110.patch
|
|
||||||
|
|
||||||
# Test support of multiple destructors just like multiple constructors
|
|
||||||
#=fedoratest
|
|
||||||
Patch008: gdb-6.3-test-dtorfix-20050121.patch
|
|
||||||
|
|
||||||
# Fix to support executable moving
|
|
||||||
#=fedoratest
|
|
||||||
Patch009: gdb-6.3-test-movedir-20050125.patch
|
|
||||||
|
|
||||||
# Test sibling threads to set threaded watchpoints for x86 and x86-64
|
|
||||||
#=fedoratest
|
|
||||||
Patch010: gdb-6.3-threaded-watchpoints2-20050225.patch
|
|
||||||
|
|
||||||
# Verify printing of inherited members test
|
|
||||||
#=fedoratest
|
|
||||||
Patch012: gdb-6.3-inheritancetest-20050726.patch
|
|
||||||
|
|
||||||
# Support TLS symbols (+`errno' suggestion if no pthread is found) (BZ 185337).
|
# Support TLS symbols (+`errno' suggestion if no pthread is found) (BZ 185337).
|
||||||
#=push+jan: It should be replaced by Infinity project.
|
#=push+jan: It should be replaced by Infinity project.
|
||||||
Patch013: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
|
Patch003: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
|
||||||
|
|
||||||
# Fix TLS symbols resolving for shared libraries with a relative pathname.
|
# Fix TLS symbols resolving for shared libraries with a relative pathname.
|
||||||
# The testsuite needs `gdb-6.5-tls-of-separate-debuginfo.patch'.
|
# The testsuite needs `gdb-6.5-tls-of-separate-debuginfo.patch'.
|
||||||
#=fedoratest: One should recheck if it is really fixed upstream.
|
#=fedoratest: One should recheck if it is really fixed upstream.
|
||||||
Patch014: gdb-6.5-sharedlibrary-path.patch
|
Patch004: gdb-6.5-sharedlibrary-path.patch
|
||||||
|
|
||||||
# Improved testsuite results by the testsuite provided by the courtesy of BEA.
|
# Improved testsuite results by the testsuite provided by the courtesy of BEA.
|
||||||
#=fedoratest: For upstream it should be rewritten as a dejagnu test, the test of no "??" was useful.
|
#=fedoratest: For upstream it should be rewritten as a dejagnu test, the test of no "??" was useful.
|
||||||
Patch015: gdb-6.5-BEA-testsuite.patch
|
Patch005: gdb-6.5-BEA-testsuite.patch
|
||||||
|
|
||||||
# Testcase for deadlocking on last address space byte; for corrupted backtraces.
|
# Testcase for deadlocking on last address space byte; for corrupted backtraces.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch016: gdb-6.5-last-address-space-byte-test.patch
|
Patch006: gdb-6.5-last-address-space-byte-test.patch
|
||||||
|
|
||||||
# Fix readline segfault on excessively long hand-typed lines.
|
# Fix readline segfault on excessively long hand-typed lines.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch017: gdb-6.5-readline-long-line-crash-test.patch
|
Patch007: gdb-6.5-readline-long-line-crash-test.patch
|
||||||
|
|
||||||
# Test sideeffects of skipping ppc .so libs trampolines (BZ 218379).
|
# Test sideeffects of skipping ppc .so libs trampolines (BZ 218379).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch018: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
|
Patch008: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
|
||||||
|
|
||||||
# Fix lockup on trampoline vs. its function lookup; unreproducible (BZ 218379).
|
|
||||||
#=fedora
|
|
||||||
Patch019: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
|
|
||||||
|
|
||||||
# Find symbols properly at their original (included) file (BZ 109921).
|
# Find symbols properly at their original (included) file (BZ 109921).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch020: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
|
Patch009: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
|
||||||
|
|
||||||
# Update PPC unwinding patches to their upstream variants (BZ 140532).
|
# Update PPC unwinding patches to their upstream variants (BZ 140532).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch021: gdb-6.3-bz140532-ppc-unwinding-test.patch
|
Patch010: gdb-6.3-bz140532-ppc-unwinding-test.patch
|
||||||
|
|
||||||
# Testcase for exec() from threaded program (BZ 202689).
|
# Testcase for exec() from threaded program (BZ 202689).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch022: gdb-6.3-bz202689-exec-from-pthread-test.patch
|
Patch011: gdb-6.3-bz202689-exec-from-pthread-test.patch
|
||||||
|
|
||||||
# Testcase for PPC Power6/DFP instructions disassembly (BZ 230000).
|
|
||||||
#=fedoratest
|
|
||||||
Patch023: gdb-6.6-bz230000-power6-disassembly-test.patch
|
|
||||||
|
|
||||||
# Allow running `/usr/bin/gcore' with provided but inaccessible tty (BZ 229517).
|
# Allow running `/usr/bin/gcore' with provided but inaccessible tty (BZ 229517).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch024: gdb-6.6-bz229517-gcore-without-terminal.patch
|
Patch012: gdb-6.6-bz229517-gcore-without-terminal.patch
|
||||||
|
|
||||||
# Avoid too long timeouts on failing cases of "annota1.exp annota3.exp".
|
# Avoid too long timeouts on failing cases of "annota1.exp annota3.exp".
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch025: gdb-6.6-testsuite-timeouts.patch
|
Patch013: gdb-6.6-testsuite-timeouts.patch
|
||||||
|
|
||||||
# Support for stepping over PPC atomic instruction sequences (BZ 237572).
|
# Support for stepping over PPC atomic instruction sequences (BZ 237572).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch026: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
|
Patch014: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
|
||||||
|
|
||||||
|
# Test kernel VDSO decoding while attaching to an i386 process.
|
||||||
|
#=fedoratest
|
||||||
|
Patch015: gdb-6.3-attach-see-vdso-test.patch
|
||||||
|
|
||||||
# Test leftover zombie process (BZ 243845).
|
# Test leftover zombie process (BZ 243845).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch028: gdb-6.5-bz243845-stale-testing-zombie-test.patch
|
Patch016: gdb-6.5-bz243845-stale-testing-zombie-test.patch
|
||||||
|
|
||||||
# New locating of the matching binaries from the pure core file (build-id).
|
# New locating of the matching binaries from the pure core file (build-id).
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch029: gdb-6.6-buildid-locate.patch
|
Patch017: gdb-6.6-buildid-locate.patch
|
||||||
|
|
||||||
# Fix loading of core files without build-ids but with build-ids in executables.
|
# Fix loading of core files without build-ids but with build-ids in executables.
|
||||||
# Load strictly build-id-checked core files only if no executable is specified
|
# Load strictly build-id-checked core files only if no executable is specified
|
||||||
# (Jan Kratochvil, RH BZ 1339862).
|
# (Jan Kratochvil, RH BZ 1339862).
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch030: gdb-6.6-buildid-locate-solib-missing-ids.patch
|
Patch018: gdb-6.6-buildid-locate-solib-missing-ids.patch
|
||||||
|
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch031: gdb-6.6-buildid-locate-rpm.patch
|
Patch019: gdb-6.6-buildid-locate-rpm.patch
|
||||||
|
|
||||||
# Fix displaying of numeric char arrays as strings (BZ 224128).
|
# Fix displaying of numeric char arrays as strings (BZ 224128).
|
||||||
#=fedoratest: But it is failing anyway, one should check the behavior more.
|
#=fedoratest: But it is failing anyway, one should check the behavior more.
|
||||||
Patch032: gdb-6.7-charsign-test.patch
|
Patch020: gdb-6.7-charsign-test.patch
|
||||||
|
|
||||||
# Test PPC hiding of call-volatile parameter register.
|
# Test PPC hiding of call-volatile parameter register.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch033: gdb-6.7-ppc-clobbered-registers-O2-test.patch
|
Patch021: gdb-6.7-ppc-clobbered-registers-O2-test.patch
|
||||||
|
|
||||||
# Testsuite fixes for more stable/comparable results.
|
# Testsuite fixes for more stable/comparable results.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch034: gdb-6.7-testsuite-stable-results.patch
|
Patch022: gdb-6.7-testsuite-stable-results.patch
|
||||||
|
|
||||||
# Test ia64 memory leaks of the code using libunwind.
|
# Test ia64 memory leaks of the code using libunwind.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch035: gdb-6.5-ia64-libunwind-leak-test.patch
|
Patch023: gdb-6.5-ia64-libunwind-leak-test.patch
|
||||||
|
|
||||||
# Test hiding unexpected breakpoints on intentional step commands.
|
# Test hiding unexpected breakpoints on intentional step commands.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch036: gdb-6.5-missed-trap-on-step-test.patch
|
Patch024: gdb-6.5-missed-trap-on-step-test.patch
|
||||||
|
|
||||||
|
# Test gcore memory and time requirements for large inferiors.
|
||||||
|
#=fedoratest
|
||||||
|
Patch025: gdb-6.5-gcore-buffer-limit-test.patch
|
||||||
|
|
||||||
# Test GCORE for shmid 0 shared memory mappings.
|
# Test GCORE for shmid 0 shared memory mappings.
|
||||||
#=fedoratest: But it is broken anyway, sometimes the case being tested is not reproducible.
|
#=fedoratest: But it is broken anyway, sometimes the case being tested is not reproducible.
|
||||||
Patch038: gdb-6.3-mapping-zero-inode-test.patch
|
Patch026: gdb-6.3-mapping-zero-inode-test.patch
|
||||||
|
|
||||||
# Test a crash on `focus cmd', `focus prev' commands.
|
|
||||||
#=fedoratest
|
|
||||||
Patch039: gdb-6.3-focus-cmd-prev-test.patch
|
|
||||||
|
|
||||||
# Test various forms of threads tracking across exec() (BZ 442765).
|
# Test various forms of threads tracking across exec() (BZ 442765).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch040: gdb-6.8-bz442765-threaded-exec-test.patch
|
Patch027: gdb-6.8-bz442765-threaded-exec-test.patch
|
||||||
|
|
||||||
# Test a crash on libraries missing the .text section.
|
# Test a crash on libraries missing the .text section.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch041: gdb-6.5-section-num-fixup-test.patch
|
Patch028: gdb-6.5-section-num-fixup-test.patch
|
||||||
|
|
||||||
# Fix resolving of variables at locations lists in prelinked libs (BZ 466901).
|
# Fix resolving of variables at locations lists in prelinked libs (BZ 466901).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch042: gdb-6.8-bz466901-backtrace-full-prelinked.patch
|
Patch029: gdb-6.8-bz466901-backtrace-full-prelinked.patch
|
||||||
|
|
||||||
# New test for step-resume breakpoint placed in multiple threads at once.
|
# New test for step-resume breakpoint placed in multiple threads at once.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch043: gdb-simultaneous-step-resume-breakpoint-test.patch
|
Patch030: gdb-simultaneous-step-resume-breakpoint-test.patch
|
||||||
|
|
||||||
# Fix GNU/Linux core open: Can't read pathname for load map: Input/output error.
|
# Fix GNU/Linux core open: Can't read pathname for load map: Input/output error.
|
||||||
# Fix regression of undisplayed missing shared libraries caused by a fix for.
|
# Fix regression of undisplayed missing shared libraries caused by a fix for.
|
||||||
#=fedoratest: It should be in glibc: libc-alpha: <20091004161706.GA27450@.*>
|
#=fedoratest: It should be in glibc: libc-alpha: <20091004161706.GA27450@.*>
|
||||||
Patch044: gdb-core-open-vdso-warning.patch
|
Patch031: gdb-core-open-vdso-warning.patch
|
||||||
|
|
||||||
# Fix stepping with OMP parallel Fortran sections (BZ 533176).
|
|
||||||
#=push+jan: It requires some better DWARF annotations.
|
|
||||||
Patch045: gdb-bz533176-fortran-omp-step.patch
|
|
||||||
|
|
||||||
# Workaround ccache making lineno non-zero for command-line definitions.
|
# Workaround ccache making lineno non-zero for command-line definitions.
|
||||||
#=fedoratest: ccache is rarely used and it is even fixed now.
|
#=fedoratest: ccache is rarely used and it is even fixed now.
|
||||||
Patch046: gdb-ccache-workaround.patch
|
Patch032: gdb-ccache-workaround.patch
|
||||||
|
|
||||||
#=push+jan: May get obsoleted by Tom's unrelocated objfiles patch.
|
|
||||||
Patch047: gdb-archer-pie-addons.patch
|
|
||||||
|
|
||||||
#=push+jan: Breakpoints disabling matching should not be based on address.
|
|
||||||
Patch048: gdb-archer-pie-addons-keep-disabled.patch
|
|
||||||
|
|
||||||
# Testcase for "Do not make up line information" fix by Daniel Jacobowitz.
|
# Testcase for "Do not make up line information" fix by Daniel Jacobowitz.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch049: gdb-lineno-makeup-test.patch
|
Patch033: gdb-lineno-makeup-test.patch
|
||||||
|
|
||||||
# Test power7 ppc disassembly.
|
# Test power7 ppc disassembly.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch050: gdb-ppc-power7-test.patch
|
Patch034: gdb-ppc-power7-test.patch
|
||||||
|
|
||||||
# Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623).
|
|
||||||
#=push+jan: Currently it is still not fully safe.
|
|
||||||
Patch051: gdb-moribund-utrace-workaround.patch
|
|
||||||
|
|
||||||
# Fix follow-exec for C++ programs (bugreported by Martin Stransky).
|
# Fix follow-exec for C++ programs (bugreported by Martin Stransky).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch052: gdb-archer-next-over-throw-cxx-exec.patch
|
Patch035: gdb-archer-next-over-throw-cxx-exec.patch
|
||||||
|
|
||||||
# Backport DWARF-4 support (BZ 601887, Tom Tromey).
|
|
||||||
#=fedoratest
|
|
||||||
Patch053: gdb-bz601887-dwarf4-rh-test.patch
|
|
||||||
|
|
||||||
#=push+jan
|
|
||||||
Patch054: gdb-6.6-buildid-locate-core-as-arg.patch
|
|
||||||
|
|
||||||
# Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
|
# Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch055: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
Patch036: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
||||||
|
|
||||||
# [delayed-symfile] Test a backtrace regression on CFIs without DIE (BZ 614604).
|
# [delayed-symfile] Test a backtrace regression on CFIs without DIE (BZ 614604).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch056: gdb-test-bt-cfi-without-die.patch
|
Patch037: gdb-test-bt-cfi-without-die.patch
|
||||||
|
|
||||||
# Verify GDB Python built-in function gdb.solib_address exists (BZ # 634108).
|
# Verify GDB Python built-in function gdb.solib_address exists (BZ # 634108).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch057: gdb-bz634108-solib_address.patch
|
Patch038: gdb-bz634108-solib_address.patch
|
||||||
|
|
||||||
# New test gdb.arch/x86_64-pid0-core.exp for kernel PID 0 cores (BZ 611435).
|
# New test gdb.arch/x86_64-pid0-core.exp for kernel PID 0 cores (BZ 611435).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch058: gdb-test-pid0-core.patch
|
Patch039: gdb-test-pid0-core.patch
|
||||||
|
|
||||||
# [archer-tromey-delayed-symfile] New test gdb.dwarf2/dw2-aranges.exp.
|
# [archer-tromey-delayed-symfile] New test gdb.dwarf2/dw2-aranges.exp.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch059: gdb-test-dw2-aranges.patch
|
Patch040: gdb-test-dw2-aranges.patch
|
||||||
|
|
||||||
# [archer-keiths-expr-cumulative+upstream] Import C++ testcases.
|
|
||||||
#=fedoratest
|
|
||||||
Patch060: gdb-test-expr-cumulative-archer.patch
|
|
||||||
|
|
||||||
# Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz).
|
|
||||||
#=fedoratest
|
|
||||||
Patch061: gdb-physname-pr11734-test.patch
|
|
||||||
|
|
||||||
# Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz).
|
|
||||||
#=fedoratest
|
|
||||||
Patch062: gdb-physname-pr12273-test.patch
|
|
||||||
|
|
||||||
# Test GDB opcodes/ disassembly of Intel Ivy Bridge instructions (BZ 696890).
|
# Test GDB opcodes/ disassembly of Intel Ivy Bridge instructions (BZ 696890).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch063: gdb-test-ivy-bridge.patch
|
Patch041: gdb-test-ivy-bridge.patch
|
||||||
|
|
||||||
# Hack for proper PIE run of the testsuite.
|
|
||||||
#=fedoratest
|
|
||||||
Patch064: gdb-runtest-pie-override.patch
|
|
||||||
|
|
||||||
# Print reasons for failed attach/spawn incl. SELinux deny_ptrace (BZ 786878).
|
|
||||||
#=push+jan
|
|
||||||
Patch065: gdb-attach-fail-reasons-5of5.patch
|
|
||||||
|
|
||||||
# Workaround PR libc/14166 for inferior calls of strstr.
|
# Workaround PR libc/14166 for inferior calls of strstr.
|
||||||
#=fedoratest: Compatibility with RHELs (unchecked which ones).
|
#=fedoratest: Compatibility with RHELs (unchecked which ones).
|
||||||
Patch066: gdb-glibc-strstr-workaround.patch
|
Patch042: gdb-glibc-strstr-workaround.patch
|
||||||
|
|
||||||
# Include testcase for `Unable to see a variable inside a module (XLF)' (BZ 823789).
|
# Include testcase for `Unable to see a variable inside a module (XLF)' (BZ 823789).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch067: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
|
Patch043: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
|
||||||
|
|
||||||
# Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343).
|
# Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch068: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
|
Patch044: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
|
||||||
|
|
||||||
# Import regression test for `gdb/findvar.c:417: internal-error:
|
# Import regression test for `gdb/findvar.c:417: internal-error:
|
||||||
# read_var_value: Assertion `frame' failed.' (RH BZ 947564) from RHEL 6.5.
|
# read_var_value: Assertion `frame' failed.' (RH BZ 947564) from RHEL 6.5.
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch069: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
|
Patch045: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
|
||||||
|
|
||||||
# Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211).
|
|
||||||
#=push+jan
|
|
||||||
Patch070: gdb-gnat-dwarf-crash-3of3.patch
|
|
||||||
|
|
||||||
# Fix 'memory leak in infpy_read_memory()' (RH BZ 1007614)
|
# Fix 'memory leak in infpy_read_memory()' (RH BZ 1007614)
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch071: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
|
Patch046: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
|
||||||
|
|
||||||
# Fix 'gdb gives highly misleading error when debuginfo pkg is present,
|
# Fix 'gdb gives highly misleading error when debuginfo pkg is present,
|
||||||
# but not corresponding binary pkg' (RH BZ 981154).
|
# but not corresponding binary pkg' (RH BZ 981154).
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch072: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
|
Patch047: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
|
||||||
|
|
||||||
#=fedoratest
|
|
||||||
Patch073: gdb-archer-vla-tests.patch
|
|
||||||
|
|
||||||
#=fedoratest
|
|
||||||
Patch074: gdb-vla-intel-tests.patch
|
|
||||||
|
|
||||||
# Continue backtrace even if a frame filter throws an exception (Phil Muldoon).
|
|
||||||
#=push
|
|
||||||
Patch075: gdb-btrobust.patch
|
|
||||||
|
|
||||||
# Display Fortran strings in backtraces.
|
|
||||||
#=fedoratest
|
|
||||||
Patch076: gdb-fortran-frame-string.patch
|
|
||||||
|
|
||||||
# Testcase for '[SAP] Recursive dlopen causes SAP HANA installer to
|
# Testcase for '[SAP] Recursive dlopen causes SAP HANA installer to
|
||||||
# crash.' (RH BZ 1156192).
|
# crash.' (RH BZ 1156192).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch077: gdb-rhbz1156192-recursive-dlopen-test.patch
|
Patch048: gdb-rhbz1156192-recursive-dlopen-test.patch
|
||||||
|
|
||||||
# Fix jit-reader.h for multi-lib.
|
|
||||||
#=push+jan
|
|
||||||
Patch078: gdb-jit-reader-multilib.patch
|
|
||||||
|
|
||||||
# Fix '`catch syscall' doesn't work for parent after `fork' is called'
|
# Fix '`catch syscall' doesn't work for parent after `fork' is called'
|
||||||
# (Philippe Waroquiers, RH BZ 1149205).
|
# (Philippe Waroquiers, RH BZ 1149205).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch079: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
|
Patch049: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
|
||||||
|
|
||||||
# Fix 'backport GDB 7.4 fix to RHEL 6.6 GDB' [Original Sourceware bug
|
# Fix 'backport GDB 7.4 fix to RHEL 6.6 GDB' [Original Sourceware bug
|
||||||
# description: 'C++ (and objc): Internal error on unqualified name
|
# description: 'C++ (and objc): Internal error on unqualified name
|
||||||
# re-set', PR 11657] (RH BZ 1186476).
|
# re-set', PR 11657] (RH BZ 1186476).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch080: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
|
Patch050: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
|
||||||
|
|
||||||
# Test 'info type-printers' Python error (RH BZ 1350436).
|
# Test 'info type-printers' Python error (RH BZ 1350436).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch081: gdb-rhbz1350436-type-printers-error.patch
|
Patch051: gdb-rhbz1350436-type-printers-error.patch
|
||||||
|
|
||||||
# Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan
|
# Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan
|
||||||
# Kratochvil, RH BZ 1084404).
|
# Kratochvil, RH BZ 1084404).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch082: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
|
Patch052: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
|
||||||
|
|
||||||
# Never kill PID on: gdb exec PID (Jan Kratochvil, RH BZ 1219747).
|
|
||||||
#=push+jan
|
|
||||||
Patch083: gdb-bz1219747-attach-kills.patch
|
|
||||||
|
|
||||||
# Force libncursesw over libncurses to match the includes (RH BZ 1270534).
|
# Force libncursesw over libncurses to match the includes (RH BZ 1270534).
|
||||||
#=push+jan
|
#=push+jan
|
||||||
Patch084: gdb-fedora-libncursesw.patch
|
Patch053: gdb-fedora-libncursesw.patch
|
||||||
|
|
||||||
# Test clflushopt instruction decode (for RH BZ 1262471).
|
# Test clflushopt instruction decode (for RH BZ 1262471).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch085: gdb-opcodes-clflushopt-test.patch
|
Patch054: gdb-opcodes-clflushopt-test.patch
|
||||||
|
|
||||||
# [rhel6] DTS backward Python compatibility API (BZ 1020004, Phil Muldoon).
|
|
||||||
#=fedora
|
|
||||||
Patch086: gdb-dts-rhel6-python-compat.patch
|
|
||||||
|
|
||||||
# [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
|
|
||||||
#=push+jan
|
|
||||||
Patch087: gdb-6.6-buildid-locate-rpm-scl.patch
|
|
||||||
|
|
||||||
# Make the GDB quit processing non-abortable to cleanup everything properly.
|
|
||||||
#=fedora: It was useful only after gdb-6.8-attach-signalled-detach-stopped.patch .
|
|
||||||
Patch088: gdb-6.8-quit-never-aborts.patch
|
|
||||||
|
|
||||||
# [aarch64] Fix hardware watchpoints (RH BZ 1261564).
|
# [aarch64] Fix hardware watchpoints (RH BZ 1261564).
|
||||||
#=fedoratest
|
#=fedoratest
|
||||||
Patch089: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
|
Patch055: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
|
||||||
|
|
||||||
# Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114).
|
# Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114).
|
||||||
#=fedora
|
#=fedora
|
||||||
Patch090: gdb-container-rh-pkg.patch
|
Patch056: gdb-container-rh-pkg.patch
|
||||||
|
|
||||||
# New test for Python "Cannot locate object file for block" (for RH BZ 1325795).
|
|
||||||
#=fedoratest
|
|
||||||
Patch091: gdb-rhbz1325795-framefilters-test.patch
|
|
||||||
|
|
||||||
# [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513).
|
# [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513).
|
||||||
#=fedora
|
#=fedora
|
||||||
Patch092: gdb-linux_perf-bundle.patch
|
Patch057: gdb-linux_perf-bundle.patch
|
||||||
|
|
||||||
# Fix gdb-headless /usr/bin/ executables (BZ 1390251).
|
# Update gdb-add-index.sh such that, when the GDB environment
|
||||||
|
# variable is not set, the script is smarter than just looking for
|
||||||
|
# 'gdb' in the $PATH.
|
||||||
#
|
#
|
||||||
# Also, make /usr/bin/gdb.minimal be the default GDB used, if it's
|
# The actual search order is now: /usr/bin/gdb.minimal, gdb (in the
|
||||||
# present. For rationale, see:
|
# $PATH), then /usr/libexec/gdb.
|
||||||
|
#
|
||||||
|
# For the rationale of looking for gdb.minimal see:
|
||||||
#
|
#
|
||||||
# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
|
# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
|
||||||
|
#
|
||||||
#=fedora
|
#=fedora
|
||||||
Patch093: gdb-libexec-add-index.patch
|
Patch058: gdb-add-index.patch
|
||||||
|
|
||||||
# New testcase for: Fix <tab>-completion crash (Gary Benson, RH BZ 1398387).
|
|
||||||
#=fedoratest
|
|
||||||
Patch094: gdb-rhbz1398387-tab-crash-test.patch
|
|
||||||
|
|
||||||
# Python patches of: http://sourceware.org/gdb/wiki/ProjectArcher
|
|
||||||
#=push
|
|
||||||
Patch095: gdb-archer.patch
|
|
||||||
|
|
||||||
# Revert upstream commit 469412dd9ccc4de5874fd3299b105833f36b34cd
|
|
||||||
Patch096: gdb-vla-intel-fix-print-char-array.patch
|
|
||||||
|
|
||||||
# [s390x] Backport arch12 instructions decoding (RH BZ 1553104).
|
# [s390x] Backport arch12 instructions decoding (RH BZ 1553104).
|
||||||
# =fedoratest
|
# =fedoratest
|
||||||
Patch097: gdb-rhbz1553104-s390x-arch12-test.patch
|
Patch059: gdb-rhbz1553104-s390x-arch12-test.patch
|
||||||
|
|
||||||
|
# Backport "Fix a potential illegal memory access in the BFD library..."
|
||||||
|
# (Nick Clifton, binutils/29988)
|
||||||
|
Patch060: gdb-binutils29988-read_indexed_address.patch
|
||||||
|
|
||||||
|
# Backport upstream patch fixing a "dangling pointer" build problem
|
||||||
|
# first seen when building with GCC 13.1.1 20230426 (Red Hat ;; 13.1.1-1).
|
||||||
|
Patch061: gdb-rhbz2192105-ftbs-dangling-pointer
|
||||||
|
|
||||||
|
# Backport two commits, 0ad504dd464 and ea70f941f9b, from Lancelot SIX
|
||||||
|
# which prevent repeated warnings from being printed while loading a
|
||||||
|
# core file. (RH BZ 2160211)
|
||||||
|
Patch062: gdb-rhbz2160211-excessive-core-file-warnings.patch
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
%patch008 -p1
|
%patch008 -p1
|
||||||
%patch009 -p1
|
%patch009 -p1
|
||||||
%patch010 -p1
|
%patch010 -p1
|
||||||
|
%patch011 -p1
|
||||||
%patch012 -p1
|
%patch012 -p1
|
||||||
%patch013 -p1
|
%patch013 -p1
|
||||||
%patch014 -p1
|
%patch014 -p1
|
||||||
@ -23,6 +24,7 @@
|
|||||||
%patch024 -p1
|
%patch024 -p1
|
||||||
%patch025 -p1
|
%patch025 -p1
|
||||||
%patch026 -p1
|
%patch026 -p1
|
||||||
|
%patch027 -p1
|
||||||
%patch028 -p1
|
%patch028 -p1
|
||||||
%patch029 -p1
|
%patch029 -p1
|
||||||
%patch030 -p1
|
%patch030 -p1
|
||||||
@ -32,6 +34,7 @@
|
|||||||
%patch034 -p1
|
%patch034 -p1
|
||||||
%patch035 -p1
|
%patch035 -p1
|
||||||
%patch036 -p1
|
%patch036 -p1
|
||||||
|
%patch037 -p1
|
||||||
%patch038 -p1
|
%patch038 -p1
|
||||||
%patch039 -p1
|
%patch039 -p1
|
||||||
%patch040 -p1
|
%patch040 -p1
|
||||||
@ -57,38 +60,3 @@
|
|||||||
%patch060 -p1
|
%patch060 -p1
|
||||||
%patch061 -p1
|
%patch061 -p1
|
||||||
%patch062 -p1
|
%patch062 -p1
|
||||||
%patch063 -p1
|
|
||||||
%patch064 -p1
|
|
||||||
%patch065 -p1
|
|
||||||
%patch066 -p1
|
|
||||||
%patch067 -p1
|
|
||||||
%patch068 -p1
|
|
||||||
%patch069 -p1
|
|
||||||
%patch070 -p1
|
|
||||||
%patch071 -p1
|
|
||||||
%patch072 -p1
|
|
||||||
%patch073 -p1
|
|
||||||
%patch074 -p1
|
|
||||||
%patch075 -p1
|
|
||||||
%patch076 -p1
|
|
||||||
%patch077 -p1
|
|
||||||
%patch078 -p1
|
|
||||||
%patch079 -p1
|
|
||||||
%patch080 -p1
|
|
||||||
%patch081 -p1
|
|
||||||
%patch082 -p1
|
|
||||||
%patch083 -p1
|
|
||||||
%patch084 -p1
|
|
||||||
%patch085 -p1
|
|
||||||
%patch086 -p1
|
|
||||||
%patch087 -p1
|
|
||||||
%patch088 -p1
|
|
||||||
%patch089 -p1
|
|
||||||
%patch090 -p1
|
|
||||||
%patch091 -p1
|
|
||||||
%patch092 -p1
|
|
||||||
%patch093 -p1
|
|
||||||
%patch094 -p1
|
|
||||||
%patch095 -p1
|
|
||||||
%patch096 -p1
|
|
||||||
%patch097 -p1
|
|
||||||
|
@ -1 +1 @@
|
|||||||
606e3fd147ed9a00df165e46f30fe5c46dcda345
|
662243de0e14a4945555a480dca33c0e677976eb
|
||||||
|
43
_patch_order
43
_patch_order
@ -1,26 +1,14 @@
|
|||||||
gdb-6.3-rh-testversion-20041202.patch
|
gdb-6.3-rh-testversion-20041202.patch
|
||||||
gdb-vla-intel-fortran-strides.patch
|
|
||||||
gdb-vla-intel-fortran-vla-strings.patch
|
|
||||||
gdb-vla-intel-stringbt-fix.patch
|
|
||||||
gdb-6.3-gstack-20050411.patch
|
gdb-6.3-gstack-20050411.patch
|
||||||
gdb-6.3-test-pie-20050107.patch
|
|
||||||
gdb-6.3-test-self-20050110.patch
|
|
||||||
gdb-6.3-test-dtorfix-20050121.patch
|
|
||||||
gdb-6.3-test-movedir-20050125.patch
|
|
||||||
gdb-6.3-threaded-watchpoints2-20050225.patch
|
|
||||||
gdb-6.3-inferior-notification-20050721.patch
|
|
||||||
gdb-6.3-inheritancetest-20050726.patch
|
|
||||||
gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
|
gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
|
||||||
gdb-6.5-sharedlibrary-path.patch
|
gdb-6.5-sharedlibrary-path.patch
|
||||||
gdb-6.5-BEA-testsuite.patch
|
gdb-6.5-BEA-testsuite.patch
|
||||||
gdb-6.5-last-address-space-byte-test.patch
|
gdb-6.5-last-address-space-byte-test.patch
|
||||||
gdb-6.5-readline-long-line-crash-test.patch
|
gdb-6.5-readline-long-line-crash-test.patch
|
||||||
gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
|
gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
|
||||||
gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
|
|
||||||
gdb-6.5-bz109921-DW_AT_decl_file-test.patch
|
gdb-6.5-bz109921-DW_AT_decl_file-test.patch
|
||||||
gdb-6.3-bz140532-ppc-unwinding-test.patch
|
gdb-6.3-bz140532-ppc-unwinding-test.patch
|
||||||
gdb-6.3-bz202689-exec-from-pthread-test.patch
|
gdb-6.3-bz202689-exec-from-pthread-test.patch
|
||||||
gdb-6.6-bz230000-power6-disassembly-test.patch
|
|
||||||
gdb-6.6-bz229517-gcore-without-terminal.patch
|
gdb-6.6-bz229517-gcore-without-terminal.patch
|
||||||
gdb-6.6-testsuite-timeouts.patch
|
gdb-6.6-testsuite-timeouts.patch
|
||||||
gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
|
gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
|
||||||
@ -36,62 +24,39 @@ gdb-6.5-ia64-libunwind-leak-test.patch
|
|||||||
gdb-6.5-missed-trap-on-step-test.patch
|
gdb-6.5-missed-trap-on-step-test.patch
|
||||||
gdb-6.5-gcore-buffer-limit-test.patch
|
gdb-6.5-gcore-buffer-limit-test.patch
|
||||||
gdb-6.3-mapping-zero-inode-test.patch
|
gdb-6.3-mapping-zero-inode-test.patch
|
||||||
gdb-6.3-focus-cmd-prev-test.patch
|
|
||||||
gdb-6.8-bz442765-threaded-exec-test.patch
|
gdb-6.8-bz442765-threaded-exec-test.patch
|
||||||
gdb-6.5-section-num-fixup-test.patch
|
gdb-6.5-section-num-fixup-test.patch
|
||||||
gdb-6.8-bz466901-backtrace-full-prelinked.patch
|
gdb-6.8-bz466901-backtrace-full-prelinked.patch
|
||||||
gdb-simultaneous-step-resume-breakpoint-test.patch
|
gdb-simultaneous-step-resume-breakpoint-test.patch
|
||||||
gdb-core-open-vdso-warning.patch
|
gdb-core-open-vdso-warning.patch
|
||||||
gdb-bz533176-fortran-omp-step.patch
|
|
||||||
gdb-ccache-workaround.patch
|
gdb-ccache-workaround.patch
|
||||||
gdb-archer-pie-addons.patch
|
|
||||||
gdb-archer-pie-addons-keep-disabled.patch
|
|
||||||
gdb-lineno-makeup-test.patch
|
gdb-lineno-makeup-test.patch
|
||||||
gdb-ppc-power7-test.patch
|
gdb-ppc-power7-test.patch
|
||||||
gdb-moribund-utrace-workaround.patch
|
|
||||||
gdb-archer-next-over-throw-cxx-exec.patch
|
gdb-archer-next-over-throw-cxx-exec.patch
|
||||||
gdb-bz601887-dwarf4-rh-test.patch
|
|
||||||
gdb-6.6-buildid-locate-core-as-arg.patch
|
|
||||||
gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
||||||
gdb-test-bt-cfi-without-die.patch
|
gdb-test-bt-cfi-without-die.patch
|
||||||
gdb-bz634108-solib_address.patch
|
gdb-bz634108-solib_address.patch
|
||||||
gdb-test-pid0-core.patch
|
gdb-test-pid0-core.patch
|
||||||
gdb-test-dw2-aranges.patch
|
gdb-test-dw2-aranges.patch
|
||||||
gdb-test-expr-cumulative-archer.patch
|
|
||||||
gdb-physname-pr11734-test.patch
|
|
||||||
gdb-physname-pr12273-test.patch
|
|
||||||
gdb-test-ivy-bridge.patch
|
gdb-test-ivy-bridge.patch
|
||||||
gdb-runtest-pie-override.patch
|
|
||||||
gdb-attach-fail-reasons-5of5.patch
|
|
||||||
gdb-glibc-strstr-workaround.patch
|
gdb-glibc-strstr-workaround.patch
|
||||||
gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
|
gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
|
||||||
gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
|
gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
|
||||||
gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
|
gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
|
||||||
gdb-gnat-dwarf-crash-3of3.patch
|
|
||||||
gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
|
gdb-rhbz1007614-memleak-infpy_read_memory-test.patch
|
||||||
gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
|
gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch
|
||||||
gdb-archer-vla-tests.patch
|
|
||||||
gdb-vla-intel-tests.patch
|
|
||||||
gdb-btrobust.patch
|
|
||||||
gdb-fortran-frame-string.patch
|
|
||||||
gdb-rhbz1156192-recursive-dlopen-test.patch
|
gdb-rhbz1156192-recursive-dlopen-test.patch
|
||||||
gdb-jit-reader-multilib.patch
|
|
||||||
gdb-rhbz1149205-catch-syscall-after-fork-test.patch
|
gdb-rhbz1149205-catch-syscall-after-fork-test.patch
|
||||||
gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
|
gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
|
||||||
gdb-rhbz1350436-type-printers-error.patch
|
gdb-rhbz1350436-type-printers-error.patch
|
||||||
gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
|
gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
|
||||||
gdb-bz1219747-attach-kills.patch
|
|
||||||
gdb-fedora-libncursesw.patch
|
gdb-fedora-libncursesw.patch
|
||||||
gdb-opcodes-clflushopt-test.patch
|
gdb-opcodes-clflushopt-test.patch
|
||||||
gdb-dts-rhel6-python-compat.patch
|
|
||||||
gdb-6.6-buildid-locate-rpm-scl.patch
|
|
||||||
gdb-6.8-quit-never-aborts.patch
|
|
||||||
gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
|
gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch
|
||||||
gdb-container-rh-pkg.patch
|
gdb-container-rh-pkg.patch
|
||||||
gdb-rhbz1325795-framefilters-test.patch
|
|
||||||
gdb-linux_perf-bundle.patch
|
gdb-linux_perf-bundle.patch
|
||||||
gdb-libexec-add-index.patch
|
gdb-add-index.patch
|
||||||
gdb-rhbz1398387-tab-crash-test.patch
|
|
||||||
gdb-archer.patch
|
|
||||||
gdb-vla-intel-fix-print-char-array.patch
|
|
||||||
gdb-rhbz1553104-s390x-arch12-test.patch
|
gdb-rhbz1553104-s390x-arch12-test.patch
|
||||||
|
gdb-binutils29988-read_indexed_address.patch
|
||||||
|
gdb-rhbz2192105-ftbs-dangling-pointer
|
||||||
|
gdb-rhbz2160211-excessive-core-file-warnings.patch
|
||||||
|
19
gating.yaml
Normal file
19
gating.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-8
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -40,7 +40,7 @@ diff --git a/gdb/testsuite/gdb.base/attach-see-vdso.exp b/gdb/testsuite/gdb.base
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-see-vdso.exp
|
+++ b/gdb/testsuite/gdb.base/attach-see-vdso.exp
|
||||||
@@ -0,0 +1,72 @@
|
@@ -0,0 +1,77 @@
|
||||||
+# Copyright 2007
|
+# Copyright 2007
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -64,6 +64,11 @@ new file mode 100644
|
|||||||
+ return 0
|
+ return 0
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+set testfile "attach-see-vdso"
|
+set testfile "attach-see-vdso"
|
||||||
+set srcfile ${testfile}.c
|
+set srcfile ${testfile}.c
|
||||||
+set binfile [standard_output_file ${testfile}]
|
+set binfile [standard_output_file ${testfile}]
|
||||||
|
@ -303,18 +303,3 @@ new file mode 100644
|
|||||||
+ pass $test
|
+ pass $test
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue.exp b/gdb/testsuite/gdb.arch/powerpc-prologue.exp
|
|
||||||
--- a/gdb/testsuite/gdb.arch/powerpc-prologue.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.arch/powerpc-prologue.exp
|
|
||||||
@@ -16,8 +16,9 @@
|
|
||||||
# Test PowerPC prologue analyzer.
|
|
||||||
|
|
||||||
# Do not run on AIX (where we won't be able to build the tests without
|
|
||||||
-# some surgery) or on PowerPC64 (ditto, dot symbols).
|
|
||||||
-if {[istarget *-*-aix*] || ![istarget "powerpc-*-*"]} then {
|
|
||||||
+# some surgery). PowerPC64 target would break due to dot symbols but we build
|
|
||||||
+# there PowerPC32 inferior.
|
|
||||||
+if {[istarget *-*-aix*] || ![istarget "powerpc*-*-*"]} then {
|
|
||||||
verbose "Skipping PowerPC prologue tests."
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@ -81,7 +81,7 @@ new file mode 100644
|
|||||||
+#
|
+#
|
||||||
+# You should have received a copy of the GNU General Public License
|
+# You should have received a copy of the GNU General Public License
|
||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
+# Please email any bugs, comments, and/or additions to this file to:
|
+# Please email any bugs, comments, and/or additions to this file to:
|
||||||
+# bug-gdb@prep.ai.mit.edu
|
+# bug-gdb@prep.ai.mit.edu
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-focus-cmd-prev-test.patch
|
|
||||||
|
|
||||||
;; Test a crash on `focus cmd', `focus prev' commands.
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/focus-cmd-prev.exp b/gdb/testsuite/gdb.base/focus-cmd-prev.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/focus-cmd-prev.exp
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+# Copyright 2008 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+if $tracelevel then {
|
|
||||||
+ strace $tracelevel
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+
|
|
||||||
+# Do not use gdb_test or \r\n there since:
|
|
||||||
+# commit d7e747318f4d04af033f16325f9b6d74f67079ec
|
|
||||||
+# Eliminate make_cleanup_ui_file_delete / make ui_file a class hierarchy
|
|
||||||
+
|
|
||||||
+set test "focus cmd"
|
|
||||||
+gdb_test_multiple $test $test {
|
|
||||||
+ -re "$gdb_prompt $" {
|
|
||||||
+ pass $test
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set test "focus prev"
|
|
||||||
+gdb_test_multiple $test $test {
|
|
||||||
+ -re "$gdb_prompt $" {
|
|
||||||
+ pass $test
|
|
||||||
+ }
|
|
||||||
+}
|
|
@ -16,7 +16,7 @@ Subject: gdb-6.3-gstack-20050411.patch
|
|||||||
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
|
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
|
||||||
--- a/gdb/Makefile.in
|
--- a/gdb/Makefile.in
|
||||||
+++ b/gdb/Makefile.in
|
+++ b/gdb/Makefile.in
|
||||||
@@ -1726,7 +1726,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force
|
@@ -2011,7 +2011,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force
|
||||||
install: all
|
install: all
|
||||||
@$(MAKE) $(FLAGS_TO_PASS) install-only
|
@$(MAKE) $(FLAGS_TO_PASS) install-only
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in
|
|||||||
transformed_name=`t='$(program_transform_name)'; \
|
transformed_name=`t='$(program_transform_name)'; \
|
||||||
echo gdb | sed -e "$$t"` ; \
|
echo gdb | sed -e "$$t"` ; \
|
||||||
if test "x$$transformed_name" = x; then \
|
if test "x$$transformed_name" = x; then \
|
||||||
@@ -1775,7 +1775,25 @@ install-guile:
|
@@ -2061,7 +2061,25 @@ install-guile:
|
||||||
install-python:
|
install-python:
|
||||||
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in
|
|||||||
transformed_name=`t='$(program_transform_name)'; \
|
transformed_name=`t='$(program_transform_name)'; \
|
||||||
echo gdb | sed -e $$t` ; \
|
echo gdb | sed -e $$t` ; \
|
||||||
if test "x$$transformed_name" = x; then \
|
if test "x$$transformed_name" = x; then \
|
||||||
@@ -1798,6 +1816,18 @@ uninstall: force $(CONFIG_UNINSTALL)
|
@@ -2092,6 +2110,18 @@ uninstall: force $(CONFIG_UNINSTALL)
|
||||||
fi
|
rm -f $(DESTDIR)$(bindir)/$$transformed_name
|
||||||
@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
||||||
|
|
||||||
+.PHONY: uninstall-gstack
|
+.PHONY: uninstall-gstack
|
||||||
|
@ -1,323 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-inferior-notification-20050721.patch
|
|
||||||
|
|
||||||
;; Notify observers that the inferior has been created
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
2005-07-21 Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
|
|
||||||
* gdb.base/attach-32.exp: New test for attaching in 32-bit
|
|
||||||
mode on 64-bit systems.
|
|
||||||
* gdb.base/attach-32.c: Ditto.
|
|
||||||
* gdb.base/attach-32b.c: Ditto.
|
|
||||||
|
|
||||||
2007-12-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* gdb.base/attach-32.exp: Fix forgotten $GDBFLAGS as set.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/attach-32.c b/gdb/testsuite/gdb.base/attach-32.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-32.c
|
|
||||||
@@ -0,0 +1,20 @@
|
|
||||||
+/* This program is intended to be started outside of gdb, and then
|
|
||||||
+ attached to by gdb. Thus, it simply spins in a loop. The loop
|
|
||||||
+ is exited when & if the variable 'should_exit' is non-zero. (It
|
|
||||||
+ is initialized to zero in this program, so the loop will never
|
|
||||||
+ exit unless/until gdb sets the variable to non-zero.)
|
|
||||||
+ */
|
|
||||||
+#include <stdio.h>
|
|
||||||
+
|
|
||||||
+int should_exit = 0;
|
|
||||||
+
|
|
||||||
+int main ()
|
|
||||||
+{
|
|
||||||
+ int local_i = 0;
|
|
||||||
+
|
|
||||||
+ while (! should_exit)
|
|
||||||
+ {
|
|
||||||
+ local_i++;
|
|
||||||
+ }
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/attach-32.exp b/gdb/testsuite/gdb.base/attach-32.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-32.exp
|
|
||||||
@@ -0,0 +1,245 @@
|
|
||||||
+# Copyright 2005 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+#
|
|
||||||
+# This test was based on attach.exp and modified for 32/64 bit Linux systems. */
|
|
||||||
+
|
|
||||||
+# On HP-UX 11.0, this test is causing a process running the program
|
|
||||||
+# "attach" to be left around spinning. Until we figure out why, I am
|
|
||||||
+# commenting out the test to avoid polluting tiamat (our 11.0 nightly
|
|
||||||
+# test machine) with these processes. RT
|
|
||||||
+#
|
|
||||||
+# Setting the magic bit in the target app should work. I added a
|
|
||||||
+# "kill", and also a test for the R3 register warning. JB
|
|
||||||
+if { ![istarget "x86_64*-*linux*"]
|
|
||||||
+ && ![istarget "powerpc64*-*linux*"]} {
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# are we on a target board
|
|
||||||
+if [is_remote target] then {
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set testfile "attach-32"
|
|
||||||
+set srcfile ${testfile}.c
|
|
||||||
+set srcfile2 ${testfile}b.c
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+set binfile2 [standard_output_file ${testfile}b]
|
|
||||||
+set escapedbinfile [string_to_regexp [standard_output_file ${testfile}]]
|
|
||||||
+
|
|
||||||
+#execute_anywhere "rm -f ${binfile} ${binfile2}"
|
|
||||||
+remote_exec build "rm -f ${binfile} ${binfile2}"
|
|
||||||
+# For debugging this test
|
|
||||||
+#
|
|
||||||
+#log_user 1
|
|
||||||
+
|
|
||||||
+# build the first test case
|
|
||||||
+#
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-m32"]] != "" } {
|
|
||||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Build the in-system-call test
|
|
||||||
+
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable [list debug "additional_flags=-m32"]] != "" } {
|
|
||||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if [get_compiler_info ${binfile}] {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+proc do_attach_tests {} {
|
|
||||||
+ global gdb_prompt
|
|
||||||
+ global binfile
|
|
||||||
+ global escapedbinfile
|
|
||||||
+ global srcfile
|
|
||||||
+ global testfile
|
|
||||||
+ global objdir
|
|
||||||
+ global subdir
|
|
||||||
+ global timeout
|
|
||||||
+ global testpid
|
|
||||||
+
|
|
||||||
+ # Verify that we can "see" the variable "should_exit" in the
|
|
||||||
+ # program, and that it is zero.
|
|
||||||
+
|
|
||||||
+ gdb_test "print should_exit" " = 0" "after attach-32, print should_exit"
|
|
||||||
+
|
|
||||||
+ # Verify that we can modify the variable "should_exit" in the
|
|
||||||
+ # program.
|
|
||||||
+
|
|
||||||
+ gdb_test "set should_exit=1" "" "after attach-32, set should_exit"
|
|
||||||
+
|
|
||||||
+ # Verify that the modification really happened.
|
|
||||||
+
|
|
||||||
+ send_gdb "tbreak 19\n"
|
|
||||||
+ gdb_expect {
|
|
||||||
+ -re "reakpoint .*at.*$srcfile, line 19.*$gdb_prompt $" {
|
|
||||||
+ pass "after attach-32, set tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ -re "$gdb_prompt $" {
|
|
||||||
+ fail "after attach-32, set tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ timeout {
|
|
||||||
+ fail "(timeout) after attach-32, set tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ send_gdb "continue\n"
|
|
||||||
+ gdb_expect {
|
|
||||||
+ -re "main.*at.*$srcfile:19.*$gdb_prompt $" {
|
|
||||||
+ pass "after attach-32, reach tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ -re "$gdb_prompt $" {
|
|
||||||
+ fail "after attach-32, reach tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ timeout {
|
|
||||||
+ fail "(timeout) after attach-32, reach tbreak postloop"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # Allow the test process to exit, to cleanup after ourselves.
|
|
||||||
+
|
|
||||||
+ gdb_test "continue" {\[Inferior .* exited normally\]} "after attach-32, exit"
|
|
||||||
+
|
|
||||||
+ # Make sure we don't leave a process around to confuse
|
|
||||||
+ # the next test run (and prevent the compile by keeping
|
|
||||||
+ # the text file busy), in case the "set should_exit" didn't
|
|
||||||
+ # work.
|
|
||||||
+
|
|
||||||
+ remote_exec build "kill -9 ${testpid}"
|
|
||||||
+
|
|
||||||
+ # Start the program running and then wait for a bit, to be sure
|
|
||||||
+ # that it can be attached to.
|
|
||||||
+
|
|
||||||
+ set testpid [eval exec $binfile &]
|
|
||||||
+ exec sleep 2
|
|
||||||
+ if { [istarget "*-*-cygwin*"] } {
|
|
||||||
+ # testpid is the Cygwin PID, GDB uses the Windows PID, which might be
|
|
||||||
+ # different due to the way fork/exec works.
|
|
||||||
+ set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # Verify that we can attach to the process, and find its a.out
|
|
||||||
+ # when we're cd'd to some directory that doesn't contain the
|
|
||||||
+ # a.out. (We use the source path set by the "dir" command.)
|
|
||||||
+
|
|
||||||
+ gdb_test "dir ${objdir}/${subdir}" "Source directories searched: .*" \
|
|
||||||
+ "set source path"
|
|
||||||
+
|
|
||||||
+ gdb_test "cd /tmp" "Working directory /tmp." \
|
|
||||||
+ "cd away from process working directory"
|
|
||||||
+
|
|
||||||
+ # Explicitly flush out any knowledge of the previous attachment.
|
|
||||||
+
|
|
||||||
+ set test "before attach-32-3, flush symbols"
|
|
||||||
+ gdb_test_multiple "symbol" "$test" {
|
|
||||||
+ -re "Discard symbol table from.*y or n. $" {
|
|
||||||
+ gdb_test "y" "No symbol file now." \
|
|
||||||
+ "$test"
|
|
||||||
+ }
|
|
||||||
+ -re "No symbol file now.*$gdb_prompt $" {
|
|
||||||
+ pass "$test"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ gdb_test "exec" "No executable file now." \
|
|
||||||
+ "before attach-32-3, flush exec"
|
|
||||||
+
|
|
||||||
+ gdb_test "attach $testpid" \
|
|
||||||
+ "Attaching to process $testpid.*Reading symbols from $escapedbinfile.*main.*at .*" \
|
|
||||||
+ "attach-32 when process' a.out not in cwd"
|
|
||||||
+
|
|
||||||
+ set test "after attach-32-3, exit"
|
|
||||||
+ gdb_test_multiple "kill" "$test" {
|
|
||||||
+ -re "Kill the program being debugged.*y or n. $" {
|
|
||||||
+ gdb_test "y" "" "$test"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # Another "don't leave a process around"
|
|
||||||
+ remote_exec build "kill -9 ${testpid}"
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+proc do_call_attach_tests {} {
|
|
||||||
+ global gdb_prompt
|
|
||||||
+ global binfile2
|
|
||||||
+ global testpid
|
|
||||||
+
|
|
||||||
+ # See if other registers are problems
|
|
||||||
+
|
|
||||||
+ set test "info other register"
|
|
||||||
+ gdb_test_multiple "i r r3" "$test" {
|
|
||||||
+ -re "warning: reading register.*$gdb_prompt $" {
|
|
||||||
+ fail "$test"
|
|
||||||
+ }
|
|
||||||
+ -re "r3.*$gdb_prompt $" {
|
|
||||||
+ pass "$test"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # Get rid of the process
|
|
||||||
+
|
|
||||||
+ gdb_test "p should_exit = 1"
|
|
||||||
+ gdb_test "c" {\[Inferior .* exited normally\]}
|
|
||||||
+
|
|
||||||
+ # Be paranoid
|
|
||||||
+
|
|
||||||
+ remote_exec build "kill -9 ${testpid}"
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+# Start with a fresh gdb
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+set testpid [eval exec $binfile &]
|
|
||||||
+exec sleep 3
|
|
||||||
+if { [istarget "*-*-cygwin*"] } {
|
|
||||||
+ # testpid is the Cygwin PID, GDB uses the Windows PID, which might be
|
|
||||||
+ # different due to the way fork/exec works.
|
|
||||||
+ set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set GDBFLAGS_orig $GDBFLAGS
|
|
||||||
+set GDBFLAGS "-iex \"set height 0\" --pid=$testpid"
|
|
||||||
+gdb_start
|
|
||||||
+set GDBFLAGS $GDBFLAGS_orig
|
|
||||||
+
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+
|
|
||||||
+# This is a test of gdb's ability to attach to a running process.
|
|
||||||
+
|
|
||||||
+do_attach_tests
|
|
||||||
+
|
|
||||||
+# Test attaching when the target is inside a system call
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+set testpid [eval exec $binfile2 &]
|
|
||||||
+exec sleep 3
|
|
||||||
+if { [istarget "*-*-cygwin*"] } {
|
|
||||||
+ # testpid is the Cygwin PID, GDB uses the Windows PID, which might be
|
|
||||||
+ # different due to the way fork/exec works.
|
|
||||||
+ set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set GDBFLAGS_orig $GDBFLAGS
|
|
||||||
+set GDBFLAGS "-iex \"set height 0\" --pid=$testpid"
|
|
||||||
+gdb_start
|
|
||||||
+set GDBFLAGS $GDBFLAGS_orig
|
|
||||||
+
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+do_call_attach_tests
|
|
||||||
+
|
|
||||||
+return 0
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/attach-32b.c b/gdb/testsuite/gdb.base/attach-32b.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-32b.c
|
|
||||||
@@ -0,0 +1,24 @@
|
|
||||||
+/* This program is intended to be started outside of gdb, and then
|
|
||||||
+ attached to by gdb. Thus, it simply spins in a loop. The loop
|
|
||||||
+ is exited when & if the variable 'should_exit' is non-zero. (It
|
|
||||||
+ is initialized to zero in this program, so the loop will never
|
|
||||||
+ exit unless/until gdb sets the variable to non-zero.)
|
|
||||||
+ */
|
|
||||||
+#include <stdio.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+
|
|
||||||
+int should_exit = 0;
|
|
||||||
+
|
|
||||||
+int main ()
|
|
||||||
+{
|
|
||||||
+ int local_i = 0;
|
|
||||||
+
|
|
||||||
+ sleep( 10 ); /* System call causes register fetch to fail */
|
|
||||||
+ /* This is a known HPUX "feature" */
|
|
||||||
+ while (! should_exit)
|
|
||||||
+ {
|
|
||||||
+ local_i++;
|
|
||||||
+ }
|
|
||||||
+ return (0);
|
|
||||||
+}
|
|
@ -1,161 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-inheritancetest-20050726.patch
|
|
||||||
|
|
||||||
;; Verify printing of inherited members test
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
2005-07-26 Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
|
|
||||||
* gdb.cp/b146835.exp: New testcase.
|
|
||||||
* gdb.cp/b146835.cc: Ditto.
|
|
||||||
* gdb.cp/b146835b.cc: Ditto.
|
|
||||||
* gdb.cp/b146835.h: Ditto.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/b146835.cc b/gdb/testsuite/gdb.cp/b146835.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/b146835.cc
|
|
||||||
@@ -0,0 +1,32 @@
|
|
||||||
+#include "b146835.h"
|
|
||||||
+#include <iostream>
|
|
||||||
+
|
|
||||||
+class F : public C {
|
|
||||||
+
|
|
||||||
+protected:
|
|
||||||
+
|
|
||||||
+ virtual void funcA (unsigned long a, B *b);
|
|
||||||
+ virtual void funcB (E *e);
|
|
||||||
+ virtual void funcC (unsigned long x, bool y);
|
|
||||||
+
|
|
||||||
+ char *s1, *s2;
|
|
||||||
+ bool b1;
|
|
||||||
+ int k;
|
|
||||||
+
|
|
||||||
+public:
|
|
||||||
+ void foo() {
|
|
||||||
+ std::cout << "foo" << std::endl;
|
|
||||||
+ }
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+void F::funcA (unsigned long a, B *b) {}
|
|
||||||
+void F::funcB (E *e) {}
|
|
||||||
+void F::funcC (unsigned long x, bool y) {}
|
|
||||||
+
|
|
||||||
+int main()
|
|
||||||
+{
|
|
||||||
+ F f;
|
|
||||||
+ f.foo();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/b146835.exp b/gdb/testsuite/gdb.cp/b146835.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/b146835.exp
|
|
||||||
@@ -0,0 +1,47 @@
|
|
||||||
+# This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+# Copyright 2005 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+# Check that GDB can properly print an inherited member variable
|
|
||||||
+# (Bugzilla 146835)
|
|
||||||
+
|
|
||||||
+set testfile "b146835"
|
|
||||||
+set srcfile ${testfile}.cc
|
|
||||||
+set srcfile2 ${testfile}b.cc
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+if {[gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable {debug c++}] != "" } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# Run to `main' where we begin our tests.
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ gdb_suppress_tests
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test "break 'F::foo()'" ""
|
|
||||||
+gdb_continue_to_breakpoint "First line foo"
|
|
||||||
+
|
|
||||||
+# Verify that we can access the inherited member d
|
|
||||||
+gdb_test "p d" " = \\(D \\*\\) *0x0" "Verify inherited member d accessible"
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/b146835.h b/gdb/testsuite/gdb.cp/b146835.h
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/b146835.h
|
|
||||||
@@ -0,0 +1,36 @@
|
|
||||||
+
|
|
||||||
+class A {
|
|
||||||
+
|
|
||||||
+protected:
|
|
||||||
+
|
|
||||||
+ virtual void funcA (unsigned long a, class B *b) = 0;
|
|
||||||
+ virtual void funcB (class E *e) = 0;
|
|
||||||
+ virtual void funcC (unsigned long x, bool y) = 0;
|
|
||||||
+
|
|
||||||
+ void funcD (class E *e, class D* d);
|
|
||||||
+ virtual void funcE (E *e, D *d);
|
|
||||||
+ virtual void funcF (unsigned long x, D *d);
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+class C : public A {
|
|
||||||
+
|
|
||||||
+protected:
|
|
||||||
+
|
|
||||||
+ int x;
|
|
||||||
+ class K *k;
|
|
||||||
+ class H *h;
|
|
||||||
+
|
|
||||||
+ D *d;
|
|
||||||
+
|
|
||||||
+ class W *w;
|
|
||||||
+ class N *n;
|
|
||||||
+ class L *l;
|
|
||||||
+ unsigned long *r;
|
|
||||||
+
|
|
||||||
+public:
|
|
||||||
+
|
|
||||||
+ C();
|
|
||||||
+ int z (char *s);
|
|
||||||
+ virtual ~C();
|
|
||||||
+};
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/b146835b.cc b/gdb/testsuite/gdb.cp/b146835b.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/b146835b.cc
|
|
||||||
@@ -0,0 +1,11 @@
|
|
||||||
+#include "b146835.h"
|
|
||||||
+
|
|
||||||
+C::C() { d = 0; x = 3; }
|
|
||||||
+
|
|
||||||
+int C::z (char *s) { return 0; }
|
|
||||||
+
|
|
||||||
+C::~C() {}
|
|
||||||
+
|
|
||||||
+void A::funcD (class E *e, class D *d) {}
|
|
||||||
+void A::funcE (E *e, D *d) {}
|
|
||||||
+void A::funcF (unsigned long x, D *d) {}
|
|
@ -18,7 +18,7 @@ diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest
|
|||||||
-re ".\[0-9\]+ = +.+ +0x.*\[0-9.\]+.*$gdb_prompt $" {
|
-re ".\[0-9\]+ = +.+ +0x.*\[0-9.\]+.*$gdb_prompt $" {
|
||||||
pass "printed version with cast"
|
pass "printed version with cast"
|
||||||
}
|
}
|
||||||
+ -re ".\[0-9\]+ = .(Fedora|Red Hat Enterprise Linux) \[\\(\\)0-9.a-z\\-\]+.*$gdb_prompt $" {
|
+ -re ".\[0-9\]+ = .(Fedora Linux|Red Hat Enterprise Linux) \[\\(\\)0-9.a-z\\-\]+.*$gdb_prompt $" {
|
||||||
+ pass "printed version Fedora or Red Hat Enterprise Linux only"
|
+ pass "printed version Fedora or Red Hat Enterprise Linux only"
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
@ -27,12 +27,12 @@ diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest
|
|||||||
diff --git a/gdb/top.c b/gdb/top.c
|
diff --git a/gdb/top.c b/gdb/top.c
|
||||||
--- a/gdb/top.c
|
--- a/gdb/top.c
|
||||||
+++ b/gdb/top.c
|
+++ b/gdb/top.c
|
||||||
@@ -2163,7 +2163,7 @@ init_gdb_version_vars (void)
|
@@ -2384,7 +2384,7 @@ The second argument is the terminal the UI runs on."), &cmdlist);
|
||||||
struct internalvar *major_version_var = create_internalvar ("_gdb_major");
|
struct internalvar *major_version_var = create_internalvar ("_gdb_major");
|
||||||
struct internalvar *minor_version_var = create_internalvar ("_gdb_minor");
|
struct internalvar *minor_version_var = create_internalvar ("_gdb_minor");
|
||||||
int vmajor = 0, vminor = 0, vrevision = 0;
|
int vmajor = 0, vminor = 0, vrevision = 0;
|
||||||
- sscanf (version, "%d.%d.%d", &vmajor, &vminor, &vrevision);
|
- sscanf (version, "%d.%d.%d", &vmajor, &vminor, &vrevision);
|
||||||
+ sscanf (version, "Fedora %d.%d.%d", &vmajor, &vminor, &vrevision);
|
+ sscanf (version, "%*[^0123456789]%d.%d.%d", &vmajor, &vminor, &vrevision);
|
||||||
set_internalvar_integer (major_version_var, vmajor);
|
set_internalvar_integer (major_version_var, vmajor);
|
||||||
set_internalvar_integer (minor_version_var, vminor + (vrevision > 0));
|
set_internalvar_integer (minor_version_var, vminor + (vrevision > 0));
|
||||||
}
|
}
|
||||||
|
@ -1,247 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-test-dtorfix-20050121.patch
|
|
||||||
|
|
||||||
;; Test support of multiple destructors just like multiple constructors
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/constructortest.cc b/gdb/testsuite/gdb.cp/constructortest.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/constructortest.cc
|
|
||||||
@@ -0,0 +1,99 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2005 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program; if not, write to the Free Software
|
|
||||||
+ Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
+ Boston, MA 02111-1307, USA. */
|
|
||||||
+
|
|
||||||
+class A
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ A();
|
|
||||||
+ ~A();
|
|
||||||
+ int k;
|
|
||||||
+ private:
|
|
||||||
+ int x;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+class B: public A
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ B();
|
|
||||||
+ private:
|
|
||||||
+ int y;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+/* C and D are for the $delete destructor. */
|
|
||||||
+
|
|
||||||
+class C
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ C();
|
|
||||||
+ virtual ~C();
|
|
||||||
+ private:
|
|
||||||
+ int x;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+class D: public C
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ D();
|
|
||||||
+ private:
|
|
||||||
+ int y;
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+int main(int argc, char *argv[])
|
|
||||||
+{
|
|
||||||
+ A* a = new A;
|
|
||||||
+ B* b = new B;
|
|
||||||
+ D* d = new D;
|
|
||||||
+ delete a;
|
|
||||||
+ delete b;
|
|
||||||
+ delete d;
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+A::A() /* Constructor A */
|
|
||||||
+{
|
|
||||||
+ x = 1; /* First line A */
|
|
||||||
+ k = 4; /* Second line A */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+A::~A() /* Destructor A */
|
|
||||||
+{
|
|
||||||
+ x = 3; /* First line ~A */
|
|
||||||
+ k = 6; /* Second line ~A */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+B::B()
|
|
||||||
+{
|
|
||||||
+ y = 2; /* First line B */
|
|
||||||
+ k = 5;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+C::C() /* Constructor C */
|
|
||||||
+{
|
|
||||||
+ x = 1; /* First line C */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+C::~C() /* Destructor C */
|
|
||||||
+{
|
|
||||||
+ x = 3; /* First line ~C */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+D::D()
|
|
||||||
+{
|
|
||||||
+ y = 2; /* First line D */
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/constructortest.exp b/gdb/testsuite/gdb.cp/constructortest.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/constructortest.exp
|
|
||||||
@@ -0,0 +1,130 @@
|
|
||||||
+# This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+# Copyright 2005, 2007 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+# Check that GDB can break at multiple forms of constructors.
|
|
||||||
+
|
|
||||||
+set testfile "constructortest"
|
|
||||||
+set srcfile ${testfile}.cc
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+# PIE is required for testing proper BREAKPOINT_RE_SET of the multiple-PC
|
|
||||||
+# breakpoints.
|
|
||||||
+if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ "additional_flags=-fpie -pie"}] != "" } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# Run to `main' where we begin our tests.
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ gdb_suppress_tests
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Break on the various forms of the A::A constructor.
|
|
||||||
+# " (2 locations)" is displayed depending on G++ version.
|
|
||||||
+gdb_test "break A\:\:A" "Breakpoint 2 at .*" "breaking on A::A"
|
|
||||||
+
|
|
||||||
+# Verify that we break for the A constructor two times
|
|
||||||
+# Once for new A and once for new B
|
|
||||||
+gdb_continue_to_breakpoint "First line A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::A"
|
|
||||||
+gdb_continue_to_breakpoint "First line A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::A"
|
|
||||||
+
|
|
||||||
+# Now do the same for destructors
|
|
||||||
+gdb_test "break 'A::~A()'" ""
|
|
||||||
+
|
|
||||||
+# Verify that we break for the A destructor two times
|
|
||||||
+# Once for delete a and once for delete b
|
|
||||||
+gdb_continue_to_breakpoint "First line ~A"
|
|
||||||
+gdb_test "bt" "#0.*~A.*#1.*main.*" "Verify in in-charge A::~A"
|
|
||||||
+gdb_continue_to_breakpoint "First line ~A"
|
|
||||||
+gdb_test "bt" "#0.*~A.*#1.*~B.*#2.*main.*" "Verify in not-in-charge A::~A"
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+# Verify that we can break by line number in a constructor and find
|
|
||||||
+# both occurrences
|
|
||||||
+runto_main
|
|
||||||
+gdb_test "break 'A::A()'" "" "break in constructor A 2"
|
|
||||||
+gdb_continue_to_breakpoint "First line A"
|
|
||||||
+set second_line [gdb_get_line_number "Second line A"]
|
|
||||||
+# " (2 locations)" is displayed depending on G++ version.
|
|
||||||
+gdb_test "break $second_line" "Breakpoint .*, line $second_line\\..*" "break by line in constructor"
|
|
||||||
+gdb_continue_to_breakpoint "Second line A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::A second line"
|
|
||||||
+gdb_continue_to_breakpoint "Second line A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::A second line"
|
|
||||||
+
|
|
||||||
+# Verify that we can break by line number in a destructor and find
|
|
||||||
+# both occurrences
|
|
||||||
+gdb_test "break 'A::~A()'" "" "break in constructor ~A 2"
|
|
||||||
+gdb_continue_to_breakpoint "First line ~A"
|
|
||||||
+set second_line_dtor [gdb_get_line_number "Second line ~A"]
|
|
||||||
+# " (2 locations)" is displayed depending on G++ version.
|
|
||||||
+gdb_test "break $second_line_dtor" "Breakpoint .*, line $second_line_dtor\\..*" "break by line in destructor"
|
|
||||||
+gdb_continue_to_breakpoint "Second line ~A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::~A second line"
|
|
||||||
+# FIXME: Analyse this case better.
|
|
||||||
+gdb_continue_to_breakpoint "Second line ~A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in A::~A second line #2"
|
|
||||||
+gdb_continue_to_breakpoint "Second line ~A"
|
|
||||||
+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::~A second line"
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+# Test now the $delete destructors.
|
|
||||||
+
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+runto_main
|
|
||||||
+
|
|
||||||
+set first_line_dtor [gdb_get_line_number "First line ~C"]
|
|
||||||
+set define_line_dtor [gdb_get_line_number "Destructor C"]
|
|
||||||
+# Break on the various forms of the C::~C destructor
|
|
||||||
+# " ([23] locations)" is displayed depending on G++ version.
|
|
||||||
+gdb_test "break C\:\:~C" "Breakpoint .*: C::~C\\. \\(2 locations\\)" "breaking on C::~C"
|
|
||||||
+gdb_continue_to_breakpoint "First line ~C"
|
|
||||||
+
|
|
||||||
+# Verify that we can break by line number in a destructor and find
|
|
||||||
+# the $delete occurence
|
|
||||||
+
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+delete_breakpoints
|
|
||||||
+
|
|
||||||
+# " (3 locations)" is displayed depending on G++ version.
|
|
||||||
+gdb_test "break $first_line_dtor" "Breakpoint .*, line $first_line_dtor\\..*" "break by line in destructor"
|
|
||||||
+
|
|
||||||
+# Run to `main' where we begin our tests.
|
|
||||||
+# Set the breakpoints first to test PIE multiple-PC BREAKPOINT_RE_SET.
|
|
||||||
+# RUNTO_MAIN or RUNTO MAIN are not usable here as it runs DELETE_BREAKPOINTS.
|
|
||||||
+
|
|
||||||
+if ![gdb_breakpoint main] {
|
|
||||||
+ gdb_suppress_tests
|
|
||||||
+}
|
|
||||||
+gdb_run_cmd
|
|
||||||
+set test "running to main"
|
|
||||||
+gdb_test_multiple "" $test {
|
|
||||||
+ -re "Breakpoint \[0-9\]*, main .*$gdb_prompt $" {
|
|
||||||
+ pass $test
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_continue_to_breakpoint "First line ~C"
|
|
@ -1,103 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elena Zannoni <ezannoni@redhat.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-test-movedir-20050125.patch
|
|
||||||
|
|
||||||
;; Fix to support executable moving
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
2005-01-25 Elena Zannoni <ezannoni@redhat.com>
|
|
||||||
|
|
||||||
* gdb.base/move-dir.exp: New test.
|
|
||||||
* gdb.base/move-dir.c: Ditto.
|
|
||||||
* gdb.base/move-dir.h: Ditto.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/move-dir.c b/gdb/testsuite/gdb.base/move-dir.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/move-dir.c
|
|
||||||
@@ -0,0 +1,10 @@
|
|
||||||
+#include <stdio.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+#include "move-dir.h"
|
|
||||||
+
|
|
||||||
+int main() {
|
|
||||||
+ const char* hw = "hello world.";
|
|
||||||
+ printf ("%s\n", hw);;
|
|
||||||
+ other();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/move-dir.exp b/gdb/testsuite/gdb.base/move-dir.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/move-dir.exp
|
|
||||||
@@ -0,0 +1,57 @@
|
|
||||||
+# Copyright 2005
|
|
||||||
+# Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+set testfile "move-dir"
|
|
||||||
+set srcfile ${testfile}.c
|
|
||||||
+set incfile ${testfile}.h
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+
|
|
||||||
+set testdir [standard_output_file incdir]
|
|
||||||
+
|
|
||||||
+remote_exec build "mkdir $testdir"
|
|
||||||
+remote_exec build "cp ${srcdir}/${subdir}/${srcfile} [standard_output_file ${srcfile}]"
|
|
||||||
+remote_exec build "cp ${srcdir}/${subdir}/${incfile} [standard_output_file ${incfile}]"
|
|
||||||
+
|
|
||||||
+set additional_flags "additional_flags=-I${subdir}/incdir"
|
|
||||||
+
|
|
||||||
+if { [gdb_compile [standard_output_file ${srcfile}] "${binfile}" executable [list debug $additional_flags]] != "" } {
|
|
||||||
+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Create and source the file that provides information about the compiler
|
|
||||||
+# used to compile the test case.
|
|
||||||
+
|
|
||||||
+if [get_compiler_info ${binfile}] {
|
|
||||||
+ return -1;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+set oldtimeout $timeout
|
|
||||||
+set timeout [expr "$timeout + 60"]
|
|
||||||
+
|
|
||||||
+# Start with a fresh gdb.
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_test "cd ../.." "" ""
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+gdb_test "list main" ".*hw.*other.*" "found main"
|
|
||||||
+gdb_test "list other" ".*ostring.*" "found include file"
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+set timeout $oldtimeout
|
|
||||||
+return 0
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/move-dir.h b/gdb/testsuite/gdb.base/move-dir.h
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/move-dir.h
|
|
||||||
@@ -0,0 +1,7 @@
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+
|
|
||||||
+void other() {
|
|
||||||
+ const char* ostring = "other";
|
|
||||||
+ printf ("%s\n", ostring);;
|
|
||||||
+}
|
|
||||||
+
|
|
File diff suppressed because it is too large
Load Diff
@ -1,42 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elena Zannoni <ezannoni@redhat.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-test-self-20050110.patch
|
|
||||||
|
|
||||||
;; Get selftest working with sep-debug-info
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
2004-02-23 Elena Zannoni <ezannoni@redhat.com>
|
|
||||||
|
|
||||||
* gdb.gdb/selftest.exp: Make sure that the debug directory is
|
|
||||||
set up properly.
|
|
||||||
* gdb.gdb/complaints.exp: Ditto.
|
|
||||||
* gdb.gdb/xfullpath.exp: Ditto.
|
|
||||||
* gdb.gdb/observer.exp: Ditto.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp
|
|
||||||
--- a/gdb/testsuite/lib/selftest-support.exp
|
|
||||||
+++ b/gdb/testsuite/lib/selftest-support.exp
|
|
||||||
@@ -152,18 +152,18 @@ proc do_self_tests {function body} {
|
|
||||||
}
|
|
||||||
|
|
||||||
# Remove any old copy lying around.
|
|
||||||
- remote_file host delete $xgdb
|
|
||||||
+ #remote_file host delete $xgdb
|
|
||||||
|
|
||||||
gdb_start
|
|
||||||
- set file [remote_download host $GDB_FULLPATH $xgdb]
|
|
||||||
+ #set file [remote_download host $GDB_FULLPATH $xgdb]
|
|
||||||
|
|
||||||
- set result [selftest_setup $file $function]
|
|
||||||
+ set result [selftest_setup $GDB_FULLPATH $function]
|
|
||||||
if {$result == 0} then {
|
|
||||||
set result [uplevel $body]
|
|
||||||
}
|
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
- catch "remote_file host delete $file"
|
|
||||||
+ #catch "remote_file host delete $file"
|
|
||||||
|
|
||||||
if {$result < 0} then {
|
|
||||||
warning "Couldn't test self"
|
|
@ -1,254 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.3-threaded-watchpoints2-20050225.patch
|
|
||||||
|
|
||||||
;; Test sibling threads to set threaded watchpoints for x86 and x86-64
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
2005-02-28 Jeff Johnston <jjohnstn@redhat.com>
|
|
||||||
|
|
||||||
* config/i386/nm-linux.h: Change dr register routines to
|
|
||||||
accept a ptid_t first argument. Change all calling macros
|
|
||||||
to default the inferior_ptid for the first argument.
|
|
||||||
(i386_linux_insert_watchpoint): New prototype.
|
|
||||||
(i386_linux_remove_watchpoint, i386_linux_insert_hw_breakpoint): Ditto.
|
|
||||||
(i386_linux_remove_hw_breakpoint): Ditto.
|
|
||||||
(target_insert_watchpoint, target_remove_watchpoint): Undef and
|
|
||||||
override.
|
|
||||||
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Ditto.
|
|
||||||
* config/i386/nm-linux64.h: Ditto except add amd64 versions of
|
|
||||||
the watchpoint/hw-breakpoint insert/remove routines.
|
|
||||||
* i386-nat.c: Include "inferior.h" to define inferior_ptid.
|
|
||||||
* i386-linux-nat.c: Change all dr get/set routines to accept
|
|
||||||
ptid_t as first argument and to use this argument to determine
|
|
||||||
the tid for PTRACE.
|
|
||||||
(i386_linux_set_debug_regs_for_thread): New function.
|
|
||||||
(i386_linux_sync_debug_registers_callback): Ditto.
|
|
||||||
(i386_linux_sync_debug_registers_across_threads): Ditto.
|
|
||||||
(i386_linux_insert_watchpoint, i386_linux_remove_watchpoint): Ditto.
|
|
||||||
(i386_linux_hw_breakpoint, i386_linux_remove_hw_breakpoint): Ditto.
|
|
||||||
(i386_linux_new_thread): Ditto.
|
|
||||||
(_initialize_i386_linux_nat): Ditto.
|
|
||||||
* amd64-linux-nat.c: Change all dr get/set routines to accept
|
|
||||||
ptid_t as first argument and to use this argument to determine
|
|
||||||
the tid for PTRACE.
|
|
||||||
(amd64_linux_set_debug_regs_for_thread): New function.
|
|
||||||
(amd64_linux_sync_debug_registers_callback): Ditto.
|
|
||||||
(amd64_linux_sync_debug_registers_across_threads): Ditto.
|
|
||||||
(amd64_linux_insert_watchpoint, amd64_linux_remove_watchpoint): Ditto.
|
|
||||||
(amd64_linux_hw_breakpoint, amd64_linux_remove_hw_breakpoint): Ditto.
|
|
||||||
(amd64_linux_new_thread): Ditto.
|
|
||||||
(_initialize_amd64_linux_nat): Register linux new thread observer.
|
|
||||||
* testsuite/gdb.threads/watchthreads-threaded.c: New test case.
|
|
||||||
* testsuite/gdb.threads/watchthreads-threaded.exp: Ditto.
|
|
||||||
|
|
||||||
[ With recent upstream GDB (6.8) reduced only to the testcase. ]
|
|
||||||
|
|
||||||
[ It was called watchthreads2.{exp,c} before but it conflicted with FSF GDB new
|
|
||||||
testcase of the same name. ]
|
|
||||||
|
|
||||||
FIXME: The testcase does not expects multiple watchpoints hits per one stop.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.threads/watchthreads-threaded.c b/gdb/testsuite/gdb.threads/watchthreads-threaded.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.threads/watchthreads-threaded.c
|
|
||||||
@@ -0,0 +1,66 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program; if not, write to the Free Software
|
|
||||||
+ Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
+ Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+ This file is copied from schedlock.c. */
|
|
||||||
+
|
|
||||||
+#include <stdio.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+#include <pthread.h>
|
|
||||||
+
|
|
||||||
+void *thread_function(void *arg); /* Pointer to function executed by each thread */
|
|
||||||
+
|
|
||||||
+#define NUM 5
|
|
||||||
+
|
|
||||||
+unsigned int args[NUM+1];
|
|
||||||
+
|
|
||||||
+int main() {
|
|
||||||
+ int res;
|
|
||||||
+ pthread_t threads[NUM];
|
|
||||||
+ void *thread_result;
|
|
||||||
+ long i;
|
|
||||||
+
|
|
||||||
+ for (i = 0; i < NUM; i++)
|
|
||||||
+ {
|
|
||||||
+ args[i] = 1; /* Init value. */
|
|
||||||
+ res = pthread_create(&threads[i],
|
|
||||||
+ NULL,
|
|
||||||
+ thread_function,
|
|
||||||
+ (void *) i);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ args[i] = 1;
|
|
||||||
+ thread_function ((void *) i);
|
|
||||||
+
|
|
||||||
+ exit(EXIT_SUCCESS);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void *thread_function(void *arg) {
|
|
||||||
+ int my_number = (long) arg;
|
|
||||||
+ int *myp = (int *) &args[my_number];
|
|
||||||
+
|
|
||||||
+ /* Don't run forever. Run just short of it :) */
|
|
||||||
+ while (*myp > 0)
|
|
||||||
+ {
|
|
||||||
+ (*myp) ++; usleep (1); /* Loop increment. */
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ pthread_exit(NULL);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.threads/watchthreads-threaded.exp b/gdb/testsuite/gdb.threads/watchthreads-threaded.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.threads/watchthreads-threaded.exp
|
|
||||||
@@ -0,0 +1,126 @@
|
|
||||||
+# This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+# Copyright 2005 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+# Check that GDB can support multiple watchpoints across threads.
|
|
||||||
+
|
|
||||||
+# This test verifies that a watchpoint is detected in the proper thread
|
|
||||||
+# so the test is only meaningful on a system with hardware watchpoints.
|
|
||||||
+if [target_info exists gdb,no_hardware_watchpoints] {
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set testfile "watchthreads-threaded"
|
|
||||||
+set srcfile ${testfile}.c
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+gdb_test "set can-use-hw-watchpoints 1" "" ""
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# Run to `main' where we begin our tests.
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ gdb_suppress_tests
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set args_2 0
|
|
||||||
+set args_3 0
|
|
||||||
+
|
|
||||||
+gdb_breakpoint "thread_function"
|
|
||||||
+gdb_continue_to_breakpoint "thread_function"
|
|
||||||
+gdb_test "disable 2" ""
|
|
||||||
+
|
|
||||||
+gdb_test_multiple "p args\[2\]" "get initial args2" {
|
|
||||||
+ -re "\\\$\[0-9\]* = (.*)$gdb_prompt $" {
|
|
||||||
+ set init_args_2 $expect_out(1,string)
|
|
||||||
+ pass "get initial args2"
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test_multiple "p args\[3\]" "get initial args3" {
|
|
||||||
+ -re "\\\$\[0-9\]* = (.*)$gdb_prompt $" {
|
|
||||||
+ set init_args_3 $expect_out(1,string)
|
|
||||||
+ pass "get initial args3"
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set args_2 $init_args_2
|
|
||||||
+set args_3 $init_args_3
|
|
||||||
+
|
|
||||||
+# Watch values that will be modified by distinct threads.
|
|
||||||
+gdb_test "watch args\[2\]" "Hardware watchpoint 3: args\\\[2\\\]"
|
|
||||||
+gdb_test "watch args\[3\]" "Hardware watchpoint 4: args\\\[3\\\]"
|
|
||||||
+
|
|
||||||
+set init_line [expr [gdb_get_line_number "Init value"]+1]
|
|
||||||
+set inc_line [gdb_get_line_number "Loop increment"]
|
|
||||||
+
|
|
||||||
+# Loop and continue to allow both watchpoints to be triggered.
|
|
||||||
+for {set i 0} {$i < 30} {incr i} {
|
|
||||||
+ set test_flag 0
|
|
||||||
+ gdb_test_multiple "continue" "threaded watch loop" {
|
|
||||||
+ -re "Hardware watchpoint 3: args\\\[2\\\].*Old value = 0.*New value = 1.*main \\\(\\\) at .*watchthreads-threaded.c:$init_line.*$gdb_prompt $"
|
|
||||||
+ { set args_2 1; set test_flag 1 }
|
|
||||||
+ -re "Hardware watchpoint 4: args\\\[3\\\].*Old value = 0.*New value = 1.*main \\\(\\\) at .*watchthreads-threaded.c:$init_line.*$gdb_prompt $"
|
|
||||||
+ { set args_3 1; set test_flag 1 }
|
|
||||||
+ -re "Hardware watchpoint 3: args\\\[2\\\].*Old value = $args_2.*New value = [expr $args_2+1].*in thread_function \\\(arg=0x2\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $"
|
|
||||||
+ { set args_2 [expr $args_2+1]; set test_flag 1 }
|
|
||||||
+ -re "Hardware watchpoint 4: args\\\[3\\\].*Old value = $args_3.*New value = [expr $args_3+1].*in thread_function \\\(arg=0x3\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $"
|
|
||||||
+ { set args_3 [expr $args_3+1]; set test_flag 1 }
|
|
||||||
+ }
|
|
||||||
+ # If we fail above, don't bother continuing loop
|
|
||||||
+ if { $test_flag == 0 } {
|
|
||||||
+ set i 30;
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Print success message if loop succeeded.
|
|
||||||
+if { $test_flag == 1 } {
|
|
||||||
+ pass "threaded watch loop"
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Verify that we hit first watchpoint in child thread.
|
|
||||||
+set message "watchpoint on args\[2\] hit in thread"
|
|
||||||
+if { $args_2 > 1 } {
|
|
||||||
+ pass $message
|
|
||||||
+} else {
|
|
||||||
+ fail $message
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Verify that we hit second watchpoint in child thread.
|
|
||||||
+set message "watchpoint on args\[3\] hit in thread"
|
|
||||||
+if { $args_3 > 1 } {
|
|
||||||
+ pass $message
|
|
||||||
+} else {
|
|
||||||
+ fail $message
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Verify that all watchpoint hits are accounted for.
|
|
||||||
+set message "combination of threaded watchpoints = 30 + initial values"
|
|
||||||
+if { [expr $args_2+$args_3] == [expr [expr 30+$init_args_2]+$init_args_3] } {
|
|
||||||
+ pass $message
|
|
||||||
+} else {
|
|
||||||
+ fail $message
|
|
||||||
+}
|
|
@ -44,17 +44,17 @@ glibc-debuginfo-2.7-2.x86_64: /usr/lib/debug/lib64/libc.so.6.debug:
|
|||||||
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
|
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
|
||||||
--- a/gdb/printcmd.c
|
--- a/gdb/printcmd.c
|
||||||
+++ b/gdb/printcmd.c
|
+++ b/gdb/printcmd.c
|
||||||
@@ -1210,6 +1210,10 @@ print_command_1 (const char *args, int voidprint)
|
@@ -1300,6 +1300,10 @@ process_print_command_args (const char *args, value_print_options *print_opts,
|
||||||
|
|
||||||
if (exp != nullptr && *exp)
|
if (exp != nullptr && *exp)
|
||||||
{
|
{
|
||||||
+ /* '*((int *(*) (void)) __errno_location) ()' is incompatible with
|
+ /* '*((int *(*) (void)) __errno_location) ()' is incompatible with
|
||||||
+ function descriptors. */
|
+ function descriptors. */
|
||||||
+ if (target_has_execution && strcmp (exp, "errno") == 0)
|
+ if (target_has_execution () && strcmp (exp, "errno") == 0)
|
||||||
+ exp = "*(*(int *(*)(void)) __errno_location) ()";
|
+ exp = "*(*(int *(*)(void)) __errno_location) ()";
|
||||||
expression_up expr = parse_expression (exp);
|
/* VOIDPRINT is true to indicate that we do want to print a void
|
||||||
val = evaluate_expression (expr.get ());
|
value, so invert it for parse_expression. */
|
||||||
}
|
expression_up expr = parse_expression (exp, nullptr, !voidprint);
|
||||||
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-errno.c b/gdb/testsuite/gdb.dwarf2/dw2-errno.c
|
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-errno.c b/gdb/testsuite/gdb.dwarf2/dw2-errno.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
|
@ -45,7 +45,7 @@ diff --git a/gdb/testsuite/gdb.base/step-over-trampoline.exp b/gdb/testsuite/gdb
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/step-over-trampoline.exp
|
+++ b/gdb/testsuite/gdb.base/step-over-trampoline.exp
|
||||||
@@ -0,0 +1,54 @@
|
@@ -0,0 +1,59 @@
|
||||||
+# Copyright 2006 Free Software Foundation, Inc.
|
+# Copyright 2006 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -62,6 +62,11 @@ new file mode 100644
|
|||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+if $tracelevel then {
|
+if $tracelevel then {
|
||||||
+ strace $tracelevel
|
+ strace $tracelevel
|
||||||
+}
|
+}
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
|
|
||||||
|
|
||||||
;; Fix lockup on trampoline vs. its function lookup; unreproducible (BZ 218379).
|
|
||||||
;;=fedora
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379
|
|
||||||
|
|
||||||
diff --git a/gdb/symtab.c b/gdb/symtab.c
|
|
||||||
--- a/gdb/symtab.c
|
|
||||||
+++ b/gdb/symtab.c
|
|
||||||
@@ -3169,6 +3169,13 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent)
|
|
||||||
msymbol->linkage_name ()); */
|
|
||||||
;
|
|
||||||
/* fall through */
|
|
||||||
+ /* `msymbol' trampoline may be located before its .text symbol
|
|
||||||
+ but this text symbol may be the address we were looking for.
|
|
||||||
+ Avoid `find_pc_sect_line'<->`find_pc_line' infinite loop.
|
|
||||||
+ Red Hat Bug 218379. */
|
|
||||||
+ else if (BMSYMBOL_VALUE_ADDRESS (mfunsym) == pc)
|
|
||||||
+ warning ("In stub for %s (0x%s); interlocked, please submit the binary to http://bugzilla.redhat.com", msymbol.minsym->linkage_name (), paddress (target_gdbarch (), pc));
|
|
||||||
+ /* fall through */
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Detect an obvious case of infinite recursion. If this
|
|
@ -10,7 +10,7 @@ diff --git a/gdb/testsuite/gdb.base/tracefork-zombie.exp b/gdb/testsuite/gdb.bas
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/tracefork-zombie.exp
|
+++ b/gdb/testsuite/gdb.base/tracefork-zombie.exp
|
||||||
@@ -0,0 +1,75 @@
|
@@ -0,0 +1,76 @@
|
||||||
+# Copyright 2007 Free Software Foundation, Inc.
|
+# Copyright 2007 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -28,8 +28,9 @@ new file mode 100644
|
|||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
+
|
+
|
||||||
+# are we on a target board
|
+# are we on a target board
|
||||||
+if [is_remote target] then {
|
+if {[use_gdb_stub]} {
|
||||||
+ return 0
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+# Start the program running and then wait for a bit, to be sure
|
+# Start the program running and then wait for a bit, to be sure
|
||||||
|
@ -52,7 +52,7 @@ diff --git a/gdb/testsuite/gdb.base/gcore-excessive-memory.exp b/gdb/testsuite/g
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/gcore-excessive-memory.exp
|
+++ b/gdb/testsuite/gdb.base/gcore-excessive-memory.exp
|
||||||
@@ -0,0 +1,94 @@
|
@@ -0,0 +1,99 @@
|
||||||
+# Copyright 2008 Free Software Foundation, Inc.
|
+# Copyright 2008 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -69,6 +69,11 @@ new file mode 100644
|
|||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+set testfile gcore-excessive-memory
|
+set testfile gcore-excessive-memory
|
||||||
+set srcfile ${testfile}.c
|
+set srcfile ${testfile}.c
|
||||||
+set shfile [standard_output_file ${testfile}-gdb.sh]
|
+set shfile [standard_output_file ${testfile}-gdb.sh]
|
||||||
|
@ -44,7 +44,7 @@ diff --git a/gdb/testsuite/gdb.base/unwind-leak.exp b/gdb/testsuite/gdb.base/unw
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/unwind-leak.exp
|
+++ b/gdb/testsuite/gdb.base/unwind-leak.exp
|
||||||
@@ -0,0 +1,83 @@
|
@@ -0,0 +1,88 @@
|
||||||
+# Copyright 2007 Free Software Foundation, Inc.
|
+# Copyright 2007 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -61,6 +61,11 @@ new file mode 100644
|
|||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+set testfile unwind-leak
|
+set testfile unwind-leak
|
||||||
+set srcfile ${testfile}.c
|
+set srcfile ${testfile}.c
|
||||||
+set shfile [standard_output_file ${testfile}-gdb.sh]
|
+set shfile [standard_output_file ${testfile}-gdb.sh]
|
||||||
|
@ -12,7 +12,7 @@ diff --git a/gdb/testsuite/gdb.base/readline-overflow.exp b/gdb/testsuite/gdb.ba
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/readline-overflow.exp
|
+++ b/gdb/testsuite/gdb.base/readline-overflow.exp
|
||||||
@@ -0,0 +1,104 @@
|
@@ -0,0 +1,96 @@
|
||||||
+# Copyright 2006 Free Software Foundation, Inc.
|
+# Copyright 2006 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -46,20 +46,12 @@ new file mode 100644
|
|||||||
+
|
+
|
||||||
+global env
|
+global env
|
||||||
+
|
+
|
||||||
+save_vars { env(INPUTRC) env(GDBHISTFILE) env(HISTSIZE) TERM timeout } {
|
+save_vars { env(GDBHISTFILE) env(HISTSIZE) TERM timeout } {
|
||||||
+ # The arrow key test relies on the standard VT100 bindings, so
|
+ # The arrow key test relies on the standard VT100 bindings, so
|
||||||
+ # make sure that an appropriate terminal is selected. The same
|
+ # make sure that an appropriate terminal is selected. The same
|
||||||
+ # bug doesn't show up if we use ^P / ^N instead.
|
+ # bug doesn't show up if we use ^P / ^N instead.
|
||||||
+ setenv TERM vt100
|
+ setenv TERM vt100
|
||||||
+
|
+
|
||||||
+ # Don't let a .inputrc file or an existing setting of INPUTRC mess up
|
|
||||||
+ # the test results. Even if /dev/null doesn't exist on the particular
|
|
||||||
+ # platform, the readline library will use the default setting just by
|
|
||||||
+ # failing to open the file. OTOH, opening /dev/null successfully will
|
|
||||||
+ # also result in the default settings being used since nothing will be
|
|
||||||
+ # read from this file.
|
|
||||||
+ set env(INPUTRC) "/dev/null"
|
|
||||||
+
|
|
||||||
+ set timeout 600
|
+ set timeout 600
|
||||||
+
|
+
|
||||||
+ set env(GDBHISTFILE) "${srcdir}/${subdir}/gdb_history"
|
+ set env(GDBHISTFILE) "${srcdir}/${subdir}/gdb_history"
|
||||||
|
@ -68,7 +68,7 @@ diff --git a/gdb/testsuite/gdb.base/datalib.exp b/gdb/testsuite/gdb.base/datalib
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/datalib.exp
|
+++ b/gdb/testsuite/gdb.base/datalib.exp
|
||||||
@@ -0,0 +1,51 @@
|
@@ -0,0 +1,56 @@
|
||||||
+# Copyright 2008 Free Software Foundation, Inc.
|
+# Copyright 2008 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -85,6 +85,11 @@ new file mode 100644
|
|||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of use_gdb_stub"
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+set testfile datalib
|
+set testfile datalib
|
||||||
+set srcfilemain ${testfile}-main.c
|
+set srcfilemain ${testfile}-main.c
|
||||||
+set srcfilelib ${testfile}-lib.c
|
+set srcfilelib ${testfile}-lib.c
|
||||||
|
@ -33,7 +33,7 @@ diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug-main.c b/gdb/testsuite/gdb.t
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.threads/tls-sepdebug-main.c
|
+++ b/gdb/testsuite/gdb.threads/tls-sepdebug-main.c
|
||||||
@@ -0,0 +1,25 @@
|
@@ -0,0 +1,31 @@
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
+/* This testcase is part of GDB, the GNU debugger.
|
||||||
+
|
+
|
||||||
+ Copyright 2006 Free Software Foundation, Inc.
|
+ Copyright 2006 Free Software Foundation, Inc.
|
||||||
@ -55,9 +55,15 @@ new file mode 100644
|
|||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
+ Please email any bugs, comments, and/or additions to this file to:
|
||||||
+ bug-gdb@prep.ai.mit.edu */
|
+ bug-gdb@prep.ai.mit.edu */
|
||||||
+
|
+
|
||||||
|
+#include <pthread.h>
|
||||||
|
+
|
||||||
|
+extern __thread int var;
|
||||||
|
+
|
||||||
+int main()
|
+int main()
|
||||||
+{
|
+{
|
||||||
+ return 0;
|
+ /* Ensure we link against pthreads even with --as-needed. */
|
||||||
|
+ pthread_testcancel();
|
||||||
|
+ return var;
|
||||||
+}
|
+}
|
||||||
diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c b/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c
|
diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c b/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
@ -90,7 +96,7 @@ diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug.exp b/gdb/testsuite/gdb.thre
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.threads/tls-sepdebug.exp
|
+++ b/gdb/testsuite/gdb.threads/tls-sepdebug.exp
|
||||||
@@ -0,0 +1,87 @@
|
@@ -0,0 +1,94 @@
|
||||||
+# Copyright 2006 Free Software Foundation, Inc.
|
+# Copyright 2006 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -107,6 +113,13 @@ new file mode 100644
|
|||||||
+# along with this program; if not, write to the Free Software
|
+# along with this program; if not, write to the Free Software
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
+
|
+
|
||||||
|
+# This test uses gdb_exit and gdb_start, which are not supported
|
||||||
|
+# on non-extended-remote sessions.
|
||||||
|
+if {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping test because of stub"
|
||||||
|
+ return 0
|
||||||
|
+}
|
||||||
|
+
|
||||||
+if $tracelevel then {
|
+if $tracelevel then {
|
||||||
+ strace $tracelevel
|
+ strace $tracelevel
|
||||||
+}
|
+}
|
||||||
|
@ -1,196 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.6-buildid-locate-core-as-arg.patch
|
|
||||||
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2010-01/msg00558.html
|
|
||||||
|
|
||||||
[ Fixed up since the mail. ]
|
|
||||||
|
|
||||||
On Thu, 21 Jan 2010 18:17:15 +0100, Doug Evans wrote:
|
|
||||||
> Not an exhaustive list, but if we go down the path of converting "gdb
|
|
||||||
> corefile" to "gdb -c corefile", then we also need to think about "file
|
|
||||||
> corefile" being converted to "core corefile" [or "target core
|
|
||||||
> corefile", "core" is apparently deprecated in favor of "target core"]
|
|
||||||
> and "target exec corefile" -> "target core corefile". Presumably
|
|
||||||
> "file corefile" (and "target exec corefile") would discard the
|
|
||||||
> currently selected executable. But maybe not. Will that be confusing
|
|
||||||
> for users? I don't know.
|
|
||||||
|
|
||||||
While thinking about it overriding some GDB _commands_ was not my intention.
|
|
||||||
|
|
||||||
There is a general assumption if I have a shell COMMAND and some FILE I can do
|
|
||||||
$ COMMAND FILE
|
|
||||||
and COMMAND will appropriately load the FILE.
|
|
||||||
|
|
||||||
FSF GDB currently needs to specify also the executable file for core files
|
|
||||||
which already inhibits this intuitive expectation. OTOH with the build-id
|
|
||||||
locating patch which could allow such intuitive start notneeding the
|
|
||||||
executable file. Still it currently did not work due to the required "-c":
|
|
||||||
$ COMMAND -c COREFILE
|
|
||||||
|
|
||||||
Entering "file", "core-file" or "attach" commands is already explicit enough
|
|
||||||
so that it IMO should do what the command name says without any
|
|
||||||
autodetections. The second command line argument
|
|
||||||
(captured_main->pid_or_core_arg) is also autodetected (for PID or CORE) but
|
|
||||||
neither "attach" accepts a core file nor "core-file" accepts a PID.
|
|
||||||
|
|
||||||
The patch makes sense only with the build-id patchset so this is not submit
|
|
||||||
for FSF GDB inclusion yet. I am fine with your patch (+/- Hui Zhu's pending
|
|
||||||
bfd_check_format_matches) as the patch below is its natural extension.
|
|
||||||
|
|
||||||
Sorry for the delay,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
2010-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* exceptions.h (enum errors <IS_CORE_ERROR>): New.
|
|
||||||
* exec.c: Include exceptions.h.
|
|
||||||
(exec_file_attach <bfd_core>): Call throw_error (IS_CORE_ERROR, ...).
|
|
||||||
* main.c (exec_or_core_file_attach): New.
|
|
||||||
(captured_main <optind < argc>): Set also corearg.
|
|
||||||
(captured_main <strcmp (execarg, symarg) == 0>): New variable func.
|
|
||||||
Call exec_or_core_file_attach if COREARG matches EXECARG. Call
|
|
||||||
symbol_file_add_main only if CORE_BFD remained NULL.
|
|
||||||
|
|
||||||
Http://sourceware.org/ml/gdb-patches/2010-01/msg00517.html
|
|
||||||
2010-01-20 Doug Evans <dje@google.com>
|
|
||||||
|
|
||||||
* exec.c (exec_file_attach): Print a more useful error message if the
|
|
||||||
user did "gdb core".
|
|
||||||
|
|
||||||
diff --git a/gdb/exec.c b/gdb/exec.c
|
|
||||||
--- a/gdb/exec.c
|
|
||||||
+++ b/gdb/exec.c
|
|
||||||
@@ -18,6 +18,8 @@
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
|
|
||||||
#include "defs.h"
|
|
||||||
+#include "arch-utils.h"
|
|
||||||
+#include "exceptions.h"
|
|
||||||
#include "frame.h"
|
|
||||||
#include "inferior.h"
|
|
||||||
#include "target.h"
|
|
||||||
@@ -495,12 +497,27 @@ exec_file_attach (const char *filename, int from_tty)
|
|
||||||
|
|
||||||
if (!bfd_check_format_matches (exec_bfd, bfd_object, &matching))
|
|
||||||
{
|
|
||||||
+ int is_core;
|
|
||||||
+
|
|
||||||
+ /* If the user accidentally did "gdb core", print a useful
|
|
||||||
+ error message. Check it only after bfd_object has been checked as
|
|
||||||
+ a valid executable may get recognized for example also as
|
|
||||||
+ "trad-core". */
|
|
||||||
+ is_core = bfd_check_format (exec_bfd, bfd_core);
|
|
||||||
+
|
|
||||||
/* Make sure to close exec_bfd, or else "run" might try to use
|
|
||||||
it. */
|
|
||||||
exec_close ();
|
|
||||||
- error (_("\"%ps\": not in executable format: %s"),
|
|
||||||
- styled_string (file_name_style.style (), scratch_pathname),
|
|
||||||
- gdb_bfd_errmsg (bfd_get_error (), matching).c_str ());
|
|
||||||
+
|
|
||||||
+ if (is_core != 0)
|
|
||||||
+ throw_error (IS_CORE_ERROR,
|
|
||||||
+ _("\"%s\" is a core file.\n"
|
|
||||||
+ "Please specify an executable to debug."),
|
|
||||||
+ scratch_pathname);
|
|
||||||
+ else
|
|
||||||
+ error (_("\"%ps\": not in executable format: %s"),
|
|
||||||
+ styled_string (file_name_style.style (), scratch_pathname),
|
|
||||||
+ gdb_bfd_errmsg (bfd_get_error (), matching).c_str ());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (build_section_table (exec_bfd, §ions, §ions_end))
|
|
||||||
diff --git a/gdb/main.c b/gdb/main.c
|
|
||||||
--- a/gdb/main.c
|
|
||||||
+++ b/gdb/main.c
|
|
||||||
@@ -524,6 +524,34 @@ struct cmdarg
|
|
||||||
char *string;
|
|
||||||
};
|
|
||||||
|
|
||||||
+/* Call exec_file_attach. If it detected FILENAME is a core file call
|
|
||||||
+ core_file_command. Print the original exec_file_attach error only if
|
|
||||||
+ core_file_command failed to find a matching executable. */
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+exec_or_core_file_attach (const char *filename, int from_tty)
|
|
||||||
+{
|
|
||||||
+ gdb_assert (exec_bfd == NULL);
|
|
||||||
+
|
|
||||||
+ try
|
|
||||||
+ {
|
|
||||||
+ exec_file_attach (filename, from_tty);
|
|
||||||
+ }
|
|
||||||
+ catch (gdb_exception_error &e)
|
|
||||||
+ {
|
|
||||||
+ if (e.error == IS_CORE_ERROR)
|
|
||||||
+ {
|
|
||||||
+ core_file_command ((char *) filename, from_tty);
|
|
||||||
+
|
|
||||||
+ /* Iff the core file found its executable suppress the error message
|
|
||||||
+ from exec_file_attach. */
|
|
||||||
+ if (exec_bfd != NULL)
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+ throw_exception (std::move (e));
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
static void
|
|
||||||
captured_main_1 (struct captured_main_args *context)
|
|
||||||
{
|
|
||||||
@@ -959,6 +987,8 @@ captured_main_1 (struct captured_main_args *context)
|
|
||||||
{
|
|
||||||
symarg = argv[optind];
|
|
||||||
execarg = argv[optind];
|
|
||||||
+ if (optind + 1 == argc && corearg == NULL)
|
|
||||||
+ corearg = argv[optind];
|
|
||||||
optind++;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1114,12 +1144,25 @@ captured_main_1 (struct captured_main_args *context)
|
|
||||||
&& symarg != NULL
|
|
||||||
&& strcmp (execarg, symarg) == 0)
|
|
||||||
{
|
|
||||||
+ catch_command_errors_const_ftype *func;
|
|
||||||
+
|
|
||||||
+ /* Call exec_or_core_file_attach only if the file was specified as
|
|
||||||
+ a command line argument (and not an a command line option). */
|
|
||||||
+ if (corearg != NULL && strcmp (corearg, execarg) == 0)
|
|
||||||
+ {
|
|
||||||
+ func = exec_or_core_file_attach;
|
|
||||||
+ corearg = NULL;
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ func = exec_file_attach;
|
|
||||||
+
|
|
||||||
/* The exec file and the symbol-file are the same. If we can't
|
|
||||||
open it, better only print one error message.
|
|
||||||
- catch_command_errors returns non-zero on success! */
|
|
||||||
- ret = catch_command_errors (exec_file_attach, execarg,
|
|
||||||
- !batch_flag);
|
|
||||||
- if (ret != 0)
|
|
||||||
+ catch_command_errors returns non-zero on success!
|
|
||||||
+ Do not load EXECARG as a symbol file if it has been already processed
|
|
||||||
+ as a core file. */
|
|
||||||
+ ret = catch_command_errors (func, execarg, !batch_flag);
|
|
||||||
+ if (ret != 0 && core_bfd == NULL)
|
|
||||||
ret = catch_command_errors (symbol_file_add_main_adapter,
|
|
||||||
symarg, !batch_flag);
|
|
||||||
}
|
|
||||||
diff --git a/gdbsupport/common-exceptions.h b/gdbsupport/common-exceptions.h
|
|
||||||
--- a/gdbsupport/common-exceptions.h
|
|
||||||
+++ b/gdbsupport/common-exceptions.h
|
|
||||||
@@ -106,6 +106,9 @@ enum errors {
|
|
||||||
"_ERROR" is appended to the name. */
|
|
||||||
MAX_COMPLETIONS_REACHED_ERROR,
|
|
||||||
|
|
||||||
+ /* Attempt to load a core file as executable. */
|
|
||||||
+ IS_CORE_ERROR,
|
|
||||||
+
|
|
||||||
/* Add more errors here. */
|
|
||||||
NR_ERRORS
|
|
||||||
};
|
|
@ -6,29 +6,6 @@ Subject: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
|||||||
;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
|
;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
|
||||||
;;=push+jan
|
;;=push+jan
|
||||||
|
|
||||||
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
|
||||||
--- a/gdb/build-id.c
|
|
||||||
+++ b/gdb/build-id.c
|
|
||||||
@@ -708,6 +708,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return)
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
|
|
||||||
+ librpm must not exit() an application on SIGINT
|
|
||||||
+
|
|
||||||
+ Enable or disable a signal handler. SIGNUM: signal to enable (or disable
|
|
||||||
+ if negative). HANDLER: sa_sigaction handler (or NULL to use
|
|
||||||
+ rpmsqHandler()). Returns: no. of refs, -1 on error. */
|
|
||||||
+extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
|
|
||||||
+int
|
|
||||||
+rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
|
|
||||||
+{
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
/* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
|
|
||||||
and avoid their duplicities during a single inferior run. */
|
|
||||||
|
|
||||||
diff --git a/gdb/proc-service.list b/gdb/proc-service.list
|
diff --git a/gdb/proc-service.list b/gdb/proc-service.list
|
||||||
--- a/gdb/proc-service.list
|
--- a/gdb/proc-service.list
|
||||||
+++ b/gdb/proc-service.list
|
+++ b/gdb/proc-service.list
|
||||||
|
@ -1,128 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.6-buildid-locate-rpm-scl.patch
|
|
||||||
|
|
||||||
;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585).
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
warning: Skipping deprecated .gdb_index section
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=953585
|
|
||||||
|
|
||||||
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
|
||||||
--- a/gdb/build-id.c
|
|
||||||
+++ b/gdb/build-id.c
|
|
||||||
@@ -742,7 +742,11 @@ static int missing_rpm_list_entries;
|
|
||||||
/* Returns the count of newly added rpms. */
|
|
||||||
|
|
||||||
static int
|
|
||||||
+#ifndef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
missing_rpm_enlist (const char *filename)
|
|
||||||
+#else
|
|
||||||
+missing_rpm_enlist_1 (const char *filename, int verify_vendor)
|
|
||||||
+#endif
|
|
||||||
{
|
|
||||||
static int rpm_init_done = 0;
|
|
||||||
rpmts ts;
|
|
||||||
@@ -849,7 +853,11 @@ missing_rpm_enlist (const char *filename)
|
|
||||||
mi = rpmtsInitIterator_p (ts, RPMTAG_BASENAMES, filename, 0);
|
|
||||||
if (mi != NULL)
|
|
||||||
{
|
|
||||||
+#ifndef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
for (;;)
|
|
||||||
+#else
|
|
||||||
+ if (!verify_vendor) for (;;)
|
|
||||||
+#endif
|
|
||||||
{
|
|
||||||
Header h;
|
|
||||||
char *debuginfo, **slot, *s, *s2;
|
|
||||||
@@ -967,6 +975,37 @@ missing_rpm_enlist (const char *filename)
|
|
||||||
xfree (debuginfo);
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
+ else /* verify_vendor */
|
|
||||||
+ {
|
|
||||||
+ int vendor_pass = 0, vendor_fail = 0;
|
|
||||||
+
|
|
||||||
+ for (;;)
|
|
||||||
+ {
|
|
||||||
+ Header h;
|
|
||||||
+ errmsg_t err;
|
|
||||||
+ char *vendor;
|
|
||||||
+
|
|
||||||
+ h = rpmdbNextIterator_p (mi);
|
|
||||||
+ if (h == NULL)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
+ vendor = headerFormat_p (h, "%{vendor}", &err);
|
|
||||||
+ if (!vendor)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
||||||
+ err);
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ if (strcmp (vendor, "Red Hat, Inc.") == 0)
|
|
||||||
+ vendor_pass = 1;
|
|
||||||
+ else
|
|
||||||
+ vendor_fail = 1;
|
|
||||||
+ xfree (vendor);
|
|
||||||
+ }
|
|
||||||
+ count = vendor_pass != 0 && vendor_fail == 0;
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
rpmdbFreeIterator_p (mi);
|
|
||||||
}
|
|
||||||
@@ -976,6 +1015,20 @@ missing_rpm_enlist (const char *filename)
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
+missing_rpm_enlist (const char *filename)
|
|
||||||
+{
|
|
||||||
+ return missing_rpm_enlist_1 (filename, 0);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+extern int rpm_verify_vendor (const char *filename);
|
|
||||||
+int
|
|
||||||
+rpm_verify_vendor (const char *filename)
|
|
||||||
+{
|
|
||||||
+ return missing_rpm_enlist_1 (filename, 1);
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
static bool
|
|
||||||
missing_rpm_list_compar (const char *ap, const char *bp)
|
|
||||||
{
|
|
||||||
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
|
|
||||||
--- a/gdb/dwarf2/read.c
|
|
||||||
+++ b/gdb/dwarf2/read.c
|
|
||||||
@@ -3025,6 +3025,16 @@ read_gdb_index_from_buffer (const char *filename,
|
|
||||||
"set use-deprecated-index-sections on". */
|
|
||||||
if (version < 6 && !deprecated_ok)
|
|
||||||
{
|
|
||||||
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
+ extern int rpm_verify_vendor (const char *filename);
|
|
||||||
+
|
|
||||||
+ /* Red Hat Developer Toolset exception. */
|
|
||||||
+ if (rpm_verify_vendor (filename))
|
|
||||||
+ {}
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
static int warning_printed = 0;
|
|
||||||
if (!warning_printed)
|
|
||||||
{
|
|
||||||
@@ -3036,6 +3046,10 @@ to use the section anyway."),
|
|
||||||
warning_printed = 1;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
+#ifdef GDB_INDEX_VERIFY_VENDOR
|
|
||||||
+
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
/* Version 7 indices generated by gold refer to the CU for a symbol instead
|
|
||||||
of the TU (for symbols coming from TUs),
|
|
@ -1,6 +1,6 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
From: Kevin Buettner <kevinb@redhat.com>
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
Date: Wed, 22 Feb 2023 22:30:40 -0700
|
||||||
Subject: gdb-6.6-buildid-locate-rpm.patch
|
Subject: gdb-6.6-buildid-locate-rpm.patch
|
||||||
|
|
||||||
;;=push+jan
|
;;=push+jan
|
||||||
@ -235,454 +235,37 @@ diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
|
|||||||
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
||||||
--- a/gdb/build-id.c
|
--- a/gdb/build-id.c
|
||||||
+++ b/gdb/build-id.c
|
+++ b/gdb/build-id.c
|
||||||
@@ -33,6 +33,7 @@
|
@@ -771,10 +771,10 @@ missing_rpm_enlist_1 (const char *filename, int verify_vendor)
|
||||||
#include "gdb_bfd.h"
|
static rpmts (*rpmtsCreate_p) (void);
|
||||||
#include "gdbcmd.h"
|
extern rpmts rpmtsFree(rpmts ts);
|
||||||
#include "gdbcore.h"
|
static rpmts (*rpmtsFree_p) (rpmts ts);
|
||||||
+#include "inferior.h"
|
- extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
||||||
#include "objfiles.h"
|
+ extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
|
||||||
#include "observable.h"
|
const void * keyp, size_t keylen);
|
||||||
#include "symfile.h"
|
static rpmdbMatchIterator (*rpmtsInitIterator_p) (const rpmts ts,
|
||||||
@@ -697,8 +698,374 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return)
|
- rpmTag rpmtag,
|
||||||
return result;
|
+ rpmDbiTagVal rpmtag,
|
||||||
}
|
const void *keyp,
|
||||||
|
size_t keylen);
|
||||||
+#ifdef HAVE_LIBRPM
|
#else /* !DLOPEN_LIBRPM */
|
||||||
+
|
@@ -829,7 +829,7 @@ missing_rpm_enlist_1 (const char *filename, int verify_vendor)
|
||||||
+#include <rpm/rpmlib.h>
|
&& (rpmdbNextIterator_p = (Header (*) (rpmdbMatchIterator mi)) dlsym (h, "rpmdbNextIterator"))
|
||||||
+#include <rpm/rpmts.h>
|
&& (rpmtsCreate_p = (rpmts (*) (void)) dlsym (h, "rpmtsCreate"))
|
||||||
+#include <rpm/rpmdb.h>
|
&& (rpmtsFree_p = (rpmts (*) (rpmts ts)) dlsym (h, "rpmtsFree"))
|
||||||
+#include <rpm/header.h>
|
- && (rpmtsInitIterator_p = (rpmdbMatchIterator (*) (const rpmts ts, rpmTag rpmtag, const void *keyp, size_t keylen)) dlsym (h, "rpmtsInitIterator"))))
|
||||||
+#ifdef DLOPEN_LIBRPM
|
+ && (rpmtsInitIterator_p = (rpmdbMatchIterator (*) (const rpmts ts, rpmDbiTagVal rpmtag, const void *keyp, size_t keylen)) dlsym (h, "rpmtsInitIterator"))))
|
||||||
+#include <dlfcn.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+/* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
|
|
||||||
+ and avoid their duplicities during a single inferior run. */
|
|
||||||
+
|
|
||||||
+static struct htab *missing_rpm_hash;
|
|
||||||
+
|
|
||||||
+/* This MISSING_RPM_LIST tracker is used to collect and print as a single line
|
|
||||||
+ all the rpms right before the nearest GDB prompt. It gets cleared after
|
|
||||||
+ each such print (it is questionable if we should clear it after the print).
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+struct missing_rpm
|
|
||||||
+ {
|
|
||||||
+ struct missing_rpm *next;
|
|
||||||
+ char rpm[1];
|
|
||||||
+ };
|
|
||||||
+static struct missing_rpm *missing_rpm_list;
|
|
||||||
+static int missing_rpm_list_entries;
|
|
||||||
+
|
|
||||||
+/* Returns the count of newly added rpms. */
|
|
||||||
+
|
|
||||||
+static int
|
|
||||||
+missing_rpm_enlist (const char *filename)
|
|
||||||
+{
|
|
||||||
+ static int rpm_init_done = 0;
|
|
||||||
+ rpmts ts;
|
|
||||||
+ rpmdbMatchIterator mi;
|
|
||||||
+ int count = 0;
|
|
||||||
+
|
|
||||||
+#ifdef DLOPEN_LIBRPM
|
|
||||||
+ /* Duplicate here the declarations to verify they match. The same sanity
|
|
||||||
+ check is present also in `configure.ac'. */
|
|
||||||
+ extern char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg);
|
|
||||||
+ static char *(*headerFormat_p) (Header h, const char * fmt, errmsg_t *errmsg);
|
|
||||||
+ extern int rpmReadConfigFiles(const char * file, const char * target);
|
|
||||||
+ static int (*rpmReadConfigFiles_p) (const char * file, const char * target);
|
|
||||||
+ extern rpmdbMatchIterator rpmdbFreeIterator(rpmdbMatchIterator mi);
|
|
||||||
+ static rpmdbMatchIterator (*rpmdbFreeIterator_p) (rpmdbMatchIterator mi);
|
|
||||||
+ extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
|
||||||
+ static Header (*rpmdbNextIterator_p) (rpmdbMatchIterator mi);
|
|
||||||
+ extern rpmts rpmtsCreate(void);
|
|
||||||
+ static rpmts (*rpmtsCreate_p) (void);
|
|
||||||
+ extern rpmts rpmtsFree(rpmts ts);
|
|
||||||
+ static rpmts (*rpmtsFree_p) (rpmts ts);
|
|
||||||
+ extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
|
||||||
+ const void * keyp, size_t keylen);
|
|
||||||
+ static rpmdbMatchIterator (*rpmtsInitIterator_p) (const rpmts ts,
|
|
||||||
+ rpmTag rpmtag,
|
|
||||||
+ const void *keyp,
|
|
||||||
+ size_t keylen);
|
|
||||||
+#else /* !DLOPEN_LIBRPM */
|
|
||||||
+# define headerFormat_p headerFormat
|
|
||||||
+# define rpmReadConfigFiles_p rpmReadConfigFiles
|
|
||||||
+# define rpmdbFreeIterator_p rpmdbFreeIterator
|
|
||||||
+# define rpmdbNextIterator_p rpmdbNextIterator
|
|
||||||
+# define rpmtsCreate_p rpmtsCreate
|
|
||||||
+# define rpmtsFree_p rpmtsFree
|
|
||||||
+# define rpmtsInitIterator_p rpmtsInitIterator
|
|
||||||
+#endif /* !DLOPEN_LIBRPM */
|
|
||||||
+
|
|
||||||
+ gdb_assert (filename != NULL);
|
|
||||||
+
|
|
||||||
+ if (strcmp (filename, BUILD_ID_MAIN_EXECUTABLE_FILENAME) == 0)
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
+ if (is_target_filename (filename))
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
+ if (filename[0] != '/')
|
|
||||||
+ {
|
|
||||||
+ warning (_("Ignoring non-absolute filename: <%s>"), filename);
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!rpm_init_done)
|
|
||||||
+ {
|
|
||||||
+ static int init_tried;
|
|
||||||
+
|
|
||||||
+ /* Already failed the initialization before? */
|
|
||||||
+ if (init_tried)
|
|
||||||
+ return 0;
|
|
||||||
+ init_tried = 1;
|
|
||||||
+
|
|
||||||
+#ifdef DLOPEN_LIBRPM
|
|
||||||
+ {
|
|
||||||
+ void *h;
|
|
||||||
+
|
|
||||||
+ h = dlopen (DLOPEN_LIBRPM, RTLD_LAZY);
|
|
||||||
+ if (!h)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Unable to open \"%s\" (%s), "
|
|
||||||
+ "missing debuginfos notifications will not be displayed"),
|
|
||||||
+ DLOPEN_LIBRPM, dlerror ());
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!((headerFormat_p = (char *(*) (Header h, const char * fmt, errmsg_t *errmsg)) dlsym (h, "headerFormat"))
|
|
||||||
+ && (rpmReadConfigFiles_p = (int (*) (const char * file, const char * target)) dlsym (h, "rpmReadConfigFiles"))
|
|
||||||
+ && (rpmdbFreeIterator_p = (rpmdbMatchIterator (*) (rpmdbMatchIterator mi)) dlsym (h, "rpmdbFreeIterator"))
|
|
||||||
+ && (rpmdbNextIterator_p = (Header (*) (rpmdbMatchIterator mi)) dlsym (h, "rpmdbNextIterator"))
|
|
||||||
+ && (rpmtsCreate_p = (rpmts (*) (void)) dlsym (h, "rpmtsCreate"))
|
|
||||||
+ && (rpmtsFree_p = (rpmts (*) (rpmts ts)) dlsym (h, "rpmtsFree"))
|
|
||||||
+ && (rpmtsInitIterator_p = (rpmdbMatchIterator (*) (const rpmts ts, rpmTag rpmtag, const void *keyp, size_t keylen)) dlsym (h, "rpmtsInitIterator"))))
|
|
||||||
+ {
|
|
||||||
+ warning (_("Opened library \"%s\" is incompatible (%s), "
|
|
||||||
+ "missing debuginfos notifications will not be displayed"),
|
|
||||||
+ DLOPEN_LIBRPM, dlerror ());
|
|
||||||
+ if (dlclose (h))
|
|
||||||
+ warning (_("Error closing library \"%s\": %s\n"), DLOPEN_LIBRPM,
|
|
||||||
+ dlerror ());
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+#endif /* DLOPEN_LIBRPM */
|
|
||||||
+
|
|
||||||
+ if (rpmReadConfigFiles_p (NULL, NULL) != 0)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Error reading the rpm configuration files"));
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ rpm_init_done = 1;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ ts = rpmtsCreate_p ();
|
|
||||||
+
|
|
||||||
+ mi = rpmtsInitIterator_p (ts, RPMTAG_BASENAMES, filename, 0);
|
|
||||||
+ if (mi != NULL)
|
|
||||||
+ {
|
|
||||||
+ for (;;)
|
|
||||||
+ {
|
|
||||||
+ Header h;
|
|
||||||
+ char *debuginfo, **slot, *s, *s2;
|
|
||||||
+ errmsg_t err;
|
|
||||||
+ size_t srcrpmlen = sizeof (".src.rpm") - 1;
|
|
||||||
+ size_t debuginfolen = sizeof ("-debuginfo") - 1;
|
|
||||||
+ rpmdbMatchIterator mi_debuginfo;
|
|
||||||
+
|
|
||||||
+ h = rpmdbNextIterator_p (mi);
|
|
||||||
+ if (h == NULL)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
+ /* Verify the debuginfo file is not already installed. */
|
|
||||||
+
|
|
||||||
+ debuginfo = headerFormat_p (h, "%{sourcerpm}-debuginfo.%{arch}",
|
|
||||||
+ &err);
|
|
||||||
+ if (!debuginfo)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
||||||
+ err);
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ /* s = `.src.rpm-debuginfo.%{arch}' */
|
|
||||||
+ s = strrchr (debuginfo, '-') - srcrpmlen;
|
|
||||||
+ s2 = NULL;
|
|
||||||
+ if (s > debuginfo && memcmp (s, ".src.rpm", srcrpmlen) == 0)
|
|
||||||
+ {
|
|
||||||
+ /* s2 = `-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
||||||
+ s2 = (char *) memrchr (debuginfo, '-', s - debuginfo);
|
|
||||||
+ }
|
|
||||||
+ if (s2)
|
|
||||||
+ {
|
|
||||||
+ /* s2 = `-%{version}-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
||||||
+ s2 = (char *) memrchr (debuginfo, '-', s2 - debuginfo);
|
|
||||||
+ }
|
|
||||||
+ if (!s2)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
||||||
+ debuginfo);
|
|
||||||
+ xfree (debuginfo);
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ /* s = `.src.rpm-debuginfo.%{arch}' */
|
|
||||||
+ /* s2 = `-%{version}-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
||||||
+ memmove (s2 + debuginfolen, s2, s - s2);
|
|
||||||
+ memcpy (s2, "-debuginfo", debuginfolen);
|
|
||||||
+ /* s = `XXXX.%{arch}' */
|
|
||||||
+ /* strlen ("XXXX") == srcrpmlen + debuginfolen */
|
|
||||||
+ /* s2 = `-debuginfo-%{version}-%{release}XX.%{arch}' */
|
|
||||||
+ /* strlen ("XX") == srcrpmlen */
|
|
||||||
+ memmove (s + debuginfolen, s + srcrpmlen + debuginfolen,
|
|
||||||
+ strlen (s + srcrpmlen + debuginfolen) + 1);
|
|
||||||
+ /* s = `-debuginfo-%{version}-%{release}.%{arch}' */
|
|
||||||
+
|
|
||||||
+ /* RPMDBI_PACKAGES requires keylen == sizeof (int). */
|
|
||||||
+ /* RPMDBI_LABEL is an interface for NVR-based dbiFindByLabel(). */
|
|
||||||
+ mi_debuginfo = rpmtsInitIterator_p (ts, (rpmTag) RPMDBI_LABEL, debuginfo, 0);
|
|
||||||
+ xfree (debuginfo);
|
|
||||||
+ if (mi_debuginfo)
|
|
||||||
+ {
|
|
||||||
+ rpmdbFreeIterator_p (mi_debuginfo);
|
|
||||||
+ count = 0;
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* The allocated memory gets utilized below for MISSING_RPM_HASH. */
|
|
||||||
+ debuginfo = headerFormat_p (h,
|
|
||||||
+ "%{name}-%{version}-%{release}.%{arch}",
|
|
||||||
+ &err);
|
|
||||||
+ if (!debuginfo)
|
|
||||||
+ {
|
|
||||||
+ warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
||||||
+ err);
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* Base package name for `debuginfo-install'. We do not use the
|
|
||||||
+ `yum' command directly as the line
|
|
||||||
+ yum --enablerepo='*debug*' install NAME-debuginfo.ARCH
|
|
||||||
+ would be more complicated than just:
|
|
||||||
+ debuginfo-install NAME-VERSION-RELEASE.ARCH
|
|
||||||
+ Do not supply the rpm base name (derived from .src.rpm name) as
|
|
||||||
+ debuginfo-install is unable to install the debuginfo package if
|
|
||||||
+ the base name PKG binary rpm is not installed while for example
|
|
||||||
+ PKG-libs would be installed (RH Bug 467901).
|
|
||||||
+ FUTURE: After multiple debuginfo versions simultaneously installed
|
|
||||||
+ get supported the support for the VERSION-RELEASE tags handling
|
|
||||||
+ may need an update. */
|
|
||||||
+
|
|
||||||
+ if (missing_rpm_hash == NULL)
|
|
||||||
+ {
|
|
||||||
+ /* DEL_F is passed NULL as MISSING_RPM_LIST's HTAB_DELETE
|
|
||||||
+ should not deallocate the entries. */
|
|
||||||
+
|
|
||||||
+ missing_rpm_hash = htab_create_alloc (64, htab_hash_string,
|
|
||||||
+ (int (*) (const void *, const void *)) streq,
|
|
||||||
+ NULL, xcalloc, xfree);
|
|
||||||
+ }
|
|
||||||
+ slot = (char **) htab_find_slot (missing_rpm_hash, debuginfo, INSERT);
|
|
||||||
+ /* XCALLOC never returns NULL. */
|
|
||||||
+ gdb_assert (slot != NULL);
|
|
||||||
+ if (*slot == NULL)
|
|
||||||
+ {
|
|
||||||
+ struct missing_rpm *missing_rpm;
|
|
||||||
+
|
|
||||||
+ *slot = debuginfo;
|
|
||||||
+
|
|
||||||
+ missing_rpm = (struct missing_rpm *) xmalloc (sizeof (*missing_rpm) + strlen (debuginfo));
|
|
||||||
+ strcpy (missing_rpm->rpm, debuginfo);
|
|
||||||
+ missing_rpm->next = missing_rpm_list;
|
|
||||||
+ missing_rpm_list = missing_rpm;
|
|
||||||
+ missing_rpm_list_entries++;
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ xfree (debuginfo);
|
|
||||||
+ count++;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ rpmdbFreeIterator_p (mi);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ rpmtsFree_p (ts);
|
|
||||||
+
|
|
||||||
+ return count;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static bool
|
|
||||||
+missing_rpm_list_compar (const char *ap, const char *bp)
|
|
||||||
+{
|
|
||||||
+ return strcoll (ap, bp) < 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+/* It returns a NULL-terminated array of strings needing to be FREEd. It may
|
|
||||||
+ also return only NULL. */
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+missing_rpm_list_print (void)
|
|
||||||
+{
|
|
||||||
+ struct missing_rpm *list_iter;
|
|
||||||
+
|
|
||||||
+ if (missing_rpm_list_entries == 0)
|
|
||||||
+ return;
|
|
||||||
+
|
|
||||||
+ std::vector<const char *> array (missing_rpm_list_entries);
|
|
||||||
+ size_t idx = 0;
|
|
||||||
+
|
|
||||||
+ for (list_iter = missing_rpm_list; list_iter != NULL;
|
|
||||||
+ list_iter = list_iter->next)
|
|
||||||
+ {
|
|
||||||
+ array[idx++] = list_iter->rpm;
|
|
||||||
+ }
|
|
||||||
+ gdb_assert (idx == missing_rpm_list_entries);
|
|
||||||
+
|
|
||||||
+ std::sort (array.begin (), array.end (), missing_rpm_list_compar);
|
|
||||||
+
|
|
||||||
+ /* We zero out the number of missing RPMs here because of a nasty
|
|
||||||
+ bug (see RHBZ 1801974).
|
|
||||||
+
|
|
||||||
+ When we call 'puts_unfiltered' below, if pagination is on and if
|
|
||||||
+ the number of missing RPMs is big enough to trigger pagination,
|
|
||||||
+ we will end up in an infinite recursion. The call chain looks
|
|
||||||
+ like this:
|
|
||||||
+
|
|
||||||
+ missing_rpm_list_print -> puts_unfiltered -> fputs_maybe_filtered
|
|
||||||
+ -> prompt_for_continue -> display_gdb_prompt ->
|
|
||||||
+ debug_flush_missing -> missing_rpm_list_print ...
|
|
||||||
+
|
|
||||||
+ For this reason, we make sure MISSING_RPM_LIST_ENTRIES is zero
|
|
||||||
+ *before* calling any print function. */
|
|
||||||
+ missing_rpm_list_entries = 0;
|
|
||||||
+
|
|
||||||
+ printf_unfiltered (_("Missing separate debuginfos, use: %s"),
|
|
||||||
+#ifdef DNF_DEBUGINFO_INSTALL
|
|
||||||
+ "dnf "
|
|
||||||
+#endif
|
|
||||||
+ "debuginfo-install");
|
|
||||||
+ for (const char *el : array)
|
|
||||||
+ {
|
|
||||||
+ puts_unfiltered (" ");
|
|
||||||
+ puts_unfiltered (el);
|
|
||||||
+ }
|
|
||||||
+ puts_unfiltered ("\n");
|
|
||||||
+
|
|
||||||
+ while (missing_rpm_list != NULL)
|
|
||||||
+ {
|
|
||||||
+ list_iter = missing_rpm_list;
|
|
||||||
+ missing_rpm_list = list_iter->next;
|
|
||||||
+ xfree (list_iter);
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+missing_rpm_change (void)
|
|
||||||
+{
|
|
||||||
+ debug_flush_missing ();
|
|
||||||
+
|
|
||||||
+ gdb_assert (missing_rpm_list == NULL);
|
|
||||||
+ if (missing_rpm_hash != NULL)
|
|
||||||
+ {
|
|
||||||
+ htab_delete (missing_rpm_hash);
|
|
||||||
+ missing_rpm_hash = NULL;
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+enum missing_exec
|
|
||||||
+ {
|
|
||||||
+ /* Init state. EXEC_BFD also still could be NULL. */
|
|
||||||
+ MISSING_EXEC_NOT_TRIED,
|
|
||||||
+ /* We saw a non-NULL EXEC_BFD but RPM has no info about it. */
|
|
||||||
+ MISSING_EXEC_NOT_FOUND,
|
|
||||||
+ /* We found EXEC_BFD by RPM and we either have its symbols (either embedded
|
|
||||||
+ or separate) or the main executable's RPM is now contained in
|
|
||||||
+ MISSING_RPM_HASH. */
|
|
||||||
+ MISSING_EXEC_ENLISTED
|
|
||||||
+ };
|
|
||||||
+static enum missing_exec missing_exec = MISSING_EXEC_NOT_TRIED;
|
|
||||||
+
|
|
||||||
+#endif /* HAVE_LIBRPM */
|
|
||||||
+
|
|
||||||
+void
|
|
||||||
+debug_flush_missing (void)
|
|
||||||
+{
|
|
||||||
+#ifdef HAVE_LIBRPM
|
|
||||||
+ missing_rpm_list_print ();
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
/* This MISSING_FILEPAIR_HASH tracker is used only for the duplicite messages
|
|
||||||
- Try to install the hash file ...
|
|
||||||
+ yum --enablerepo='*debug*' install ...
|
|
||||||
avoidance. */
|
|
||||||
|
|
||||||
struct missing_filepair
|
|
||||||
@@ -752,11 +1119,17 @@ missing_filepair_change (void)
|
|
||||||
/* All their memory came just from missing_filepair_OBSTACK. */
|
|
||||||
missing_filepair_hash = NULL;
|
|
||||||
}
|
|
||||||
+#ifdef HAVE_LIBRPM
|
|
||||||
+ missing_exec = MISSING_EXEC_NOT_TRIED;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
debug_print_executable_changed (void)
|
|
||||||
{
|
{
|
||||||
+#ifdef HAVE_LIBRPM
|
warning (_("Opened library \"%s\" is incompatible (%s), "
|
||||||
+ missing_rpm_change ();
|
"missing debuginfos notifications will not be displayed"),
|
||||||
+#endif
|
@@ -917,7 +917,7 @@ missing_rpm_enlist_1 (const char *filename, int verify_vendor)
|
||||||
missing_filepair_change ();
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -823,14 +1196,38 @@ debug_print_missing (const char *binary, const char *debug)
|
/* RPMDBI_PACKAGES requires keylen == sizeof (int). */
|
||||||
|
/* RPMDBI_LABEL is an interface for NVR-based dbiFindByLabel(). */
|
||||||
*slot = missing_filepair;
|
- mi_debuginfo = rpmtsInitIterator_p (ts, (rpmTag) RPMDBI_LABEL, debuginfo, 0);
|
||||||
|
+ mi_debuginfo = rpmtsInitIterator_p (ts, (rpmDbiTagVal) RPMDBI_LABEL, debuginfo, 0);
|
||||||
- /* We do not collect and flush these messages as each such message
|
xfree (debuginfo);
|
||||||
- already requires its own separate lines. */
|
if (mi_debuginfo)
|
||||||
+#ifdef HAVE_LIBRPM
|
{
|
||||||
+ if (missing_exec == MISSING_EXEC_NOT_TRIED)
|
|
||||||
+ {
|
|
||||||
+ const char *execfilename = get_exec_file (0);
|
|
||||||
|
|
||||||
- fprintf_unfiltered (gdb_stdlog,
|
|
||||||
- _("Missing separate debuginfo for %s\n"), binary);
|
|
||||||
- if (debug != NULL)
|
|
||||||
- fprintf_unfiltered (gdb_stdlog, _("Try to install the hash file %s\n"),
|
|
||||||
- debug);
|
|
||||||
+ if (execfilename != NULL)
|
|
||||||
+ {
|
|
||||||
+ if (missing_rpm_enlist (execfilename) == 0)
|
|
||||||
+ missing_exec = MISSING_EXEC_NOT_FOUND;
|
|
||||||
+ else
|
|
||||||
+ missing_exec = MISSING_EXEC_ENLISTED;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ if (missing_exec != MISSING_EXEC_ENLISTED)
|
|
||||||
+ if ((binary[0] == 0 || missing_rpm_enlist (binary) == 0)
|
|
||||||
+ && (debug == NULL || missing_rpm_enlist (debug) == 0))
|
|
||||||
+#endif /* HAVE_LIBRPM */
|
|
||||||
+ {
|
|
||||||
+ /* We do not collect and flush these messages as each such message
|
|
||||||
+ already requires its own separate lines. */
|
|
||||||
+
|
|
||||||
+ fprintf_unfiltered (gdb_stdlog,
|
|
||||||
+ _("Missing separate debuginfo for %s\n"), binary);
|
|
||||||
+ if (debug != NULL)
|
|
||||||
+ fprintf_unfiltered (gdb_stdlog, _("Try: %s %s\n"),
|
|
||||||
+#ifdef DNF_DEBUGINFO_INSTALL
|
|
||||||
+ "dnf"
|
|
||||||
+#else
|
|
||||||
+ "yum"
|
|
||||||
+#endif
|
|
||||||
+ " --enablerepo='*debug*' install", debug);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* See build-id.h. */
|
|
||||||
diff --git a/gdb/config.in b/gdb/config.in
|
diff --git a/gdb/config.in b/gdb/config.in
|
||||||
--- a/gdb/config.in
|
--- a/gdb/config.in
|
||||||
+++ b/gdb/config.in
|
+++ b/gdb/config.in
|
||||||
@ -696,7 +279,7 @@ diff --git a/gdb/config.in b/gdb/config.in
|
|||||||
/* Define to 1 if translation of program messages to the user's native
|
/* Define to 1 if translation of program messages to the user's native
|
||||||
language is requested. */
|
language is requested. */
|
||||||
#undef ENABLE_NLS
|
#undef ENABLE_NLS
|
||||||
@@ -247,6 +250,9 @@
|
@@ -259,6 +262,9 @@
|
||||||
/* Define if you have the mpfr library. */
|
/* Define if you have the mpfr library. */
|
||||||
#undef HAVE_LIBMPFR
|
#undef HAVE_LIBMPFR
|
||||||
|
|
||||||
@ -709,9 +292,9 @@ diff --git a/gdb/config.in b/gdb/config.in
|
|||||||
diff --git a/gdb/configure b/gdb/configure
|
diff --git a/gdb/configure b/gdb/configure
|
||||||
--- a/gdb/configure
|
--- a/gdb/configure
|
||||||
+++ b/gdb/configure
|
+++ b/gdb/configure
|
||||||
@@ -769,6 +769,11 @@ PKG_CONFIG
|
@@ -783,6 +783,11 @@ TARGET_OBS
|
||||||
HAVE_NATIVE_GCORE_TARGET
|
ENABLE_BFD_64_BIT_FALSE
|
||||||
TARGET_OBS
|
ENABLE_BFD_64_BIT_TRUE
|
||||||
subdirs
|
subdirs
|
||||||
+RPM_LIBS
|
+RPM_LIBS
|
||||||
+RPM_CFLAGS
|
+RPM_CFLAGS
|
||||||
@ -721,7 +304,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
GDB_DATADIR
|
GDB_DATADIR
|
||||||
DEBUGDIR
|
DEBUGDIR
|
||||||
MAKEINFO_EXTRA_FLAGS
|
MAKEINFO_EXTRA_FLAGS
|
||||||
@@ -873,6 +878,7 @@ with_gdb_datadir
|
@@ -912,6 +917,7 @@ with_gdb_datadir
|
||||||
with_relocated_sources
|
with_relocated_sources
|
||||||
with_auto_load_dir
|
with_auto_load_dir
|
||||||
with_auto_load_safe_path
|
with_auto_load_safe_path
|
||||||
@ -729,7 +312,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
enable_targets
|
enable_targets
|
||||||
enable_64_bit_bfd
|
enable_64_bit_bfd
|
||||||
enable_gdbmi
|
enable_gdbmi
|
||||||
@@ -949,6 +955,8 @@ PKG_CONFIG_PATH
|
@@ -992,6 +998,8 @@ PKG_CONFIG_PATH
|
||||||
PKG_CONFIG_LIBDIR
|
PKG_CONFIG_LIBDIR
|
||||||
DEBUGINFOD_CFLAGS
|
DEBUGINFOD_CFLAGS
|
||||||
DEBUGINFOD_LIBS
|
DEBUGINFOD_LIBS
|
||||||
@ -737,8 +320,8 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
+RPM_LIBS
|
+RPM_LIBS
|
||||||
YACC
|
YACC
|
||||||
YFLAGS
|
YFLAGS
|
||||||
XMKMF'
|
ZSTD_CFLAGS
|
||||||
@@ -1621,6 +1629,8 @@ Optional Packages:
|
@@ -1678,6 +1686,8 @@ Optional Packages:
|
||||||
do not restrict auto-loaded files locations
|
do not restrict auto-loaded files locations
|
||||||
--with-debuginfod Enable debuginfo lookups with debuginfod
|
--with-debuginfod Enable debuginfo lookups with debuginfod
|
||||||
(auto/yes/no)
|
(auto/yes/no)
|
||||||
@ -747,7 +330,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
--with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
|
--with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
|
||||||
--with-curses use the curses library instead of the termcap
|
--with-curses use the curses library instead of the termcap
|
||||||
library
|
library
|
||||||
@@ -1702,6 +1712,8 @@ Some influential environment variables:
|
@@ -1761,6 +1771,8 @@ Some influential environment variables:
|
||||||
C compiler flags for DEBUGINFOD, overriding pkg-config
|
C compiler flags for DEBUGINFOD, overriding pkg-config
|
||||||
DEBUGINFOD_LIBS
|
DEBUGINFOD_LIBS
|
||||||
linker flags for DEBUGINFOD, overriding pkg-config
|
linker flags for DEBUGINFOD, overriding pkg-config
|
||||||
@ -756,7 +339,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
YACC The `Yet Another Compiler Compiler' implementation to use.
|
YACC The `Yet Another Compiler Compiler' implementation to use.
|
||||||
Defaults to the first program found out of: `bison -y', `byacc',
|
Defaults to the first program found out of: `bison -y', `byacc',
|
||||||
`yacc'.
|
`yacc'.
|
||||||
@@ -6666,6 +6678,494 @@ _ACEOF
|
@@ -17848,6 +17860,494 @@ _ACEOF
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
|
||||||
$as_echo "$with_auto_load_safe_path" >&6; }
|
$as_echo "$with_auto_load_safe_path" >&6; }
|
||||||
|
|
||||||
@ -936,7 +519,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
||||||
+extern rpmts rpmtsCreate(void);
|
+extern rpmts rpmtsCreate(void);
|
||||||
+extern rpmts rpmtsFree(rpmts ts);
|
+extern rpmts rpmtsFree(rpmts ts);
|
||||||
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
|
||||||
+ const void * keyp, size_t keylen);
|
+ const void * keyp, size_t keylen);
|
||||||
+
|
+
|
||||||
+int
|
+int
|
||||||
@ -1198,7 +781,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
||||||
+extern rpmts rpmtsCreate(void);
|
+extern rpmts rpmtsCreate(void);
|
||||||
+extern rpmts rpmtsFree(rpmts ts);
|
+extern rpmts rpmtsFree(rpmts ts);
|
||||||
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
|
||||||
+ const void * keyp, size_t keylen);
|
+ const void * keyp, size_t keylen);
|
||||||
+
|
+
|
||||||
+int
|
+int
|
||||||
@ -1254,7 +837,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
||||||
--- a/gdb/configure.ac
|
--- a/gdb/configure.ac
|
||||||
+++ b/gdb/configure.ac
|
+++ b/gdb/configure.ac
|
||||||
@@ -143,6 +143,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir,
|
@@ -160,6 +160,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir,
|
||||||
[Directories safe to hold auto-loaded files.])
|
[Directories safe to hold auto-loaded files.])
|
||||||
AC_MSG_RESULT([$with_auto_load_safe_path])
|
AC_MSG_RESULT([$with_auto_load_safe_path])
|
||||||
|
|
||||||
@ -1398,7 +981,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|||||||
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
+extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
|
||||||
+extern rpmts rpmtsCreate(void);
|
+extern rpmts rpmtsCreate(void);
|
||||||
+extern rpmts rpmtsFree(rpmts ts);
|
+extern rpmts rpmtsFree(rpmts ts);
|
||||||
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
+extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
|
||||||
+ const void * keyp, size_t keylen);
|
+ const void * keyp, size_t keylen);
|
||||||
+ ]]), [
|
+ ]]), [
|
||||||
+ LIBRPM_COMPAT=true
|
+ LIBRPM_COMPAT=true
|
||||||
@ -1457,15 +1040,15 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|||||||
diff --git a/gdb/event-top.c b/gdb/event-top.c
|
diff --git a/gdb/event-top.c b/gdb/event-top.c
|
||||||
--- a/gdb/event-top.c
|
--- a/gdb/event-top.c
|
||||||
+++ b/gdb/event-top.c
|
+++ b/gdb/event-top.c
|
||||||
@@ -42,6 +42,7 @@
|
@@ -43,6 +43,7 @@
|
||||||
#include "gdbsupport/gdb_select.h"
|
|
||||||
#include "gdbsupport/gdb-sigmask.h"
|
|
||||||
#include "async-event.h"
|
#include "async-event.h"
|
||||||
|
#include "bt-utils.h"
|
||||||
|
#include "pager.h"
|
||||||
+#include "symfile.h"
|
+#include "symfile.h"
|
||||||
|
|
||||||
/* readline include files. */
|
/* readline include files. */
|
||||||
#include "readline/readline.h"
|
#include "readline/readline.h"
|
||||||
@@ -364,6 +365,8 @@ display_gdb_prompt (const char *new_prompt)
|
@@ -391,6 +392,8 @@ display_gdb_prompt (const char *new_prompt)
|
||||||
/* Reset the nesting depth used when trace-commands is set. */
|
/* Reset the nesting depth used when trace-commands is set. */
|
||||||
reset_command_nest_depth ();
|
reset_command_nest_depth ();
|
||||||
|
|
||||||
@ -1474,7 +1057,7 @@ diff --git a/gdb/event-top.c b/gdb/event-top.c
|
|||||||
/* Do not call the python hook on an explicit prompt change as
|
/* Do not call the python hook on an explicit prompt change as
|
||||||
passed to this function, as this forms a secondary/local prompt,
|
passed to this function, as this forms a secondary/local prompt,
|
||||||
IE, displayed but not set. */
|
IE, displayed but not set. */
|
||||||
@@ -773,7 +776,10 @@ command_line_handler (gdb::unique_xmalloc_ptr<char> &&rl)
|
@@ -852,7 +855,10 @@ command_line_handler (gdb::unique_xmalloc_ptr<char> &&rl)
|
||||||
command_handler (cmd);
|
command_handler (cmd);
|
||||||
|
|
||||||
if (ui->prompt_state != PROMPTED)
|
if (ui->prompt_state != PROMPTED)
|
||||||
@ -1489,11 +1072,11 @@ diff --git a/gdb/event-top.c b/gdb/event-top.c
|
|||||||
diff --git a/gdb/symfile.h b/gdb/symfile.h
|
diff --git a/gdb/symfile.h b/gdb/symfile.h
|
||||||
--- a/gdb/symfile.h
|
--- a/gdb/symfile.h
|
||||||
+++ b/gdb/symfile.h
|
+++ b/gdb/symfile.h
|
||||||
@@ -560,6 +560,7 @@ extern void generic_load (const char *args, int from_tty);
|
@@ -352,6 +352,7 @@ extern void generic_load (const char *args, int from_tty);
|
||||||
/* build-id support. */
|
/* build-id support. */
|
||||||
extern struct bfd_build_id *build_id_addr_get (CORE_ADDR addr);
|
extern struct bfd_build_id *build_id_addr_get (CORE_ADDR addr);
|
||||||
extern void debug_print_missing (const char *binary, const char *debug);
|
extern void debug_print_missing (const char *binary, const char *debug);
|
||||||
+extern void debug_flush_missing (void);
|
+extern void debug_flush_missing (void);
|
||||||
#define BUILD_ID_MAIN_EXECUTABLE_FILENAME _("the main executable file")
|
#define BUILD_ID_MAIN_EXECUTABLE_FILENAME _("the main executable file")
|
||||||
|
|
||||||
/* From dwarf2read.c */
|
/* From minidebug.c. */
|
||||||
|
@ -14,7 +14,7 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1339862
|
|||||||
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
|
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
|
||||||
--- a/gdb/solib-svr4.c
|
--- a/gdb/solib-svr4.c
|
||||||
+++ b/gdb/solib-svr4.c
|
+++ b/gdb/solib-svr4.c
|
||||||
@@ -1340,14 +1340,27 @@ svr4_read_so_list (svr4_info *info, CORE_ADDR lm, CORE_ADDR prev_lm,
|
@@ -1321,14 +1321,28 @@ svr4_read_so_list (svr4_info *info, CORE_ADDR lm, CORE_ADDR prev_lm,
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -38,13 +38,14 @@ diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
|
|||||||
+ not do any build-id checking of the libraries. There may be missing
|
+ not do any build-id checking of the libraries. There may be missing
|
||||||
+ build-ids dumped in the core file and we would map all the libraries
|
+ build-ids dumped in the core file and we would map all the libraries
|
||||||
+ to the only existing file loaded that time - the executable. */
|
+ to the only existing file loaded that time - the executable. */
|
||||||
+ if (symfile_objfile != NULL
|
+ if (current_program_space->symfile_object_file != NULL
|
||||||
+ && (symfile_objfile->flags & OBJF_BUILD_ID_CORE_LOADED) != 0)
|
+ && (current_program_space->symfile_object_file->flags
|
||||||
|
+ & OBJF_BUILD_ID_CORE_LOADED) != 0)
|
||||||
+ build_id = build_id_addr_get (li->l_ld);
|
+ build_id = build_id_addr_get (li->l_ld);
|
||||||
if (build_id != NULL)
|
if (build_id != NULL)
|
||||||
{
|
{
|
||||||
char *name, *build_id_filename;
|
char *name, *build_id_filename;
|
||||||
@@ -1362,23 +1375,7 @@ svr4_read_so_list (svr4_info *info, CORE_ADDR lm, CORE_ADDR prev_lm,
|
@@ -1343,23 +1357,7 @@ svr4_read_so_list (svr4_info *info, CORE_ADDR lm, CORE_ADDR prev_lm,
|
||||||
xfree (name);
|
xfree (name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -60,8 +61,8 @@ diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
|
|||||||
- instead) if the on-disk files no longer match the
|
- instead) if the on-disk files no longer match the
|
||||||
- running program version. */
|
- running program version. */
|
||||||
-
|
-
|
||||||
- if (symfile_objfile != NULL
|
- if (current_program_space->symfile_object_file != NULL
|
||||||
- && (symfile_objfile->flags
|
- && (current_program_space->symfile_object_file->flags
|
||||||
- & OBJF_BUILD_ID_CORE_LOADED) != 0)
|
- & OBJF_BUILD_ID_CORE_LOADED) != 0)
|
||||||
- newobj->so_name[0] = 0;
|
- newobj->so_name[0] = 0;
|
||||||
- }
|
- }
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,94 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.6-bz230000-power6-disassembly-test.patch
|
|
||||||
|
|
||||||
;; Testcase for PPC Power6/DFP instructions disassembly (BZ 230000).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000
|
|
||||||
|
|
||||||
The original testcase
|
|
||||||
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000#c1
|
|
||||||
requires too recent GCC.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.arch/powerpc-power6.exp b/gdb/testsuite/gdb.arch/powerpc-power6.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.arch/powerpc-power6.exp
|
|
||||||
@@ -0,0 +1,54 @@
|
|
||||||
+# Copyright 2007 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+# Test PowerPC Power6 instructions disassembly.
|
|
||||||
+
|
|
||||||
+if {![istarget "powerpc*-*-*"]} then {
|
|
||||||
+ verbose "Skipping PowerPC Power6 instructions disassembly."
|
|
||||||
+ return
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set testfile "powerpc-power6"
|
|
||||||
+set srcfile ${testfile}.s
|
|
||||||
+set objfile [standard_output_file ${testfile}.o]
|
|
||||||
+
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
|
|
||||||
+ untested "PowerPC prologue tests"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${objfile}
|
|
||||||
+
|
|
||||||
+# Disassemble the function.
|
|
||||||
+
|
|
||||||
+gdb_test "disass func" ":\tblr\r\n.*" "Basic disassembly"
|
|
||||||
+
|
|
||||||
+gdb_test "disass func" ":\tdcbzl *r8,r9\r\n.*" "Power5 disassembly dcbzl"
|
|
||||||
+gdb_test "disass func" ":\tfrsqrtes *f10,f11\r\n.*" "Power5 disassembly frsqrtes"
|
|
||||||
+gdb_test "disass func" ":\tdadd *f1,f2,f1\r\n.*" "Power6 disassembly dadd"
|
|
||||||
+gdb_test "disass func" ":\tdaddq *f0,f2,f0\r\n.*" "Power6 disassembly daddq"
|
|
||||||
+gdb_test "disass func" ":\tdsub *f1,f2,f1\r\n.*" "Power6 disassembly dsub"
|
|
||||||
+gdb_test "disass func" ":\tdsubq *f0,f2,f0\r\n.*" "Power6 disassembly dsubq"
|
|
||||||
+gdb_test "disass func" ":\tdmul *f1,f2,f1\r\n.*" "Power6 disassembly dmul"
|
|
||||||
+gdb_test "disass func" ":\tdmulq *f0,f2,f0\r\n.*" "Power6 disassembly dmulq"
|
|
||||||
+gdb_test "disass func" ":\tddiv *f1,f2,f1\r\n.*" "Power6 disassembly ddiv"
|
|
||||||
+gdb_test "disass func" ":\tddivq *f0,f2,f0\r\n.*" "Power6 disassembly ddivq"
|
|
||||||
+gdb_test "disass func" ":\tdcmpu *cr1,f2,f1\r\n.*" "Power6 disassembly dcmpu"
|
|
||||||
+gdb_test "disass func" ":\tdcmpuq *cr1,f2,f0\r\n.*" "Power6 disassembly dcmpuq"
|
|
||||||
diff --git a/gdb/testsuite/gdb.arch/powerpc-power6.s b/gdb/testsuite/gdb.arch/powerpc-power6.s
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.arch/powerpc-power6.s
|
|
||||||
@@ -0,0 +1,16 @@
|
|
||||||
+ .text
|
|
||||||
+ .globl func
|
|
||||||
+func:
|
|
||||||
+ blr
|
|
||||||
+ .long 0x7c284fec /* dcbzl r8,r9 */
|
|
||||||
+ .long 0xed405834 /* frsqrtes f10,f11 */
|
|
||||||
+ .long 0xec220804 /* dadd f1,f2,f1 */
|
|
||||||
+ .long 0xfc020004 /* daddq f0,f2,f0 */
|
|
||||||
+ .long 0xec220c04 /* dsub f1,f2,f1 */
|
|
||||||
+ .long 0xfc020404 /* dsubq f0,f2,f0 */
|
|
||||||
+ .long 0xec220844 /* dmul f1,f2,f1 */
|
|
||||||
+ .long 0xfc020044 /* dmulq f0,f2,f0 */
|
|
||||||
+ .long 0xec220c44 /* ddiv f1,f2,f1 */
|
|
||||||
+ .long 0xfc020444 /* ddivq f0,f2,f0 */
|
|
||||||
+ .long 0xec820d04 /* dcmpu cr1,f2,f1 */
|
|
||||||
+ .long 0xfc820504 /* dcmpuq cr1,f2,f0 */
|
|
@ -72,7 +72,7 @@ diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.e
|
|||||||
}
|
}
|
||||||
|
|
||||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
|
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
|
||||||
@@ -47,7 +47,8 @@ set dir2 [standard_output_file dir2.fileio.test]
|
@@ -40,7 +40,8 @@ set dir2 [standard_output_file dir2.fileio.test]
|
||||||
if {[file exists $dir2] && ![file writable $dir2]} {
|
if {[file exists $dir2] && ![file writable $dir2]} {
|
||||||
system "chmod +w $dir2"
|
system "chmod +w $dir2"
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.e
|
|||||||
|
|
||||||
set oldtimeout $timeout
|
set oldtimeout $timeout
|
||||||
set timeout [expr "$timeout + 60"]
|
set timeout [expr "$timeout + 60"]
|
||||||
@@ -89,7 +90,7 @@ gdb_test continue \
|
@@ -81,7 +82,7 @@ gdb_test continue \
|
||||||
|
|
||||||
gdb_test "continue" ".*" ""
|
gdb_test "continue" ".*" ""
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.e
|
|||||||
|
|
||||||
gdb_test continue \
|
gdb_test continue \
|
||||||
"Continuing\\..*open 5:.*EACCES$stop_msg" \
|
"Continuing\\..*open 5:.*EACCES$stop_msg" \
|
||||||
@@ -276,9 +277,7 @@ gdb_test continue \
|
@@ -268,9 +269,7 @@ gdb_test continue \
|
||||||
gdb_exit
|
gdb_exit
|
||||||
|
|
||||||
# Make dir2 writable again so rm -rf of a build tree Just Works.
|
# Make dir2 writable again so rm -rf of a build tree Just Works.
|
||||||
|
@ -175,7 +175,7 @@ diff --git a/gdb/testsuite/gdb.threads/threaded-exec.exp b/gdb/testsuite/gdb.thr
|
|||||||
+gdb_load ${binfile_nothreads}
|
+gdb_load ${binfile_nothreads}
|
||||||
|
|
||||||
-gdb_run_cmd
|
-gdb_run_cmd
|
||||||
+gdb_run_cmd ${binfile_nothreads} ${binfile_threads} 0
|
+gdb_run_cmd [list ${binfile_nothreads} ${binfile_threads} 0]
|
||||||
|
|
||||||
gdb_test_multiple {} "Program exited" {
|
gdb_test_multiple {} "Program exited" {
|
||||||
-re "\r\n\\\[Inferior .* exited normally\\\]\r\n$gdb_prompt $" {
|
-re "\r\n\\\[Inferior .* exited normally\\\]\r\n$gdb_prompt $" {
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-6.8-quit-never-aborts.patch
|
|
||||||
|
|
||||||
;; Make the GDB quit processing non-abortable to cleanup everything properly.
|
|
||||||
;;=fedora: It was useful only after gdb-6.8-attach-signalled-detach-stopped.patch .
|
|
||||||
|
|
||||||
We may abort the process of detaching threads with multiple SIGINTs - which are
|
|
||||||
being sent during a testcase terminating its child GDB.
|
|
||||||
|
|
||||||
Some of the threads may not be properly PTRACE_DETACHed which hurts if they
|
|
||||||
should have been detached with SIGSTOP (as they are accidentally left running
|
|
||||||
on the debugger termination).
|
|
||||||
|
|
||||||
diff --git a/gdb/defs.h b/gdb/defs.h
|
|
||||||
--- a/gdb/defs.h
|
|
||||||
+++ b/gdb/defs.h
|
|
||||||
@@ -177,6 +177,10 @@ extern void default_quit_handler (void);
|
|
||||||
/* Flag that function quit should call quit_force. */
|
|
||||||
extern volatile int sync_quit_force_run;
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+extern int quit_flag_cleanup;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
extern void quit (void);
|
|
||||||
|
|
||||||
/* Helper for the QUIT macro. */
|
|
||||||
diff --git a/gdb/extension.c b/gdb/extension.c
|
|
||||||
--- a/gdb/extension.c
|
|
||||||
+++ b/gdb/extension.c
|
|
||||||
@@ -769,6 +769,11 @@ check_quit_flag (void)
|
|
||||||
{
|
|
||||||
int result = 0;
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+ if (quit_flag_cleanup)
|
|
||||||
+ return 0;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
for (const struct extension_language_defn *extlang : extension_languages)
|
|
||||||
{
|
|
||||||
if (extlang->ops != nullptr
|
|
||||||
diff --git a/gdb/top.c b/gdb/top.c
|
|
||||||
--- a/gdb/top.c
|
|
||||||
+++ b/gdb/top.c
|
|
||||||
@@ -1770,7 +1770,13 @@ quit_force (int *exit_arg, int from_tty)
|
|
||||||
else if (return_child_result)
|
|
||||||
exit_code = return_child_result_value;
|
|
||||||
|
|
||||||
+#ifndef NEED_DETACH_SIGSTOP
|
|
||||||
/* We want to handle any quit errors and exit regardless. */
|
|
||||||
+#else
|
|
||||||
+ /* We want to handle any quit errors and exit regardless but we should never
|
|
||||||
+ get user-interrupted to properly detach the inferior. */
|
|
||||||
+ quit_flag_cleanup = 1;
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* Get out of tfind mode, and kill or detach all inferiors. */
|
|
||||||
try
|
|
||||||
diff --git a/gdb/utils.c b/gdb/utils.c
|
|
||||||
--- a/gdb/utils.c
|
|
||||||
+++ b/gdb/utils.c
|
|
||||||
@@ -103,6 +103,13 @@ static std::chrono::steady_clock::duration prompt_for_continue_wait_time;
|
|
||||||
|
|
||||||
static bool debug_timestamp = false;
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+/* Nonzero means we are already processing the quitting cleanups and we should
|
|
||||||
+ no longer get aborted. */
|
|
||||||
+
|
|
||||||
+int quit_flag_cleanup;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* True means that strings with character values >0x7F should be printed
|
|
||||||
as octal escapes. False means just print the value (e.g. it's an
|
|
||||||
international character, and the terminal or window can cope.) */
|
|
77
gdb-add-index.patch
Normal file
77
gdb-add-index.patch
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fedora GDB patches <invalid@email.com>
|
||||||
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
||||||
|
Subject: gdb-add-index.patch
|
||||||
|
|
||||||
|
;; Update gdb-add-index.sh such that, when the GDB environment
|
||||||
|
;; variable is not set, the script is smarter than just looking for
|
||||||
|
;; 'gdb' in the $PATH.
|
||||||
|
;;
|
||||||
|
;; The actual search order is now: /usr/bin/gdb.minimal, gdb (in the
|
||||||
|
;; $PATH), then /usr/libexec/gdb.
|
||||||
|
;;
|
||||||
|
;; For the rationale of looking for gdb.minimal see:
|
||||||
|
;;
|
||||||
|
;; https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
|
||||||
|
;;
|
||||||
|
;;=fedora
|
||||||
|
|
||||||
|
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
|
||||||
|
--- a/gdb/contrib/gdb-add-index.sh
|
||||||
|
+++ b/gdb/contrib/gdb-add-index.sh
|
||||||
|
@@ -16,14 +16,52 @@
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
-# This program assumes gdb and objcopy are in $PATH.
|
||||||
|
-# If not, or you want others, pass the following in the environment
|
||||||
|
-GDB=${GDB:=gdb}
|
||||||
|
+# This program assumes objcopy and readelf are in $PATH. If not, or
|
||||||
|
+# you want others, pass the following in the environment
|
||||||
|
OBJCOPY=${OBJCOPY:=objcopy}
|
||||||
|
READELF=${READELF:=readelf}
|
||||||
|
|
||||||
|
myname="${0##*/}"
|
||||||
|
|
||||||
|
+# For GDB itself we need to be a little smarter. If GDB is set in the
|
||||||
|
+# environment then we will use that. But if GDB is not set in the
|
||||||
|
+# environment then we have a couple of options that we need to check
|
||||||
|
+# through.
|
||||||
|
+#
|
||||||
|
+# Our default choice is for /usr/bin/gdb.minimal. For an explanation
|
||||||
|
+# of why this is chosen, check out:
|
||||||
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=1695015
|
||||||
|
+# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
|
||||||
|
+#
|
||||||
|
+# If gdb.minimal is not found then we look for a 'gdb' executable on
|
||||||
|
+# the path.
|
||||||
|
+#
|
||||||
|
+# And finally, we check for /usr/libexec/gdb.
|
||||||
|
+#
|
||||||
|
+# If none of those result in a useable GDB then we give an error and
|
||||||
|
+# exit.
|
||||||
|
+if test -z "$GDB"; then
|
||||||
|
+ for possible_gdb in /usr/bin/gdb.minimal gdb /usr/libexec/gdb; do
|
||||||
|
+ if ! which "$possible_gdb" 2>/dev/null; then
|
||||||
|
+ continue
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
+ possible_gdb=$(which "$possible_gdb")
|
||||||
|
+
|
||||||
|
+ if ! test -x "$possible_gdb"; then
|
||||||
|
+ continue
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
+ GDB="$possible_gdb"
|
||||||
|
+ break
|
||||||
|
+ done
|
||||||
|
+
|
||||||
|
+ if test -z "$GDB"; then
|
||||||
|
+ echo "$myname: Failed to find a useable GDB binary" 1>&2
|
||||||
|
+ exit 1
|
||||||
|
+ fi
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
dwarf5=""
|
||||||
|
if [ "$1" = "-dwarf-5" ]; then
|
||||||
|
dwarf5="$1"
|
@ -1,89 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-archer-pie-addons-keep-disabled.patch
|
|
||||||
|
|
||||||
;;=push+jan: Breakpoints disabling matching should not be based on address.
|
|
||||||
|
|
||||||
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
|
|
||||||
--- a/gdb/breakpoint.c
|
|
||||||
+++ b/gdb/breakpoint.c
|
|
||||||
@@ -15431,6 +15431,50 @@ static struct cmd_list_element *enablebreaklist = NULL;
|
|
||||||
|
|
||||||
cmd_list_element *commands_cmd_element = nullptr;
|
|
||||||
|
|
||||||
+void
|
|
||||||
+breakpoints_relocate (struct objfile *objfile, section_offsets &delta)
|
|
||||||
+{
|
|
||||||
+ struct bp_location *bl, **blp_tmp;
|
|
||||||
+ int changed = 0;
|
|
||||||
+
|
|
||||||
+ gdb_assert (objfile->separate_debug_objfile_backlink == NULL);
|
|
||||||
+
|
|
||||||
+ ALL_BP_LOCATIONS (bl, blp_tmp)
|
|
||||||
+ {
|
|
||||||
+ struct obj_section *osect;
|
|
||||||
+
|
|
||||||
+ /* BL->SECTION can be correctly NULL for breakpoints with multiple
|
|
||||||
+ locations expanded through symtab. */
|
|
||||||
+
|
|
||||||
+ ALL_OBJFILE_OSECTIONS (objfile, osect)
|
|
||||||
+ {
|
|
||||||
+ CORE_ADDR relocated_address;
|
|
||||||
+ CORE_ADDR delta_offset;
|
|
||||||
+
|
|
||||||
+ delta_offset = delta[osect->the_bfd_section->index];
|
|
||||||
+ if (delta_offset == 0)
|
|
||||||
+ continue;
|
|
||||||
+ relocated_address = bl->address + delta_offset;
|
|
||||||
+
|
|
||||||
+ if (obj_section_addr (osect) <= relocated_address
|
|
||||||
+ && relocated_address < obj_section_endaddr (osect))
|
|
||||||
+ {
|
|
||||||
+ if (bl->inserted)
|
|
||||||
+ remove_breakpoint (bl);
|
|
||||||
+
|
|
||||||
+ bl->address += delta_offset;
|
|
||||||
+ bl->requested_address += delta_offset;
|
|
||||||
+
|
|
||||||
+ changed = 1;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (changed)
|
|
||||||
+ std::sort (bp_locations, bp_locations + bp_locations_count,
|
|
||||||
+ bp_location_is_less_than);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
void _initialize_breakpoint ();
|
|
||||||
void
|
|
||||||
_initialize_breakpoint ()
|
|
||||||
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
|
|
||||||
--- a/gdb/breakpoint.h
|
|
||||||
+++ b/gdb/breakpoint.h
|
|
||||||
@@ -1691,6 +1691,9 @@ extern const char *ep_parse_optional_if_clause (const char **arg);
|
|
||||||
UIOUT iff debugging multiple threads. */
|
|
||||||
extern void maybe_print_thread_hit_breakpoint (struct ui_out *uiout);
|
|
||||||
|
|
||||||
+extern void breakpoints_relocate (struct objfile *objfile,
|
|
||||||
+ section_offsets &delta);
|
|
||||||
+
|
|
||||||
/* Print the specified breakpoint. */
|
|
||||||
extern void print_breakpoint (breakpoint *bp);
|
|
||||||
|
|
||||||
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
|
|
||||||
--- a/gdb/objfiles.c
|
|
||||||
+++ b/gdb/objfiles.c
|
|
||||||
@@ -742,6 +742,11 @@ objfile_relocate1 (struct objfile *objfile,
|
|
||||||
obj_section_addr (s));
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* Final call of breakpoint_re_set can keep breakpoint locations disabled if
|
|
||||||
+ their addresses match. */
|
|
||||||
+ if (objfile->separate_debug_objfile_backlink == NULL)
|
|
||||||
+ breakpoints_relocate (objfile, delta);
|
|
||||||
+
|
|
||||||
/* Data changed. */
|
|
||||||
return 1;
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-archer-pie-addons.patch
|
|
||||||
|
|
||||||
;;=push+jan: May get obsoleted by Tom's unrelocated objfiles patch.
|
|
||||||
|
|
||||||
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
|
|
||||||
--- a/gdb/gdbtypes.h
|
|
||||||
+++ b/gdb/gdbtypes.h
|
|
||||||
@@ -649,6 +649,7 @@ enum field_loc_kind
|
|
||||||
{
|
|
||||||
FIELD_LOC_KIND_BITPOS, /**< bitpos */
|
|
||||||
FIELD_LOC_KIND_ENUMVAL, /**< enumval */
|
|
||||||
+ /* This address is unrelocated by the objfile's ANOFFSET. */
|
|
||||||
FIELD_LOC_KIND_PHYSADDR, /**< physaddr */
|
|
||||||
FIELD_LOC_KIND_PHYSNAME, /**< physname */
|
|
||||||
FIELD_LOC_KIND_DWARF_BLOCK /**< dwarf_block */
|
|
||||||
@@ -699,6 +700,7 @@ union field_location
|
|
||||||
field. Otherwise, physname is the mangled label of the
|
|
||||||
static field. */
|
|
||||||
|
|
||||||
+ /* This address is unrelocated by the objfile's ANOFFSET. */
|
|
||||||
CORE_ADDR physaddr;
|
|
||||||
const char *physname;
|
|
||||||
|
|
||||||
diff --git a/gdb/value.c b/gdb/value.c
|
|
||||||
--- a/gdb/value.c
|
|
||||||
+++ b/gdb/value.c
|
|
||||||
@@ -2850,7 +2850,8 @@ value_static_field (struct type *type, int fieldno)
|
|
||||||
{
|
|
||||||
case FIELD_LOC_KIND_PHYSADDR:
|
|
||||||
retval = value_at_lazy (type->field (fieldno).type (),
|
|
||||||
- TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
|
|
||||||
+ TYPE_FIELD_STATIC_PHYSADDR (type, fieldno)
|
|
||||||
+ + (TYPE_OBJFILE (type) == NULL ? 0 : TYPE_OBJFILE (type)->section_offsets[SECT_OFF_TEXT (TYPE_OBJFILE (type))]));
|
|
||||||
break;
|
|
||||||
case FIELD_LOC_KIND_PHYSNAME:
|
|
||||||
{
|
|
File diff suppressed because it is too large
Load Diff
187
gdb-archer.patch
187
gdb-archer.patch
@ -1,187 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-archer.patch
|
|
||||||
|
|
||||||
;; Python patches of: http://sourceware.org/gdb/wiki/ProjectArcher
|
|
||||||
;;=push
|
|
||||||
|
|
||||||
http://sourceware.org/gdb/wiki/ProjectArcher
|
|
||||||
http://sourceware.org/gdb/wiki/ArcherBranchManagement
|
|
||||||
|
|
||||||
GIT snapshot:
|
|
||||||
commit 718a1618b2f691a7f407213bb50f100ac59f91c3
|
|
||||||
|
|
||||||
tromey/python
|
|
||||||
|
|
||||||
diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in
|
|
||||||
--- a/gdb/data-directory/Makefile.in
|
|
||||||
+++ b/gdb/data-directory/Makefile.in
|
|
||||||
@@ -80,6 +80,7 @@ PYTHON_FILE_LIST = \
|
|
||||||
gdb/unwinder.py \
|
|
||||||
gdb/xmethod.py \
|
|
||||||
gdb/command/__init__.py \
|
|
||||||
+ gdb/command/ignore_errors.py \
|
|
||||||
gdb/command/explore.py \
|
|
||||||
gdb/command/backtrace.py \
|
|
||||||
gdb/command/frame_filters.py \
|
|
||||||
@@ -92,6 +93,7 @@ PYTHON_FILE_LIST = \
|
|
||||||
gdb/function/as_string.py \
|
|
||||||
gdb/function/caller_is.py \
|
|
||||||
gdb/function/strfns.py \
|
|
||||||
+ gdb/function/in_scope.py \
|
|
||||||
gdb/printer/__init__.py \
|
|
||||||
gdb/printer/bound_registers.py
|
|
||||||
|
|
||||||
diff --git a/gdb/gdb-gdb.gdb.in b/gdb/gdb-gdb.gdb.in
|
|
||||||
--- a/gdb/gdb-gdb.gdb.in
|
|
||||||
+++ b/gdb/gdb-gdb.gdb.in
|
|
||||||
@@ -1,5 +1,15 @@
|
|
||||||
echo Setting up the environment for debugging gdb.\n
|
|
||||||
|
|
||||||
+# Set up the Python library and "require" command.
|
|
||||||
+python
|
|
||||||
+from os.path import abspath
|
|
||||||
+gdb.datadir = abspath ('@srcdir@/python/lib')
|
|
||||||
+gdb.pythonlibdir = gdb.datadir
|
|
||||||
+gdb.__path__ = [gdb.datadir + '/gdb']
|
|
||||||
+sys.path.insert(0, gdb.datadir)
|
|
||||||
+end
|
|
||||||
+source @srcdir@/python/lib/gdb/__init__.py
|
|
||||||
+
|
|
||||||
if !$gdb_init_done
|
|
||||||
set variable $gdb_init_done = 1
|
|
||||||
|
|
||||||
diff --git a/gdb/python/lib/gdb/command/ignore_errors.py b/gdb/python/lib/gdb/command/ignore_errors.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/python/lib/gdb/command/ignore_errors.py
|
|
||||||
@@ -0,0 +1,37 @@
|
|
||||||
+# Ignore errors in user commands.
|
|
||||||
+
|
|
||||||
+# Copyright (C) 2008 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+
|
|
||||||
+class IgnoreErrorsCommand (gdb.Command):
|
|
||||||
+ """Execute a single command, ignoring all errors.
|
|
||||||
+Only one-line commands are supported.
|
|
||||||
+This is primarily useful in scripts."""
|
|
||||||
+
|
|
||||||
+ def __init__ (self):
|
|
||||||
+ super (IgnoreErrorsCommand, self).__init__ ("ignore-errors",
|
|
||||||
+ gdb.COMMAND_OBSCURE,
|
|
||||||
+ # FIXME...
|
|
||||||
+ gdb.COMPLETE_COMMAND)
|
|
||||||
+
|
|
||||||
+ def invoke (self, arg, from_tty):
|
|
||||||
+ try:
|
|
||||||
+ gdb.execute (arg, from_tty)
|
|
||||||
+ except:
|
|
||||||
+ pass
|
|
||||||
+
|
|
||||||
+IgnoreErrorsCommand ()
|
|
||||||
diff --git a/gdb/python/lib/gdb/function/in_scope.py b/gdb/python/lib/gdb/function/in_scope.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/python/lib/gdb/function/in_scope.py
|
|
||||||
@@ -0,0 +1,47 @@
|
|
||||||
+# In-scope function.
|
|
||||||
+
|
|
||||||
+# Copyright (C) 2008 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+
|
|
||||||
+class InScope (gdb.Function):
|
|
||||||
+ """Return True if all the given variables or macros are in scope.
|
|
||||||
+Takes one argument for each variable name to be checked."""
|
|
||||||
+
|
|
||||||
+ def __init__ (self):
|
|
||||||
+ super (InScope, self).__init__ ("in_scope")
|
|
||||||
+
|
|
||||||
+ def invoke (self, *vars):
|
|
||||||
+ if len (vars) == 0:
|
|
||||||
+ raise (TypeError, "in_scope takes at least one argument")
|
|
||||||
+
|
|
||||||
+ # gdb.Value isn't hashable so it can't be put in a map.
|
|
||||||
+ # Convert to string first.
|
|
||||||
+ wanted = set (map (lambda x: x.string (), vars))
|
|
||||||
+ found = set ()
|
|
||||||
+ block = gdb.selected_frame ().block ()
|
|
||||||
+ while block:
|
|
||||||
+ for sym in block:
|
|
||||||
+ if (sym.is_argument or sym.is_constant
|
|
||||||
+ or sym.is_function or sym.is_variable):
|
|
||||||
+ if sym.name in wanted:
|
|
||||||
+ found.add (sym.name)
|
|
||||||
+
|
|
||||||
+ block = block.superblock
|
|
||||||
+
|
|
||||||
+ return wanted == found
|
|
||||||
+
|
|
||||||
+InScope ()
|
|
||||||
diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp
|
|
||||||
--- a/gdb/testsuite/gdb.python/py-frame.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.python/py-frame.exp
|
|
||||||
@@ -95,6 +95,8 @@ gdb_test "python print ('result = %s' % f0.read_var ('a'))" " = 1" "test Frame.r
|
|
||||||
|
|
||||||
gdb_test "python print ('result = %s' % (gdb.selected_frame () == f1))" " = True" "test gdb.selected_frame"
|
|
||||||
|
|
||||||
+gdb_test "python print ('result = %s' % (f0.block ()))" "<gdb.Block object at 0x\[\[:xdigit:\]\]+>" "test Frame.block"
|
|
||||||
+
|
|
||||||
# Can read SP register.
|
|
||||||
gdb_test "python print ('result = %s' % (gdb.selected_frame ().read_register ('sp') == gdb.parse_and_eval ('\$sp')))" \
|
|
||||||
" = True" \
|
|
||||||
diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp
|
|
||||||
--- a/gdb/testsuite/gdb.python/py-value.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.python/py-value.exp
|
|
||||||
@@ -419,6 +419,15 @@ proc test_value_after_death {} {
|
|
||||||
"print value's type"
|
|
||||||
}
|
|
||||||
|
|
||||||
+# Regression test for a cast failure. The bug was that if we cast a
|
|
||||||
+# value to its own type, gdb could crash. This happened because we
|
|
||||||
+# could end up double-freeing a struct value.
|
|
||||||
+proc test_cast_regression {} {
|
|
||||||
+ gdb_test "python v = gdb.Value(5)" "" "create value for cast test"
|
|
||||||
+ gdb_test "python v = v.cast(v.type)" "" "cast value for cast test"
|
|
||||||
+ gdb_test "python print(v)" "5" "print value for cast test"
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
# Regression test for invalid subscript operations. The bug was that
|
|
||||||
# the type of the value was not being checked before allowing a
|
|
||||||
# subscript operation to proceed.
|
|
||||||
@@ -606,6 +615,7 @@ test_value_in_inferior
|
|
||||||
test_value_from_buffer
|
|
||||||
test_inferior_function_call
|
|
||||||
test_value_after_death
|
|
||||||
+test_cast_regression
|
|
||||||
|
|
||||||
# Test either C or C++ values.
|
|
||||||
|
|
@ -1,356 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-attach-fail-reasons-5of5.patch
|
|
||||||
|
|
||||||
;; Print reasons for failed attach/spawn incl. SELinux deny_ptrace (BZ 786878).
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2012-03/msg00171.html
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
and here is the last bit for new SELinux 'deny_ptrace':
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=786878
|
|
||||||
|
|
||||||
As even PTRACE_TRACEME fails in such case it needs to install hook for even
|
|
||||||
that event.
|
|
||||||
|
|
||||||
Thanks,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
gdb/
|
|
||||||
2012-03-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* common/linux-ptrace.c [HAVE_SELINUX_SELINUX_H]: include
|
|
||||||
selinux/selinux.h.
|
|
||||||
(linux_ptrace_attach_warnings): Call linux_ptrace_create_warnings.
|
|
||||||
(linux_ptrace_create_warnings): New.
|
|
||||||
* common/linux-ptrace.h (linux_ptrace_create_warnings): New declaration.
|
|
||||||
* config.in: Regenerate.
|
|
||||||
* configure: Regenerate.
|
|
||||||
* configure.ac: Check selinux/selinux.h and the selinux library.
|
|
||||||
* inf-ptrace.c (inf_ptrace_me): Check the ptrace result.
|
|
||||||
* linux-nat.c (linux_nat_create_inferior): New variable ex. Wrap
|
|
||||||
to_create_inferior into TRY_CATCH, call linux_ptrace_create_warnings.
|
|
||||||
|
|
||||||
gdb/gdbserver/
|
|
||||||
* config.in: Regenerate.
|
|
||||||
* configure: Regenerate.
|
|
||||||
* configure.ac: Check selinux/selinux.h and the selinux library.
|
|
||||||
* linux-low.c (linux_traceme): New function.
|
|
||||||
(linux_create_inferior, linux_tracefork_child): Call it instead of
|
|
||||||
direct ptrace.
|
|
||||||
|
|
||||||
diff --git a/gdb/config.in b/gdb/config.in
|
|
||||||
--- a/gdb/config.in
|
|
||||||
+++ b/gdb/config.in
|
|
||||||
@@ -253,6 +253,9 @@
|
|
||||||
/* Define if librpm library is being used. */
|
|
||||||
#undef HAVE_LIBRPM
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the `selinux' library (-lselinux). */
|
|
||||||
+#undef HAVE_LIBSELINUX
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the <libunwind-ia64.h> header file. */
|
|
||||||
#undef HAVE_LIBUNWIND_IA64_H
|
|
||||||
|
|
||||||
@@ -388,6 +391,9 @@
|
|
||||||
/* Define to 1 if you have the `scm_new_smob' function. */
|
|
||||||
#undef HAVE_SCM_NEW_SMOB
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
|
||||||
+#undef HAVE_SELINUX_SELINUX_H
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the `setlocale' function. */
|
|
||||||
#undef HAVE_SETLOCALE
|
|
||||||
|
|
||||||
diff --git a/gdb/configure b/gdb/configure
|
|
||||||
--- a/gdb/configure
|
|
||||||
+++ b/gdb/configure
|
|
||||||
@@ -16861,6 +16861,64 @@ cat >>confdefs.h <<_ACEOF
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
+for ac_header in selinux/selinux.h
|
|
||||||
+do :
|
|
||||||
+ ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
|
|
||||||
+if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define HAVE_SELINUX_SELINUX_H 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
|
|
||||||
+$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
|
|
||||||
+if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
|
|
||||||
+ $as_echo_n "(cached) " >&6
|
|
||||||
+else
|
|
||||||
+ ac_check_lib_save_LIBS=$LIBS
|
|
||||||
+LIBS="-lselinux $LIBS"
|
|
||||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
+/* end confdefs.h. */
|
|
||||||
+
|
|
||||||
+/* Override any GCC internal prototype to avoid an error.
|
|
||||||
+ Use char because int might match the return type of a GCC
|
|
||||||
+ builtin and then its argument prototype would still apply. */
|
|
||||||
+#ifdef __cplusplus
|
|
||||||
+extern "C"
|
|
||||||
+#endif
|
|
||||||
+char security_get_boolean_active ();
|
|
||||||
+int
|
|
||||||
+main ()
|
|
||||||
+{
|
|
||||||
+return security_get_boolean_active ();
|
|
||||||
+ ;
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+_ACEOF
|
|
||||||
+if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
+ ac_cv_lib_selinux_security_get_boolean_active=yes
|
|
||||||
+else
|
|
||||||
+ ac_cv_lib_selinux_security_get_boolean_active=no
|
|
||||||
+fi
|
|
||||||
+rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
+ conftest$ac_exeext conftest.$ac_ext
|
|
||||||
+LIBS=$ac_check_lib_save_LIBS
|
|
||||||
+fi
|
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
|
|
||||||
+$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
|
|
||||||
+if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define HAVE_LIBSELINUX 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+ LIBS="-lselinux $LIBS"
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
|
|
||||||
# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
|
|
||||||
# except that the argument to --with-sysroot is optional.
|
|
||||||
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|
||||||
--- a/gdb/configure.ac
|
|
||||||
+++ b/gdb/configure.ac
|
|
||||||
@@ -1900,6 +1900,10 @@ case $host_os in
|
|
||||||
esac
|
|
||||||
AC_DEFINE_UNQUOTED(GDBINIT,"$gdbinit",[The .gdbinit filename.])
|
|
||||||
|
|
||||||
+dnl Check security_get_boolean_active availability.
|
|
||||||
+AC_CHECK_HEADERS(selinux/selinux.h)
|
|
||||||
+AC_CHECK_LIB(selinux, security_get_boolean_active)
|
|
||||||
+
|
|
||||||
dnl Handle optional features that can be enabled.
|
|
||||||
|
|
||||||
# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
|
|
||||||
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
|
|
||||||
--- a/gdb/linux-nat.c
|
|
||||||
+++ b/gdb/linux-nat.c
|
|
||||||
@@ -1103,7 +1103,16 @@ linux_nat_target::create_inferior (const char *exec_file,
|
|
||||||
/* Make sure we report all signals during startup. */
|
|
||||||
pass_signals ({});
|
|
||||||
|
|
||||||
- inf_ptrace_target::create_inferior (exec_file, allargs, env, from_tty);
|
|
||||||
+ try
|
|
||||||
+ {
|
|
||||||
+ inf_ptrace_target::create_inferior (exec_file, allargs, env, from_tty);
|
|
||||||
+ }
|
|
||||||
+ catch (const gdb_exception_error &ex)
|
|
||||||
+ {
|
|
||||||
+ std::string result = linux_ptrace_create_warnings ();
|
|
||||||
+
|
|
||||||
+ throw_error (ex.error, "%s%s", result.c_str (), ex.message->c_str ());
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Callback for linux_proc_attach_tgid_threads. Attach to PTID if not
|
|
||||||
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
|
|
||||||
--- a/gdb/nat/linux-ptrace.c
|
|
||||||
+++ b/gdb/nat/linux-ptrace.c
|
|
||||||
@@ -25,6 +25,10 @@
|
|
||||||
#include <sys/procfs.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef HAVE_SELINUX_SELINUX_H
|
|
||||||
+# include <selinux/selinux.h>
|
|
||||||
+#endif /* HAVE_SELINUX_SELINUX_H */
|
|
||||||
+
|
|
||||||
/* Stores the ptrace options supported by the running kernel.
|
|
||||||
A value of -1 means we did not check for features yet. A value
|
|
||||||
of 0 means there are no supported features. */
|
|
||||||
@@ -50,6 +54,8 @@ linux_ptrace_attach_fail_reason (pid_t pid)
|
|
||||||
"terminated"),
|
|
||||||
(int) pid);
|
|
||||||
|
|
||||||
+ result += linux_ptrace_create_warnings ();
|
|
||||||
+
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -586,6 +592,25 @@ linux_ptrace_init_warnings (void)
|
|
||||||
linux_ptrace_test_ret_to_nx ();
|
|
||||||
}
|
|
||||||
|
|
||||||
+/* Print all possible reasons we could fail to create a traced process. */
|
|
||||||
+
|
|
||||||
+std::string
|
|
||||||
+linux_ptrace_create_warnings ()
|
|
||||||
+{
|
|
||||||
+ std::string result;
|
|
||||||
+
|
|
||||||
+#ifdef HAVE_LIBSELINUX
|
|
||||||
+ /* -1 is returned for errors, 0 if it has no effect, 1 if PTRACE_ATTACH is
|
|
||||||
+ forbidden. */
|
|
||||||
+ if (security_get_boolean_active ("deny_ptrace") == 1)
|
|
||||||
+ string_appendf (result,
|
|
||||||
+ _("the SELinux boolean 'deny_ptrace' is enabled, "
|
|
||||||
+ "you can disable this process attach protection by: "
|
|
||||||
+ "(gdb) shell sudo setsebool deny_ptrace=0\n"));
|
|
||||||
+#endif /* HAVE_LIBSELINUX */
|
|
||||||
+ return result;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
/* Extract extended ptrace event from wait status. */
|
|
||||||
|
|
||||||
int
|
|
||||||
diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h
|
|
||||||
--- a/gdb/nat/linux-ptrace.h
|
|
||||||
+++ b/gdb/nat/linux-ptrace.h
|
|
||||||
@@ -184,6 +184,7 @@ extern std::string linux_ptrace_attach_fail_reason (pid_t pid);
|
|
||||||
extern std::string linux_ptrace_attach_fail_reason_string (ptid_t ptid, int err);
|
|
||||||
|
|
||||||
extern void linux_ptrace_init_warnings (void);
|
|
||||||
+extern std::string linux_ptrace_create_warnings ();
|
|
||||||
extern void linux_check_ptrace_features (void);
|
|
||||||
extern void linux_enable_event_reporting (pid_t pid, int attached);
|
|
||||||
extern void linux_disable_event_reporting (pid_t pid);
|
|
||||||
diff --git a/gdbserver/config.in b/gdbserver/config.in
|
|
||||||
--- a/gdbserver/config.in
|
|
||||||
+++ b/gdbserver/config.in
|
|
||||||
@@ -143,6 +143,9 @@
|
|
||||||
/* Define if you have the ipt library. */
|
|
||||||
#undef HAVE_LIBIPT
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the `selinux' library (-lselinux). */
|
|
||||||
+#undef HAVE_LIBSELINUX
|
|
||||||
+
|
|
||||||
/* Define if the target supports branch tracing. */
|
|
||||||
#undef HAVE_LINUX_BTRACE
|
|
||||||
|
|
||||||
@@ -249,6 +252,9 @@
|
|
||||||
/* Define to 1 if you have the `sbrk' function. */
|
|
||||||
#undef HAVE_SBRK
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
|
||||||
+#undef HAVE_SELINUX_SELINUX_H
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the `setns' function. */
|
|
||||||
#undef HAVE_SETNS
|
|
||||||
|
|
||||||
diff --git a/gdbserver/configure b/gdbserver/configure
|
|
||||||
--- a/gdbserver/configure
|
|
||||||
+++ b/gdbserver/configure
|
|
||||||
@@ -10683,6 +10683,64 @@ if $want_ipa ; then
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
+for ac_header in selinux/selinux.h
|
|
||||||
+do :
|
|
||||||
+ ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
|
|
||||||
+if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define HAVE_SELINUX_SELINUX_H 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
|
|
||||||
+$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
|
|
||||||
+if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
|
|
||||||
+ $as_echo_n "(cached) " >&6
|
|
||||||
+else
|
|
||||||
+ ac_check_lib_save_LIBS=$LIBS
|
|
||||||
+LIBS="-lselinux $LIBS"
|
|
||||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
+/* end confdefs.h. */
|
|
||||||
+
|
|
||||||
+/* Override any GCC internal prototype to avoid an error.
|
|
||||||
+ Use char because int might match the return type of a GCC
|
|
||||||
+ builtin and then its argument prototype would still apply. */
|
|
||||||
+#ifdef __cplusplus
|
|
||||||
+extern "C"
|
|
||||||
+#endif
|
|
||||||
+char security_get_boolean_active ();
|
|
||||||
+int
|
|
||||||
+main ()
|
|
||||||
+{
|
|
||||||
+return security_get_boolean_active ();
|
|
||||||
+ ;
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+_ACEOF
|
|
||||||
+if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
+ ac_cv_lib_selinux_security_get_boolean_active=yes
|
|
||||||
+else
|
|
||||||
+ ac_cv_lib_selinux_security_get_boolean_active=no
|
|
||||||
+fi
|
|
||||||
+rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
+ conftest$ac_exeext conftest.$ac_ext
|
|
||||||
+LIBS=$ac_check_lib_save_LIBS
|
|
||||||
+fi
|
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
|
|
||||||
+$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
|
|
||||||
+if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
|
|
||||||
+ cat >>confdefs.h <<_ACEOF
|
|
||||||
+#define HAVE_LIBSELINUX 1
|
|
||||||
+_ACEOF
|
|
||||||
+
|
|
||||||
+ LIBS="-lselinux $LIBS"
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac
|
|
||||||
--- a/gdbserver/configure.ac
|
|
||||||
+++ b/gdbserver/configure.ac
|
|
||||||
@@ -401,6 +401,10 @@ if $want_ipa ; then
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
+dnl Check security_get_boolean_active availability.
|
|
||||||
+AC_CHECK_HEADERS(selinux/selinux.h)
|
|
||||||
+AC_CHECK_LIB(selinux, security_get_boolean_active)
|
|
||||||
+
|
|
||||||
AC_SUBST(GDBSERVER_DEPFILES)
|
|
||||||
AC_SUBST(GDBSERVER_LIBS)
|
|
||||||
AC_SUBST(srv_xmlbuiltin)
|
|
||||||
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
|
|
||||||
--- a/gdbserver/linux-low.cc
|
|
||||||
+++ b/gdbserver/linux-low.cc
|
|
||||||
@@ -932,7 +932,16 @@ linux_ptrace_fun ()
|
|
||||||
{
|
|
||||||
if (ptrace (PTRACE_TRACEME, 0, (PTRACE_TYPE_ARG3) 0,
|
|
||||||
(PTRACE_TYPE_ARG4) 0) < 0)
|
|
||||||
- trace_start_error_with_name ("ptrace");
|
|
||||||
+ {
|
|
||||||
+ int save_errno = errno;
|
|
||||||
+
|
|
||||||
+ std::string msg (linux_ptrace_create_warnings ());
|
|
||||||
+
|
|
||||||
+ msg += _("Cannot trace created process");
|
|
||||||
+
|
|
||||||
+ errno = save_errno;
|
|
||||||
+ trace_start_error_with_name (msg.c_str ());
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (setpgid (0, 0) < 0)
|
|
||||||
trace_start_error_with_name ("setpgid");
|
|
@ -1,196 +0,0 @@
|
|||||||
http://sourceware.org/ml/binutils/2016-03/msg00119.html
|
|
||||||
Subject: [patch] aout+coff: Fix strict-aliasing rules error
|
|
||||||
|
|
||||||
|
|
||||||
--IJpNTDwzlM2Ie8A6
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=1315191 by Dan Horak
|
|
||||||
gcc (GCC) 6.0.0 20160308 (experimental)
|
|
||||||
gcc-6.0.0-0.15.fc24
|
|
||||||
gcc-6.0.0-0.15.fc25
|
|
||||||
It did compile with:
|
|
||||||
gcc-6.0.0-0.14.fc24
|
|
||||||
|
|
||||||
aoutx.h:2504:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
int type_code = aout_symbol (symbol)->type & 0xff;
|
|
||||||
^~~
|
|
||||||
coffcode.h:1817:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (section->symbol)->native = native;
|
|
||||||
^~~~~~~~~~
|
|
||||||
|
|
||||||
Full log attached.
|
|
||||||
|
|
||||||
This fix is probably wrong as it drops the type safety. But ({ statements as
|
|
||||||
expressions }) are probably not allowed in GDB.
|
|
||||||
|
|
||||||
|
|
||||||
Jan
|
|
||||||
|
|
||||||
--IJpNTDwzlM2Ie8A6
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline; filename=1
|
|
||||||
|
|
||||||
bfd/
|
|
||||||
2016-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
Fix strict-aliasing rules compilation error.
|
|
||||||
* libaout.h (aout_symbol): Remove type safe indirection.
|
|
||||||
* libcoff-in.h (coffsymbol): Likewise.
|
|
||||||
* libcoff.h: Regenerate.
|
|
||||||
|
|
||||||
diff --git a/bfd/libaout.h b/bfd/libaout.h
|
|
||||||
index 8b70a9f..b60c40c 100644
|
|
||||||
--- a/bfd/libaout.h
|
|
||||||
+++ b/bfd/libaout.h
|
|
||||||
@@ -448,9 +448,7 @@ struct aout_data_struct
|
|
||||||
#define obj_aout_sym_hashes(bfd) (adata (bfd).sym_hashes)
|
|
||||||
#define obj_aout_dynamic_info(bfd) (adata (bfd).dynamic_info)
|
|
||||||
|
|
||||||
-/* We take the address of the first element of an asymbol to ensure that the
|
|
||||||
- macro is only ever applied to an asymbol. */
|
|
||||||
-#define aout_symbol(asymbol) ((aout_symbol_type *)(&(asymbol)->the_bfd))
|
|
||||||
+#define aout_symbol(asymbol) ((aout_symbol_type *) (asymbol))
|
|
||||||
|
|
||||||
/* Information we keep for each a.out section. This is currently only
|
|
||||||
used by the a.out backend linker. */
|
|
||||||
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
|
|
||||||
index 80f999d..fa1e9ac 100644
|
|
||||||
--- a/bfd/libcoff-in.h
|
|
||||||
+++ b/bfd/libcoff-in.h
|
|
||||||
@@ -188,9 +188,7 @@ struct xcoff_tdata
|
|
||||||
|
|
||||||
#define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
|
|
||||||
|
|
||||||
-/* We take the address of the first element of an asymbol to ensure that the
|
|
||||||
- macro is only ever applied to an asymbol. */
|
|
||||||
-#define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
|
|
||||||
+#define coffsymbol(asymbol) ((coff_symbol_type *) (asymbol))
|
|
||||||
|
|
||||||
/* Tdata for sections in XCOFF files. This is used by the linker. */
|
|
||||||
|
|
||||||
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
|
|
||||||
index bbed3e0..8ce525b 100644
|
|
||||||
--- a/bfd/libcoff.h
|
|
||||||
+++ b/bfd/libcoff.h
|
|
||||||
@@ -192,9 +192,7 @@ struct xcoff_tdata
|
|
||||||
|
|
||||||
#define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
|
|
||||||
|
|
||||||
-/* We take the address of the first element of an asymbol to ensure that the
|
|
||||||
- macro is only ever applied to an asymbol. */
|
|
||||||
-#define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
|
|
||||||
+#define coffsymbol(asymbol) ((coff_symbol_type *) (asymbol))
|
|
||||||
|
|
||||||
/* Tdata for sections in XCOFF files. This is used by the linker. */
|
|
||||||
|
|
||||||
|
|
||||||
--IJpNTDwzlM2Ie8A6
|
|
||||||
Content-Type: text/plain; charset=iso-2022-jp
|
|
||||||
Content-Disposition: inline; filename=2
|
|
||||||
|
|
||||||
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_x86_64_elf64_vec -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec -DHAVE_x86_64_elf32_vec -DHAVE_i386_aout_linux_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I./../zlib -g -O2 -MT aout32.lo -MD -MP -MF .deps/aout32.Tpo -c aout32.c -o aout32.o
|
|
||||||
In file included from aout32.c:24:0:
|
|
||||||
aoutx.h: In function $B!F(Baout_32_write_syms$B!G(B:
|
|
||||||
aoutx.h:1871:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
H_PUT_16 (abfd, aout_symbol (g)->desc, nsp.e_desc);
|
|
||||||
^~~~~~~~
|
|
||||||
aoutx.h:1872:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
H_PUT_8 (abfd, aout_symbol (g)->other, nsp.e_other);
|
|
||||||
^~~~~~~
|
|
||||||
aoutx.h:1873:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
H_PUT_8 (abfd, aout_symbol (g)->type, nsp.e_type);
|
|
||||||
^~~~~~~
|
|
||||||
aoutx.h: In function $B!F(Baout_32_get_symbol_info$B!G(B:
|
|
||||||
aoutx.h:2504:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
int type_code = aout_symbol (symbol)->type & 0xff;
|
|
||||||
^~~
|
|
||||||
aoutx.h:2515:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
ret->stab_other = (unsigned) (aout_symbol (symbol)->other & 0xff);
|
|
||||||
^~~
|
|
||||||
aoutx.h:2516:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
ret->stab_desc = (unsigned) (aout_symbol (symbol)->desc & 0xffff);
|
|
||||||
^~~
|
|
||||||
aoutx.h: In function $B!F(Baout_32_print_symbol$B!G(B:
|
|
||||||
aoutx.h:2537:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->desc & 0xffff),
|
|
||||||
^
|
|
||||||
aoutx.h:2538:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->other & 0xff),
|
|
||||||
^
|
|
||||||
aoutx.h:2539:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->type));
|
|
||||||
^
|
|
||||||
aoutx.h:2549:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->desc & 0xffff),
|
|
||||||
^
|
|
||||||
aoutx.h:2550:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->other & 0xff),
|
|
||||||
^
|
|
||||||
aoutx.h:2551:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
(unsigned) (aout_symbol (symbol)->type & 0xff));
|
|
||||||
^
|
|
||||||
cc1: all warnings being treated as errors
|
|
||||||
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_x86_64_elf64_vec -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec -DHAVE_x86_64_elf32_vec -DHAVE_i386_aout_linux_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I./../zlib -g -O2 -MT pei-i386.lo -MD -MP -MF .deps/pei-i386.Tpo -c pei-i386.c -o pei-i386.o
|
|
||||||
In file included from coff-i386.c:614:0,
|
|
||||||
from pei-i386.c:45:
|
|
||||||
coffcode.h: In function $B!F(Bcoff_new_section_hook$B!G(B:
|
|
||||||
coffcode.h:1817:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (section->symbol)->native = native;
|
|
||||||
^~~~~~~~~~
|
|
||||||
cc1: all warnings being treated as errors
|
|
||||||
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_x86_64_elf64_vec -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec -DHAVE_x86_64_elf32_vec -DHAVE_i386_aout_linux_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I./../zlib -g -O2 -MT coffgen.lo -MD -MP -MF .deps/coffgen.Tpo -c coffgen.c -o coffgen.o
|
|
||||||
coffgen.c: In function $B!F(Bcoff_get_lineno$B!G(B:
|
|
||||||
coffgen.c:1510:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
return coffsymbol (symbol)->lineno;
|
|
||||||
^~~~~~
|
|
||||||
coffgen.c: In function $B!F(Bcoff_get_symbol_info$B!G(B:
|
|
||||||
coffgen.c:2034:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
if (coffsymbol (symbol)->native != NULL
|
|
||||||
^~
|
|
||||||
coffgen.c:2035:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
&& coffsymbol (symbol)->native->fix_value
|
|
||||||
^~
|
|
||||||
coffgen.c:2036:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
&& coffsymbol (symbol)->native->is_sym)
|
|
||||||
^~
|
|
||||||
coffgen.c:2037:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
ret->value = coffsymbol (symbol)->native->u.syment.n_value -
|
|
||||||
^~~
|
|
||||||
coffgen.c: In function $B!F(Bcoff_print_symbol$B!G(B:
|
|
||||||
coffgen.c:2059:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (symbol)->native ? "n" : "g",
|
|
||||||
^~~~~~~~~~
|
|
||||||
coffgen.c:2060:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (symbol)->lineno ? "l" : " ");
|
|
||||||
^~~~~~~~~~
|
|
||||||
coffgen.c:2064:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
if (coffsymbol (symbol)->native)
|
|
||||||
^~
|
|
||||||
coffgen.c:2068:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
combined_entry_type *combined = coffsymbol (symbol)->native;
|
|
||||||
^~~~~~~~~~~~~~~~~~~
|
|
||||||
coffgen.c:2070:11: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
struct lineno_cache_entry *l = coffsymbol (symbol)->lineno;
|
|
||||||
^~~~~~~~~~~~~~~~~~
|
|
||||||
coffgen.c:2191:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (symbol)->native ? "n" : "g",
|
|
||||||
^~~~~~~~~~
|
|
||||||
coffgen.c:2192:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (symbol)->lineno ? "l" : " ",
|
|
||||||
^~~~~~~~~~
|
|
||||||
cc1: all warnings being treated as errors
|
|
||||||
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_x86_64_elf64_vec -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec -DHAVE_x86_64_elf32_vec -DHAVE_i386_aout_linux_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I./../zlib -g -O2 -MT pei-x86_64.lo -MD -MP -MF .deps/pei-x86_64.Tpo -c pei-x86_64.c -o pei-x86_64.o
|
|
||||||
In file included from coff-x86_64.c:741:0,
|
|
||||||
from pei-x86_64.c:763:
|
|
||||||
coffcode.h: In function $B!F(Bcoff_new_section_hook$B!G(B:
|
|
||||||
coffcode.h:1817:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
|
|
||||||
coffsymbol (section->symbol)->native = native;
|
|
||||||
^~~~~~~~~~
|
|
||||||
cc1: all warnings being treated as errors
|
|
||||||
|
|
||||||
--IJpNTDwzlM2Ie8A6--
|
|
||||||
|
|
24
gdb-binutils29988-read_indexed_address.patch
Normal file
24
gdb-binutils29988-read_indexed_address.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nick Clifton <nickc@redhat.com>
|
||||||
|
Date: Wed, 11 Jan 2023 12:13:46 +0000
|
||||||
|
Subject: gdb-binutils29988-read_indexed_address.patch
|
||||||
|
|
||||||
|
;; Backport "Fix a potential illegal memory access in the BFD library..."
|
||||||
|
;; (Nick Clifton, binutils/29988)
|
||||||
|
|
||||||
|
PR 29988
|
||||||
|
* dwarf2.c (read_indexed_address): Fix check for an out of range
|
||||||
|
offset.
|
||||||
|
|
||||||
|
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
|
||||||
|
--- a/bfd/dwarf2.c
|
||||||
|
+++ b/bfd/dwarf2.c
|
||||||
|
@@ -1412,7 +1412,7 @@ read_indexed_address (uint64_t idx, struct comp_unit *unit)
|
||||||
|
offset += unit->dwarf_addr_offset;
|
||||||
|
if (offset < unit->dwarf_addr_offset
|
||||||
|
|| offset > file->dwarf_addr_size
|
||||||
|
- || file->dwarf_addr_size - offset < unit->offset_size)
|
||||||
|
+ || file->dwarf_addr_size - offset < unit->addr_size)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
info_ptr = file->dwarf_addr_buffer + offset;
|
@ -1,45 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-btrobust.patch
|
|
||||||
|
|
||||||
;; Continue backtrace even if a frame filter throws an exception (Phil Muldoon).
|
|
||||||
;;=push
|
|
||||||
|
|
||||||
This should fix the error with glib. An error message will still be
|
|
||||||
printed, but a default backtrace will occur in this case.
|
|
||||||
|
|
||||||
--
|
|
||||||
|
|
||||||
diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
|
|
||||||
--- a/gdb/python/py-framefilter.c
|
|
||||||
+++ b/gdb/python/py-framefilter.c
|
|
||||||
@@ -1204,6 +1204,7 @@ gdbpy_apply_frame_filter (const struct extension_language_defn *extlang,
|
|
||||||
htab_eq_pointer,
|
|
||||||
NULL));
|
|
||||||
|
|
||||||
+ int count_printed = 0;
|
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
gdbpy_ref<> item (PyIter_Next (iterable.get ()));
|
|
||||||
@@ -1212,8 +1213,8 @@ gdbpy_apply_frame_filter (const struct extension_language_defn *extlang,
|
|
||||||
{
|
|
||||||
if (PyErr_Occurred ())
|
|
||||||
{
|
|
||||||
- gdbpy_print_stack_or_quit ();
|
|
||||||
- return EXT_LANG_BT_ERROR;
|
|
||||||
+ gdbpy_print_stack ();
|
|
||||||
+ return count_printed > 0 ? EXT_LANG_BT_ERROR : EXT_LANG_BT_NO_FILTERS;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
@@ -1245,7 +1246,8 @@ gdbpy_apply_frame_filter (const struct extension_language_defn *extlang,
|
|
||||||
/* Do not exit on error printing a single frame. Print the
|
|
||||||
error and continue with other frames. */
|
|
||||||
if (success == EXT_LANG_BT_ERROR)
|
|
||||||
- gdbpy_print_stack_or_quit ();
|
|
||||||
+ gdbpy_print_stack ();
|
|
||||||
+ count_printed++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return success;
|
|
@ -1,178 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-bz1219747-attach-kills.patch
|
|
||||||
|
|
||||||
;; Never kill PID on: gdb exec PID (Jan Kratochvil, RH BZ 1219747).
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2015-10/msg00301.html
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
in some cases with deleted main executable GDB will want to kill the inferior.
|
|
||||||
|
|
||||||
$ cp /bin/sleep /tmp/sleep;/tmp/sleep 1h&p=$!
|
|
||||||
$ rm /tmp/sleep
|
|
||||||
$ gdb /tmp/sleep $p
|
|
||||||
GNU gdb (GDB) 7.10.50.20151016-cvs
|
|
||||||
/tmp/sleep: No such file or directory.
|
|
||||||
Attaching to process 9694
|
|
||||||
/tmp/sleep (deleted): No such file or directory.
|
|
||||||
A program is being debugged already. Kill it? (y or n) _
|
|
||||||
|
|
||||||
The first attachment of "/tmp/sleep" commandline argument errors at:
|
|
||||||
|
|
||||||
267 if (scratch_chan < 0)
|
|
||||||
268 perror_with_name (filename);
|
|
||||||
1051 if (catch_command_errors_const (exec_file_attach, execarg,
|
|
||||||
1052 !batch_flag))
|
|
||||||
|
|
||||||
Then GDB tries to attach to the process $p:
|
|
||||||
|
|
||||||
1082 if (catch_command_errors (attach_command, pid_or_core_arg,
|
|
||||||
1083 !batch_flag) == 0)
|
|
||||||
|
|
||||||
This succeeds and since this moment GDB has a valid inferior. But despite that
|
|
||||||
the lines
|
|
||||||
1082 if (catch_command_errors (attach_command, pid_or_core_arg,
|
|
||||||
1083 !batch_flag) == 0)
|
|
||||||
still fail because consequently attach_command() fails to find the associated
|
|
||||||
executable file:
|
|
||||||
|
|
||||||
267 if (scratch_chan < 0)
|
|
||||||
268 perror_with_name (filename);
|
|
||||||
1082 if (catch_command_errors (attach_command, pid_or_core_arg,
|
|
||||||
1083 !batch_flag) == 0)
|
|
||||||
|
|
||||||
and therefore GDB executes the following:
|
|
||||||
|
|
||||||
(gdb) bt
|
|
||||||
2179 if (have_inferiors ())
|
|
||||||
2180 {
|
|
||||||
2181 if (!from_tty
|
|
||||||
2182 || !have_live_inferiors ()
|
|
||||||
2183 || query (_("A program is being debugged already. Kill it? ")))
|
|
||||||
2184 iterate_over_inferiors (dispose_inferior, NULL);
|
|
||||||
2185 else
|
|
||||||
2186 error (_("Program not killed."));
|
|
||||||
2187 }
|
|
||||||
1084 catch_command_errors (core_file_command, pid_or_core_arg,
|
|
||||||
1085 !batch_flag);
|
|
||||||
|
|
||||||
No regressions on {x86_64,x86_64-m32,i686}-fedora24pre-linux-gnu.
|
|
||||||
|
|
||||||
Thanks,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
gdb/ChangeLog
|
|
||||||
2015-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* main.c (captured_main): Run core_file_command for pid_or_core_arg
|
|
||||||
only if not have_inferiors ().
|
|
||||||
|
|
||||||
gdb/testsuite/ChangeLog
|
|
||||||
2015-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* gdb.base/attach-kills.c: New.
|
|
||||||
* gdb.base/attach-kills.exp: New.
|
|
||||||
|
|
||||||
diff --git a/gdb/main.c b/gdb/main.c
|
|
||||||
--- a/gdb/main.c
|
|
||||||
+++ b/gdb/main.c
|
|
||||||
@@ -1199,7 +1199,10 @@ captured_main_1 (struct captured_main_args *context)
|
|
||||||
{
|
|
||||||
ret = catch_command_errors (attach_command, pid_or_core_arg,
|
|
||||||
!batch_flag);
|
|
||||||
- if (ret == 0)
|
|
||||||
+ if (ret == 0
|
|
||||||
+ /* attach_command could succeed partially and core_file_command
|
|
||||||
+ would try to kill it. */
|
|
||||||
+ && !have_inferiors ())
|
|
||||||
ret = catch_command_errors (core_file_command,
|
|
||||||
pid_or_core_arg,
|
|
||||||
!batch_flag);
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/attach-kills.c b/gdb/testsuite/gdb.base/attach-kills.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-kills.c
|
|
||||||
@@ -0,0 +1,25 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2015 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
+
|
|
||||||
+#include <unistd.h>
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main (void)
|
|
||||||
+{
|
|
||||||
+ sleep (600);
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/attach-kills.exp b/gdb/testsuite/gdb.base/attach-kills.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/attach-kills.exp
|
|
||||||
@@ -0,0 +1,49 @@
|
|
||||||
+# Copyright (C) 2015 Free Software Foundation, Inc.
|
|
||||||
+#
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+if { ![can_spawn_for_attach] } {
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+standard_testfile
|
|
||||||
+
|
|
||||||
+if { [build_executable ${testfile}.exp $testfile] == -1 } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Start the program running and then wait for a bit, to be sure
|
|
||||||
+# that it can be attached to.
|
|
||||||
+
|
|
||||||
+set test_spawn_id [spawn_wait_for_attach $binfile]
|
|
||||||
+set testpid [spawn_id_get_pid $test_spawn_id]
|
|
||||||
+
|
|
||||||
+remote_exec target "cp -pf -- $binfile $binfile-copy"
|
|
||||||
+remote_exec target "rm -f -- $binfile"
|
|
||||||
+
|
|
||||||
+set test "start gdb"
|
|
||||||
+set res [gdb_spawn_with_cmdline_opts \
|
|
||||||
+ "-iex \"set height 0\" -iex \"set width 0\" /DoEsNoTeXySt $testpid"]
|
|
||||||
+if { $res != 0} {
|
|
||||||
+ fail "$test (spawn)"
|
|
||||||
+ kill_wait_spawned_process $test_spawn_id
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+gdb_test_multiple "" $test {
|
|
||||||
+ -re "\r\nAttaching to .*\r\n$gdb_prompt $" {
|
|
||||||
+ pass $test
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+kill_wait_spawned_process $test_spawn_id
|
|
@ -1,130 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-bz533176-fortran-omp-step.patch
|
|
||||||
|
|
||||||
;; Fix stepping with OMP parallel Fortran sections (BZ 533176).
|
|
||||||
;;=push+jan: It requires some better DWARF annotations.
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=533176#c4
|
|
||||||
|
|
||||||
I find it a bug in DWARF and gdb behaves correctly according to it. From the
|
|
||||||
current DWARF's point of view the is a function call which you skip by "next".
|
|
||||||
|
|
||||||
If you hide any /usr/lib/debug such as using:
|
|
||||||
gdb -nx -ex 'set debug-file-directory /qwe' -ex 'file ./tpcommon_gfortran44'
|
|
||||||
and use "step" command instead of "next" there it will work.
|
|
||||||
(You need to hide debuginfo from libgomp as you would step into libgomp sources
|
|
||||||
to maintain the threads for execution.)
|
|
||||||
|
|
||||||
There should be some DWARF extension for it, currently tried to detect
|
|
||||||
substring ".omp_fn." as this function is called "MAIN__.omp_fn.0" and do not
|
|
||||||
consider such sub-function as a skippable by "next".
|
|
||||||
|
|
||||||
Another problem is that with "set scheduler-locking" being "off" (default
|
|
||||||
upstream) or "step" (default in F/RHEL) the simultaneous execution of the
|
|
||||||
threads is inconvenient. Setting it to "on" will lockup the debugging as the
|
|
||||||
threads need to get synchronized at some point. This is a more general
|
|
||||||
debugging problem of GOMP outside of the scope of this Bug.
|
|
||||||
|
|
||||||
diff --git a/gdb/infrun.c b/gdb/infrun.c
|
|
||||||
--- a/gdb/infrun.c
|
|
||||||
+++ b/gdb/infrun.c
|
|
||||||
@@ -6788,6 +6788,16 @@ process_event_stop_test (struct execution_control_state *ecs)
|
|
||||||
|
|
||||||
if (ecs->event_thread->control.step_over_calls == STEP_OVER_ALL)
|
|
||||||
{
|
|
||||||
+ struct symbol *stop_fn = find_pc_function (stop_pc);
|
|
||||||
+ struct minimal_symbol *stopf = lookup_minimal_symbol_by_pc (stop_pc).minsym;
|
|
||||||
+
|
|
||||||
+ if ((stop_fn == NULL
|
|
||||||
+ || strstr (stop_fn->linkage_name (), ".omp_fn.") == NULL)
|
|
||||||
+ /* gcc-4.7.2-9.fc19.x86_64 uses a new format. */
|
|
||||||
+ && (stopf == NULL
|
|
||||||
+ || strstr (stopf->linkage_name (), "._omp_fn.") == NULL))
|
|
||||||
+{ /* ".omp_fn." */
|
|
||||||
+
|
|
||||||
/* We're doing a "next".
|
|
||||||
|
|
||||||
Normal (forward) execution: set a breakpoint at the
|
|
||||||
@@ -6821,6 +6831,7 @@ process_event_stop_test (struct execution_control_state *ecs)
|
|
||||||
|
|
||||||
keep_going (ecs);
|
|
||||||
return;
|
|
||||||
+} /* ".omp_fn." */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If we are in a function call trampoline (a stub between the
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/omp-step.exp b/gdb/testsuite/gdb.fortran/omp-step.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/omp-step.exp
|
|
||||||
@@ -0,0 +1,31 @@
|
|
||||||
+# Copyright 2009 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+set testfile "omp-step"
|
|
||||||
+set srcfile ${testfile}.f90
|
|
||||||
+if { [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90 additional_flags=-fopenmp}] } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if ![runto [gdb_get_line_number "start-here"]] {
|
|
||||||
+ perror "Couldn't run to start-here"
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test "next" {!\$omp parallel} "step closer"
|
|
||||||
+gdb_test "next" {a\(omp_get_thread_num\(\) \+ 1\) = 1} "step into omp"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "success"]
|
|
||||||
+gdb_continue_to_breakpoint "success" ".*success.*"
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/omp-step.f90 b/gdb/testsuite/gdb.fortran/omp-step.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/omp-step.f90
|
|
||||||
@@ -0,0 +1,32 @@
|
|
||||||
+! Copyright 2009 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ use omp_lib
|
|
||||||
+ integer nthreads, i, a(1000)
|
|
||||||
+ nthreads = omp_get_num_threads()
|
|
||||||
+ if (nthreads .gt. 1000) call abort
|
|
||||||
+
|
|
||||||
+ do i = 1, nthreads
|
|
||||||
+ a(i) = 0
|
|
||||||
+ end do
|
|
||||||
+ print *, "start-here"
|
|
||||||
+!$omp parallel
|
|
||||||
+ a(omp_get_thread_num() + 1) = 1
|
|
||||||
+!$omp end parallel
|
|
||||||
+ do i = 1, nthreads
|
|
||||||
+ if (a(i) .ne. 1) call abort
|
|
||||||
+ end do
|
|
||||||
+ print *, "success"
|
|
||||||
+ end
|
|
@ -1,254 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-bz601887-dwarf4-rh-test.patch
|
|
||||||
|
|
||||||
;; Backport DWARF-4 support (BZ 601887, Tom Tromey).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.S b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.S
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.S
|
|
||||||
@@ -0,0 +1,167 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
+
|
|
||||||
+ .file "rh-dwarf4-x86_64.c"
|
|
||||||
+ .section .debug_abbrev,"",@progbits
|
|
||||||
+.Ldebug_abbrev0:
|
|
||||||
+ .section .debug_info,"",@progbits
|
|
||||||
+.Ldebug_info0:
|
|
||||||
+ .section .debug_line,"",@progbits
|
|
||||||
+.Ldebug_line0:
|
|
||||||
+ .text
|
|
||||||
+.Ltext0:
|
|
||||||
+.globl main
|
|
||||||
+ .type main, @function
|
|
||||||
+main:
|
|
||||||
+.LFB0:
|
|
||||||
+ .file 1 "gdb.dwarf2/rh-dwarf4-x86_64.c"
|
|
||||||
+ # gdb.dwarf2/rh-dwarf4-x86_64.c:20
|
|
||||||
+ .loc 1 20 0
|
|
||||||
+ .cfi_startproc
|
|
||||||
+ # basic block 2
|
|
||||||
+ pushq %rbp
|
|
||||||
+ .cfi_def_cfa_offset 16
|
|
||||||
+ movq %rsp, %rbp
|
|
||||||
+ .cfi_offset 6, -16
|
|
||||||
+ .cfi_def_cfa_register 6
|
|
||||||
+ # gdb.dwarf2/rh-dwarf4-x86_64.c:21
|
|
||||||
+ .loc 1 21 0
|
|
||||||
+ movl $0, %eax
|
|
||||||
+ # gdb.dwarf2/rh-dwarf4-x86_64.c:22
|
|
||||||
+ .loc 1 22 0
|
|
||||||
+ leave
|
|
||||||
+ .cfi_def_cfa 7, 8
|
|
||||||
+ ret
|
|
||||||
+ .cfi_endproc
|
|
||||||
+.LFE0:
|
|
||||||
+ .size main, .-main
|
|
||||||
+.Letext0:
|
|
||||||
+ .section .debug_info
|
|
||||||
+ .long 0x4e # Length of Compilation Unit Info
|
|
||||||
+ .value 0x4 # DWARF version number
|
|
||||||
+ .long .Ldebug_abbrev0 # Offset Into Abbrev. Section
|
|
||||||
+ .byte 0x8 # Pointer Size (in bytes)
|
|
||||||
+ .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit)
|
|
||||||
+ .long .LASF0 # DW_AT_producer: "GNU C 4.4.4 20100503 (Red Hat 4.4.4-2)"
|
|
||||||
+ .byte 0x1 # DW_AT_language
|
|
||||||
+ .long .LASF1 # DW_AT_name: "gdb.dwarf2/rh-dwarf4-x86_64.c"
|
|
||||||
+ .long .LASF2 # DW_AT_comp_dir
|
|
||||||
+ .quad .Ltext0 # DW_AT_low_pc
|
|
||||||
+ .quad .Letext0 # DW_AT_high_pc
|
|
||||||
+ .long .Ldebug_line0 # DW_AT_stmt_list
|
|
||||||
+ .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram)
|
|
||||||
+ # DW_AT_external
|
|
||||||
+ .long .LASF3 # DW_AT_name: "main"
|
|
||||||
+ .byte 0x1 # DW_AT_decl_file (gdb.dwarf2/rh-dwarf4-x86_64.c)
|
|
||||||
+ .byte 0x13 # DW_AT_decl_line
|
|
||||||
+ # DW_AT_prototyped
|
|
||||||
+ .long 0x4a # DW_AT_type
|
|
||||||
+ .quad .LFB0 # DW_AT_low_pc
|
|
||||||
+ .quad .LFE0 # DW_AT_high_pc
|
|
||||||
+ .uleb128 0x1 # DW_AT_frame_base
|
|
||||||
+ .byte 0x9c # DW_OP_call_frame_cfa
|
|
||||||
+ .uleb128 0x3 # (DIE (0x4a) DW_TAG_base_type)
|
|
||||||
+ .byte 0x4 # DW_AT_byte_size
|
|
||||||
+ .byte 0x5 # DW_AT_encoding
|
|
||||||
+ .ascii "int\0" # DW_AT_name
|
|
||||||
+ .byte 0x0 # end of children of DIE 0xb
|
|
||||||
+ .section .debug_abbrev
|
|
||||||
+ .uleb128 0x1 # (abbrev code)
|
|
||||||
+ .uleb128 0x11 # (TAG: DW_TAG_compile_unit)
|
|
||||||
+ .byte 0x1 # DW_children_yes
|
|
||||||
+ .uleb128 0x25 # (DW_AT_producer)
|
|
||||||
+ .uleb128 0xe # (DW_FORM_strp)
|
|
||||||
+ .uleb128 0x13 # (DW_AT_language)
|
|
||||||
+ .uleb128 0xb # (DW_FORM_data1)
|
|
||||||
+ .uleb128 0x3 # (DW_AT_name)
|
|
||||||
+ .uleb128 0xe # (DW_FORM_strp)
|
|
||||||
+ .uleb128 0x1b # (DW_AT_comp_dir)
|
|
||||||
+ .uleb128 0xe # (DW_FORM_strp)
|
|
||||||
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
||||||
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
||||||
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
||||||
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
||||||
+ .uleb128 0x10 # (DW_AT_stmt_list)
|
|
||||||
+ .uleb128 0x17 # (DW_FORM_sec_offset)
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .uleb128 0x2 # (abbrev code)
|
|
||||||
+ .uleb128 0x2e # (TAG: DW_TAG_subprogram)
|
|
||||||
+ .byte 0x0 # DW_children_no
|
|
||||||
+ .uleb128 0x3f # (DW_AT_external)
|
|
||||||
+ .uleb128 0x19 # (DW_FORM_flag_present)
|
|
||||||
+ .uleb128 0x3 # (DW_AT_name)
|
|
||||||
+ .uleb128 0xe # (DW_FORM_strp)
|
|
||||||
+ .uleb128 0x3a # (DW_AT_decl_file)
|
|
||||||
+ .uleb128 0xb # (DW_FORM_data1)
|
|
||||||
+ .uleb128 0x3b # (DW_AT_decl_line)
|
|
||||||
+ .uleb128 0xb # (DW_FORM_data1)
|
|
||||||
+ .uleb128 0x27 # (DW_AT_prototyped)
|
|
||||||
+ .uleb128 0x19 # (DW_FORM_flag_present)
|
|
||||||
+ .uleb128 0x49 # (DW_AT_type)
|
|
||||||
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
||||||
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
||||||
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
||||||
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
||||||
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
||||||
+ .uleb128 0x40 # (DW_AT_frame_base)
|
|
||||||
+ .uleb128 0x18 # (DW_FORM_exprloc)
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .uleb128 0x3 # (abbrev code)
|
|
||||||
+ .uleb128 0x24 # (TAG: DW_TAG_base_type)
|
|
||||||
+ .byte 0x0 # DW_children_no
|
|
||||||
+ .uleb128 0xb # (DW_AT_byte_size)
|
|
||||||
+ .uleb128 0xb # (DW_FORM_data1)
|
|
||||||
+ .uleb128 0x3e # (DW_AT_encoding)
|
|
||||||
+ .uleb128 0xb # (DW_FORM_data1)
|
|
||||||
+ .uleb128 0x3 # (DW_AT_name)
|
|
||||||
+ .uleb128 0x8 # (DW_FORM_string)
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .byte 0x0
|
|
||||||
+ .section .debug_pubnames,"",@progbits
|
|
||||||
+ .long 0x17 # Length of Public Names Info
|
|
||||||
+ .value 0x2 # DWARF Version
|
|
||||||
+ .long .Ldebug_info0 # Offset of Compilation Unit Info
|
|
||||||
+ .long 0x52 # Compilation Unit Length
|
|
||||||
+ .long 0x2d # DIE offset
|
|
||||||
+ .ascii "main\0" # external name
|
|
||||||
+ .long 0x0
|
|
||||||
+ .section .debug_aranges,"",@progbits
|
|
||||||
+ .long 0x2c # Length of Address Ranges Info
|
|
||||||
+ .value 0x2 # DWARF Version
|
|
||||||
+ .long .Ldebug_info0 # Offset of Compilation Unit Info
|
|
||||||
+ .byte 0x8 # Size of Address
|
|
||||||
+ .byte 0x0 # Size of Segment Descriptor
|
|
||||||
+ .value 0x0 # Pad to 16 byte boundary
|
|
||||||
+ .value 0x0
|
|
||||||
+ .quad .Ltext0 # Address
|
|
||||||
+ .quad .Letext0-.Ltext0 # Length
|
|
||||||
+ .quad 0x0
|
|
||||||
+ .quad 0x0
|
|
||||||
+ .section .debug_str,"MS",@progbits,1
|
|
||||||
+.LASF2:
|
|
||||||
+ .string "."
|
|
||||||
+.LASF0:
|
|
||||||
+ .string "GNU C 4.4.4 20100503 (Red Hat 4.4.4-2)"
|
|
||||||
+.LASF1:
|
|
||||||
+ .string "gdb.dwarf2/rh-dwarf4-x86_64.c"
|
|
||||||
+.LASF3:
|
|
||||||
+ .string "main"
|
|
||||||
+ .ident "GCC: (GNU) 4.4.4 20100503 (Red Hat 4.4.4-2)"
|
|
||||||
+ .section .note.GNU-stack,"",@progbits
|
|
||||||
diff --git a/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.c b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.c
|
|
||||||
@@ -0,0 +1,22 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main (void)
|
|
||||||
+{
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.exp b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.dwarf2/rh-dwarf4-x86_64.exp
|
|
||||||
@@ -0,0 +1,42 @@
|
|
||||||
+# Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# This test can only be run on targets which support DWARF-2 and use gas.
|
|
||||||
+# For now pick a sampling of likely targets.
|
|
||||||
+if {![istarget *-*-linux*]
|
|
||||||
+ && ![istarget *-*-gnu*]
|
|
||||||
+ && ![istarget *-*-elf*]
|
|
||||||
+ && ![istarget *-*-openbsd*]
|
|
||||||
+ && ![istarget arm-*-eabi*]
|
|
||||||
+ && ![istarget powerpc-*-eabi*]} {
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if {![istarget x86_64-*]} {
|
|
||||||
+ return 0
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+set testfile "rh-dwarf4-x86_64"
|
|
||||||
+set srcfile ${testfile}.S
|
|
||||||
+set executable ${testfile}.x
|
|
||||||
+set binfile [standard_output_file ${executable}]
|
|
||||||
+
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+clean_restart $executable
|
|
||||||
+
|
|
||||||
+gdb_test "ptype main" {type = int \(void\)}
|
|
@ -38,4 +38,4 @@ new file mode 100644
|
|||||||
+# Skip all tests if Python scripting is not enabled.
|
+# Skip all tests if Python scripting is not enabled.
|
||||||
+if { [skip_python_tests] } { continue }
|
+if { [skip_python_tests] } { continue }
|
||||||
+
|
+
|
||||||
+gdb_test "python print gdb.solib_name(-1)" "None" "gdb.solib_name exists"
|
+gdb_test "python print (gdb.solib_name(-1))" "None" "gdb.solib_name exists"
|
||||||
|
@ -9,9 +9,9 @@ Subject: gdb-ccache-workaround.patch
|
|||||||
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
|
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
|
||||||
--- a/gdb/testsuite/gdb.base/macscp.exp
|
--- a/gdb/testsuite/gdb.base/macscp.exp
|
||||||
+++ b/gdb/testsuite/gdb.base/macscp.exp
|
+++ b/gdb/testsuite/gdb.base/macscp.exp
|
||||||
@@ -25,6 +25,14 @@ if { [test_compiler_info "gcc-*"] || [test_compiler_info "clang-*"] } {
|
@@ -20,6 +20,14 @@ set objfile [standard_output_file ${testfile}.o]
|
||||||
lappend options additional_flags=-g3
|
|
||||||
}
|
set options {debug macros additional_flags=-DFROM_COMMANDLINE=ARG}
|
||||||
|
|
||||||
+# Workaround ccache making lineno non-zero for command-line definitions.
|
+# Workaround ccache making lineno non-zero for command-line definitions.
|
||||||
+if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} {
|
+if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} {
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
diff -Nrup a/gnulib/import/m4/alloca.m4 b/gnulib/import/m4/alloca.m4
|
|
||||||
--- a/gnulib/import/m4/alloca.m4 2019-11-18 18:49:20.000000000 -0700
|
|
||||||
+++ b/gnulib/import/m4/alloca.m4 2020-01-11 01:07:36.200483085 -0700
|
|
||||||
@@ -89,7 +89,7 @@ AC_CACHE_CHECK([stack direction for C al
|
|
||||||
[ac_cv_c_stack_direction],
|
|
||||||
[AC_RUN_IFELSE([AC_LANG_SOURCE(
|
|
||||||
[AC_INCLUDES_DEFAULT
|
|
||||||
-int
|
|
||||||
+__attribute__ (noinline,noclone)) int
|
|
||||||
find_stack_direction (int *addr, int depth)
|
|
||||||
{
|
|
||||||
int dir, dummy = 0;
|
|
||||||
diff -Nrup a/libiberty/aclocal.m4 b/libiberty/aclocal.m4
|
|
||||||
--- a/libiberty/aclocal.m4 2019-01-19 09:01:34.000000000 -0700
|
|
||||||
+++ b/libiberty/aclocal.m4 2020-01-09 22:00:27.183312982 -0700
|
|
||||||
@@ -147,7 +147,7 @@ if test $ac_cv_os_cray = yes; then
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
|
|
||||||
-[AC_TRY_RUN([find_stack_direction ()
|
|
||||||
+[AC_TRY_RUN([__attribute__ ((noclone,noinline)) find_stack_direction ()
|
|
||||||
{
|
|
||||||
static char *addr = 0;
|
|
||||||
auto char dummy;
|
|
||||||
diff --git a/config/intdiv0.m4 b/config/intdiv0.m4
|
|
||||||
index 55dddcf1..ba906efc 100644
|
|
||||||
--- a/config/intdiv0.m4
|
|
||||||
+++ b/config/intdiv0.m4
|
|
||||||
@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
|
|
||||||
exit (sig != SIGFPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
-int x = 1;
|
|
||||||
-int y = 0;
|
|
||||||
-int z;
|
|
||||||
-int nan;
|
|
||||||
+volatile int x = 1;
|
|
||||||
+volatile int y = 0;
|
|
||||||
+volatile int z;
|
|
||||||
+volatile int nan;
|
|
||||||
|
|
||||||
int main ()
|
|
||||||
{
|
|
||||||
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
|
|
||||||
index f1ce7601..fc20d228 100644
|
|
||||||
--- a/libiberty/configure.ac
|
|
||||||
+++ b/libiberty/configure.ac
|
|
||||||
@@ -661,7 +661,7 @@ if test -z "${setobjs}"; then
|
|
||||||
for v in $vars; do
|
|
||||||
AC_MSG_CHECKING([for $v])
|
|
||||||
AC_CACHE_VAL(libiberty_cv_var_$v,
|
|
||||||
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])],
|
|
||||||
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[__attribute__ ((used)) int *p;]],[[extern int $v []; p = $v;]])],
|
|
||||||
[eval "libiberty_cv_var_$v=yes"],
|
|
||||||
[eval "libiberty_cv_var_$v=no"])])
|
|
||||||
if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
|
|
@ -9,7 +9,7 @@ Subject: gdb-container-rh-pkg.patch
|
|||||||
diff --git a/gdb/remote.c b/gdb/remote.c
|
diff --git a/gdb/remote.c b/gdb/remote.c
|
||||||
--- a/gdb/remote.c
|
--- a/gdb/remote.c
|
||||||
+++ b/gdb/remote.c
|
+++ b/gdb/remote.c
|
||||||
@@ -14031,7 +14031,17 @@ remote_target::pid_to_exec_file (int pid)
|
@@ -14301,7 +14301,17 @@ remote_target::pid_to_exec_file (int pid)
|
||||||
char *annex = NULL;
|
char *annex = NULL;
|
||||||
|
|
||||||
if (packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
|
if (packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
|
||||||
|
@ -25,9 +25,9 @@ diff --git a/gdb/testsuite/gdb.base/solib-symbol.exp b/gdb/testsuite/gdb.base/so
|
|||||||
set bin_flags [list debug shlib=${binfile_lib}]
|
set bin_flags [list debug shlib=${binfile_lib}]
|
||||||
+set executable ${testfile}
|
+set executable ${testfile}
|
||||||
|
|
||||||
if [get_compiler_info] {
|
if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
|
||||||
return -1
|
|| [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
|
||||||
@@ -71,8 +72,26 @@ gdb_test "br foo2" \
|
@@ -66,8 +67,26 @@ gdb_test "br foo2" \
|
||||||
"Breakpoint.*: foo2. .2 locations..*" \
|
"Breakpoint.*: foo2. .2 locations..*" \
|
||||||
"foo2 in mdlib"
|
"foo2 in mdlib"
|
||||||
|
|
||||||
|
@ -1,315 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-dts-rhel6-python-compat.patch
|
|
||||||
|
|
||||||
;; [rhel6] DTS backward Python compatibility API (BZ 1020004, Phil Muldoon).
|
|
||||||
;;=fedora
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=1020004
|
|
||||||
|
|
||||||
diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in
|
|
||||||
--- a/gdb/data-directory/Makefile.in
|
|
||||||
+++ b/gdb/data-directory/Makefile.in
|
|
||||||
@@ -71,6 +71,8 @@ PYTHON_FILE_LIST = \
|
|
||||||
gdb/__init__.py \
|
|
||||||
gdb/FrameDecorator.py \
|
|
||||||
gdb/FrameIterator.py \
|
|
||||||
+ gdb/FrameWrapper.py \
|
|
||||||
+ gdb/backtrace.py \
|
|
||||||
gdb/frames.py \
|
|
||||||
gdb/printing.py \
|
|
||||||
gdb/prompt.py \
|
|
||||||
@@ -79,6 +81,7 @@ PYTHON_FILE_LIST = \
|
|
||||||
gdb/xmethod.py \
|
|
||||||
gdb/command/__init__.py \
|
|
||||||
gdb/command/explore.py \
|
|
||||||
+ gdb/command/backtrace.py \
|
|
||||||
gdb/command/frame_filters.py \
|
|
||||||
gdb/command/pretty_printers.py \
|
|
||||||
gdb/command/prompt.py \
|
|
||||||
diff --git a/gdb/python/lib/gdb/FrameWrapper.py b/gdb/python/lib/gdb/FrameWrapper.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/python/lib/gdb/FrameWrapper.py
|
|
||||||
@@ -0,0 +1,122 @@
|
|
||||||
+# Wrapper API for frames.
|
|
||||||
+
|
|
||||||
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+
|
|
||||||
+# FIXME: arguably all this should be on Frame somehow.
|
|
||||||
+class FrameWrapper:
|
|
||||||
+ def __init__ (self, frame):
|
|
||||||
+ self.frame = frame;
|
|
||||||
+
|
|
||||||
+ def write_symbol (self, stream, sym, block):
|
|
||||||
+ if len (sym.linkage_name):
|
|
||||||
+ nsym, is_field_of_this = gdb.lookup_symbol (sym.linkage_name, block)
|
|
||||||
+ if nsym.addr_class != gdb.SYMBOL_LOC_REGISTER:
|
|
||||||
+ sym = nsym
|
|
||||||
+
|
|
||||||
+ stream.write (sym.print_name + "=")
|
|
||||||
+ try:
|
|
||||||
+ val = self.read_var (sym)
|
|
||||||
+ if val != None:
|
|
||||||
+ val = str (val)
|
|
||||||
+ # FIXME: would be nice to have a more precise exception here.
|
|
||||||
+ except RuntimeError as text:
|
|
||||||
+ val = text
|
|
||||||
+ if val == None:
|
|
||||||
+ stream.write ("???")
|
|
||||||
+ else:
|
|
||||||
+ stream.write (str (val))
|
|
||||||
+
|
|
||||||
+ def print_frame_locals (self, stream, func):
|
|
||||||
+
|
|
||||||
+ try:
|
|
||||||
+ block = self.frame.block()
|
|
||||||
+ except RuntimeError:
|
|
||||||
+ block = None
|
|
||||||
+
|
|
||||||
+ while block != None:
|
|
||||||
+ if block.is_global or block.is_static:
|
|
||||||
+ break
|
|
||||||
+
|
|
||||||
+ for sym in block:
|
|
||||||
+ if sym.is_argument:
|
|
||||||
+ continue;
|
|
||||||
+
|
|
||||||
+ self.write_symbol (stream, sym, block)
|
|
||||||
+ stream.write ('\n')
|
|
||||||
+
|
|
||||||
+ def print_frame_args (self, stream, func):
|
|
||||||
+
|
|
||||||
+ try:
|
|
||||||
+ block = self.frame.block()
|
|
||||||
+ except RuntimeError:
|
|
||||||
+ block = None
|
|
||||||
+
|
|
||||||
+ while block != None:
|
|
||||||
+ if block.function != None:
|
|
||||||
+ break
|
|
||||||
+ block = block.superblock
|
|
||||||
+
|
|
||||||
+ first = True
|
|
||||||
+ for sym in block:
|
|
||||||
+ if not sym.is_argument:
|
|
||||||
+ continue;
|
|
||||||
+
|
|
||||||
+ if not first:
|
|
||||||
+ stream.write (", ")
|
|
||||||
+
|
|
||||||
+ self.write_symbol (stream, sym, block)
|
|
||||||
+ first = False
|
|
||||||
+
|
|
||||||
+ # FIXME: this should probably just be a method on gdb.Frame.
|
|
||||||
+ # But then we need stream wrappers.
|
|
||||||
+ def describe (self, stream, full):
|
|
||||||
+ if self.type () == gdb.DUMMY_FRAME:
|
|
||||||
+ stream.write (" <function called from gdb>\n")
|
|
||||||
+ elif self.type () == gdb.SIGTRAMP_FRAME:
|
|
||||||
+ stream.write (" <signal handler called>\n")
|
|
||||||
+ else:
|
|
||||||
+ sal = self.find_sal ()
|
|
||||||
+ pc = self.pc ()
|
|
||||||
+ name = self.name ()
|
|
||||||
+ if not name:
|
|
||||||
+ name = "??"
|
|
||||||
+ if pc != sal.pc or not sal.symtab:
|
|
||||||
+ stream.write (" 0x%08x in" % pc)
|
|
||||||
+ stream.write (" " + name + " (")
|
|
||||||
+
|
|
||||||
+ func = self.function ()
|
|
||||||
+ self.print_frame_args (stream, func)
|
|
||||||
+
|
|
||||||
+ stream.write (")")
|
|
||||||
+
|
|
||||||
+ if sal.symtab and sal.symtab.filename:
|
|
||||||
+ stream.write (" at " + sal.symtab.filename)
|
|
||||||
+ stream.write (":" + str (sal.line))
|
|
||||||
+
|
|
||||||
+ if not self.name () or (not sal.symtab or not sal.symtab.filename):
|
|
||||||
+ lib = gdb.solib_name (pc)
|
|
||||||
+ if lib:
|
|
||||||
+ stream.write (" from " + lib)
|
|
||||||
+
|
|
||||||
+ stream.write ("\n")
|
|
||||||
+
|
|
||||||
+ if full:
|
|
||||||
+ self.print_frame_locals (stream, func)
|
|
||||||
+
|
|
||||||
+ def __getattr__ (self, name):
|
|
||||||
+ return getattr (self.frame, name)
|
|
||||||
diff --git a/gdb/python/lib/gdb/backtrace.py b/gdb/python/lib/gdb/backtrace.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/python/lib/gdb/backtrace.py
|
|
||||||
@@ -0,0 +1,42 @@
|
|
||||||
+# Filtering backtrace.
|
|
||||||
+
|
|
||||||
+# Copyright (C) 2008, 2011 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+import itertools
|
|
||||||
+
|
|
||||||
+# Our only exports.
|
|
||||||
+__all__ = ['push_frame_filter', 'create_frame_filter']
|
|
||||||
+
|
|
||||||
+old_frame_filter = None
|
|
||||||
+
|
|
||||||
+def push_frame_filter (constructor):
|
|
||||||
+ """Register a new backtrace filter class with the 'backtrace' command.
|
|
||||||
+The filter will be passed an iterator as an argument. The iterator
|
|
||||||
+will return gdb.Frame-like objects. The filter should in turn act as
|
|
||||||
+an iterator returning such objects."""
|
|
||||||
+ global old_frame_filter
|
|
||||||
+ if old_frame_filter == None:
|
|
||||||
+ old_frame_filter = constructor
|
|
||||||
+ else:
|
|
||||||
+ old_frame_filter = lambda iterator, filter = frame_filter: constructor (filter(iterator))
|
|
||||||
+
|
|
||||||
+def create_frame_filter (iter):
|
|
||||||
+ global old_frame_filter
|
|
||||||
+ if old_frame_filter is None:
|
|
||||||
+ return iter
|
|
||||||
+ return old_frame_filter (iter)
|
|
||||||
+
|
|
||||||
diff --git a/gdb/python/lib/gdb/command/backtrace.py b/gdb/python/lib/gdb/command/backtrace.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/python/lib/gdb/command/backtrace.py
|
|
||||||
@@ -0,0 +1,106 @@
|
|
||||||
+# New backtrace command.
|
|
||||||
+
|
|
||||||
+# Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+import gdb.backtrace
|
|
||||||
+import itertools
|
|
||||||
+from gdb.FrameIterator import FrameIterator
|
|
||||||
+from gdb.FrameWrapper import FrameWrapper
|
|
||||||
+import sys
|
|
||||||
+
|
|
||||||
+class ReverseBacktraceParameter (gdb.Parameter):
|
|
||||||
+ """The new-backtrace command can show backtraces in 'reverse' order.
|
|
||||||
+This means that the innermost frame will be printed last.
|
|
||||||
+Note that reverse backtraces are more expensive to compute."""
|
|
||||||
+
|
|
||||||
+ set_doc = "Enable or disable reverse backtraces."
|
|
||||||
+ show_doc = "Show whether backtraces will be printed in reverse order."
|
|
||||||
+
|
|
||||||
+ def __init__(self):
|
|
||||||
+ gdb.Parameter.__init__ (self, "reverse-backtrace",
|
|
||||||
+ gdb.COMMAND_STACK, gdb.PARAM_BOOLEAN)
|
|
||||||
+ # Default to compatibility with gdb.
|
|
||||||
+ self.value = False
|
|
||||||
+
|
|
||||||
+class FilteringBacktrace (gdb.Command):
|
|
||||||
+ """Print backtrace of all stack frames, or innermost COUNT frames.
|
|
||||||
+With a negative argument, print outermost -COUNT frames.
|
|
||||||
+Use of the 'full' qualifier also prints the values of the local variables.
|
|
||||||
+Use of the 'raw' qualifier avoids any filtering by loadable modules.
|
|
||||||
+"""
|
|
||||||
+
|
|
||||||
+ def __init__ (self):
|
|
||||||
+ # FIXME: this is not working quite well enough to replace
|
|
||||||
+ # "backtrace" yet.
|
|
||||||
+ gdb.Command.__init__ (self, "new-backtrace", gdb.COMMAND_STACK)
|
|
||||||
+ self.reverse = ReverseBacktraceParameter()
|
|
||||||
+
|
|
||||||
+ def reverse_iter (self, iter):
|
|
||||||
+ result = []
|
|
||||||
+ for item in iter:
|
|
||||||
+ result.append (item)
|
|
||||||
+ result.reverse()
|
|
||||||
+ return result
|
|
||||||
+
|
|
||||||
+ def final_n (self, iter, x):
|
|
||||||
+ result = []
|
|
||||||
+ for item in iter:
|
|
||||||
+ result.append (item)
|
|
||||||
+ return result[x:]
|
|
||||||
+
|
|
||||||
+ def invoke (self, arg, from_tty):
|
|
||||||
+ i = 0
|
|
||||||
+ count = 0
|
|
||||||
+ filter = True
|
|
||||||
+ full = False
|
|
||||||
+
|
|
||||||
+ for word in arg.split (" "):
|
|
||||||
+ if word == '':
|
|
||||||
+ continue
|
|
||||||
+ elif word == 'raw':
|
|
||||||
+ filter = False
|
|
||||||
+ elif word == 'full':
|
|
||||||
+ full = True
|
|
||||||
+ else:
|
|
||||||
+ count = int (word)
|
|
||||||
+
|
|
||||||
+ # FIXME: provide option to start at selected frame
|
|
||||||
+ # However, should still number as if starting from newest
|
|
||||||
+ newest_frame = gdb.newest_frame()
|
|
||||||
+ iter = itertools.imap (FrameWrapper,
|
|
||||||
+ FrameIterator (newest_frame))
|
|
||||||
+ if filter:
|
|
||||||
+ iter = gdb.backtrace.create_frame_filter (iter)
|
|
||||||
+
|
|
||||||
+ # Now wrap in an iterator that numbers the frames.
|
|
||||||
+ iter = itertools.izip (itertools.count (0), iter)
|
|
||||||
+
|
|
||||||
+ # Reverse if the user wanted that.
|
|
||||||
+ if self.reverse.value:
|
|
||||||
+ iter = self.reverse_iter (iter)
|
|
||||||
+
|
|
||||||
+ # Extract sub-range user wants.
|
|
||||||
+ if count < 0:
|
|
||||||
+ iter = self.final_n (iter, count)
|
|
||||||
+ elif count > 0:
|
|
||||||
+ iter = itertools.islice (iter, 0, count)
|
|
||||||
+
|
|
||||||
+ for pair in iter:
|
|
||||||
+ sys.stdout.write ("#%-2d" % pair[0])
|
|
||||||
+ pair[1].describe (sys.stdout, full)
|
|
||||||
+
|
|
||||||
+FilteringBacktrace()
|
|
@ -1,194 +0,0 @@
|
|||||||
http://sourceware.org/ml/gdb-patches/2014-07/msg00530.html
|
|
||||||
Subject: [read_frame_arg patch] Handle partially optimized out values similarly to unavailable values (Re: [patchv2] Fix crash on optimized-out entry data values)
|
|
||||||
|
|
||||||
|
|
||||||
--V88s5gaDVPzZ0KCq
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline
|
|
||||||
|
|
||||||
On Thu, 17 Jul 2014 14:23:06 +0200, Pedro Alves wrote:
|
|
||||||
> On 07/16/2014 10:58 PM, Jan Kratochvil wrote:
|
|
||||||
> > This patch is apparently not suitable for gdb-7.8 which is I guess often
|
|
||||||
> > crashing on -O2 -g entry values so there could be some rather minimal crash
|
|
||||||
> > avoiding patch instead.
|
|
||||||
>
|
|
||||||
> Yeah.
|
|
||||||
>
|
|
||||||
> So this was originally "caused" (more exposed) by 4f14910f:
|
|
||||||
>
|
|
||||||
> gdb/ChangeLog
|
|
||||||
> 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
|
|
||||||
>
|
|
||||||
> * value.c (allocate_optimized_out_value): Mark value as non-lazy.
|
|
||||||
>
|
|
||||||
> I tried a few approaches in value_available_contents_eq
|
|
||||||
> today, and ended up thinking that the simplest should be to
|
|
||||||
> just revert that patch until we have the fuller fix in place.
|
|
||||||
|
|
||||||
OK, that seems as the best solution for 7.8 to me.
|
|
||||||
|
|
||||||
|
|
||||||
> While doing just that fixes the crash, it surprisingly causes
|
|
||||||
> one of your new tests to FAIL:
|
|
||||||
>
|
|
||||||
> (gdb) frame
|
|
||||||
> #0 bar (ref=ref@entry=@0x7fffffffd184: 10) at gdb.arch/amd64-entry-value-paramref.cc:23
|
|
||||||
> 23 vv++; /* break-here */
|
|
||||||
> (gdb) FAIL: gdb.arch/amd64-entry-value-paramref.exp: frame
|
|
||||||
|
|
||||||
There is a bug in that entry value code of mine, fix attached.
|
|
||||||
The testcase then PASSes with the reverted optimization by Andrew Burgess.
|
|
||||||
|
|
||||||
For the attached fix - if you nitpick the missing conditional case:
|
|
||||||
value_optimized_out (val_deref) && value_optimized_out (entryval_deref)
|
|
||||||
It is not detected there but that IMO does not matter much as
|
|
||||||
* It is for 7.8 only, for trunk it will get compared correctly thanks to the
|
|
||||||
new implementation of value_available_contents_eq()
|
|
||||||
called value_contents_eq().
|
|
||||||
* If the conditional
|
|
||||||
if (val != val_deref
|
|
||||||
&& !value_optimized_out (val_deref)
|
|
||||||
&& !value_optimized_out (entryval_deref)
|
|
||||||
&& value_available_contents_eq (val_deref, 0,
|
|
||||||
entryval_deref, 0,
|
|
||||||
TYPE_LENGTH (type_deref)))
|
|
||||||
val_equal = 1;
|
|
||||||
fails it may just print
|
|
||||||
bar (ref=@0x7fffffffd904: <optimized out>, ref@entry=@0x7fffffffd904: <optimized out>)
|
|
||||||
(or some variant with some partially optimized-out/unavailable parts)
|
|
||||||
instead of the more correct
|
|
||||||
bar (ref=ref@entry=@0x7fffffffd904: <optimized out>)
|
|
||||||
which is not much a bug.
|
|
||||||
|
|
||||||
The attached fix no longe makes sense after the new implementation
|
|
||||||
of value_available_contents_eq() called value_contents_eq() gets applied as it
|
|
||||||
handles all the optimized-out/unavailable values on its own, therefore the
|
|
||||||
attached patch is really only for 7.8.
|
|
||||||
|
|
||||||
|
|
||||||
> Turns out it's the code disabled in value_of_dwarf_reg_entry:
|
|
||||||
>
|
|
||||||
> target_val = dwarf_entry_parameter_to_value (parameter,
|
|
||||||
> TYPE_LENGTH (target_type),
|
|
||||||
> target_type, caller_frame,
|
|
||||||
> caller_per_cu);
|
|
||||||
>
|
|
||||||
> /* value_as_address dereferences TYPE_CODE_REF. */
|
|
||||||
> addr = extract_typed_address (value_contents (outer_val), checked_type);
|
|
||||||
>
|
|
||||||
> /* The target entry value has artificial address of the entry value
|
|
||||||
> reference. */
|
|
||||||
> VALUE_LVAL (target_val) = lval_memory;
|
|
||||||
> set_value_address (target_val, addr);
|
|
||||||
>
|
|
||||||
> It looks quite wrong to me to just change a value's lval like that.
|
|
||||||
>
|
|
||||||
> I ran the testsuite with that code disabled (like in the patch below),
|
|
||||||
> and that caused no regressions. I can't say I really understand the
|
|
||||||
> intention here though. What would we be missing if we removed that code?
|
|
||||||
|
|
||||||
I cannot reproduce any wrong case having the code above #if 0-ed.
|
|
||||||
|
|
||||||
I just do not find it correct to have it disabled. But at the same time I do
|
|
||||||
like much / I do not find correct the code myself. It is a bit problematic to
|
|
||||||
have struct value describing a memory content which is no longer present
|
|
||||||
there.
|
|
||||||
|
|
||||||
What happens there:
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
volatile int vv;
|
|
||||||
static __attribute__((noinline)) int
|
|
||||||
bar (int &ref) {
|
|
||||||
ref = 20;
|
|
||||||
vv++; /* break-here */
|
|
||||||
return ref;
|
|
||||||
}
|
|
||||||
int main (void) {
|
|
||||||
int var = 10;
|
|
||||||
return bar (var);
|
|
||||||
}
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
<4><c7>: Abbrev Number: 13 (DW_TAG_GNU_call_site_parameter)
|
|
||||||
<c8> DW_AT_location : 1 byte block: 55 (DW_OP_reg5 (rdi))
|
|
||||||
<ca> DW_AT_GNU_call_site_value: 2 byte block: 91 74 (DW_OP_fbreg: -12)
|
|
||||||
<cd> DW_AT_GNU_call_site_data_value: 1 byte block: 3a (DW_OP_lit10)
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
gdb -ex 'b value_addr' -ex r --args ../gdb ./1 -ex 'watch vv' -ex r -ex 'p &ref@entry'
|
|
||||||
->
|
|
||||||
6 return ref;
|
|
||||||
bar (ref=@0x7fffffffd944: 20, ref@entry=@0x7fffffffd944: 10) at 1.C:25
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
At /* break-here */ struct value variable 'ref' is TYPE_CODE_REF.
|
|
||||||
|
|
||||||
With FSF GDB HEAD:
|
|
||||||
(gdb) x/gx arg1.contents
|
|
||||||
0x6004000a4ad0: 0x00007fffffffd944
|
|
||||||
(gdb) p ((struct value *)arg1.location.computed.closure).lval
|
|
||||||
$1 = lval_memory
|
|
||||||
(gdb) p/x ((struct value *)arg1.location.computed.closure).location.address
|
|
||||||
$3 = 0x7fffffffd944
|
|
||||||
|
|
||||||
With your #if0-ed code:
|
|
||||||
(gdb) x/gx arg1.contents
|
|
||||||
0x6004000a4ad0: 0x00007fffffffd944
|
|
||||||
(gdb) p ((struct value *)arg1.location.computed.closure).lval
|
|
||||||
$8 = not_lval
|
|
||||||
(gdb) p/x ((struct value *)arg1.location.computed.closure).location.address
|
|
||||||
$9 = 0x0
|
|
||||||
|
|
||||||
I do not see how to access
|
|
||||||
((struct value *)arg1.location.computed.closure).location.address
|
|
||||||
from GDB CLI. Trying
|
|
||||||
(gdb) p &ref@entry
|
|
||||||
will invoke value_addr()'s:
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_REF)
|
|
||||||
/* Copy the value, but change the type from (T&) to (T*). We
|
|
||||||
keep the same location information, which is efficient, and
|
|
||||||
allows &(&X) to get the location containing the reference. */
|
|
||||||
and therefore the address gets fetched already from
|
|
||||||
arg1.contents
|
|
||||||
and not from
|
|
||||||
((struct value *)arg1.location.computed.closure).location.address
|
|
||||||
.
|
|
||||||
|
|
||||||
And for any other type than TYPE_CODE_REF this code you #if 0-ed does not get
|
|
||||||
executed at all. This DW_AT_GNU_call_site_data_value DWARF was meant
|
|
||||||
primarily for Fortran but with -O0 entry values do not get produced
|
|
||||||
and with -Og and higher Fortran always optimizes out the passing by reference.
|
|
||||||
|
|
||||||
If you do not like the #if 0 code there I am OK with removing it as I do not
|
|
||||||
know how to make it's use reproducible for user anyway. In the worst case
|
|
||||||
- if there really is some way how to exploit it - one should just get
|
|
||||||
Attempt to take address of value not located in memory.
|
|
||||||
instead of some wrong value and it may be easy to fix then.
|
|
||||||
|
|
||||||
|
|
||||||
Thanks for the analysis,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
--V88s5gaDVPzZ0KCq
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline; filename=1
|
|
||||||
|
|
||||||
gdb/
|
|
||||||
2014-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* stack.c (read_frame_arg): Verify value_optimized_out before calling
|
|
||||||
value_available_contents_eq.
|
|
||||||
|
|
||||||
diff --git a/gdb/stack.c b/gdb/stack.c
|
|
||||||
index 0d6d8e7..4db5df5 100644
|
|
||||||
--- a/gdb/stack.c
|
|
||||||
+++ b/gdb/stack.c
|
|
||||||
@@ -413,6 +413,8 @@ read_frame_arg (struct symbol *sym, struct frame_info *frame,
|
|
||||||
/* If the reference addresses match but dereferenced
|
|
||||||
content does not match print them. */
|
|
||||||
if (val != val_deref
|
|
||||||
+ && !value_optimized_out (val_deref)
|
|
||||||
+ && !value_optimized_out (entryval_deref)
|
|
||||||
&& value_available_contents_eq (val_deref, 0,
|
|
||||||
entryval_deref, 0,
|
|
||||||
TYPE_LENGTH (type_deref)))
|
|
||||||
|
|
||||||
--V88s5gaDVPzZ0KCq--
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
revert:
|
|
||||||
commit 4f14910fa1331398cc695011a6af43a89252b4b1
|
|
||||||
Author: Andrew Burgess <aburgess@broadcom.com>
|
|
||||||
Date: Tue Nov 26 16:21:53 2013 +0000
|
|
||||||
|
|
||||||
Mark entirely optimized out value as non-lazy.
|
|
||||||
|
|
||||||
If a value is entirely optimized out, then there's nothing for
|
|
||||||
value_fetch_lazy to fetch. Sequences like:
|
|
||||||
|
|
||||||
if (value_lazy (retval))
|
|
||||||
value_fetch_lazy (retval);
|
|
||||||
|
|
||||||
End up allocating the value contents buffer, wasting memory, for no
|
|
||||||
use.
|
|
||||||
|
|
||||||
gdb/ChangeLog
|
|
||||||
2013-11-26 Andrew Burgess <aburgess@broadcom.com>
|
|
||||||
|
|
||||||
* value.c (allocate_optimized_out_value): Mark value as non-lazy.
|
|
||||||
|
|
||||||
### a/gdb/ChangeLog
|
|
||||||
### b/gdb/ChangeLog
|
|
||||||
## -1,3 +1,7 @@
|
|
||||||
+2013-11-26 Andrew Burgess <aburgess@broadcom.com>
|
|
||||||
+
|
|
||||||
+ * value.c (allocate_optimized_out_value): Mark value as non-lazy.
|
|
||||||
+
|
|
||||||
2013-11-26 Tom Tromey <tromey@redhat.com>
|
|
||||||
|
|
||||||
* dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
|
|
||||||
diff --git a/gdb/value.c b/gdb/value.c
|
|
||||||
index 29abe5f..f073d71 100644
|
|
||||||
--- a/gdb/value.c
|
|
||||||
+++ b/gdb/value.c
|
|
||||||
@@ -906,7 +906,7 @@ allocate_optimized_out_value (struct type *type)
|
|
||||||
struct value *retval = allocate_value_lazy (type);
|
|
||||||
|
|
||||||
set_value_optimized_out (retval, 1);
|
|
||||||
- set_value_lazy (retval, 0);
|
|
||||||
+
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1270534
|
|||||||
diff --git a/gdb/configure b/gdb/configure
|
diff --git a/gdb/configure b/gdb/configure
|
||||||
--- a/gdb/configure
|
--- a/gdb/configure
|
||||||
+++ b/gdb/configure
|
+++ b/gdb/configure
|
||||||
@@ -9649,6 +9649,7 @@ if test x"$prefer_curses" = xyes; then
|
@@ -20915,6 +20915,7 @@ if test x"$prefer_curses" = xyes; then
|
||||||
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
||||||
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
||||||
# a situation.
|
# a situation.
|
||||||
@ -20,7 +20,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
|
||||||
$as_echo_n "checking for library containing waddstr... " >&6; }
|
$as_echo_n "checking for library containing waddstr... " >&6; }
|
||||||
if ${ac_cv_search_waddstr+:} false; then :
|
if ${ac_cv_search_waddstr+:} false; then :
|
||||||
@@ -9673,7 +9674,7 @@ return waddstr ();
|
@@ -20939,7 +20940,7 @@ return waddstr ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
@ -29,7 +29,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
if test -z "$ac_lib"; then
|
if test -z "$ac_lib"; then
|
||||||
ac_res="none required"
|
ac_res="none required"
|
||||||
else
|
else
|
||||||
@@ -9747,6 +9748,7 @@ case $host_os in
|
@@ -21013,6 +21014,7 @@ case $host_os in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# These are the libraries checked by Readline.
|
# These are the libraries checked by Readline.
|
||||||
@ -37,7 +37,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
|
||||||
$as_echo_n "checking for library containing tgetent... " >&6; }
|
$as_echo_n "checking for library containing tgetent... " >&6; }
|
||||||
if ${ac_cv_search_tgetent+:} false; then :
|
if ${ac_cv_search_tgetent+:} false; then :
|
||||||
@@ -9771,7 +9773,7 @@ return tgetent ();
|
@@ -21037,7 +21039,7 @@ return tgetent ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
@ -49,7 +49,7 @@ diff --git a/gdb/configure b/gdb/configure
|
|||||||
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
||||||
--- a/gdb/configure.ac
|
--- a/gdb/configure.ac
|
||||||
+++ b/gdb/configure.ac
|
+++ b/gdb/configure.ac
|
||||||
@@ -712,7 +712,8 @@ if test x"$prefer_curses" = xyes; then
|
@@ -704,7 +704,8 @@ if test x"$prefer_curses" = xyes; then
|
||||||
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
||||||
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
||||||
# a situation.
|
# a situation.
|
||||||
@ -59,7 +59,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|||||||
|
|
||||||
if test "$ac_cv_search_waddstr" != no; then
|
if test "$ac_cv_search_waddstr" != no; then
|
||||||
curses_found=yes
|
curses_found=yes
|
||||||
@@ -754,7 +755,8 @@ case $host_os in
|
@@ -746,7 +747,8 @@ case $host_os in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# These are the libraries checked by Readline.
|
# These are the libraries checked by Readline.
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-fortran-frame-string.patch
|
|
||||||
|
|
||||||
;; Display Fortran strings in backtraces.
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2014-07/msg00709.html
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
for Fortran it fixes displaying normal strings also in frames/backtraces:
|
|
||||||
|
|
||||||
(gdb) frame
|
|
||||||
->
|
|
||||||
|
|
||||||
The patch is simple and I do not see why it should not be this way.
|
|
||||||
|
|
||||||
For C/C++ TYPE_CODE_STRING is not used. I am not aware of Pascal but that
|
|
||||||
language is currently not really much supported in GDB anyway.
|
|
||||||
|
|
||||||
This was a part of my archer/jankratochvil/vla branch but it is not a part of
|
|
||||||
the Intel VLA patchset as it in fact is completely unrelated to "VLA".
|
|
||||||
|
|
||||||
No regressions on {x86_64,x86_64-m32,i686}-fedora22pre-linux-gnu.
|
|
||||||
|
|
||||||
Thanks,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/fortran-frame-string.exp b/gdb/testsuite/gdb.fortran/fortran-frame-string.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/fortran-frame-string.exp
|
|
||||||
@@ -0,0 +1,36 @@
|
|
||||||
+# Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+standard_testfile .f90
|
|
||||||
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}] } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if ![runto MAIN__] then {
|
|
||||||
+ perror "couldn't run to breakpoint MAIN__"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "s = s"]
|
|
||||||
+gdb_continue_to_breakpoint "s = s"
|
|
||||||
+
|
|
||||||
+gdb_test "ptype s" {type = character\*3}
|
|
||||||
+gdb_test "p s" " = 'foo'"
|
|
||||||
+
|
|
||||||
+# Fix rejected upstream:
|
|
||||||
+# https://sourceware.org/ml/gdb-patches/2014-07/msg00768.html
|
|
||||||
+setup_kfail "rejected" *-*-*
|
|
||||||
+gdb_test "frame" { \(s='foo', .*}
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/fortran-frame-string.f90 b/gdb/testsuite/gdb.fortran/fortran-frame-string.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/fortran-frame-string.f90
|
|
||||||
@@ -0,0 +1,28 @@
|
|
||||||
+! Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+!
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program; if not, write to the Free Software
|
|
||||||
+! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+!
|
|
||||||
+! Ihis file is the Fortran source file for dynamic.exp.
|
|
||||||
+! Original file written by Jakub Jelinek <jakub@redhat.com>.
|
|
||||||
+! Modified for the GDB testcase by Jan Kratochvil <jan.kratochvil@redhat.com>.
|
|
||||||
+
|
|
||||||
+ subroutine f(s)
|
|
||||||
+ character*3 s
|
|
||||||
+ s = s
|
|
||||||
+ end
|
|
||||||
+
|
|
||||||
+ program main
|
|
||||||
+ call f ('foo')
|
|
||||||
+ end
|
|
43
gdb-gcc-13-backport-self-move-diagnostic-fix
Normal file
43
gdb-gcc-13-backport-self-move-diagnostic-fix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Date: Fri, 20 Jan 2023 15:15:59 -0700
|
||||||
|
Subject: gdb-gcc-13-backport-self-move-diagnostic-fix
|
||||||
|
|
||||||
|
;; gcc 13 fallout: Backport Jan-Benedict Glaw's fix for the self-move
|
||||||
|
;; warning check
|
||||||
|
|
||||||
|
Fix self-move warning check for GCC 13+
|
||||||
|
|
||||||
|
GCC 13 got the self-move warning (0abb78dda084a14b3d955757c6431fff71c263f3),
|
||||||
|
but that warning is only checked for clang, resulting in:
|
||||||
|
|
||||||
|
/usr/lib/gcc-snapshot/bin/g++ -x c++ -I. -I. -I./config -DLOCALEDIR="\"/tmp/gdb-m68k-linux/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/readline/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./../gnulib/import -I../gnulib/import -I./.. -I.. -I./../libbacktrace/ -I../libbacktrace/ -DTUI=1 -I./.. -pthread -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral -Werror -g -O2 -c -o unittests/environ-selftests.o -MT unittests/environ-selftests.o -MMD -MP -MF unittests/.deps/environ-selftests.Tpo unittests/environ-selftests.c
|
||||||
|
unittests/environ-selftests.c: In function 'void selftests::gdb_environ_tests::test_self_move()':
|
||||||
|
unittests/environ-selftests.c:228:7: error: moving 'env' of type 'gdb_environ' to itself [-Werror=self-move]
|
||||||
|
228 | env = std::move (env);
|
||||||
|
| ~~~~^~~~~~~~~~~~~~~~~
|
||||||
|
unittests/environ-selftests.c:228:7: note: remove 'std::move' call
|
||||||
|
cc1plus: all warnings being treated as errors
|
||||||
|
make[1]: *** [Makefile:1896: unittests/environ-selftests.o] Error 1
|
||||||
|
make[1]: Leaving directory '/var/lib/laminar/run/gdb-m68k-linux/3/binutils-gdb/gdb'
|
||||||
|
make: *** [Makefile:13193: all-gdb] Error 2
|
||||||
|
|
||||||
|
diff --git a/include/diagnostics.h b/include/diagnostics.h
|
||||||
|
--- a/include/diagnostics.h
|
||||||
|
+++ b/include/diagnostics.h
|
||||||
|
@@ -79,6 +79,15 @@
|
||||||
|
# define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \
|
||||||
|
DIAGNOSTIC_IGNORE ("-Wformat-nonliteral")
|
||||||
|
|
||||||
|
+# if __GNUC__ >= 5
|
||||||
|
+# define DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE \
|
||||||
|
+ DIAGNOSTIC_IGNORE ("-Wunused-but-set-variable")
|
||||||
|
+# endif
|
||||||
|
+
|
||||||
|
+# if __GNUC__ >= 13
|
||||||
|
+# define DIAGNOSTIC_IGNORE_SELF_MOVE DIAGNOSTIC_IGNORE ("-Wself-move")
|
||||||
|
+# endif
|
||||||
|
+
|
||||||
|
/* GCC 4.8's "diagnostic push/pop" seems broken when using this, -Wswitch
|
||||||
|
remains enabled at the error level even after a pop. Therefore, don't
|
||||||
|
use it for GCC < 5. */
|
@ -10,7 +10,7 @@ diff --git a/gdb/testsuite/gdb.base/gnu-ifunc-strstr-workaround.exp b/gdb/testsu
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/gnu-ifunc-strstr-workaround.exp
|
+++ b/gdb/testsuite/gdb.base/gnu-ifunc-strstr-workaround.exp
|
||||||
@@ -0,0 +1,115 @@
|
@@ -0,0 +1,119 @@
|
||||||
+# Copyright (C) 2012 Free Software Foundation, Inc.
|
+# Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -56,6 +56,10 @@ new file mode 100644
|
|||||||
+ untested "$test (no DWARF)"
|
+ untested "$test (no DWARF)"
|
||||||
+ return 0
|
+ return 0
|
||||||
+ }
|
+ }
|
||||||
|
+ -re "type = <unknown return type> \\(\\)\r\n$gdb_prompt $" {
|
||||||
|
+ untested "$test (no DWARF)"
|
||||||
|
+ return 0
|
||||||
|
+ }
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+set addr ""
|
+set addr ""
|
||||||
@ -124,5 +128,5 @@ new file mode 100644
|
|||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+gdb_test {print strstr("abc","b")} { = 0x[0-9a-f]+ "bc"}
|
+gdb_test {print (char *)strstr("abc","b")} { = 0x[0-9a-f]+ "bc"}
|
||||||
+gdb_test {print strstr("def","e")} { = 0x[0-9a-f]+ "ef"}
|
+gdb_test {print (char *)strstr("def","e")} { = 0x[0-9a-f]+ "ef"}
|
||||||
|
@ -1,219 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-gnat-dwarf-crash-3of3.patch
|
|
||||||
|
|
||||||
;; Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211).
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2014-02/msg00731.html
|
|
||||||
|
|
||||||
--6TrnltStXW4iwmi0
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
PR 16581:
|
|
||||||
GDB crash on inherit_abstract_dies infinite recursion
|
|
||||||
https://sourceware.org/bugzilla/show_bug.cgi?id=16581
|
|
||||||
|
|
||||||
fixed crash from an infinite recursion. But in rare cases the new code can
|
|
||||||
now gdb_assert() due to weird DWARF file.
|
|
||||||
|
|
||||||
I do not yet fully understand why the DWARF is as it is but just GDB should
|
|
||||||
never crash due to invalid DWARF anyway. The "invalid" DWARF I see only in
|
|
||||||
Fedora GCC build, not in FSF GCC build, more info at:
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=1069382
|
|
||||||
http://people.redhat.com/jkratoch/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug
|
|
||||||
|
|
||||||
Thanks,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
--6TrnltStXW4iwmi0
|
|
||||||
Content-Type: text/plain; charset=us-ascii
|
|
||||||
Content-Disposition: inline; filename="complaint.patch"
|
|
||||||
|
|
||||||
gdb/
|
|
||||||
2014-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
|
|
||||||
* dwarf2read.c (process_die): Change gdb_assert to complaint.
|
|
||||||
|
|
||||||
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
|
|
||||||
--- a/gdb/dwarf2/read.c
|
|
||||||
+++ b/gdb/dwarf2/read.c
|
|
||||||
@@ -10162,6 +10162,13 @@ class process_die_scope
|
|
||||||
static void
|
|
||||||
process_die (struct die_info *die, struct dwarf2_cu *cu)
|
|
||||||
{
|
|
||||||
+ if (die->in_process)
|
|
||||||
+ {
|
|
||||||
+ complaint (_("DIE at 0x%s attempted to be processed twice"),
|
|
||||||
+ sect_offset_str (die->sect_off));
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
process_die_scope scope (die, cu);
|
|
||||||
|
|
||||||
switch (die->tag)
|
|
||||||
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
|
|
||||||
--- a/gdb/linux-nat.c
|
|
||||||
+++ b/gdb/linux-nat.c
|
|
||||||
@@ -190,6 +190,12 @@ struct linux_nat_target *linux_target;
|
|
||||||
/* Does the current host support PTRACE_GETREGSET? */
|
|
||||||
enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN;
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+/* PID of the inferior stopped by SIGSTOP before attaching (or zero). */
|
|
||||||
+static pid_t pid_was_stopped;
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
static unsigned int debug_linux_nat;
|
|
||||||
static void
|
|
||||||
show_debug_linux_nat (struct ui_file *file, int from_tty,
|
|
||||||
@@ -1044,6 +1050,9 @@ linux_nat_post_attach_wait (ptid_t ptid, int *signalled)
|
|
||||||
if (linux_proc_pid_is_stopped (pid))
|
|
||||||
{
|
|
||||||
linux_nat_debug_printf ("Attaching to a stopped process");
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+ pid_was_stopped = ptid.pid ();
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* The process is definitely stopped. It is in a job control
|
|
||||||
stop, unless the kernel predates the TASK_STOPPED /
|
|
||||||
@@ -1359,6 +1368,25 @@ get_detach_signal (struct lwp_info *lp)
|
|
||||||
return gdb_signal_to_host (signo);
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+ /* Workaround RHEL-5 kernel which has unreliable PTRACE_DETACH, SIGSTOP (that
|
|
||||||
+ many TIDs are left unstopped). See RH Bug 496732. */
|
|
||||||
+ if (lp->ptid.pid () == pid_was_stopped)
|
|
||||||
+ {
|
|
||||||
+ int err;
|
|
||||||
+
|
|
||||||
+ errno = 0;
|
|
||||||
+ err = kill_lwp (lp->ptid.lwp (), SIGSTOP);
|
|
||||||
+ if (debug_linux_nat)
|
|
||||||
+ {
|
|
||||||
+ fprintf_unfiltered (gdb_stdlog,
|
|
||||||
+ "SC: lwp kill %d %s\n",
|
|
||||||
+ err,
|
|
||||||
+ errno ? safe_strerror (errno) : "ERRNO-OK");
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1502,6 +1530,10 @@ linux_nat_target::detach (inferior *inf, int from_tty)
|
|
||||||
detach_one_lwp (main_lwp, &signo);
|
|
||||||
|
|
||||||
detach_success (inf);
|
|
||||||
+
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+ pid_was_stopped = 0;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1744,6 +1776,16 @@ linux_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+ /* At this point, we are going to resume the inferior and if we
|
|
||||||
+ have attached to a stopped process, we no longer should leave
|
|
||||||
+ it as stopped if the user detaches. PTID variable has PID set to LWP
|
|
||||||
+ while we need to check the real PID here. */
|
|
||||||
+
|
|
||||||
+ if (!step && lp && pid_was_stopped == lp->ptid.pid ())
|
|
||||||
+ pid_was_stopped = 0;
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
if (resume_many)
|
|
||||||
iterate_over_lwps (ptid, [=] (struct lwp_info *info)
|
|
||||||
{
|
|
||||||
@@ -3617,6 +3659,10 @@ linux_nat_target::mourn_inferior ()
|
|
||||||
|
|
||||||
/* Let the arch-specific native code know this process is gone. */
|
|
||||||
linux_target->low_forget_process (pid);
|
|
||||||
+#ifdef NEED_DETACH_SIGSTOP
|
|
||||||
+
|
|
||||||
+ pid_was_stopped = 0;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Convert a native/host siginfo object, into/from the siginfo in the
|
|
||||||
diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp
|
|
||||||
--- a/gdb/testsuite/gdb.threads/attach-stopped.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.threads/attach-stopped.exp
|
|
||||||
@@ -56,7 +56,65 @@ proc corefunc { threadtype } {
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
- # Verify that we can attach to the stopped process.
|
|
||||||
+ # Verify that we can attach to the process by first giving its
|
|
||||||
+ # executable name via the file command, and using attach with the
|
|
||||||
+ # process ID.
|
|
||||||
+
|
|
||||||
+ set test "$threadtype: set file, before attach1 to stopped process"
|
|
||||||
+ gdb_test_multiple "file $binfile" "$test" {
|
|
||||||
+ -re "Load new symbol table from.*y or n. $" {
|
|
||||||
+ gdb_test "y" "Reading symbols from $escapedbinfile\.\.\.*done." \
|
|
||||||
+ "$test (re-read)"
|
|
||||||
+ }
|
|
||||||
+ -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $" {
|
|
||||||
+ pass "$test"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ set test "$threadtype: attach1 to stopped, after setting file"
|
|
||||||
+ gdb_test_multiple "attach $testpid" "$test" {
|
|
||||||
+ -re "Attaching to program.*`?$escapedbinfile'?, process $testpid.*$gdb_prompt $" {
|
|
||||||
+ pass "$test"
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # ".*sleep.*clone.*" would fail on s390x as bt stops at START_THREAD there.
|
|
||||||
+ if {[string equal $threadtype threaded]} {
|
|
||||||
+ gdb_test "thread apply all bt" ".*sleep.*start_thread.*" "$threadtype: attach1 to stopped bt"
|
|
||||||
+ } else {
|
|
||||||
+ gdb_test "bt" ".*sleep.*main.*" "$threadtype: attach1 to stopped bt"
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # Exit and detach the process.
|
|
||||||
+
|
|
||||||
+ gdb_exit
|
|
||||||
+
|
|
||||||
+ # Avoid some race:
|
|
||||||
+ sleep 2
|
|
||||||
+
|
|
||||||
+ if [catch {open /proc/${testpid}/status r} fileid] {
|
|
||||||
+ set line2 "NOTFOUND"
|
|
||||||
+ } else {
|
|
||||||
+ gets $fileid line1;
|
|
||||||
+ gets $fileid line2;
|
|
||||||
+ close $fileid;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ set test "$threadtype: attach1, exit leaves process stopped"
|
|
||||||
+ if {[string match "*(stopped)*" $line2]} {
|
|
||||||
+ pass $test
|
|
||||||
+ } else {
|
|
||||||
+ fail $test
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ # At this point, the process should still be stopped
|
|
||||||
+
|
|
||||||
+ gdb_start
|
|
||||||
+ gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+ gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+ # Verify that we can attach to the process just by giving the
|
|
||||||
+ # process ID.
|
|
||||||
|
|
||||||
set test "$threadtype: attach2 to stopped, after setting file"
|
|
||||||
gdb_test_multiple "attach $testpid" "$test" {
|
|
@ -1,46 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-jit-reader-multilib.patch
|
|
||||||
|
|
||||||
;; Fix jit-reader.h for multi-lib.
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
diff --git a/gdb/configure b/gdb/configure
|
|
||||||
--- a/gdb/configure
|
|
||||||
+++ b/gdb/configure
|
|
||||||
@@ -9968,10 +9968,12 @@ _ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
|
|
||||||
- TARGET_PTR="unsigned long"
|
|
||||||
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
|
|
||||||
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
|
|
||||||
+# content is the same for multilib distributions.
|
|
||||||
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
|
|
||||||
TARGET_PTR="unsigned long long"
|
|
||||||
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
|
|
||||||
+ TARGET_PTR="unsigned long"
|
|
||||||
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
|
|
||||||
TARGET_PTR="unsigned __int128"
|
|
||||||
else
|
|
||||||
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|
||||||
--- a/gdb/configure.ac
|
|
||||||
+++ b/gdb/configure.ac
|
|
||||||
@@ -803,10 +803,12 @@ AC_CHECK_SIZEOF(unsigned long long)
|
|
||||||
AC_CHECK_SIZEOF(unsigned long)
|
|
||||||
AC_CHECK_SIZEOF(unsigned __int128)
|
|
||||||
|
|
||||||
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
|
|
||||||
- TARGET_PTR="unsigned long"
|
|
||||||
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
|
|
||||||
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
|
|
||||||
+# content is the same for multilib distributions.
|
|
||||||
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
|
|
||||||
TARGET_PTR="unsigned long long"
|
|
||||||
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
|
|
||||||
+ TARGET_PTR="unsigned long"
|
|
||||||
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
|
|
||||||
TARGET_PTR="unsigned __int128"
|
|
||||||
else
|
|
@ -1,37 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-libexec-add-index.patch
|
|
||||||
|
|
||||||
;; Fix gdb-headless /usr/bin/ executables (BZ 1390251).
|
|
||||||
;;
|
|
||||||
;; Also, make /usr/bin/gdb.minimal be the default GDB used, if it's
|
|
||||||
;; present. For rationale, see:
|
|
||||||
;;
|
|
||||||
;; https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
|
|
||||||
;;=fedora
|
|
||||||
|
|
||||||
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
|
|
||||||
--- a/gdb/contrib/gdb-add-index.sh
|
|
||||||
+++ b/gdb/contrib/gdb-add-index.sh
|
|
||||||
@@ -22,6 +22,20 @@ GDB=${GDB:=gdb}
|
|
||||||
OBJCOPY=${OBJCOPY:=objcopy}
|
|
||||||
READELF=${READELF:=readelf}
|
|
||||||
|
|
||||||
+GDB2=/usr/libexec/gdb
|
|
||||||
+if test -x $GDB2 && ! which $GDB &>/dev/null; then
|
|
||||||
+ GDB=$GDB2
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+# We default to using /usr/bin/gdb.minimal if it's present. See
|
|
||||||
+# https://bugzilla.redhat.com/show_bug.cgi?id=1695015 and
|
|
||||||
+# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot for
|
|
||||||
+# explanations.
|
|
||||||
+GDB3=/usr/bin/gdb.minimal
|
|
||||||
+if test -x $GDB3; then
|
|
||||||
+ GDB=$GDB3
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
myname="${0##*/}"
|
|
||||||
|
|
||||||
dwarf5=""
|
|
@ -213,7 +213,7 @@ diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h
|
|||||||
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4
|
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4
|
||||||
--- a/gdbsupport/common.m4
|
--- a/gdbsupport/common.m4
|
||||||
+++ b/gdbsupport/common.m4
|
+++ b/gdbsupport/common.m4
|
||||||
@@ -145,7 +145,7 @@ AC_DEFUN([GDB_AC_COMMON], [
|
@@ -166,7 +166,7 @@ AC_DEFUN([GDB_AC_COMMON], [
|
||||||
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
|
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <linux/perf_event.h>
|
#include <linux/perf_event.h>
|
||||||
#ifndef PERF_ATTR_SIZE_VER5
|
#ifndef PERF_ATTR_SIZE_VER5
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-moribund-utrace-workaround.patch
|
|
||||||
|
|
||||||
;; Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623).
|
|
||||||
;;=push+jan: Currently it is still not fully safe.
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=590623
|
|
||||||
http://sources.redhat.com/bugzilla/show_bug.cgi?id=11593
|
|
||||||
|
|
||||||
Bug in FSF GDB exploited by the ptrace-on-utrace interaction.
|
|
||||||
|
|
||||||
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
|
|
||||||
--- a/gdb/breakpoint.c
|
|
||||||
+++ b/gdb/breakpoint.c
|
|
||||||
@@ -11948,6 +11948,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode)
|
|
||||||
= 3 * (thread_count (proc_target) + 1);
|
|
||||||
else
|
|
||||||
old_loc->events_till_retirement = 1;
|
|
||||||
+ /* Red Hat Bug 590623. */
|
|
||||||
+ old_loc->events_till_retirement *= 10;
|
|
||||||
old_loc->owner = NULL;
|
|
||||||
|
|
||||||
moribund_locations.push_back (old_loc);
|
|
@ -1,234 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-physname-pr11734-test.patch
|
|
||||||
|
|
||||||
;; Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2010-12/msg00263.html
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734-1.cc b/gdb/testsuite/gdb.cp/pr11734-1.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734-1.cc
|
|
||||||
@@ -0,0 +1,30 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
|
||||||
+ bug-gdb@gnu.org */
|
|
||||||
+
|
|
||||||
+#include "pr11734.h"
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main ()
|
|
||||||
+{
|
|
||||||
+ pr11734 *p = new pr11734;
|
|
||||||
+ p->foo ();
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734-2.cc b/gdb/testsuite/gdb.cp/pr11734-2.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734-2.cc
|
|
||||||
@@ -0,0 +1,27 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
|
||||||
+ bug-gdb@gnu.org */
|
|
||||||
+
|
|
||||||
+#include "pr11734.h"
|
|
||||||
+
|
|
||||||
+void
|
|
||||||
+pr11734::foo(void)
|
|
||||||
+{
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734-3.cc b/gdb/testsuite/gdb.cp/pr11734-3.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734-3.cc
|
|
||||||
@@ -0,0 +1,27 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
|
||||||
+ bug-gdb@gnu.org */
|
|
||||||
+
|
|
||||||
+#include "pr11734.h"
|
|
||||||
+
|
|
||||||
+void
|
|
||||||
+pr11734::foo (int a)
|
|
||||||
+{
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734-4.cc b/gdb/testsuite/gdb.cp/pr11734-4.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734-4.cc
|
|
||||||
@@ -0,0 +1,27 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
|
||||||
+ bug-gdb@gnu.org */
|
|
||||||
+
|
|
||||||
+#include "pr11734.h"
|
|
||||||
+
|
|
||||||
+void
|
|
||||||
+pr11734::foo (char *a)
|
|
||||||
+{
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734.exp b/gdb/testsuite/gdb.cp/pr11734.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734.exp
|
|
||||||
@@ -0,0 +1,55 @@
|
|
||||||
+# Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+#
|
|
||||||
+# Contributed by Red Hat, originally written by Keith Seitz.
|
|
||||||
+#
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# This file is part of the gdb testsuite.
|
|
||||||
+
|
|
||||||
+if { [skip_cplus_tests] } { continue }
|
|
||||||
+
|
|
||||||
+set testfile "pr11734"
|
|
||||||
+set class $testfile
|
|
||||||
+
|
|
||||||
+set srcfiles {}
|
|
||||||
+for {set i 1} {$i < 5} {incr i} {
|
|
||||||
+ lappend srcfiles $testfile-$i.cc
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+prepare_for_testing pr11734 $testfile $srcfiles {c++ debug}
|
|
||||||
+
|
|
||||||
+if {![runto_main]} {
|
|
||||||
+ perror "couldn't run to breakpoint"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# An array holding the overload types for the method pr11734::foo. The
|
|
||||||
+# first element is the overloaded method parameter. The second element
|
|
||||||
+# is the expected source file number, e.g. "pr11734-?.cc".
|
|
||||||
+array set tests {
|
|
||||||
+ "char*" 4
|
|
||||||
+ "int" 3
|
|
||||||
+ "" 2
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Test each overload instance twice: once quoted, once unquoted
|
|
||||||
+foreach ovld [array names tests] {
|
|
||||||
+ set method "${class}::foo\($ovld\)"
|
|
||||||
+ set result "Breakpoint (\[0-9\]).*file .*/$class-$tests($ovld).*"
|
|
||||||
+ gdb_test "break $method" $result
|
|
||||||
+ gdb_test "break '$method'" $result
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+return 0
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr11734.h b/gdb/testsuite/gdb.cp/pr11734.h
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr11734.h
|
|
||||||
@@ -0,0 +1,28 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+ Please email any bugs, comments, and/or additions to this file to:
|
|
||||||
+ bug-gdb@gnu.org */
|
|
||||||
+
|
|
||||||
+class pr11734
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ void foo ();
|
|
||||||
+ void foo (int);
|
|
||||||
+ void foo (char *);
|
|
||||||
+};
|
|
||||||
+
|
|
@ -1,103 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-physname-pr12273-test.patch
|
|
||||||
|
|
||||||
;; Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2010-12/msg00264.html
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr12273.cc b/gdb/testsuite/gdb.cp/pr12273.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr12273.cc
|
|
||||||
@@ -0,0 +1,37 @@
|
|
||||||
+/* This test case is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
+
|
|
||||||
+template <typename T>
|
|
||||||
+class GDB
|
|
||||||
+{
|
|
||||||
+ public:
|
|
||||||
+ static int simple (void) { return 0; }
|
|
||||||
+ static int harder (T a) { return 1; }
|
|
||||||
+ template <typename X>
|
|
||||||
+ static X even_harder (T a) { return static_cast<X> (a); }
|
|
||||||
+ int operator == (GDB const& other)
|
|
||||||
+ { return 1; }
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+int main(int argc, char **argv)
|
|
||||||
+{
|
|
||||||
+ GDB<int> a, b;
|
|
||||||
+ if (a == b)
|
|
||||||
+ return GDB<char>::harder('a') + GDB<int>::harder(3)
|
|
||||||
+ + GDB<char>::even_harder<int> ('a');
|
|
||||||
+ return GDB<int>::simple ();
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/pr12273.exp b/gdb/testsuite/gdb.cp/pr12273.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/pr12273.exp
|
|
||||||
@@ -0,0 +1,46 @@
|
|
||||||
+# Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+#
|
|
||||||
+# Contributed by Red Hat, originally written by Keith Seitz.
|
|
||||||
+#
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# This file is part of the gdb testsuite.
|
|
||||||
+
|
|
||||||
+if {[skip_cplus_tests]} { continue }
|
|
||||||
+
|
|
||||||
+set testfile "pr12273"
|
|
||||||
+# Do NOT compile with debug flag.
|
|
||||||
+prepare_for_testing pr12273 $testfile $testfile.cc {c++}
|
|
||||||
+
|
|
||||||
+gdb_test_no_output "set language c++"
|
|
||||||
+
|
|
||||||
+# A list of minimal symbol names to check.
|
|
||||||
+# Note that GDB<char>::even_harder<int>(char) is quoted and includes
|
|
||||||
+# the return type. This is necessary because this is the demangled name
|
|
||||||
+# of the minimal symbol.
|
|
||||||
+set min_syms [list \
|
|
||||||
+ "GDB<int>::operator ==" \
|
|
||||||
+ "GDB<int>::operator==(GDB<int> const&)" \
|
|
||||||
+ "GDB<char>::harder(char)" \
|
|
||||||
+ "GDB<int>::harder(int)" \
|
|
||||||
+ {"int GDB<char>::even_harder<int>(char)"} \
|
|
||||||
+ "GDB<int>::simple()"]
|
|
||||||
+
|
|
||||||
+foreach sym $min_syms {
|
|
||||||
+ if {[gdb_breakpoint $sym]} {
|
|
||||||
+ pass "setting breakpoint at $sym"
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
@ -81,7 +81,7 @@ diff --git a/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.c b/gdb/tes
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.c
|
+++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.c
|
||||||
@@ -0,0 +1,124 @@
|
@@ -0,0 +1,125 @@
|
||||||
+/* Testcase for recursive dlopen calls.
|
+/* Testcase for recursive dlopen calls.
|
||||||
+
|
+
|
||||||
+ Copyright (C) 2014 Free Software Foundation, Inc.
|
+ Copyright (C) 2014 Free Software Foundation, Inc.
|
||||||
@ -178,6 +178,7 @@ new file mode 100644
|
|||||||
+ /* Called recursively. */
|
+ /* Called recursively. */
|
||||||
+ result = malloc (size);
|
+ result = malloc (size);
|
||||||
+ /* Restore new hooks. */
|
+ /* Restore new hooks. */
|
||||||
|
+ old_malloc_hook = __malloc_hook;
|
||||||
+ __malloc_hook = custom_malloc_hook;
|
+ __malloc_hook = custom_malloc_hook;
|
||||||
+ return result;
|
+ return result;
|
||||||
+}
|
+}
|
||||||
@ -210,7 +211,7 @@ diff --git a/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.exp b/gdb/t
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.exp
|
+++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.exp
|
||||||
@@ -0,0 +1,137 @@
|
@@ -0,0 +1,157 @@
|
||||||
+# Copyright 2014 Free Software Foundation, Inc.
|
+# Copyright 2014 Free Software Foundation, Inc.
|
||||||
+#
|
+#
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
@ -226,7 +227,11 @@ new file mode 100644
|
|||||||
+# You should have received a copy of the GNU General Public License
|
+# You should have received a copy of the GNU General Public License
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
+
|
+
|
||||||
+if { [skip_shlib_tests] } {
|
+if {[skip_shlib_tests]} {
|
||||||
|
+ untested "skipping shlib tests"
|
||||||
|
+ return 0
|
||||||
|
+} elseif {[use_gdb_stub]} {
|
||||||
|
+ untested "skipping tests because of stub"
|
||||||
+ return 0
|
+ return 0
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
@ -262,6 +267,21 @@ new file mode 100644
|
|||||||
+ return -1
|
+ return -1
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
+set supported 0
|
||||||
|
+gdb_test_multiple "run" "initial trial run" {
|
||||||
|
+ -re -wrap "exited normally.*" {
|
||||||
|
+ set supported 1
|
||||||
|
+ pass $gdb_test_name
|
||||||
|
+ }
|
||||||
|
+ -re -wrap "exited with code.*" {
|
||||||
|
+ untested "failed at $gdb_test_name"
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+if { $supported == 0 } {
|
||||||
|
+ return -1
|
||||||
|
+}
|
||||||
|
+
|
||||||
+proc do_test { has_libfoo has_libbar } {
|
+proc do_test { has_libfoo has_libbar } {
|
||||||
+ global hex binfile_lib2 binfile_lib1 gdb_prompt
|
+ global hex binfile_lib2 binfile_lib1 gdb_prompt
|
||||||
+ set libbar_match "[string_to_regexp $binfile_lib2]"
|
+ set libbar_match "[string_to_regexp $binfile_lib2]"
|
||||||
@ -314,6 +334,7 @@ new file mode 100644
|
|||||||
+ gdb_test_no_output "set stop-on-solib-events 1" "setting stop-on-solib-events"
|
+ gdb_test_no_output "set stop-on-solib-events 1" "setting stop-on-solib-events"
|
||||||
+
|
+
|
||||||
+ gdb_run_cmd
|
+ gdb_run_cmd
|
||||||
|
+ gdb_test "" "Wait for first prompt"
|
||||||
+ foreach l $solib_event_order {
|
+ foreach l $solib_event_order {
|
||||||
+ incr pass
|
+ incr pass
|
||||||
+ with_test_prefix "pass #$pass" {
|
+ with_test_prefix "pass #$pass" {
|
||||||
|
@ -1,176 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-rhbz1325795-framefilters-test.patch
|
|
||||||
|
|
||||||
;; New test for Python "Cannot locate object file for block" (for RH BZ 1325795).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.python/py-framefilter-thread.c b/gdb/testsuite/gdb.python/py-framefilter-thread.c
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.python/py-framefilter-thread.c
|
|
||||||
@@ -0,0 +1,39 @@
|
|
||||||
+/* This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+ Copyright 2016 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
|
||||||
+ it under the terms of the GNU General Public License as published by
|
|
||||||
+ the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+ (at your option) any later version.
|
|
||||||
+
|
|
||||||
+ This program is distributed in the hope that it will be useful,
|
|
||||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ GNU General Public License for more details.
|
|
||||||
+
|
|
||||||
+ You should have received a copy of the GNU General Public License
|
|
||||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
+
|
|
||||||
+#include <pthread.h>
|
|
||||||
+#include <assert.h>
|
|
||||||
+
|
|
||||||
+static void *
|
|
||||||
+start (void *arg)
|
|
||||||
+{
|
|
||||||
+ return arg; /* Backtrace end breakpoint */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main (void)
|
|
||||||
+{
|
|
||||||
+ pthread_t thread1;
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ i = pthread_create (&thread1, NULL, start, NULL);
|
|
||||||
+ assert (i == 0);
|
|
||||||
+ i = pthread_join (thread1, NULL);
|
|
||||||
+ assert (i == 0);
|
|
||||||
+
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.python/py-framefilter-thread.exp b/gdb/testsuite/gdb.python/py-framefilter-thread.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.python/py-framefilter-thread.exp
|
|
||||||
@@ -0,0 +1,54 @@
|
|
||||||
+# Copyright (C) 2016 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+load_lib gdb-python.exp
|
|
||||||
+
|
|
||||||
+standard_testfile
|
|
||||||
+
|
|
||||||
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug pthreads}]} {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Skip all tests if Python scripting is not enabled.
|
|
||||||
+if { [skip_python_tests] } { continue }
|
|
||||||
+
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ return
|
|
||||||
+}
|
|
||||||
+gdb_test_no_output "set python print-stack full" \
|
|
||||||
+ "Set python print-stack to full"
|
|
||||||
+
|
|
||||||
+# Load global frame-filters
|
|
||||||
+set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
|
|
||||||
+gdb_test_no_output "python exec (open ('${remote_python_file}').read ())" \
|
|
||||||
+ "Load python file"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "Backtrace end breakpoint"]
|
|
||||||
+gdb_continue_to_breakpoint "Backtrace end breakpoint"
|
|
||||||
+
|
|
||||||
+# #2 0x00007ffff75f228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113^M
|
|
||||||
+gdb_test "bt no-filters" " in (\\.?_*clone|thread_start) \[^\r\n\]*" "bt no-filters"
|
|
||||||
+
|
|
||||||
+# #2 0x00007ffff75f228d in 941595343737041 () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113^M
|
|
||||||
+# vs.
|
|
||||||
+# #2 0x00007ffff75f228d in 941595343737041Traceback (most recent call last):
|
|
||||||
+# File "/home/jkratoch/redhat/rhel/gdb/rhel-7.3/gdb-7.6.1/gdb/testsuite/../data-directory/python/gdb/FrameDecorator.py", line 145, in frame_args
|
|
||||||
+# return self._base.frame_args()
|
|
||||||
+# File "/home/jkratoch/redhat/rhel/gdb/rhel-7.3/gdb-7.6.1/gdb/testsuite/../data-directory/python/gdb/FrameDecorator.py", line 152, in frame_args
|
|
||||||
+# return args.fetch_frame_args()
|
|
||||||
+# File "/home/jkratoch/redhat/rhel/gdb/rhel-7.3/gdb-7.6.1/gdb/testsuite/../data-directory/python/gdb/FrameDecorator.py", line 276, in fetch_frame_args
|
|
||||||
+# block = self.frame.block()
|
|
||||||
+# RuntimeError: Cannot locate object file for block.
|
|
||||||
+gdb_test "bt" " in \[0-9\]+ \[^\r\n\]*" "bt with filters"
|
|
||||||
diff --git a/gdb/testsuite/gdb.python/py-framefilter-thread.py b/gdb/testsuite/gdb.python/py-framefilter-thread.py
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.python/py-framefilter-thread.py
|
|
||||||
@@ -0,0 +1,60 @@
|
|
||||||
+# Copyright (C) 2016 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# This file is part of the GDB testsuite. It tests Python-based
|
|
||||||
+# frame-filters.
|
|
||||||
+
|
|
||||||
+# This test is specifically crafted for RH BZ 1197665.
|
|
||||||
+
|
|
||||||
+import gdb
|
|
||||||
+import itertools
|
|
||||||
+from gdb.FrameDecorator import FrameDecorator
|
|
||||||
+import copy
|
|
||||||
+
|
|
||||||
+class Reverse_Function (FrameDecorator):
|
|
||||||
+
|
|
||||||
+ def __init__(self, fobj):
|
|
||||||
+ super(Reverse_Function, self).__init__(fobj)
|
|
||||||
+ self.fobj = fobj
|
|
||||||
+
|
|
||||||
+ def function (self):
|
|
||||||
+ # This function call should not fail.
|
|
||||||
+ gdb.target_charset ()
|
|
||||||
+
|
|
||||||
+ fname = str (self.fobj.function())
|
|
||||||
+ if (fname == None or fname == ""):
|
|
||||||
+ return None
|
|
||||||
+ else:
|
|
||||||
+ fname = fname[::-1]
|
|
||||||
+ return fname
|
|
||||||
+
|
|
||||||
+class FrameFilter ():
|
|
||||||
+
|
|
||||||
+ def __init__ (self):
|
|
||||||
+ self.name = "Reverse"
|
|
||||||
+ self.priority = 100
|
|
||||||
+ self.enabled = True
|
|
||||||
+ gdb.frame_filters [self.name] = self
|
|
||||||
+
|
|
||||||
+ def filter (self, frame_iter):
|
|
||||||
+ # Python 3.x moved the itertools.imap functionality to map(),
|
|
||||||
+ # so check if it is available.
|
|
||||||
+ if hasattr(itertools, "imap"):
|
|
||||||
+ frame_iter = itertools.imap (Reverse_Function, frame_iter)
|
|
||||||
+ else:
|
|
||||||
+ frame_iter = map (Reverse_Function, frame_iter)
|
|
||||||
+ return frame_iter
|
|
||||||
+
|
|
||||||
+FrameFilter()
|
|
@ -42,22 +42,24 @@ diff --git a/gdb/testsuite/gdb.python/py-typeprint.exp b/gdb/testsuite/gdb.pytho
|
|||||||
diff --git a/gdb/testsuite/gdb.python/py-typeprint.py b/gdb/testsuite/gdb.python/py-typeprint.py
|
diff --git a/gdb/testsuite/gdb.python/py-typeprint.py b/gdb/testsuite/gdb.python/py-typeprint.py
|
||||||
--- a/gdb/testsuite/gdb.python/py-typeprint.py
|
--- a/gdb/testsuite/gdb.python/py-typeprint.py
|
||||||
+++ b/gdb/testsuite/gdb.python/py-typeprint.py
|
+++ b/gdb/testsuite/gdb.python/py-typeprint.py
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,8 +15,7 @@
|
||||||
|
|
||||||
import gdb
|
import gdb
|
||||||
|
|
||||||
|
-
|
||||||
-class Recognizer(object):
|
-class Recognizer(object):
|
||||||
+class StringRecognizer(object):
|
+class StringRecognizer(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.enabled = True
|
self.enabled = True
|
||||||
|
|
||||||
@@ -30,6 +30,26 @@ class StringTypePrinter(object):
|
@@ -32,7 +31,27 @@ class StringTypePrinter(object):
|
||||||
self.enabled = True
|
self.enabled = True
|
||||||
|
|
||||||
def instantiate(self):
|
def instantiate(self):
|
||||||
- return Recognizer()
|
- return Recognizer()
|
||||||
+ return StringRecognizer()
|
+ return StringRecognizer()
|
||||||
|
|
||||||
|
|
||||||
gdb.type_printers.append(StringTypePrinter())
|
gdb.type_printers.append(StringTypePrinter())
|
||||||
+
|
+
|
||||||
+class OtherRecognizer(object):
|
+class OtherRecognizer(object):
|
||||||
|
@ -1,454 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-rhbz1398387-tab-crash-test.patch
|
|
||||||
|
|
||||||
;; New testcase for: Fix <tab>-completion crash (Gary Benson, RH BZ 1398387).
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/tab-crash.bz2.uu b/gdb/testsuite/gdb.base/tab-crash.bz2.uu
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/tab-crash.bz2.uu
|
|
||||||
@@ -0,0 +1,393 @@
|
|
||||||
+begin 644 /tmp/libgcc_s-6.3.1-20161221.so.1-objcopyR.debug.bz2
|
|
||||||
+M0EIH.3%!6293622@"44`>Q=_____________________________________
|
|
||||||
+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
|
|
||||||
+M`,.^+BG;`ZF7BV09<[-_][:8^4KLHF.(1`0<SWGYJ3I.3K!0![LX-.34%X
|
|
||||||
+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
|
|
||||||
+M@A`\#X%A8B2?ZU1)$9%)(Q%@"@LDG-D`8'(&,"(8(YS�!3:QMRG/,TU?%R
|
|
||||||
+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
|
|
||||||
+`
|
|
||||||
+end
|
|
||||||
diff --git a/gdb/testsuite/gdb.base/tab-crash.exp b/gdb/testsuite/gdb.base/tab-crash.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.base/tab-crash.exp
|
|
||||||
@@ -0,0 +1,43 @@
|
|
||||||
+# This testcase is part of GDB, the GNU debugger.
|
|
||||||
+
|
|
||||||
+# Copyright 2017 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
|
|
||||||
+ return
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+standard_testfile
|
|
||||||
+
|
|
||||||
+# gcc-base-debuginfo-6.3.1-1.fc25.x86_64
|
|
||||||
+# /usr/lib/debug/lib64/libgcc_s-6.3.1-20161221.so.1.debug
|
|
||||||
+# objcopy -R .debug_loc -R .debug_ranges -R .debug_info -R .debug_abbrev -R .debug_aranges -R .debug_str -R .comment ...
|
|
||||||
+
|
|
||||||
+set debugfilebz2uu ${srcdir}/${subdir}/${testfile}.bz2.uu
|
|
||||||
+set debugfile [standard_output_file ${testfile}]
|
|
||||||
+
|
|
||||||
+if {[catch "system \"uudecode -o - ${debugfilebz2uu} | bzip2 -dc >${debugfile}\""] != 0} {
|
|
||||||
+ untested "failed uudecode or bzip2"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+file stat ${debugfile} debugfilestat
|
|
||||||
+if {$debugfilestat(size) != 71936} {
|
|
||||||
+ untested "uudecode or bzip2 produce invalid result"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+clean_restart ${debugfile}
|
|
||||||
+
|
|
||||||
+gdb_test "complete p si" "complete p si\r\np size_of_encoded_value"
|
|
128
gdb-rhbz2042664-fix-sect_index_data-internal-error
Normal file
128
gdb-rhbz2042664-fix-sect_index_data-internal-error
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Date: Tue, 1 Feb 2022 11:32:48 -0700
|
||||||
|
Subject: gdb-rhbz2042664-fix-sect_index_data-internal-error
|
||||||
|
|
||||||
|
;; Backport fix which fixes internal error due to libcc_s lacking a
|
||||||
|
;; .data section.
|
||||||
|
|
||||||
|
Fix GDB internal error by using text (instead of data) section offset
|
||||||
|
|
||||||
|
Fedora Rawhide is now using gcc-12.0. As part of updating to the
|
||||||
|
gcc-12.0 package set, Rawhide is also now using a version of libgcc_s
|
||||||
|
which lacks a .data section. This causes gdb to fail in the following
|
||||||
|
fashion while debugging a program (such as gdb) which uses libgcc_s:
|
||||||
|
|
||||||
|
(top-gdb) run
|
||||||
|
Starting program: rawhide-master/bld/gdb/gdb
|
||||||
|
...
|
||||||
|
objfiles.h:467: internal-error: sect_index_data not initialized
|
||||||
|
A problem internal to GDB has been detected,
|
||||||
|
further debugging may prove unreliable.
|
||||||
|
...
|
||||||
|
|
||||||
|
I snipped the backtrace from the above output. Instead, here's a
|
||||||
|
portion of a backtrace obtained using GDB's backtrace command.
|
||||||
|
(Obviously, in order to obtain it, I used a GDB which has been patched
|
||||||
|
with this commit.)
|
||||||
|
|
||||||
|
#0 internal_error (
|
||||||
|
file=0xc6a508 "gdb/objfiles.h", line=467,
|
||||||
|
fmt=0xc6a4e8 "sect_index_data not initialized")
|
||||||
|
at gdbsupport/errors.cc:51
|
||||||
|
#1 0x00000000005f9651 in objfile::data_section_offset (this=0x4fa48f0)
|
||||||
|
at gdb/objfiles.h:467
|
||||||
|
#2 0x000000000097c5f8 in relocate_address (address=0x17244, objfile=0x4fa48f0)
|
||||||
|
at gdb/stap-probe.c:1333
|
||||||
|
#3 0x000000000097c630 in stap_probe::get_relocated_address (this=0xa1a17a0,
|
||||||
|
objfile=0x4fa48f0)
|
||||||
|
at gdb/stap-probe.c:1341
|
||||||
|
#4 0x00000000004d7025 in create_exception_master_breakpoint_probe (
|
||||||
|
objfile=0x4fa48f0)
|
||||||
|
at gdb/breakpoint.c:3505
|
||||||
|
#5 0x00000000004d7426 in create_exception_master_breakpoint ()
|
||||||
|
at gdb/breakpoint.c:3575
|
||||||
|
#6 0x00000000004efcc1 in breakpoint_re_set ()
|
||||||
|
at gdb/breakpoint.c:13407
|
||||||
|
#7 0x0000000000956998 in solib_add (pattern=0x0, from_tty=0, readsyms=1)
|
||||||
|
at gdb/solib.c:1001
|
||||||
|
#8 0x00000000009576a8 in handle_solib_event ()
|
||||||
|
at gdb/solib.c:1269
|
||||||
|
...
|
||||||
|
|
||||||
|
The function 'relocate_address' in gdb/stap-probe.c attempts to do
|
||||||
|
its "relocation" by using objfile->data_section_offset(). That
|
||||||
|
method, data_section_offset() is defined as follows in objfiles.h:
|
||||||
|
|
||||||
|
CORE_ADDR data_section_offset () const
|
||||||
|
{
|
||||||
|
return section_offsets[SECT_OFF_DATA (this)];
|
||||||
|
}
|
||||||
|
|
||||||
|
The internal error occurs when the SECT_OFF_DATA macro finds that the
|
||||||
|
'sect_index_data' field is -1:
|
||||||
|
|
||||||
|
#define SECT_OFF_DATA(objfile) \
|
||||||
|
((objfile->sect_index_data == -1) \
|
||||||
|
? (internal_error (__FILE__, __LINE__, \
|
||||||
|
_("sect_index_data not initialized")), -1) \
|
||||||
|
: objfile->sect_index_data)
|
||||||
|
|
||||||
|
relocate_address() is obtaining the section offset in order to compute
|
||||||
|
a relocated address. For some ABIs, such as the System V ABI, the
|
||||||
|
section offsets will all be the same. So for those ABIs, it doesn't
|
||||||
|
matter which offset is used. However, other ABIs, such as the FDPIC
|
||||||
|
ABI, will have different offsets for the various sections. Thus, for
|
||||||
|
those ABIs, it is vital that this and other relocation code use the
|
||||||
|
correct offset.
|
||||||
|
|
||||||
|
In stap_probe::get_relocated_address, the address to which to add the
|
||||||
|
offset (thus forming the relocated address) is obtained via
|
||||||
|
this->get_address (); get_address is a getter for m_address in
|
||||||
|
probe.h. It's documented/defined as follows (also in probe.h):
|
||||||
|
|
||||||
|
/* The address where the probe is inserted, relative to
|
||||||
|
SECT_OFF_TEXT. */
|
||||||
|
CORE_ADDR m_address;
|
||||||
|
|
||||||
|
(Thanks to Tom Tromey for this observation.)
|
||||||
|
|
||||||
|
So, based on this, the current use of data_section_offset /
|
||||||
|
SECT_OFF_DATA is wrong. This relocation code should have been using
|
||||||
|
text_section_offset / SECT_OFF_TEXT all along. That being the
|
||||||
|
case, I've adjusted the stap-probe.c relocation code accordingly.
|
||||||
|
|
||||||
|
Searching the sources turned up one other use of data_section_offset,
|
||||||
|
in gdb/dtrace-probe.c, so I've updated that code as well. The same
|
||||||
|
reasoning presented above applies to this case too.
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
|
||||||
|
* gdb/dtrace-probe.c (dtrace_probe::get_relocated_address):
|
||||||
|
Use method text_section_offset instead of data_section_offset.
|
||||||
|
* gdb/stap-probe.c (relocate_address): Likewise.
|
||||||
|
|
||||||
|
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
|
||||||
|
--- a/gdb/dtrace-probe.c
|
||||||
|
+++ b/gdb/dtrace-probe.c
|
||||||
|
@@ -684,7 +684,7 @@ dtrace_probe::is_enabled () const
|
||||||
|
CORE_ADDR
|
||||||
|
dtrace_probe::get_relocated_address (struct objfile *objfile)
|
||||||
|
{
|
||||||
|
- return this->get_address () + objfile->data_section_offset ();
|
||||||
|
+ return this->get_address () + objfile->text_section_offset ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Implementation of the get_argument_count method. */
|
||||||
|
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
|
||||||
|
--- a/gdb/stap-probe.c
|
||||||
|
+++ b/gdb/stap-probe.c
|
||||||
|
@@ -1330,7 +1330,7 @@ stap_probe::parse_arguments (struct gdbarch *gdbarch)
|
||||||
|
static CORE_ADDR
|
||||||
|
relocate_address (CORE_ADDR address, struct objfile *objfile)
|
||||||
|
{
|
||||||
|
- return address + objfile->data_section_offset ();
|
||||||
|
+ return address + objfile->text_section_offset ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Implementation of the get_relocated_address method. */
|
108
gdb-rhbz2160211-excessive-core-file-warnings.patch
Normal file
108
gdb-rhbz2160211-excessive-core-file-warnings.patch
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Date: Thu, 29 Jun 2023 18:20:30 -0700
|
||||||
|
Subject: gdb-rhbz2160211-excessive-core-file-warnings.patch
|
||||||
|
|
||||||
|
;; Backport two commits, 0ad504dd464 and ea70f941f9b, from Lancelot SIX
|
||||||
|
;; which prevent repeated warnings from being printed while loading a
|
||||||
|
;; core file. (RH BZ 2160211)
|
||||||
|
|
||||||
|
gdb/corelow.c: avoid repeated warnings in build_file_mappings
|
||||||
|
|
||||||
|
When GDB opens a coredump it tries to locate and then open all files
|
||||||
|
which were mapped in the process.
|
||||||
|
|
||||||
|
If a file is found but cannot be opened with BFD (bfd_open /
|
||||||
|
bfd_check_format fails), then a warning is printed to the user. If the
|
||||||
|
same file was mapped multiple times in the process's address space, the
|
||||||
|
warning is printed once for each time the file was mapped. I find this
|
||||||
|
un-necessarily noisy.
|
||||||
|
|
||||||
|
This patch makes it so the warning message is printed only once per
|
||||||
|
file.
|
||||||
|
|
||||||
|
There was a comment in the code assuming that if the file was found on
|
||||||
|
the system, opening it (bfd_open + bfd_check_format) should always
|
||||||
|
succeed. A recent change in BFD (014a602b86f "Don't optimise bfd_seek
|
||||||
|
to same position") showed that this assumption is not valid. For
|
||||||
|
example, it is possible to have a core dump of a process which had
|
||||||
|
mmaped an IO page from a DRI render node (/dev/dri/runderD$NUM). In
|
||||||
|
such case the core dump does contain the information that portions of
|
||||||
|
this special file were mapped in the host process, but trying to seek to
|
||||||
|
position 0 will fail, making bfd_check_format fail. This patch removes
|
||||||
|
this comment.
|
||||||
|
|
||||||
|
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
|
||||||
|
Approved-By: Andrew Burgess <aburgess@redhat.com>
|
||||||
|
|
||||||
|
gdb/corelow.c: do not try to reopen a file if open failed once
|
||||||
|
|
||||||
|
In the current implementation, core_target::build_file_mappings will try
|
||||||
|
to locate and open files which were mapped in the process for which the
|
||||||
|
core dump was produced. If the file cannot be found or cannot be
|
||||||
|
opened, GDB will re-try to open it once for each time it was mapped in
|
||||||
|
the process's address space.
|
||||||
|
|
||||||
|
This patch makes it so GDB recognizes that it has already failed to open
|
||||||
|
a given file once and does not re-try the process for each mapping.
|
||||||
|
|
||||||
|
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
|
||||||
|
Approved-By: Andrew Burgess <aburgess@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/gdb/corelow.c b/gdb/corelow.c
|
||||||
|
--- a/gdb/corelow.c
|
||||||
|
+++ b/gdb/corelow.c
|
||||||
|
@@ -237,6 +237,16 @@ core_target::build_file_mappings ()
|
||||||
|
weed out non-file-backed mappings. */
|
||||||
|
gdb_assert (filename != nullptr);
|
||||||
|
|
||||||
|
+ if (unavailable_paths.find (filename) != unavailable_paths.end ())
|
||||||
|
+ {
|
||||||
|
+ /* We have already seen some mapping for FILENAME but failed to
|
||||||
|
+ find/open the file. There is no point in trying the same
|
||||||
|
+ thing again so just record that the range [start, end) is
|
||||||
|
+ unavailable. */
|
||||||
|
+ m_core_unavailable_mappings.emplace_back (start, end - start);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
struct bfd *bfd = bfd_map[filename];
|
||||||
|
if (bfd == nullptr)
|
||||||
|
{
|
||||||
|
@@ -254,11 +264,10 @@ core_target::build_file_mappings ()
|
||||||
|
if (expanded_fname == nullptr)
|
||||||
|
{
|
||||||
|
m_core_unavailable_mappings.emplace_back (start, end - start);
|
||||||
|
- /* Print just one warning per path. */
|
||||||
|
- if (unavailable_paths.insert (filename).second)
|
||||||
|
- warning (_("Can't open file %s during file-backed mapping "
|
||||||
|
- "note processing"),
|
||||||
|
- filename);
|
||||||
|
+ unavailable_paths.insert (filename);
|
||||||
|
+ warning (_("Can't open file %s during file-backed mapping "
|
||||||
|
+ "note processing"),
|
||||||
|
+ filename);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -268,18 +277,11 @@ core_target::build_file_mappings ()
|
||||||
|
if (bfd == nullptr || !bfd_check_format (bfd, bfd_object))
|
||||||
|
{
|
||||||
|
m_core_unavailable_mappings.emplace_back (start, end - start);
|
||||||
|
- /* If we get here, there's a good chance that it's due to
|
||||||
|
- an internal error. We issue a warning instead of an
|
||||||
|
- internal error because of the possibility that the
|
||||||
|
- file was removed in between checking for its
|
||||||
|
- existence during the expansion in exec_file_find()
|
||||||
|
- and the calls to bfd_openr() / bfd_check_format().
|
||||||
|
- Output both the path from the core file note along
|
||||||
|
- with its expansion to make debugging this problem
|
||||||
|
- easier. */
|
||||||
|
+ unavailable_paths.insert (filename);
|
||||||
|
warning (_("Can't open file %s which was expanded to %s "
|
||||||
|
"during file-backed mapping note processing"),
|
||||||
|
filename, expanded_fname.get ());
|
||||||
|
+
|
||||||
|
if (bfd != nullptr)
|
||||||
|
bfd_close (bfd);
|
||||||
|
return;
|
107
gdb-rhbz2192105-ftbs-dangling-pointer
Normal file
107
gdb-rhbz2192105-ftbs-dangling-pointer
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Date: Wed, 3 May 2023 11:28:24 -0700
|
||||||
|
Subject: gdb-rhbz2192105-ftbs-dangling-pointer
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
;; Backport upstream patch fixing a "dangling pointer" build problem
|
||||||
|
;; first seen when building with GCC 13.1.1 20230426 (Red Hat ;; 13.1.1-1).
|
||||||
|
|
||||||
|
Pass const frame_info_ptr reference for skip_[language_]trampoline
|
||||||
|
|
||||||
|
g++ 13.1.1 produces a -Werror=dangling-pointer=
|
||||||
|
|
||||||
|
In file included from ../../binutils-gdb/gdb/frame.h:75,
|
||||||
|
from ../../binutils-gdb/gdb/symtab.h:40,
|
||||||
|
from ../../binutils-gdb/gdb/language.c:33:
|
||||||
|
In member function ‘void intrusive_list<T, AsNode>::push_empty(T&) [with T = frame_info_ptr; AsNode = intrusive_base_node<frame_info_ptr>]’,
|
||||||
|
inlined from ‘void intrusive_list<T, AsNode>::push_back(reference) [with T = frame_info_ptr; AsNode = intrusive_base_node<frame_info_ptr>]’ at gdbsupport/intrusive_list.h:332:24,
|
||||||
|
inlined from ‘frame_info_ptr::frame_info_ptr(const frame_info_ptr&)’ at gdb/frame.h:241:26,
|
||||||
|
inlined from ‘CORE_ADDR skip_language_trampoline(frame_info_ptr, CORE_ADDR)’ at gdb/language.c:530:49:
|
||||||
|
gdbsupport/intrusive_list.h:415:12: error: storing the address of local variable ‘<anonymous>’ in ‘frame_info_ptr::frame_list.intrusive_list<frame_info_ptr>::m_back’ [-Werror=dangling-pointer=]
|
||||||
|
415 | m_back = &elem;
|
||||||
|
| ~~~~~~~^~~~~~~
|
||||||
|
gdb/language.c: In function ‘CORE_ADDR skip_language_trampoline(frame_info_ptr, CORE_ADDR)’:
|
||||||
|
gdb/language.c:530:49: note: ‘<anonymous>’ declared here
|
||||||
|
530 | CORE_ADDR real_pc = lang->skip_trampoline (frame, pc);
|
||||||
|
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
|
||||||
|
gdb/frame.h:359:41: note: ‘frame_info_ptr::frame_list’ declared here
|
||||||
|
359 | static intrusive_list<frame_info_ptr> frame_list;
|
||||||
|
| ^~~~~~~~~~
|
||||||
|
|
||||||
|
Each new frame_info_ptr is being pushed on a static frame list and g++
|
||||||
|
cannot see why that is safe in case the frame_info_ptr is created and
|
||||||
|
destroyed immediately when passed as value.
|
||||||
|
|
||||||
|
It isn't clear why only in this one place g++ sees the issue (probably
|
||||||
|
because it can inline enough code in this specific case).
|
||||||
|
|
||||||
|
Since passing the frame_info_ptr as const reference is cheaper, use
|
||||||
|
that as workaround for this warning.
|
||||||
|
|
||||||
|
PR build/30413
|
||||||
|
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30413
|
||||||
|
|
||||||
|
Tested-by: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Reviewed-by: Kevin Buettner <kevinb@redhat.com>
|
||||||
|
Reviewed-by: Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
|
||||||
|
--- a/gdb/c-lang.c
|
||||||
|
+++ b/gdb/c-lang.c
|
||||||
|
@@ -1003,7 +1003,7 @@ class cplus_language : public language_defn
|
||||||
|
|
||||||
|
/* See language.h. */
|
||||||
|
|
||||||
|
- CORE_ADDR skip_trampoline (frame_info_ptr fi,
|
||||||
|
+ CORE_ADDR skip_trampoline (const frame_info_ptr &fi,
|
||||||
|
CORE_ADDR pc) const override
|
||||||
|
{
|
||||||
|
return cplus_skip_trampoline (fi, pc);
|
||||||
|
diff --git a/gdb/language.c b/gdb/language.c
|
||||||
|
--- a/gdb/language.c
|
||||||
|
+++ b/gdb/language.c
|
||||||
|
@@ -528,7 +528,7 @@ add_set_language_command ()
|
||||||
|
Return the result from the first that returns non-zero, or 0 if all
|
||||||
|
`fail'. */
|
||||||
|
CORE_ADDR
|
||||||
|
-skip_language_trampoline (frame_info_ptr frame, CORE_ADDR pc)
|
||||||
|
+skip_language_trampoline (const frame_info_ptr &frame, CORE_ADDR pc)
|
||||||
|
{
|
||||||
|
for (const auto &lang : language_defn::languages)
|
||||||
|
{
|
||||||
|
diff --git a/gdb/language.h b/gdb/language.h
|
||||||
|
--- a/gdb/language.h
|
||||||
|
+++ b/gdb/language.h
|
||||||
|
@@ -471,7 +471,7 @@ struct language_defn
|
||||||
|
If that PC falls in a trampoline belonging to this language, return
|
||||||
|
the address of the first pc in the real function, or 0 if it isn't a
|
||||||
|
language tramp for this language. */
|
||||||
|
- virtual CORE_ADDR skip_trampoline (frame_info_ptr fi, CORE_ADDR pc) const
|
||||||
|
+ virtual CORE_ADDR skip_trampoline (const frame_info_ptr &fi, CORE_ADDR pc) const
|
||||||
|
{
|
||||||
|
return (CORE_ADDR) 0;
|
||||||
|
}
|
||||||
|
@@ -789,7 +789,7 @@ extern const char *language_str (enum language);
|
||||||
|
|
||||||
|
/* Check for a language-specific trampoline. */
|
||||||
|
|
||||||
|
-extern CORE_ADDR skip_language_trampoline (frame_info_ptr, CORE_ADDR pc);
|
||||||
|
+extern CORE_ADDR skip_language_trampoline (const frame_info_ptr &, CORE_ADDR pc);
|
||||||
|
|
||||||
|
/* Return demangled language symbol, or NULL. */
|
||||||
|
extern gdb::unique_xmalloc_ptr<char> language_demangle
|
||||||
|
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
|
||||||
|
--- a/gdb/objc-lang.c
|
||||||
|
+++ b/gdb/objc-lang.c
|
||||||
|
@@ -282,7 +282,7 @@ class objc_language : public language_defn
|
||||||
|
|
||||||
|
/* See language.h. */
|
||||||
|
|
||||||
|
- CORE_ADDR skip_trampoline (frame_info_ptr frame,
|
||||||
|
+ CORE_ADDR skip_trampoline (const frame_info_ptr &frame,
|
||||||
|
CORE_ADDR stop_pc) const override
|
||||||
|
{
|
||||||
|
struct gdbarch *gdbarch = get_frame_arch (frame);
|
@ -1,49 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-runtest-pie-override.patch
|
|
||||||
|
|
||||||
;; Hack for proper PIE run of the testsuite.
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
make check//unix/-fPIE/-pie RUNTESTFLAGS=solib-display.exp
|
|
||||||
|
|
||||||
gcc -fpic -c -fPIE -pie -o x.o x.c
|
|
||||||
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/Scrt1.o: In function `_start':
|
|
||||||
(.text+0x20): undefined reference to `main'
|
|
||||||
|
|
||||||
=> Change the order for overrides.
|
|
||||||
|
|
||||||
One has to also use -fPIC rather than -fPIE, -fPIC is stronger.
|
|
||||||
|
|
||||||
The correct way would be:
|
|
||||||
make check//unix RUNTESTFLAGS='CC_FOR_TARGET=gcc\ -fPIC\ -pie CXX_FOR_TARGET=g++\ -fPIC\ -pie solib-display.exp'
|
|
||||||
|
|
||||||
But there is a problem with testsuite.unix non-unique subdir name and also
|
|
||||||
a problem with make -j parallelization of the testsuite.
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp
|
|
||||||
--- a/gdb/testsuite/lib/future.exp
|
|
||||||
+++ b/gdb/testsuite/lib/future.exp
|
|
||||||
@@ -197,6 +197,10 @@ proc gdb_default_target_compile_1 {source destfile type options} {
|
|
||||||
set ldflags ""
|
|
||||||
set dest [target_info name]
|
|
||||||
|
|
||||||
+ if {[board_info $dest exists multilib_flags]} {
|
|
||||||
+ append add_flags " [board_info $dest multilib_flags]"
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if {[info exists CFLAGS_FOR_TARGET]} {
|
|
||||||
append add_flags " $CFLAGS_FOR_TARGET"
|
|
||||||
}
|
|
||||||
@@ -531,10 +535,6 @@ proc gdb_default_target_compile_1 {source destfile type options} {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- if {[board_info $dest exists multilib_flags]} {
|
|
||||||
- append add_flags " [board_info $dest multilib_flags]"
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
verbose "doing compile"
|
|
||||||
|
|
||||||
set sources ""
|
|
@ -1,223 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-test-expr-cumulative-archer.patch
|
|
||||||
|
|
||||||
;; [archer-keiths-expr-cumulative+upstream] Import C++ testcases.
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
archer archer-keiths-expr-cumulative
|
|
||||||
b5a7497340b24199f0c7ba7fdf0d54d4df44d6bc
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/namespace-nested-imports.cc b/gdb/testsuite/gdb.cp/namespace-nested-imports.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/namespace-nested-imports.cc
|
|
||||||
@@ -0,0 +1,36 @@
|
|
||||||
+namespace A
|
|
||||||
+{
|
|
||||||
+ namespace B
|
|
||||||
+ {
|
|
||||||
+ int ab = 11;
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+namespace C
|
|
||||||
+{
|
|
||||||
+ namespace D
|
|
||||||
+ {
|
|
||||||
+ using namespace A::B;
|
|
||||||
+
|
|
||||||
+ int
|
|
||||||
+ second()
|
|
||||||
+ {
|
|
||||||
+ ab;
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ int
|
|
||||||
+ first()
|
|
||||||
+ {
|
|
||||||
+ //ab;
|
|
||||||
+ return D::second();
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main()
|
|
||||||
+{
|
|
||||||
+ //ab;
|
|
||||||
+ return C::first();
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/namespace-nested-imports.exp b/gdb/testsuite/gdb.cp/namespace-nested-imports.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/namespace-nested-imports.exp
|
|
||||||
@@ -0,0 +1,50 @@
|
|
||||||
+# Copyright 2008 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+set testfile namespace-nested-imports
|
|
||||||
+set srcfile ${testfile}.cc
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
|
|
||||||
+ untested "Couldn't compile test program"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Get things started.
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ perror "couldn't run to breakpoint main"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test "print ab" "No symbol .* in current context."
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+gdb_breakpoint C::first
|
|
||||||
+gdb_continue_to_breakpoint "C::first"
|
|
||||||
+
|
|
||||||
+gdb_test "print ab" "No symbol .* in current context."
|
|
||||||
+gdb_test "print C::D::ab" "= 11"
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+gdb_breakpoint C::D::second
|
|
||||||
+gdb_continue_to_breakpoint "C::D::second"
|
|
||||||
+
|
|
||||||
+gdb_test "print ab" "= 11"
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/namespace-no-imports.cc b/gdb/testsuite/gdb.cp/namespace-no-imports.cc
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/namespace-no-imports.cc
|
|
||||||
@@ -0,0 +1,37 @@
|
|
||||||
+
|
|
||||||
+namespace A
|
|
||||||
+{
|
|
||||||
+ int _a = 11;
|
|
||||||
+
|
|
||||||
+ namespace B{
|
|
||||||
+
|
|
||||||
+ int ab = 22;
|
|
||||||
+
|
|
||||||
+ namespace C{
|
|
||||||
+
|
|
||||||
+ int abc = 33;
|
|
||||||
+
|
|
||||||
+ int second(){
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ int first(){
|
|
||||||
+ _a;
|
|
||||||
+ ab;
|
|
||||||
+ C::abc;
|
|
||||||
+ return C::second();
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+int
|
|
||||||
+main()
|
|
||||||
+{
|
|
||||||
+ A::_a;
|
|
||||||
+ A::B::ab;
|
|
||||||
+ A::B::C::abc;
|
|
||||||
+ return A::B::first();
|
|
||||||
+}
|
|
||||||
diff --git a/gdb/testsuite/gdb.cp/namespace-no-imports.exp b/gdb/testsuite/gdb.cp/namespace-no-imports.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.cp/namespace-no-imports.exp
|
|
||||||
@@ -0,0 +1,69 @@
|
|
||||||
+# Copyright 2008 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+set testfile namespace-no-imports
|
|
||||||
+set srcfile ${testfile}.cc
|
|
||||||
+set binfile [standard_output_file ${testfile}]
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
|
|
||||||
+ untested "Couldn't compile test program"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Get things started.
|
|
||||||
+
|
|
||||||
+gdb_exit
|
|
||||||
+gdb_start
|
|
||||||
+gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
+gdb_load ${binfile}
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+if ![runto_main] then {
|
|
||||||
+ perror "couldn't run to breakpoint main"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test "print A::_a" "= 11"
|
|
||||||
+gdb_test "print A::B::ab" "= 22"
|
|
||||||
+gdb_test "print A::B::C::abc" "= 33"
|
|
||||||
+
|
|
||||||
+gdb_test "print _a" "No symbol .* in current context."
|
|
||||||
+gdb_test "print ab" "No symbol .* in current context."
|
|
||||||
+gdb_test "print abc" "No symbol .* in current context."
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+gdb_breakpoint A::B::first
|
|
||||||
+gdb_continue_to_breakpoint "A::B::first"
|
|
||||||
+
|
|
||||||
+gdb_test "print A::_a" "= 11"
|
|
||||||
+gdb_test "print A::B::ab" "= 22"
|
|
||||||
+gdb_test "print A::B::C::abc" "= 33"
|
|
||||||
+
|
|
||||||
+gdb_test "print _a" "= 11"
|
|
||||||
+gdb_test "print ab" "= 22"
|
|
||||||
+gdb_test "print C::abc" "= 33"
|
|
||||||
+
|
|
||||||
+gdb_test "print abc" "No symbol .* in current context."
|
|
||||||
+
|
|
||||||
+############################################
|
|
||||||
+gdb_breakpoint A::B::C::second
|
|
||||||
+gdb_continue_to_breakpoint "A::B::C::second"
|
|
||||||
+
|
|
||||||
+gdb_test "print A::_a" "= 11"
|
|
||||||
+gdb_test "print A::B::ab" "= 22"
|
|
||||||
+gdb_test "print A::B::C::abc" "= 33"
|
|
||||||
+
|
|
||||||
+gdb_test "print _a" "= 11"
|
|
||||||
+gdb_test "print ab" "= 22"
|
|
||||||
+gdb_test "print abc" "= 33"
|
|
@ -136,7 +136,7 @@ new file mode 100644
|
|||||||
+set testfile amd64-ivy-bridge
|
+set testfile amd64-ivy-bridge
|
||||||
+set test compilation
|
+set test compilation
|
||||||
+if [prepare_for_testing ${testfile}.exp ${testfile}.x ${testfile}.S [list debug "additional_flags=-m64 -nostdlib"]] {
|
+if [prepare_for_testing ${testfile}.exp ${testfile}.x ${testfile}.S [list debug "additional_flags=-m64 -nostdlib"]] {
|
||||||
+ fail $test
|
+ unsupported $test
|
||||||
+ return -1
|
+ return -1
|
||||||
+}
|
+}
|
||||||
+pass $test
|
+pass $test
|
||||||
@ -288,7 +288,7 @@ diff --git a/gdb/testsuite/gdb.arch/i386-ivy-bridge.S b/gdb/testsuite/gdb.arch/i
|
|||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/testsuite/gdb.arch/i386-ivy-bridge.S
|
+++ b/gdb/testsuite/gdb.arch/i386-ivy-bridge.S
|
||||||
@@ -0,0 +1,67 @@
|
@@ -0,0 +1,66 @@
|
||||||
+/* Copyright 2011 Free Software Foundation, Inc.
|
+/* Copyright 2011 Free Software Foundation, Inc.
|
||||||
+
|
+
|
||||||
+ This program is free software; you can redistribute it and/or modify
|
+ This program is free software; you can redistribute it and/or modify
|
||||||
@ -355,7 +355,6 @@ new file mode 100644
|
|||||||
+ rdgsbase ebx
|
+ rdgsbase ebx
|
||||||
+ wrfsbase ebx
|
+ wrfsbase ebx
|
||||||
+ wrgsbase ebx
|
+ wrgsbase ebx
|
||||||
+
|
|
||||||
diff --git a/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp b/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp
|
diff --git a/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp b/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sergio Durigan Junior <sergiodj@redhat.com>
|
|
||||||
Date: Thu, 7 Dec 2017 16:20:31 -0500
|
|
||||||
Subject: gdb-vla-intel-fix-print-char-array.patch
|
|
||||||
|
|
||||||
;; Revert upstream commit 469412dd9ccc4de5874fd3299b105833f36b34cd
|
|
||||||
|
|
||||||
Revert commit (only the part touching gdb/f-valprint.c):
|
|
||||||
|
|
||||||
commit 469412dd9ccc4de5874fd3299b105833f36b34cd
|
|
||||||
Author: Christoph Weinmann <christoph.t.weinmann@intel.com>
|
|
||||||
Date: Fri Sep 8 15:11:47 2017 +0200
|
|
||||||
|
|
||||||
Remove C/C++ relevant code in Fortran specific file.
|
|
||||||
|
|
||||||
Remove code relevant for printing C/C++ Integer values in a
|
|
||||||
Fortran specific file to unify printing of Fortran values.
|
|
||||||
This does not change the output.
|
|
||||||
|
|
||||||
And adjust its testcase.
|
|
||||||
|
|
||||||
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
|
|
||||||
--- a/gdb/f-valprint.c
|
|
||||||
+++ b/gdb/f-valprint.c
|
|
||||||
@@ -310,7 +310,21 @@ f_value_print_inner (struct value *val, struct ui_file *stream, int recurse,
|
|
||||||
value_print_scalar_formatted (val, &opts, 0, stream);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
- value_print_scalar_formatted (val, options, 0, stream);
|
|
||||||
+ {
|
|
||||||
+ value_print_scalar_formatted (val, options, 0, stream);
|
|
||||||
+ /* C and C++ has no single byte int type, char is used instead.
|
|
||||||
+ Since we don't know whether the value is really intended to
|
|
||||||
+ be used as an integer or a character, print the character
|
|
||||||
+ equivalent as well. */
|
|
||||||
+ if (TYPE_LENGTH (type) == 1)
|
|
||||||
+ {
|
|
||||||
+ LONGEST c;
|
|
||||||
+
|
|
||||||
+ fputs_filtered (" ", stream);
|
|
||||||
+ c = unpack_long (type, valaddr);
|
|
||||||
+ LA_PRINT_CHAR ((unsigned char) c, type, stream);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
break;
|
|
||||||
|
|
||||||
case TYPE_CODE_STRUCT:
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/printing-types.exp b/gdb/testsuite/gdb.fortran/printing-types.exp
|
|
||||||
--- a/gdb/testsuite/gdb.fortran/printing-types.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/printing-types.exp
|
|
||||||
@@ -30,7 +30,7 @@ if {![fortran_runto_main]} then {
|
|
||||||
gdb_breakpoint [gdb_get_line_number "write"]
|
|
||||||
gdb_continue_to_breakpoint "write"
|
|
||||||
|
|
||||||
-gdb_test "print oneByte" " = 1"
|
|
||||||
+gdb_test "print oneByte" " = 1 \'\\\\001\'"
|
|
||||||
gdb_test "print twobytes" " = 2"
|
|
||||||
gdb_test "print chvalue" " = \'a\'"
|
|
||||||
gdb_test "print logvalue" " = \.TRUE\."
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,167 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
||||||
Date: Fri, 1 Aug 2014 23:02:17 +0200
|
|
||||||
Subject: gdb-vla-intel-stringbt-fix.patch
|
|
||||||
|
|
||||||
;;=push+jan
|
|
||||||
|
|
||||||
http://sourceware.org/ml/gdb-patches/2014-08/msg00025.html
|
|
||||||
|
|
||||||
On Fri, 01 Aug 2014 09:20:19 +0200, Keven Boell wrote:
|
|
||||||
> I just tried it on Fedora 20 i686. Applied the patch, you mentioned, on top of
|
|
||||||
> the Fortran VLA series and executed your dynamic-other-frame test. Everything
|
|
||||||
> is working fine here, I cannot reproduce the crash.
|
|
||||||
|
|
||||||
I have it reproducible on Fedora 20 i686 with plain
|
|
||||||
CFLAGS=-g ./configure;make;cd gdb/testsuite;make site.exp;runtest gdb.fortran/dynamic-other-frame.exp
|
|
||||||
|
|
||||||
Besides that I have updated the testcase with
|
|
||||||
gdb_test_no_output "set print frame-arguments all"
|
|
||||||
so that there is no longer needed the patch:
|
|
||||||
[patch] Display Fortran strings in backtraces
|
|
||||||
https://sourceware.org/ml/gdb-patches/2014-07/msg00709.html
|
|
||||||
|
|
||||||
The fix below has no regressions for me. Unfortunately I do not see why you
|
|
||||||
cannot reproduce it.
|
|
||||||
|
|
||||||
Thanks,
|
|
||||||
Jan
|
|
||||||
|
|
||||||
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
|
|
||||||
--- a/gdb/dwarf2/loc.c
|
|
||||||
+++ b/gdb/dwarf2/loc.c
|
|
||||||
@@ -2249,6 +2249,20 @@ dwarf2_evaluate_loc_desc_full (struct type *type, struct frame_info *frame,
|
|
||||||
ctx.per_cu = per_cu;
|
|
||||||
ctx.obj_address = 0;
|
|
||||||
|
|
||||||
+frame_id old_frame_id (get_frame_id (deprecated_safe_get_selected_frame ()));
|
|
||||||
+class RestoreCall {
|
|
||||||
+private:
|
|
||||||
+ const std::function<void ()> func;
|
|
||||||
+public:
|
|
||||||
+ RestoreCall(std::function<void ()> func_):func(func_) {}
|
|
||||||
+ ~RestoreCall() { func(); }
|
|
||||||
+} restore_frame([=]() {
|
|
||||||
+ frame_info *old_frame (frame_find_by_id (old_frame_id));
|
|
||||||
+ if (old_frame != NULL)
|
|
||||||
+ select_frame (old_frame);
|
|
||||||
+});
|
|
||||||
+if (frame != NULL) select_frame (frame);
|
|
||||||
+
|
|
||||||
scoped_value_mark free_values;
|
|
||||||
|
|
||||||
ctx.gdbarch = per_objfile->objfile->arch ();
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90 b/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame-stub.f90
|
|
||||||
@@ -0,0 +1,24 @@
|
|
||||||
+! Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+!
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program; if not, write to the Free Software
|
|
||||||
+! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+!
|
|
||||||
+! Ihis file is the Fortran source file for dynamic.exp.
|
|
||||||
+! Original file written by Jakub Jelinek <jakub@redhat.com>.
|
|
||||||
+! Modified for the GDB testcase by Jan Kratochvil <jan.kratochvil@redhat.com>.
|
|
||||||
+
|
|
||||||
+subroutine bar
|
|
||||||
+ real :: dummy
|
|
||||||
+ dummy = 1
|
|
||||||
+end subroutine bar
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp b/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame.exp
|
|
||||||
@@ -0,0 +1,39 @@
|
|
||||||
+# Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program; if not, write to the Free Software
|
|
||||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+set testfile "dynamic-other-frame"
|
|
||||||
+set srcfile1 ${testfile}.f90
|
|
||||||
+set srcfile2 ${testfile}-stub.f90
|
|
||||||
+set objfile2 [standard_output_file ${testfile}-stub.o]
|
|
||||||
+set executable ${testfile}
|
|
||||||
+set binfile [standard_output_file ${executable}]
|
|
||||||
+
|
|
||||||
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${objfile2}" object {f90}] != ""
|
|
||||||
+ || [gdb_compile "${srcdir}/${subdir}/${srcfile1} ${objfile2}" "${binfile}" executable {debug f90}] != "" } {
|
|
||||||
+ untested "Couldn't compile ${srcfile1} or ${srcfile2}"
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+clean_restart ${executable}
|
|
||||||
+
|
|
||||||
+gdb_test_no_output "set print frame-arguments all"
|
|
||||||
+
|
|
||||||
+if ![runto bar_] then {
|
|
||||||
+ perror "couldn't run to bar_"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_test "bt" {foo \(string='hello'.*}
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90 b/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/dynamic-other-frame.f90
|
|
||||||
@@ -0,0 +1,36 @@
|
|
||||||
+! Copyright 2010 Free Software Foundation, Inc.
|
|
||||||
+!
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program; if not, write to the Free Software
|
|
||||||
+! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+!
|
|
||||||
+! Ihis file is the Fortran source file for dynamic.exp.
|
|
||||||
+! Original file written by Jakub Jelinek <jakub@redhat.com>.
|
|
||||||
+! Modified for the GDB testcase by Jan Kratochvil <jan.kratochvil@redhat.com>.
|
|
||||||
+
|
|
||||||
+subroutine foo (string)
|
|
||||||
+ interface
|
|
||||||
+ subroutine bar
|
|
||||||
+ end subroutine
|
|
||||||
+ end interface
|
|
||||||
+ character string*(*)
|
|
||||||
+ call bar ! stop-here
|
|
||||||
+end subroutine foo
|
|
||||||
+program test
|
|
||||||
+ interface
|
|
||||||
+ subroutine foo (string)
|
|
||||||
+ character string*(*)
|
|
||||||
+ end subroutine
|
|
||||||
+ end interface
|
|
||||||
+ call foo ('hello')
|
|
||||||
+end
|
|
@ -1,350 +0,0 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fedora GDB patches <invalid@email.com>
|
|
||||||
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
||||||
Subject: gdb-vla-intel-tests.patch
|
|
||||||
|
|
||||||
;;=fedoratest
|
|
||||||
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/ptr-indentation.exp b/gdb/testsuite/gdb.fortran/ptr-indentation.exp
|
|
||||||
--- a/gdb/testsuite/gdb.fortran/ptr-indentation.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/ptr-indentation.exp
|
|
||||||
@@ -37,5 +37,5 @@ gdb_continue_to_breakpoint "BP1"
|
|
||||||
gdb_test "ptype tinsta" \
|
|
||||||
[multi_line "type = Type tuserdef" \
|
|
||||||
" $int :: i" \
|
|
||||||
- " PTR TO -> \\( $real :: ptr \\)" \
|
|
||||||
+ " PTR TO -> \\( $real :: ptr\\)" \
|
|
||||||
"End Type tuserdef"]
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/ptype-on-functions.exp b/gdb/testsuite/gdb.fortran/ptype-on-functions.exp
|
|
||||||
--- a/gdb/testsuite/gdb.fortran/ptype-on-functions.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/ptype-on-functions.exp
|
|
||||||
@@ -42,7 +42,7 @@ gdb_test "ptype say_numbers" \
|
|
||||||
"type = void \\(integer\\(kind=4\\), integer\\(kind=4\\), integer\\(kind=4\\)\\)"
|
|
||||||
|
|
||||||
gdb_test "ptype fun_ptr" \
|
|
||||||
- "type = PTR TO -> \\( integer\\(kind=4\\) \\(\\) \\(REF TO -> \\( integer\\(kind=4\\) \\)\\) \\)"
|
|
||||||
+ "type = PTR TO -> \\( integer\\(kind=4\\) \\(\\) \\(REF TO -> \\( integer\\(kind=4\\)\\)\\)\\)"
|
|
||||||
|
|
||||||
gdb_test "ptype say_string" \
|
|
||||||
"type = void \\(character\\*\\(\\*\\), integer\\(kind=\\d+\\)\\)"
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/vla-func.exp b/gdb/testsuite/gdb.fortran/vla-func.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/vla-func.exp
|
|
||||||
@@ -0,0 +1,61 @@
|
|
||||||
+# Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+standard_testfile ".f90"
|
|
||||||
+
|
|
||||||
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
|
|
||||||
+ {debug f90 quiet}] } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+if ![runto MAIN__] then {
|
|
||||||
+ perror "couldn't run to breakpoint MAIN__"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# Check VLA passed to first Fortran function.
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "func1-vla-passed"]
|
|
||||||
+gdb_continue_to_breakpoint "func1-vla-passed"
|
|
||||||
+gdb_test "print vla" " = \\( *\\( *22, *22, *22,\[()22, .\]*\\)" \
|
|
||||||
+ "print vla (func1)"
|
|
||||||
+gdb_test "ptype vla" "type = integer\\\(kind=4\\\), allocatable \\\(10,10\\\)" \
|
|
||||||
+ "ptype vla (func1)"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "func1-vla-modified"]
|
|
||||||
+gdb_continue_to_breakpoint "func1-vla-modified"
|
|
||||||
+gdb_test "print vla(5,5)" " = 55" "print vla(5,5) (func1)"
|
|
||||||
+gdb_test "print vla(7,7)" " = 77" "print vla(5,5) (func1)"
|
|
||||||
+
|
|
||||||
+# Check if the values are correct after returning from func1
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "func1-returned"]
|
|
||||||
+gdb_continue_to_breakpoint "func1-returned"
|
|
||||||
+gdb_test "print ret" " = .TRUE." "print ret after func1 returned"
|
|
||||||
+
|
|
||||||
+# Check VLA passed to second Fortran function
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "func2-vla-passed"]
|
|
||||||
+gdb_continue_to_breakpoint "func2-vla-passed"
|
|
||||||
+gdb_test "print vla" \
|
|
||||||
+ " = \\\(44, 44, 44, 44, 44, 44, 44, 44, 44, 44\\\)" \
|
|
||||||
+ "print vla (func2)"
|
|
||||||
+gdb_test "ptype vla" "type = integer\\\(kind=4\\\) \\\(10\\\)" \
|
|
||||||
+ "ptype vla (func2)"
|
|
||||||
+
|
|
||||||
+# Check if the returned VLA has the correct values and ptype.
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "func2-returned"]
|
|
||||||
+gdb_continue_to_breakpoint "func2-returned"
|
|
||||||
+gdb_test "print vla3" " = \\\(1, 2, 44, 4, 44, 44, 44, 8, 44, 44\\\)" \
|
|
||||||
+ "print vla3 (after func2)"
|
|
||||||
+gdb_test "ptype vla3" "type = integer\\\(kind=4\\\), allocatable \\\(10\\\)" \
|
|
||||||
+ "ptype vla3 (after func2)"
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/vla-func.f90 b/gdb/testsuite/gdb.fortran/vla-func.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/vla-func.f90
|
|
||||||
@@ -0,0 +1,71 @@
|
|
||||||
+! Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+!
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program; if not, write to the Free Software
|
|
||||||
+! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+logical function func1 (vla)
|
|
||||||
+ implicit none
|
|
||||||
+ integer, allocatable :: vla (:, :)
|
|
||||||
+ func1 = allocated(vla)
|
|
||||||
+ vla(5,5) = 55 ! func1-vla-passed
|
|
||||||
+ vla(7,7) = 77
|
|
||||||
+ return ! func1-vla-modified
|
|
||||||
+end function func1
|
|
||||||
+
|
|
||||||
+function func2(vla)
|
|
||||||
+ implicit none
|
|
||||||
+ integer :: vla (:)
|
|
||||||
+ integer :: func2(size(vla))
|
|
||||||
+ integer :: k
|
|
||||||
+
|
|
||||||
+ vla(1) = 1 ! func2-vla-passed
|
|
||||||
+ vla(2) = 2
|
|
||||||
+ vla(4) = 4
|
|
||||||
+ vla(8) = 8
|
|
||||||
+
|
|
||||||
+ func2 = vla
|
|
||||||
+end function func2
|
|
||||||
+
|
|
||||||
+program vla_func
|
|
||||||
+ implicit none
|
|
||||||
+ interface
|
|
||||||
+ logical function func1 (vla)
|
|
||||||
+ integer, allocatable :: vla (:, :)
|
|
||||||
+ end function
|
|
||||||
+ end interface
|
|
||||||
+ interface
|
|
||||||
+ function func2 (vla)
|
|
||||||
+ integer :: vla (:)
|
|
||||||
+ integer func2(size(vla))
|
|
||||||
+ end function
|
|
||||||
+ end interface
|
|
||||||
+
|
|
||||||
+ logical :: ret
|
|
||||||
+ integer, allocatable :: vla1 (:, :)
|
|
||||||
+ integer, allocatable :: vla2 (:)
|
|
||||||
+ integer, allocatable :: vla3 (:)
|
|
||||||
+
|
|
||||||
+ ret = .FALSE.
|
|
||||||
+
|
|
||||||
+ allocate (vla1 (10,10))
|
|
||||||
+ vla1(:,:) = 22
|
|
||||||
+
|
|
||||||
+ allocate (vla2 (10))
|
|
||||||
+ vla2(:) = 44
|
|
||||||
+
|
|
||||||
+ ret = func1(vla1)
|
|
||||||
+ vla3 = func2(vla2) ! func1-returned
|
|
||||||
+
|
|
||||||
+ ret = .TRUE. ! func2-returned
|
|
||||||
+end program vla_func
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/vla-ptr-info.exp b/gdb/testsuite/gdb.fortran/vla-ptr-info.exp
|
|
||||||
--- a/gdb/testsuite/gdb.fortran/vla-ptr-info.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/vla-ptr-info.exp
|
|
||||||
@@ -33,5 +33,5 @@ set real4 [fortran_real4]
|
|
||||||
# Check the status of a pointer to a dynamic array.
|
|
||||||
gdb_breakpoint [gdb_get_line_number "pvla-associated"]
|
|
||||||
gdb_continue_to_breakpoint "pvla-associated"
|
|
||||||
-gdb_test "print &pvla" " = \\(PTR TO -> \\( $real4 \\(10,10,10\\) \\)\\) ${hex}" \
|
|
||||||
+gdb_test "print &pvla" " = \\(PTR TO -> \\( $real4 \\(10,10,10\\)\\)\\) ${hex}" \
|
|
||||||
"print pvla pointer information"
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/vla-stringsold.exp b/gdb/testsuite/gdb.fortran/vla-stringsold.exp
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/vla-stringsold.exp
|
|
||||||
@@ -0,0 +1,101 @@
|
|
||||||
+# Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+
|
|
||||||
+# This program is free software; you can redistribute it and/or modify
|
|
||||||
+# it under the terms of the GNU General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
+# (at your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This program is distributed in the hope that it will be useful,
|
|
||||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+# GNU General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU General Public License
|
|
||||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+standard_testfile ".f90"
|
|
||||||
+
|
|
||||||
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
|
|
||||||
+ {debug f90 quiet}] } {
|
|
||||||
+ return -1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+# check that all fortran standard datatypes will be
|
|
||||||
+# handled correctly when using as VLA's
|
|
||||||
+
|
|
||||||
+if ![runto MAIN__] then {
|
|
||||||
+ perror "couldn't run to breakpoint MAIN__"
|
|
||||||
+ continue
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char-allocated-1"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char-allocated-1"
|
|
||||||
+gdb_test "print var_char" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*10\\)\\) ${hex}" \
|
|
||||||
+ "print var_char after allocated first time"
|
|
||||||
+gdb_test "whatis var_char" "type = PTR TO -> \\( character\\*10\\)" \
|
|
||||||
+ "whatis var_char first time"
|
|
||||||
+gdb_test "ptype var_char" "type = PTR TO -> \\( character\\*10\\)" \
|
|
||||||
+ "ptype var_char first time"
|
|
||||||
+gdb_test "next" "\\d+.*var_char = 'foo'.*" \
|
|
||||||
+ "next to allocation status of var_char"
|
|
||||||
+gdb_test "print l" " = .TRUE." "print allocation status first time"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char-filled-1"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char-filled-1"
|
|
||||||
+gdb_test "print var_char" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*3\\)\\) ${hex}" \
|
|
||||||
+ "print var_char after filled first time"
|
|
||||||
+gdb_test "print *var_char" " = 'foo'" \
|
|
||||||
+ "print *var_char after filled first time"
|
|
||||||
+gdb_test "whatis var_char" "type = PTR TO -> \\( character\\*3\\)" \
|
|
||||||
+ "whatis var_char after filled first time"
|
|
||||||
+gdb_test "ptype var_char" "type = PTR TO -> \\( character\\*3\\)" \
|
|
||||||
+ "ptype var_char after filled first time"
|
|
||||||
+gdb_test "print var_char(1)" " = 102 'f'" "print var_char(1)"
|
|
||||||
+gdb_test "print var_char(3)" " = 111 'o'" "print var_char(3)"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char-filled-2"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char-filled-2"
|
|
||||||
+gdb_test "print var_char" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*6\\)\\) ${hex}" \
|
|
||||||
+ "print var_char after allocated second time"
|
|
||||||
+gdb_test "print *var_char" " = 'foobar'" \
|
|
||||||
+ "print *var_char after allocated second time"
|
|
||||||
+gdb_test "whatis var_char" "type = PTR TO -> \\( character\\*6\\)" \
|
|
||||||
+ "whatis var_char second time"
|
|
||||||
+gdb_test "ptype var_char" "type = PTR TO -> \\( character\\*6\\)" \
|
|
||||||
+ "ptype var_char second time"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char-empty"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char-empty"
|
|
||||||
+gdb_test "print var_char" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*0\\)\\) ${hex}" \
|
|
||||||
+ "print var_char after set empty"
|
|
||||||
+gdb_test "print *var_char" " = \"\"" "print *var_char after set empty"
|
|
||||||
+gdb_test "whatis var_char" "type = PTR TO -> \\( character\\*0\\)" \
|
|
||||||
+ "whatis var_char after set empty"
|
|
||||||
+gdb_test "ptype var_char" "type = PTR TO -> \\( character\\*0\\)" \
|
|
||||||
+ "ptype var_char after set empty"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char-allocated-3"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char-allocated-3"
|
|
||||||
+gdb_test "print var_char" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*21\\)\\) ${hex}" \
|
|
||||||
+ "print var_char after allocated third time"
|
|
||||||
+gdb_test "whatis var_char" "type = PTR TO -> \\( character\\*21\\)" \
|
|
||||||
+ "whatis var_char after allocated third time"
|
|
||||||
+gdb_test "ptype var_char" "type = PTR TO -> \\( character\\*21\\)" \
|
|
||||||
+ "ptype var_char after allocated third time"
|
|
||||||
+
|
|
||||||
+gdb_breakpoint [gdb_get_line_number "var_char_p-associated"]
|
|
||||||
+gdb_continue_to_breakpoint "var_char_p-associated"
|
|
||||||
+gdb_test "print var_char_p" \
|
|
||||||
+ " = \\(PTR TO -> \\( character\\*7\\)\\) ${hex}" \
|
|
||||||
+ "print var_char_p after associated"
|
|
||||||
+gdb_test "print *var_char_p" " = 'johndoe'" \
|
|
||||||
+ "print *var_char_ after associated"
|
|
||||||
+gdb_test "whatis var_char_p" "type = PTR TO -> \\( character\\*7\\)" \
|
|
||||||
+ "whatis var_char_p after associated"
|
|
||||||
+gdb_test "ptype var_char_p" "type = PTR TO -> \\( character\\*7\\)" \
|
|
||||||
+ "ptype var_char_p after associated"
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/vla-stringsold.f90 b/gdb/testsuite/gdb.fortran/vla-stringsold.f90
|
|
||||||
new file mode 100644
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/vla-stringsold.f90
|
|
||||||
@@ -0,0 +1,40 @@
|
|
||||||
+! Copyright 2014 Free Software Foundation, Inc.
|
|
||||||
+!
|
|
||||||
+! This program is free software; you can redistribute it and/or modify
|
|
||||||
+! it under the terms of the GNU General Public License as published by
|
|
||||||
+! the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+! (at your option) any later version.
|
|
||||||
+!
|
|
||||||
+! This program is distributed in the hope that it will be useful,
|
|
||||||
+! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+! GNU General Public License for more details.
|
|
||||||
+!
|
|
||||||
+! You should have received a copy of the GNU General Public License
|
|
||||||
+! along with this program; if not, write to the Free Software
|
|
||||||
+! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
+
|
|
||||||
+program vla_strings
|
|
||||||
+ character(len=:), target, allocatable :: var_char
|
|
||||||
+ character(len=:), pointer :: var_char_p
|
|
||||||
+ logical :: l
|
|
||||||
+
|
|
||||||
+ allocate(character(len=10) :: var_char)
|
|
||||||
+ l = allocated(var_char) ! var_char-allocated-1
|
|
||||||
+ var_char = 'foo'
|
|
||||||
+ deallocate(var_char) ! var_char-filled-1
|
|
||||||
+ l = allocated(var_char) ! var_char-deallocated
|
|
||||||
+ allocate(character(len=42) :: var_char)
|
|
||||||
+ l = allocated(var_char)
|
|
||||||
+ var_char = 'foobar'
|
|
||||||
+ var_char = '' ! var_char-filled-2
|
|
||||||
+ var_char = 'bar' ! var_char-empty
|
|
||||||
+ deallocate(var_char)
|
|
||||||
+ allocate(character(len=21) :: var_char)
|
|
||||||
+ l = allocated(var_char) ! var_char-allocated-3
|
|
||||||
+ var_char = 'johndoe'
|
|
||||||
+ var_char_p => var_char
|
|
||||||
+ l = associated(var_char_p) ! var_char_p-associated
|
|
||||||
+ var_char_p => null()
|
|
||||||
+ l = associated(var_char_p) ! var_char_p-not-associated
|
|
||||||
+end program vla_strings
|
|
||||||
diff --git a/gdb/testsuite/gdb.fortran/whatis_type.exp b/gdb/testsuite/gdb.fortran/whatis_type.exp
|
|
||||||
--- a/gdb/testsuite/gdb.fortran/whatis_type.exp
|
|
||||||
+++ b/gdb/testsuite/gdb.fortran/whatis_type.exp
|
|
||||||
@@ -44,7 +44,7 @@ gdb_test "whatis t2" "type = Type t2"
|
|
||||||
gdb_test "whatis t2v" "type = Type t2"
|
|
||||||
gdb_test "whatis t3" "type = Type t3"
|
|
||||||
gdb_test "whatis t3v" "type = Type t3"
|
|
||||||
-gdb_test "whatis t3p" "type = PTR TO -> \\( Type t3 \\)"
|
|
||||||
+gdb_test "whatis t3p" "type = PTR TO -> \\( Type t3\\)"
|
|
||||||
|
|
||||||
gdb_test "ptype t1" \
|
|
||||||
[multi_line "type = Type t1" \
|
|
||||||
@@ -73,4 +73,4 @@ gdb_test "ptype t3p" \
|
|
||||||
[multi_line "type = PTR TO -> \\( Type t3" \
|
|
||||||
" $int :: t3_i" \
|
|
||||||
" Type t2 :: t2_n" \
|
|
||||||
- "End Type t3 \\)"]
|
|
||||||
+ "End Type t3\\)"]
|
|
685
gdb.spec
685
gdb.spec
@ -6,12 +6,25 @@
|
|||||||
# --with profile: gcc -fprofile-generate / -fprofile-use: Before better
|
# --with profile: gcc -fprofile-generate / -fprofile-use: Before better
|
||||||
# workload gets run it decreases the general performance now.
|
# workload gets run it decreases the general performance now.
|
||||||
# --define 'scl somepkgname': Independent packages by scl-utils-build.
|
# --define 'scl somepkgname': Independent packages by scl-utils-build.
|
||||||
|
# --define 'tests "TEST1 ... TESTN": Limit testing to specified tests.
|
||||||
|
|
||||||
# Turn off the brp-python-bytecompile automagic
|
# Turn off the brp-python-bytecompile automagic
|
||||||
%global _python_bytecompile_extra 0
|
%global _python_bytecompile_extra 0
|
||||||
|
|
||||||
# Disable LTO until upstream fixes GDB's ODR woes.
|
# Disable LTO until upstream fixes GDB's ODR woes.
|
||||||
#%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
|
# Only build on x86 for RHEL6 SCL, defining missing parallel make macros.
|
||||||
|
%if 0%{?scl:1} && 0%{?el6:1}
|
||||||
|
ExclusiveArch: %{ix86} x86_64
|
||||||
|
%global make_build make %{?_smp_mflags}
|
||||||
|
%global make_install make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Exclude aarch64 on RHEL7.
|
||||||
|
%if 0%{?scl:1} && 0%{?el7:1}
|
||||||
|
ExcludeArch: aarch64
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?scl:%scl_package gdb}
|
%{?scl:%scl_package gdb}
|
||||||
%{!?scl:
|
%{!?scl:
|
||||||
@ -21,23 +34,30 @@
|
|||||||
%global _root_libdir %{_libdir}
|
%global _root_libdir %{_libdir}
|
||||||
}
|
}
|
||||||
|
|
||||||
# If we're on Fedora, we will build the gdb-minimal package.
|
# If we're on Fedora or RHEL 9+, we will build the gdb-minimal package.
|
||||||
%if 0%{?fedora}
|
# Never build the -minimal package on SCLs, since it's unneeded there.
|
||||||
|
%if 0%{?fedora} || (0%{?rhel} > 8 && 0%{!?scl:1})
|
||||||
%global _build_minimal 1
|
%global _build_minimal 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Include support for Guile? This is enabled on RHEL 8 and
|
||||||
|
# Fedora < 38.
|
||||||
|
%if (0%{?fedora:1} && 0%{?fedora} < 38) || (0%{?rhel:1} && 0%{?rhel} == 8)
|
||||||
|
%define use_guile 1
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: %{?scl_prefix}gdb
|
Name: %{?scl_prefix}gdb
|
||||||
|
|
||||||
# Freeze it when GDB gets branched
|
# Freeze it when GDB gets branched
|
||||||
%global snapsrc 20200208
|
%global snapsrc 20220501
|
||||||
# See timestamp of source gnulib installed into gnulib/ .
|
# See timestamp of source gnulib installed into gnulib/ .
|
||||||
%global snapgnulib 20200630
|
%global snapgnulib 20220501
|
||||||
%global tarname gdb-%{version}
|
%global tarname gdb-%{version}
|
||||||
Version: 10.1
|
Version: 13.2
|
||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 1.
|
# The release always contains a leading reserved number, start it at 1.
|
||||||
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
||||||
Release: 1%{?dist}
|
Release: 2.0.riscv64%{?dist}
|
||||||
|
|
||||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
|
||||||
# Do not provide URL for snapshots as the file lasts there only for 2 days.
|
# Do not provide URL for snapshots as the file lasts there only for 2 days.
|
||||||
@ -58,8 +78,7 @@ URL: https://gnu.org/software/gdb/
|
|||||||
%undefine _debuginfo_subpackages
|
%undefine _debuginfo_subpackages
|
||||||
|
|
||||||
# For DTS RHEL<=7 GDB it is better to use none than a Requires dependency.
|
# For DTS RHEL<=7 GDB it is better to use none than a Requires dependency.
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
%if 0%{!?rhel:1}
|
||||||
Recommends: %{?scl_prefix}gcc-gdb-plugin%{?_isa}
|
|
||||||
Recommends: dnf-command(debuginfo-install)
|
Recommends: dnf-command(debuginfo-install)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -88,7 +107,7 @@ Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages
|
|||||||
Obsoletes: gdb64 < 5.3.91
|
Obsoletes: gdb64 < 5.3.91
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{arm}
|
%ifarch %{arm} riscv64
|
||||||
%global have_inproctrace 0
|
%global have_inproctrace 0
|
||||||
%else
|
%else
|
||||||
%global have_inproctrace 1
|
%global have_inproctrace 1
|
||||||
@ -152,13 +171,13 @@ BuildRequires: %{librpmname}
|
|||||||
Recommends: %{librpmname}
|
Recommends: %{librpmname}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?el6:1}
|
%if 0%{?el6:1} || 0%{?el7:1}
|
||||||
# GDB C++11 requires devtoolset gcc.
|
# GDB C++11 requires devtoolset gcc.
|
||||||
BuildRequires: %{?scl_prefix}gcc-c++
|
BuildRequires: %{?scl_prefix}gcc-c++
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: autoconf
|
|
||||||
|
|
||||||
# GDB patches have the format `gdb-<version>-bz<red-hat-bz-#>-<desc>.patch'.
|
# GDB patches have the format `gdb-<version>-bz<red-hat-bz-#>-<desc>.patch'.
|
||||||
# They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb).
|
# They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb).
|
||||||
|
|
||||||
@ -189,21 +208,9 @@ Source5: %{libstdcxxpython}.tar.xz
|
|||||||
Source6: gdbtui
|
Source6: gdbtui
|
||||||
|
|
||||||
# libipt: Intel Processor Trace Decoder Library
|
# libipt: Intel Processor Trace Decoder Library
|
||||||
%global libipt_version 2.0.2
|
%global libipt_version 2.0.5
|
||||||
#=fedora
|
#=fedora
|
||||||
Source7: v%{libipt_version}.tar.gz
|
Source7: v%{libipt_version}.tar.gz
|
||||||
#=fedora
|
|
||||||
Patch1142: v1.5-libipt-static.patch
|
|
||||||
|
|
||||||
## [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka).
|
|
||||||
##=fedoratest
|
|
||||||
#Patch1075: gdb-testsuite-readline63-sigint.patch
|
|
||||||
##=fedoratest
|
|
||||||
Patch1119: gdb-testsuite-readline63-sigint-revert.patch
|
|
||||||
|
|
||||||
# Fix broken configure tests compromised by LTO
|
|
||||||
#push=Should be pushed upstream.
|
|
||||||
Patch2000: gdb-config.patch
|
|
||||||
|
|
||||||
# Include the auto-generated file containing the "Patch:" directives.
|
# Include the auto-generated file containing the "Patch:" directives.
|
||||||
# See README.local-patches for more details.
|
# See README.local-patches for more details.
|
||||||
@ -211,14 +218,15 @@ Patch9998: _gdb.spec.Patch.include
|
|||||||
Patch9999: _gdb.spec.patch.include
|
Patch9999: _gdb.spec.patch.include
|
||||||
%include %{PATCH9998}
|
%include %{PATCH9998}
|
||||||
|
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
# System readline is too old prior to RHEL8.
|
||||||
# RL_STATE_FEDORA_GDB would not be found for:
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
# Patch642: gdb-readline62-ask-more-rh.patch
|
%global use_system_readline 1
|
||||||
# --with-system-readline
|
BuildRequires: readline-devel%{buildisa} >= 7.0
|
||||||
BuildRequires: readline-devel%{buildisa} >= 6.2-4
|
%else
|
||||||
%endif # 0%{!?rhel:1} || 0%{?rhel} > 6
|
%global use_system_readline 0
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: gcc-c++ ncurses-devel%{buildisa} texinfo gettext flex bison
|
BuildRequires: ncurses-devel%{buildisa} texinfo gettext flex bison
|
||||||
BuildRequires: expat-devel%{buildisa}
|
BuildRequires: expat-devel%{buildisa}
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
||||||
BuildRequires: xz-devel%{buildisa}
|
BuildRequires: xz-devel%{buildisa}
|
||||||
@ -229,6 +237,7 @@ BuildRequires: zlib-devel%{buildisa} libselinux-devel%{buildisa}
|
|||||||
%if 0%{!?_without_python:1}
|
%if 0%{!?_without_python:1}
|
||||||
%if 0%{?rhel:1} && 0%{?rhel} <= 7
|
%if 0%{?rhel:1} && 0%{?rhel} <= 7
|
||||||
BuildRequires: python-devel%{buildisa}
|
BuildRequires: python-devel%{buildisa}
|
||||||
|
%global __python /usr/bin/python2
|
||||||
%else
|
%else
|
||||||
%global __python %{__python3}
|
%global __python %{__python3}
|
||||||
BuildRequires: python3-devel%{buildisa}
|
BuildRequires: python3-devel%{buildisa}
|
||||||
@ -249,8 +258,17 @@ BuildRequires: texlive-collection-latexrecommended
|
|||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
BuildRequires: libbabeltrace-devel%{buildisa}
|
BuildRequires: libbabeltrace-devel%{buildisa}
|
||||||
|
%if %{defined use_guile}
|
||||||
|
%if 0%{!?rhel:1}
|
||||||
|
BuildRequires: guile22-devel%{buildisa}
|
||||||
|
%endif
|
||||||
|
# Guile is only supported prior to RHEL9, where it was called "guile".
|
||||||
|
%if 0%{?rhel:1} && 0%{?rhel} < 9
|
||||||
BuildRequires: guile-devel%{buildisa}
|
BuildRequires: guile-devel%{buildisa}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global have_libipt 0
|
%global have_libipt 0
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7 || (0%{?rhel} == 7 && 0%{?scl:1})
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7 || (0%{?rhel} == 7 && 0%{?scl:1})
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
@ -268,11 +286,32 @@ BuildRequires: libipt-devel%{buildisa}
|
|||||||
# Fedora < 32, and mpfr-4 on Fedora 32+ and RHEL-9+.
|
# Fedora < 32, and mpfr-4 on Fedora 32+ and RHEL-9+.
|
||||||
BuildRequires: mpfr-devel%{buildisa}
|
BuildRequires: mpfr-devel%{buildisa}
|
||||||
%endif
|
%endif
|
||||||
|
# RHEL6 doesn't have source-highlight.
|
||||||
|
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
||||||
BuildRequires: source-highlight-devel
|
BuildRequires: source-highlight-devel
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 8
|
%endif
|
||||||
|
%if 0%{!?rhel:1}
|
||||||
BuildRequires: xxhash-devel
|
BuildRequires: xxhash-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Special case: on RHEL8+, we simply require the system debuginfod.
|
||||||
|
# Otherwise, we require the SCL version. Except on RHEL6, where debuginfod
|
||||||
|
# is not supported at all.
|
||||||
|
%global have_debuginfod 0
|
||||||
|
%global use_scl_for_debuginfod 0
|
||||||
|
%if 0%{!?rhel:1} || 0%{?rhel} >= 8
|
||||||
|
%global have_debuginfod 1
|
||||||
BuildRequires: elfutils-debuginfod-client-devel
|
BuildRequires: elfutils-debuginfod-client-devel
|
||||||
|
%else
|
||||||
|
%if 0%{!?el6:1} && 0%{?scl:1}
|
||||||
|
%global have_debuginfod 1
|
||||||
|
%global use_scl_for_debuginfod 1
|
||||||
|
BuildRequires: %{?scl_prefix}elfutils-debuginfod-client-devel
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Workaround for missing boost-devel dependency (rhbz 1718480)
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
|
||||||
%if 0%{?_with_testsuite:1}
|
%if 0%{?_with_testsuite:1}
|
||||||
|
|
||||||
@ -280,7 +319,7 @@ BuildRequires: elfutils-debuginfod-client-devel
|
|||||||
%global bits_local %{?_isa}
|
%global bits_local %{?_isa}
|
||||||
%global bits_other %{?_isa}
|
%global bits_other %{?_isa}
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} < 8
|
%if 0%{?rhel:1} && 0%{?rhel} < 8
|
||||||
%global bits_other (%{__isa_name}-32)
|
%global bits_other (%{__isa_name}-32)
|
||||||
%endif
|
%endif
|
||||||
%else #!s390x
|
%else #!s390x
|
||||||
@ -295,12 +334,15 @@ BuildRequires: elfutils-debuginfod-client-devel
|
|||||||
|
|
||||||
BuildRequires: sharutils dejagnu
|
BuildRequires: sharutils dejagnu
|
||||||
# gcc-objc++ is not covered by the GDB testsuite.
|
# gcc-objc++ is not covered by the GDB testsuite.
|
||||||
BuildRequires: gcc gcc-c++ gcc-gfortran
|
# Test supported SCL toolchain components.
|
||||||
|
BuildRequires: %{?scl_prefix}gcc %{?scl_prefix}gcc-c++ %{?scl_prefix}gcc-gfortran
|
||||||
|
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} < 8
|
%if 0%{!?rhel:1} || 0%{?rhel} < 8
|
||||||
BuildRequires: gcc-objc
|
BuildRequires: gcc-objc
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
# We don't support gcc-gdb-plugin on RHEL anymore.
|
||||||
BuildRequires: gcc-gdb-plugin%{?_isa}
|
%if 0%{!?rhel:1}
|
||||||
|
BuildRequires: %{?scl_prefix}gcc-gdb-plugin%{?_isa}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?rhel:1} && 0%{?rhel} < 7
|
%if 0%{?rhel:1} && 0%{?rhel} < 7
|
||||||
BuildRequires: gcc-java libgcj%{bits_local} libgcj%{bits_other}
|
BuildRequires: gcc-java libgcj%{bits_local} libgcj%{bits_other}
|
||||||
@ -335,8 +377,8 @@ BuildRequires: prelink
|
|||||||
BuildRequires: opencl-headers ocl-icd-devel%{bits_local} ocl-icd-devel%{bits_other}
|
BuildRequires: opencl-headers ocl-icd-devel%{bits_local} ocl-icd-devel%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1}
|
%if 0%{!?rhel:1}
|
||||||
# Fedora arm+ppc64le do not yet have fpc built.
|
# Fedora arm+ppc64le+s390x do not yet have fpc built.
|
||||||
%ifnarch %{arm} ppc64le
|
%ifnarch %{arm} ppc64le s390x
|
||||||
BuildRequires: fpc
|
BuildRequires: fpc
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -348,7 +390,7 @@ BuildRequires: gcc-gnat
|
|||||||
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64
|
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64 riscv64
|
||||||
%if 0%{!?rhel:1}
|
%if 0%{!?rhel:1}
|
||||||
BuildRequires: gcc-gnat
|
BuildRequires: gcc-gnat
|
||||||
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
||||||
@ -365,17 +407,17 @@ BuildRequires: libstdc++%{bits_local} libstdc++%{bits_other}
|
|||||||
BuildRequires: libquadmath%{bits_local} libquadmath%{bits_other}
|
BuildRequires: libquadmath%{bits_local} libquadmath%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: glibc-static%{bits_local}
|
|
||||||
# multilib glibc-static is open Bug 488472:
|
# multilib glibc-static is open Bug 488472:
|
||||||
#BuildRequires: glibc-static%{bits_other}
|
%if 0%{?rhel} > 6
|
||||||
# Exception for RHEL<=7
|
BuildRequires: glibc-static%{bits_other}
|
||||||
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
BuildRequires: valgrind%{bits_local}
|
BuildRequires: %{?scl_preifx}valgrind%{bits_local}
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
BuildRequires: valgrind%{bits_local} valgrind%{bits_other}
|
BuildRequires: %{?scl_prefix}valgrind%{bits_local} valgrind%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
BuildRequires: valgrind%{bits_local} valgrind%{bits_other}
|
BuildRequires: %{?scl_prefix}valgrind%{bits_local} valgrind%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -383,9 +425,11 @@ BuildRequires: xz
|
|||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
BuildRequires: rust
|
BuildRequires: rust
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{!?el6:1}
|
||||||
BuildRequires: %{?scl_prefix}elfutils-debuginfod
|
BuildRequires: %{?scl_prefix}elfutils-debuginfod
|
||||||
|
%endif
|
||||||
%endif # 0%{?_with_testsuite:1}
|
%endif # 0%{?_with_testsuite:1}
|
||||||
|
BuildRequires: make gmp-devel
|
||||||
|
|
||||||
%{?scl:Requires:%scl_runtime}
|
%{?scl:Requires:%scl_runtime}
|
||||||
|
|
||||||
@ -458,10 +502,6 @@ tar xJf %{SOURCE5}
|
|||||||
|
|
||||||
%if 0%{have_libipt} && 0%{?el7:1} && 0%{?scl:1}
|
%if 0%{have_libipt} && 0%{?el7:1} && 0%{?scl:1}
|
||||||
tar xzf %{SOURCE7}
|
tar xzf %{SOURCE7}
|
||||||
(
|
|
||||||
cd libipt-%{libipt_version}
|
|
||||||
%patch1142 -p1
|
|
||||||
)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
|
# Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
|
||||||
@ -477,42 +517,12 @@ find -name "*.info*"|xargs rm -f
|
|||||||
# See README.local-patches for more details.
|
# See README.local-patches for more details.
|
||||||
%include %{PATCH9999}
|
%include %{PATCH9999}
|
||||||
|
|
||||||
%if 0%{!?el6:1}
|
|
||||||
for i in \
|
|
||||||
gdb/python/lib/gdb/FrameWrapper.py \
|
|
||||||
gdb/python/lib/gdb/backtrace.py \
|
|
||||||
gdb/python/lib/gdb/command/backtrace.py \
|
|
||||||
;do
|
|
||||||
test -e $i
|
|
||||||
: >$i
|
|
||||||
done
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?rhel:1} && 0%{?rhel} <= 7
|
|
||||||
%patch1119 -p1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%patch2000 -p1
|
|
||||||
|
|
||||||
# The above patches twiddle a .m4 file for configure, so update the affected
|
|
||||||
# configure files
|
|
||||||
pushd libiberty
|
|
||||||
autoconf -f
|
|
||||||
popd
|
|
||||||
pushd intl
|
|
||||||
autoconf -f
|
|
||||||
popd
|
|
||||||
|
|
||||||
find -name "*.orig" | xargs rm -f
|
find -name "*.orig" | xargs rm -f
|
||||||
! find -name "*.rej" # Should not happen.
|
! find -name "*.rej" # Should not happen.
|
||||||
|
|
||||||
# Change the version that gets printed at GDB startup, so it is RH specific.
|
# Change the version that gets printed at GDB startup, so it is distro-specific.
|
||||||
cat > gdb/version.in << _FOO
|
cat > gdb/version.in << _FOO
|
||||||
%if 0%{!?rhel:1}
|
%{?dist_name} %{version}-%{release}
|
||||||
Fedora %{version}-%{release}
|
|
||||||
%else # !0%{!?rhel:1}
|
|
||||||
Red Hat Enterprise Linux %{version}-%{release}
|
|
||||||
%endif # !0%{!?rhel:1}
|
|
||||||
_FOO
|
_FOO
|
||||||
|
|
||||||
# Remove the info and other generated files added by the FSF release
|
# Remove the info and other generated files added by the FSF release
|
||||||
@ -523,14 +533,11 @@ rm -f bfd/doc/*.info-*
|
|||||||
rm -f gdb/doc/*.info
|
rm -f gdb/doc/*.info
|
||||||
rm -f gdb/doc/*.info-*
|
rm -f gdb/doc/*.info-*
|
||||||
|
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
%if 0%{use_system_readline}
|
||||||
# RL_STATE_FEDORA_GDB would not be found for:
|
|
||||||
# Patch642: gdb-readline62-ask-more-rh.patch
|
|
||||||
# --with-system-readline
|
|
||||||
mv -f readline/readline/doc readline-doc
|
mv -f readline/readline/doc readline-doc
|
||||||
rm -rf readline/readline/*
|
rm -rf readline/readline/*
|
||||||
mv -f readline-doc readline/readline/doc
|
mv -f readline-doc readline/readline/doc
|
||||||
%endif # 0%{!?rhel:1} || 0%{?rhel} > 6
|
%endif
|
||||||
|
|
||||||
rm -rf zlib texinfo
|
rm -rf zlib texinfo
|
||||||
|
|
||||||
@ -553,9 +560,12 @@ COMMON_GDB_CONFIGURE_FLAGS="\
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
--with-gdb-datadir=%{_datadir}/gdb \
|
--with-gdb-datadir=%{_datadir}/gdb \
|
||||||
--enable-gdb-build-warnings=,-Wno-unused \
|
--enable-gdb-build-warnings=,-Wno-unused,-Wno-deprecated-declarations,-Wno-unused-function,-Wno-stringop-overflow\
|
||||||
|
%ifarch %{ix86}
|
||||||
|
,-Wno-format-overflow\
|
||||||
|
%endif
|
||||||
--enable-build-with-cxx \
|
--enable-build-with-cxx \
|
||||||
%ifnarch %{ix86} alpha ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 sparc64 %{arm} aarch64
|
%ifnarch %{ix86} alpha ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 sparc64 %{arm} aarch64 riscv64
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
%else
|
%else
|
||||||
--enable-werror \
|
--enable-werror \
|
||||||
@ -565,7 +575,7 @@ COMMON_GDB_CONFIGURE_FLAGS="\
|
|||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--without-stage1-ldflags \
|
--without-stage1-ldflags \
|
||||||
--disable-libmcheck \
|
--disable-libmcheck \
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
%if 0%{use_system_readline}
|
||||||
--with-system-readline \
|
--with-system-readline \
|
||||||
%else
|
%else
|
||||||
--without-system-readline \
|
--without-system-readline \
|
||||||
@ -585,8 +595,13 @@ COMMON_GDB_CONFIGURE_FLAGS="\
|
|||||||
--with-lzma \
|
--with-lzma \
|
||||||
%else
|
%else
|
||||||
--without-lzma \
|
--without-lzma \
|
||||||
%endif \
|
%endif
|
||||||
--with-debuginfod
|
%if 0%{!?rhel:1} || 0%{?have_debuginfod}
|
||||||
|
--with-debuginfod \
|
||||||
|
%endif
|
||||||
|
%if 0%{?rhel:1}
|
||||||
|
--disable-libctf
|
||||||
|
%endif
|
||||||
"
|
"
|
||||||
|
|
||||||
# Identify the build directory with the version of gdb as well as the
|
# Identify the build directory with the version of gdb as well as the
|
||||||
@ -614,10 +629,16 @@ GDB_MINIMAL_CONFIGURE_FLAGS="\
|
|||||||
--disable-unit-tests \
|
--disable-unit-tests \
|
||||||
--disable-source-highlight"
|
--disable-source-highlight"
|
||||||
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}"
|
# Populate CFLAGS, LDFLAGS, CC, CXX, etc.
|
||||||
export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}"
|
%set_build_flags
|
||||||
|
CFLAGS="$CFLAGS %{?_with_asan:-fsanitize=address}"
|
||||||
|
LDFLAGS="$LDFLAGS %{?_with_asan:-fsanitize=address}"
|
||||||
|
CXXFLAGS="$CXXFLAGS %{?_with_asan:-fsanitize=address}"
|
||||||
|
|
||||||
export CXXFLAGS="$CFLAGS"
|
# If using an SCL for debuginfod, add path to SCL's pkgconfig directory.
|
||||||
|
%if 0%{?have_debuginfod} && 0%{?use_scl_for_debuginfod}
|
||||||
|
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
# --htmldir and --pdfdir are not used as they are used from %{gdb_build}.
|
# --htmldir and --pdfdir are not used as they are used from %{gdb_build}.
|
||||||
../configure \
|
../configure \
|
||||||
@ -628,7 +649,7 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
%ifarch sparc sparcv9
|
%ifarch sparc sparcv9
|
||||||
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
||||||
%else
|
%else
|
||||||
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu \
|
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu \
|
||||||
%{_target_platform}
|
%{_target_platform}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -652,30 +673,6 @@ export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}"
|
|||||||
CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL"
|
CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Patch833: gdb-6.6-buildid-locate-rpm-scl.patch
|
|
||||||
%if 0%{?el6:1} && 0%{?scl:1}
|
|
||||||
CFLAGS="$CFLAGS -DGDB_INDEX_VERIFY_VENDOR"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513).
|
|
||||||
%if %{have_libipt} && 0%{?el7:1} && 0%{?scl:1}
|
|
||||||
CFLAGS="$CFLAGS -DPERF_ATTR_SIZE_VER5_BUNDLE"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Patch642: gdb-readline62-ask-more-rh.patch
|
|
||||||
%if 0%{?rhel} == 7
|
|
||||||
CFLAGS="$CFLAGS -DNEED_RL_STATE_FEDORA_GDB"
|
|
||||||
%else
|
|
||||||
# FIXME: Why not just: ! grep -w ...
|
|
||||||
if grep -w RL_STATE_FEDORA_GDB %{_includedir}/readline/readline.h;then false;fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Patch337: gdb-6.8-attach-signalled-detach-stopped.patch
|
|
||||||
# Patch331: gdb-6.8-quit-never-aborts.patch
|
|
||||||
%if 0%{?rhel:1} && 0%{?rhel} <= 6
|
|
||||||
CFLAGS="$CFLAGS -DNEED_DETACH_SIGSTOP"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{have_libipt} && 0%{?el7:1} && 0%{?scl:1}
|
%if 0%{have_libipt} && 0%{?el7:1} && 0%{?scl:1}
|
||||||
(
|
(
|
||||||
mkdir libipt-%{libipt_version}-root
|
mkdir libipt-%{libipt_version}-root
|
||||||
@ -698,6 +695,13 @@ LDFLAGS="$LDFLAGS -L$PWD/libipt-%{libipt_version}-root%{_libdir}"
|
|||||||
|
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
|
|
||||||
|
# For DTS11+, gcc defaults to c++17, causing issues with system-installed
|
||||||
|
# headers, e.g., python. Force to c++11. We coerce all builds to use c++11
|
||||||
|
# to facilitate testing.
|
||||||
|
%if 0%{?rhel:1} && 0%{?rhel} < 8
|
||||||
|
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
||||||
|
%endif
|
||||||
|
|
||||||
# The configure flags we will use when building the full GDB.
|
# The configure flags we will use when building the full GDB.
|
||||||
GDB_FULL_CONFIGURE_FLAGS="\
|
GDB_FULL_CONFIGURE_FLAGS="\
|
||||||
--with-system-gdbinit=%{_sysconfdir}/gdbinit \
|
--with-system-gdbinit=%{_sysconfdir}/gdbinit \
|
||||||
@ -715,7 +719,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
|
|||||||
%else
|
%else
|
||||||
--without-python \
|
--without-python \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
%if %{defined use_guile}
|
||||||
--with-guile \
|
--with-guile \
|
||||||
%else
|
%else
|
||||||
--without-guile \
|
--without-guile \
|
||||||
@ -730,7 +734,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
|
|||||||
%else
|
%else
|
||||||
--without-intel-pt \
|
--without-intel-pt \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 8
|
%if 0%{!?rhel:1}
|
||||||
--with-xxhash \
|
--with-xxhash \
|
||||||
%endif
|
%endif
|
||||||
--with-rpm=librpm.so.%{librpmver} \
|
--with-rpm=librpm.so.%{librpmver} \
|
||||||
@ -745,7 +749,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
|
|||||||
%ifarch sparc sparcv9
|
%ifarch sparc sparcv9
|
||||||
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
||||||
%else
|
%else
|
||||||
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu \
|
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu \
|
||||||
%{_target_platform}
|
%{_target_platform}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -788,8 +792,6 @@ perl -i.relocatable -pe 's/^(D\[".*_RELOCATABLE"\]=" )1(")$/${1}0$2/' gdb/config
|
|||||||
%make_build CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$LDFLAGS $FPROFILE_CFLAGS" V=1
|
%make_build CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$LDFLAGS $FPROFILE_CFLAGS" V=1
|
||||||
|
|
||||||
! grep '_RELOCATABLE.*1' gdb/config.h
|
! grep '_RELOCATABLE.*1' gdb/config.h
|
||||||
grep '^#define HAVE_LIBSELINUX 1$' gdb/config.h
|
|
||||||
grep '^#define HAVE_SELINUX_SELINUX_H 1$' gdb/config.h
|
|
||||||
|
|
||||||
if [ "$fprofile" = "-fprofile" ]
|
if [ "$fprofile" = "-fprofile" ]
|
||||||
then
|
then
|
||||||
@ -872,6 +874,11 @@ gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2
|
|||||||
for test in \
|
for test in \
|
||||||
gdb.base/readline-overflow.exp \
|
gdb.base/readline-overflow.exp \
|
||||||
gdb.base/bigcore.exp \
|
gdb.base/bigcore.exp \
|
||||||
|
%if 0%{?rhel} < 7
|
||||||
|
gdb.base/gnu-debugdata.exp \
|
||||||
|
gdb.base/access-mem-running.exp \
|
||||||
|
gdb.threads/access-mem-running-thread-exit.exp \
|
||||||
|
%endif
|
||||||
; do
|
; do
|
||||||
mv -f ../../gdb/testsuite/$test ../gdb/testsuite/$test-DISABLED || :
|
mv -f ../../gdb/testsuite/$test ../gdb/testsuite/$test-DISABLED || :
|
||||||
done
|
done
|
||||||
@ -880,7 +887,13 @@ gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2
|
|||||||
# See also: gdb-runtest-pie-override.exp
|
# See also: gdb-runtest-pie-override.exp
|
||||||
###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
|
###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
|
||||||
|
|
||||||
./orphanripper %make_build -k $CHECK || :
|
TESTS=""
|
||||||
|
%if 0%{?tests:1}
|
||||||
|
for test in %{tests}; do
|
||||||
|
TESTS="${TESTS:+$TESTS }$test"
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
./orphanripper make %{?_smp_mflags} -k $CHECK TESTS="$TESTS" || :
|
||||||
)
|
)
|
||||||
for t in sum log
|
for t in sum log
|
||||||
do
|
do
|
||||||
@ -962,7 +975,7 @@ touch -r %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit
|
|||||||
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb -name "*.py"`
|
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb -name "*.py"`
|
||||||
do
|
do
|
||||||
# Files could be also patched getting the current time.
|
# Files could be also patched getting the current time.
|
||||||
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/version.in $i
|
||||||
done
|
done
|
||||||
|
|
||||||
%if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
%if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
||||||
@ -975,7 +988,7 @@ done
|
|||||||
%endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
%endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
||||||
|
|
||||||
# Compile python files
|
# Compile python files
|
||||||
%if 0%{!?_without_python:1}
|
%if 0%{!?_without_python:1} && (0%{!?rhel:1} || 0%{?rhel} > 7)
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/gdb/python/gdb
|
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/gdb/python/gdb
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -1008,7 +1021,7 @@ cp -a $RPM_BUILD_DIR/%{gdb_src}/%{libstdcxxpython}/libstdcxx \
|
|||||||
%endif # 0%{?rhel:1} && 0%{?rhel} <= 7
|
%endif # 0%{?rhel:1} && 0%{?rhel} <= 7
|
||||||
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb -name "*.py"`; do
|
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb -name "*.py"`; do
|
||||||
# Files are installed by install(1) not preserving the timestamps.
|
# Files are installed by install(1) not preserving the timestamps.
|
||||||
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/version.in $i
|
||||||
done
|
done
|
||||||
%endif # 0%{!?_without_python:1}
|
%endif # 0%{!?_without_python:1}
|
||||||
|
|
||||||
@ -1026,10 +1039,11 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/
|
|||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/bfd*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/standard*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/standard*
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/configure*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_infodir}/sframe-spec*
|
||||||
# Just exclude the header files in the top directory, and don't exclude
|
# Just exclude the header files in the top directory, and don't exclude
|
||||||
# the gdb/ directory, as it contains jit-reader.h.
|
# the gdb/ directory, as it contains jit-reader.h.
|
||||||
rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h
|
rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib{bfd*,opcodes*,iberty*,ctf*}
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib{bfd*,opcodes*,iberty*,ctf*,sframe*}
|
||||||
|
|
||||||
# pstack obsoletion
|
# pstack obsoletion
|
||||||
|
|
||||||
@ -1054,6 +1068,7 @@ ln -s gstack $RPM_BUILD_ROOT%{_bindir}/pstack
|
|||||||
# Documentation only for development.
|
# Documentation only for development.
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/gdbint*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/gdbint*
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/stabs*
|
rm -f $RPM_BUILD_ROOT%{_infodir}/stabs*
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_infodir}/ctf-spec*
|
||||||
|
|
||||||
# Delete this too because the dir file will be updated at rpm install time.
|
# Delete this too because the dir file will be updated at rpm install time.
|
||||||
# We don't want a gdb specific one overwriting the system wide one.
|
# We don't want a gdb specific one overwriting the system wide one.
|
||||||
@ -1071,13 +1086,6 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/elinos.py
|
|||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/wrs-linux.py
|
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/wrs-linux.py
|
||||||
rmdir $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit
|
rmdir $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit
|
||||||
|
|
||||||
# Patch848: gdb-dts-rhel6-python-compat.patch
|
|
||||||
%if 0%{!?el6:1}
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/FrameWrapper.py
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/backtrace.py
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
# File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB}
|
# File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB}
|
||||||
%if 0%{!?el6:1}
|
%if 0%{!?el6:1}
|
||||||
@ -1184,6 +1192,405 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 04 2023 David Abdurachmanov <davidlt@rivosinc.com> - 13.2-2.0.riscv64
|
||||||
|
- Add riscv64-linux-gnu to enabled targets
|
||||||
|
- Disable inprocess agent for riscv64
|
||||||
|
|
||||||
|
* Fri Jun 30 2023 Kevin Buettner <kevinb@redhat.com> - 13.2-2
|
||||||
|
- Backport upstream changes which prevent repeated warnings from being
|
||||||
|
printed when loading a core file (RHBZ 2160211, Lancelot SIX).
|
||||||
|
|
||||||
|
* Thu Jun 22 2023 Alexandra Hájková <ahajkova@redhat.com> - 13.2-1
|
||||||
|
- Rebase to FSF GDB 13.2.
|
||||||
|
- Update gdb-6.3-rh-testversion-20041202.patch.
|
||||||
|
- Remove gdb-rhbz2177655-aarch64-pauth-valid-regcache.patch.
|
||||||
|
- Remove gdb-rhbz2183595-rustc-inside_main.patch.
|
||||||
|
|
||||||
|
* Thu May 4 2023 Andrew Burgess <aburgess@redhat.com>
|
||||||
|
- Rewrite the changes to gdb-add-index.sh. If the user has set the
|
||||||
|
GDB environment variable then use that value, otherwise find a
|
||||||
|
suitable GDB executable by looking in various places.
|
||||||
|
|
||||||
|
* Wed May 3 2023 Kevin Buettner <kevinb@redhat.com> - 13.1-4
|
||||||
|
- Backport "Pass const frame_info_ptr reference for
|
||||||
|
skip_[language_]trampoline". (Mark Wielaard, RHBZ 2192105, build/30413)
|
||||||
|
|
||||||
|
* Tue Apr 11 2023 Keith Seitz <keiths@redhat.com>
|
||||||
|
- Backport "Fix a potential illegal memory access in the BFD library..."
|
||||||
|
(Nick Clifton, binutils/29988)
|
||||||
|
|
||||||
|
* Fri Mar 31 2023 Keith Seitz <keiths@redhat.com> - 13.1-3
|
||||||
|
- Backport "Fix crash in inside_main_func".
|
||||||
|
(Tom Tromey, RHBZ 2183595)
|
||||||
|
|
||||||
|
* Fri Mar 24 2023 Kevin Buettner <kevinb@redhat.com> - 13.1-2
|
||||||
|
- Backport fix for RHBZ 2177655. (Luis Machado)
|
||||||
|
|
||||||
|
* Thu Mar 2 2023 Kevin Buettner <kevinb@redhat.com> - 13.1-1
|
||||||
|
- Rebase to FSF GDB 13.1.
|
||||||
|
- Update gdb-6.3-rh-testversion-20041202.patch.
|
||||||
|
- Update gdb-6.3-bz140532-ppc-unwinding-test.patch.
|
||||||
|
- Update gdb-6.6-buildid-locate.patch.
|
||||||
|
- Update gdb-6.6-buildid-locate-rpm.patch.
|
||||||
|
- Remove 'Recommends: ' line for gcc-gdb-plugin for BZ2149246.
|
||||||
|
- Add 'define _lto_cflags %{nil}' to avoid ODR violations.
|
||||||
|
|
||||||
|
* Fri Jan 27 2023 Kevin Buettner <kevinb@redhat.com> - 12.1-16
|
||||||
|
- Tweak gdb-6.3-rh-testversion-20041202.patch so that $_gdb_major
|
||||||
|
and $_gdb_minor will be obtained correctly.
|
||||||
|
|
||||||
|
* Thu Jan 26 2023 Bruno Larsen <blarsen@redhat.com>
|
||||||
|
- Remove gdb-rhbz1398387-tab-crash-test.patch as that test didn't
|
||||||
|
work anymore.
|
||||||
|
|
||||||
|
* Tue Jan 24 2023 Keith Seitz <keiths@redhat.com> - 12.1-15
|
||||||
|
- NVR bump for failed build.
|
||||||
|
|
||||||
|
* Mon Jan 23 2023 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- More tweaks to gdb-6.6-buildid-locate-rpm.patch, in which rpmTag
|
||||||
|
is replaced with rpmDbiTagVal.
|
||||||
|
|
||||||
|
* Mon Jan 23 2023 Keith Seitz <keiths@redhat.com> - 12.1-14
|
||||||
|
From Sergey Mende:
|
||||||
|
- Backport upstream patch "gdb: call check_typedef at beginning of
|
||||||
|
dwarf_expr_context::fetch_result". (Simon Marchi)
|
||||||
|
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Kevin Buettner <kevinb@redhat.com> - 12.1-13
|
||||||
|
- Backport fix for problems associated with GCC 13's self-move warning.
|
||||||
|
(Jan-Benedict Glaw)
|
||||||
|
- Tweak gdb-6.6-buildid-locate-rpm.patch so that running GDB's configure
|
||||||
|
script will not error out due to GCC 13's warnings.
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Alexandra Hájková <ahajkova@redhat.com> - 12.1-12
|
||||||
|
- Backport replace deprecated distutils.sysconfig in python-config.
|
||||||
|
(Lancelot SIX)
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org>
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 19 2022 Andrew Burgess <aburgess@redhat.com>
|
||||||
|
- Backport upstream commits 38665d717a3 and c3efaf0afd9 to fix RHBZ
|
||||||
|
2152431.
|
||||||
|
|
||||||
|
* Fri Dec 16 2022 Keith Seitz <keiths@redhat.com>
|
||||||
|
- Remove gdb-6.6-buildid-locate-rpm-scl.patch and
|
||||||
|
gdb-bz601887-dwarf4-rh-test.patch.
|
||||||
|
|
||||||
|
* Fri Dec 9 2022 Andrew Burgess <aburgess@redhat.com>
|
||||||
|
- Remove gdb-fortran-frame-string.patch, a version of this test has
|
||||||
|
now been upstreamed.
|
||||||
|
|
||||||
|
* Fri Dec 9 2022 Andrew Burgess <aburgess@redhat.com>
|
||||||
|
- Remove gdb-bfd-aliasing.patch.
|
||||||
|
|
||||||
|
* Fri Dec 9 2022 Andrew Burgess <aburgess@redhat.com>
|
||||||
|
- Remove gdb-entryval-crash-1of3.patch, gdb-entryval-crash-2of3.patch,
|
||||||
|
and gdb-entryval-crash-3of3.patch.
|
||||||
|
|
||||||
|
* Wed Dec 7 2022 Keith Seitz <keiths@redhat.com> - 12.1-10
|
||||||
|
- Disable Guile support for F38+, RHBZ 2151328.
|
||||||
|
|
||||||
|
* Mon Dec 5 2022 Keith Seitz <keiths@redhat.com>
|
||||||
|
- Remove gdb-physname-pr11734-test.patch,
|
||||||
|
gdb-physname-pr12273-test.patch, gdb-runtest-pie-override.patch,
|
||||||
|
gdb-test-expr-cumulative-archer.patch.
|
||||||
|
|
||||||
|
* Thu Dec 1 2022 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- Remove gdb-6.3-threaded-watchpoints2-20050225.patch. The test in this
|
||||||
|
patch is a tweaked version of upstream test gdb.threads/watchthreads.exp
|
||||||
|
from 2004. It doesn't actually test anything new.
|
||||||
|
|
||||||
|
* Thu Dec 1 2022 Bruno Larsen <blarsen@redhat.com>
|
||||||
|
- Remove gdb-rhbz1325795-framefilters-test.patch. This test doesn't
|
||||||
|
pass in the curret state, and the code that introduced the original
|
||||||
|
problem has been changed beyong recognition at this point.
|
||||||
|
|
||||||
|
* Wed Nov 30 2022 Keith Seitz <keiths@redhat.com>
|
||||||
|
- Backport "libiberty: Fix C89-isms in configure tests" and do likewise in
|
||||||
|
gdb-6.6-buildid-locate-rpm.patch.
|
||||||
|
(Florian Weimer, RHBZ 2143992)
|
||||||
|
|
||||||
|
* Wed Nov 23 2022 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- Remove gdb-6.3-inheritancetest-20050726.patch. Upstream testcase
|
||||||
|
gdb.cp/impl-this.exp tests the printing of an instance variable from
|
||||||
|
an inherited class in the "print c" test.
|
||||||
|
|
||||||
|
* Fri Nov 18 2022 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- Remove gdb-6.3-test-movedir-20050125.patch. Upstream test
|
||||||
|
gdb.base/fullname.exp provides coverage for this case and more.
|
||||||
|
|
||||||
|
* Thu Nov 3 2022 Keith Seitz <keiths@redhat.com> - 12.1-9
|
||||||
|
- Add patch to fix ODR violations on powerpc and
|
||||||
|
enable LTO builds. (Keith Seitz, sw build/23395)
|
||||||
|
|
||||||
|
* Tue Oct 18 2022 Bruno Larsen - 12.1-8
|
||||||
|
- Backport fix to gdb.base/break-main-file-remove-fail.exp
|
||||||
|
(Tom de Vries)
|
||||||
|
|
||||||
|
* Tue Oct 18 2022 Bruno Larsen - 12.1-7
|
||||||
|
- Remove patch gdb-6.3-test-dtorfix.
|
||||||
|
Was upstreamed, will be back in the next rebase.
|
||||||
|
|
||||||
|
* Thu Oct 13 2022 Alexandra Hájková - 12.1-7
|
||||||
|
- Bump the release number.
|
||||||
|
|
||||||
|
* Tue Oct 11 2022 Alexandra Hájková - 12.1-6
|
||||||
|
- Backport upstream patch "Add support for readline 8.2". (Andreas Schwab)
|
||||||
|
|
||||||
|
* Fri Oct 7 2022 Alexandra Hájková - 12.1-6
|
||||||
|
- Update gdb-6.6-buildid-locate.patch to fix RHBZ 2122947.
|
||||||
|
|
||||||
|
* Thu Jul 28 2022 Amit Shah <amitshah@fedoraproject.org>
|
||||||
|
- Use the dist_name macro to identify the distribution
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org>
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com>
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 12.1-2
|
||||||
|
- Bootstrap for Python 3.11
|
||||||
|
|
||||||
|
* Thu May 12 2022 Kevin Buettner - 12.1-1
|
||||||
|
- Rebase to FSF GDB 12.1.
|
||||||
|
- Update gdb-6.6-buildid-locate.patch.
|
||||||
|
- Update gdb-6.6-buildid-locate-rpm.patch.
|
||||||
|
- Dropped backported patches from GDB 11.1 and 11.2.
|
||||||
|
|
||||||
|
* Wed Mar 30 2022 Kevin Buettner - 11.2-3
|
||||||
|
- Backport upstream patch which removes sizes from debuginfod download
|
||||||
|
messages when the size is not available (RHBZ 2068280, Aaron Merey).
|
||||||
|
|
||||||
|
* Wed Feb 9 2022 Kevin Buettner - 11.2-2
|
||||||
|
- On ix86, add -Wno-format-overflow to --enable-gdb-build-warnings.
|
||||||
|
(This is a workaround for the bogus warning/error that we now see
|
||||||
|
on i686 regarding a "may write a terminating nul past the end of
|
||||||
|
the destination" message for the sprintf() call in
|
||||||
|
global_symbol_searcher::search() in gdb/symtab.c.)
|
||||||
|
|
||||||
|
* Wed Feb 9 2022 Kevin Buettner - 11.2-1
|
||||||
|
- Rebase to FSF GDB 11.2.
|
||||||
|
|
||||||
|
* Mon Jan 31 2022 Kevin Buettner <kevinb@redhat.com> - 11.1-12
|
||||||
|
- Fix "sect_index_data not initialized" internal error. (RHBZ 2042664,
|
||||||
|
Kevin Buettner).
|
||||||
|
|
||||||
|
* Mon Jan 31 2022 Keith Seitz <keiths@redhat.com> - 11.1-11
|
||||||
|
- Fix buld issues. (RHBZ 2042257, Keith Seitz, Andrew Burgess)
|
||||||
|
- Update libipt to 2.0.5.
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org>
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 12 2022 Alexandra Hájková - 11.1-9
|
||||||
|
- Remove gdb-6.3-inferior-notification-20050721.patch
|
||||||
|
which adds problematic attach-32 test.
|
||||||
|
|
||||||
|
* Tue Jan 11 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Backport upstream patch "[PR gdb/27026] CTRL-C is ignored
|
||||||
|
when debug info is downloaded" (RHBZ 2024875, Aaron Merey).
|
||||||
|
|
||||||
|
* Tue Jan 11 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Backport upstream patch "rework "set debuginfod" commands"
|
||||||
|
(RHBZ 2024875, Simon Marchi).
|
||||||
|
|
||||||
|
* Tue Jan 11 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Backport upstream patch "Fix unittest.exp failure due to 'set debuginfod' addition"
|
||||||
|
(RHBZ 2024875, Tom Tromey).
|
||||||
|
|
||||||
|
* Mon Jan 10 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Add -Wno-unused-function to --enable-gdb-build-warnings to prevent the build failure:
|
||||||
|
"../../gdb/c-exp.y:3455:1: error: 'void c_print_token(FILE*, int, YYSTYPE)'
|
||||||
|
defined but not used [-Werror=unused-function]"
|
||||||
|
|
||||||
|
* Mon Jan 10 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Backport upstream patch "gdb: add set/show commands for managing debuginfod"
|
||||||
|
(RHBZ 2024875, Aaron Merey).
|
||||||
|
|
||||||
|
* Mon Jan 10 2022 Alexandra Hájková - 11.1-8
|
||||||
|
- Backport upstream patch "gdb.texinfo: Expand documentation for debuginfod"
|
||||||
|
(RHBZ 2024875, Aaron Merey).
|
||||||
|
|
||||||
|
* Mon Dec 6 2021 Kevin Buettner - 11.1-7
|
||||||
|
- Add -Wno-deprecated-declarations to --enable-gdb-build-warnings to work
|
||||||
|
around the python 3.11 deprecation of Py_SetProgramName.
|
||||||
|
|
||||||
|
* Fri Nov 12 2021 Timm Bäder <tbaeder@redhat.com> - 11.1-6
|
||||||
|
- Use %%set_build_flags to populate all relevant build flags
|
||||||
|
|
||||||
|
* Wed Nov 10 2021 Kevin Buettner - 11.1-5
|
||||||
|
- Backport upstream fix and test case for a dprintf bug (RHBZ 2022177, Kevin
|
||||||
|
Buettner).
|
||||||
|
|
||||||
|
* Tue Nov 9 2021 Bruno Larsen - 11.1-4
|
||||||
|
- Backport manpage update to be closer to -help (RHBZ 853071)
|
||||||
|
|
||||||
|
* Wed Nov 3 2021 Kevin Buettner - 11.1-3
|
||||||
|
- Make adjustments to gdb-6.6-buildid-locate.patch, provided by Tom de Vries.
|
||||||
|
|
||||||
|
* Mon Oct 11 2021 Kevin Buettner - 11.1-2
|
||||||
|
- Backport upstream patch which papers over Fortran lexical analyzer
|
||||||
|
bug (RHBZ 2012976, Tom de Vries).
|
||||||
|
|
||||||
|
* Mon Oct 04 2021 Kevin Buettner - 11.1-1
|
||||||
|
- Rebase to FSF GDB 11.1.
|
||||||
|
- Adjust build-id related patches.
|
||||||
|
- Drop backported patches which are no longer relevant.
|
||||||
|
- Bump 'snapgnulib' date.
|
||||||
|
|
||||||
|
* Thu Sep 30 2021 Alexandra Hájková <ahajkova@redhat.com> - 10.2-9
|
||||||
|
- Backport test for RHBZ 1976887 (Kevin Buettner).
|
||||||
|
|
||||||
|
* Thu Sep 30 2021 Alexandra Hájková <ahajkova@redhat.com> - 10.2-9
|
||||||
|
- Backport upstream patch which fixes internal-error: Unexpected
|
||||||
|
type field location kind (RHBZ 1976887, Alexandra Hájková).
|
||||||
|
|
||||||
|
* Wed Sep 22 2021 Bruno Larsen <blarsen@redhat.com> - 10.2-8
|
||||||
|
- Backport "[gdb] Improve early exits for env var in debuginfod-support.c"
|
||||||
|
(Tom de Vries)
|
||||||
|
|
||||||
|
* Wed Sep 22 2021 Bruno Larsen <blarsen@redhat.com> - 10.2-8
|
||||||
|
- Backport "[gdb/cli] Don't assert on empty string for core-file"
|
||||||
|
(Tom de Vries)
|
||||||
|
|
||||||
|
* Tue Sep 21 2021 Peter Robinson <pbrobinson@fedoraproject.org> 10.2-7
|
||||||
|
- Use guile 2.2 (rhbz #1901353)
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> 10.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 20 2021 Kevin Buettner <kevinb@redhat.com> - 10.2-5
|
||||||
|
- Remove autoconf invocations from spec file.
|
||||||
|
- Remove BuildRequires: autoconf.
|
||||||
|
|
||||||
|
* Mon Jun 14 2021 Kevin Buettner <kevinb@redhat.com> - 10.2-4
|
||||||
|
- Backport upstream patches which fix multi-threaded debugging for
|
||||||
|
glibc-2.34 (RHBZ 1971096, Simon Marchi, Kevin Buettner).
|
||||||
|
|
||||||
|
* Fri Jun 11 2021 Keith Seitz <keiths@redhat.com> - 10.2-3
|
||||||
|
- Backport "Exclude debuginfo files from 'outside ELF segments' warning".
|
||||||
|
(Keith Seitz, RH BZ 1898252)
|
||||||
|
- Backport "Fix crash when expanding partial symtab..."
|
||||||
|
(Tom Tromey. gdb/27743)
|
||||||
|
- Backport "[gdb/server] Don't overwrite fs/gs_base with -m32"
|
||||||
|
- (Tom de Vries)
|
||||||
|
|
||||||
|
* Sun Jun 06 2021 Python Maint <python-maint@redhat.com>
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Thu Jun 03 2021 Kevin Buettner <kevinb@redhat.com> - 10.2-1
|
||||||
|
- Rebase to FSF GDB 10.2.
|
||||||
|
- Drop gdb-6.3-test-pie-20050107.patch.
|
||||||
|
- Drop gdb-6.3-test-self-20050110.patch.
|
||||||
|
- Drop gdb-6.5-bz218379-ppc-solib-trampoline-test.patch.
|
||||||
|
- Drop gdb-6.6-buildid-locate-core-as-arg.patch.
|
||||||
|
- Drop gdb-6.8-quit-never-aborts.patch.
|
||||||
|
- Drop gdb-archer-pie-addons-keep-disabled.patch.
|
||||||
|
- Drop gdb-archer-pie-addons.patch.
|
||||||
|
- Drop gdb-archer-vla-tests.patch.
|
||||||
|
- Drop gdb-archer.patch.
|
||||||
|
- Drop gdb-attach-fail-reasons-5of5.patch.
|
||||||
|
- Drop gdb-btrobust.patch.
|
||||||
|
- Drop gdb-bz1219747-attach-kills.patch.
|
||||||
|
- Drop gdb-bz533176-fortran-omp-step.patch.
|
||||||
|
- Drop gdb-dts-rhel6-python-compat.patch.
|
||||||
|
- Drop gdb-gnat-dwarf-crash-3of3.patch.
|
||||||
|
- Drop gdb-jit-reader-multilib.patch.
|
||||||
|
- Drop gdb-moribund-utrace-workaround.patch.
|
||||||
|
- Drop gdb-rhbz1930528-fix-gnulib-build-error.patch.
|
||||||
|
- Drop gdb-rhbz1932645-aarch64-ptrace-header-order.patch.
|
||||||
|
- Drop gdb-vla-intel-fix-print-char-array.patch.
|
||||||
|
- Drop gdb-vla-intel-fortran-strides.patch.
|
||||||
|
- Drop gdb-vla-intel-stringbt-fix.patch.
|
||||||
|
- Drop gdb-vla-intel-tests.patch.
|
||||||
|
- Drop process_psymtab_comp_unit-type-unit.patch.
|
||||||
|
- Drop gdb-testsuite-readline63-sigint-revert.patch.
|
||||||
|
- Drop gdb-config.patch.
|
||||||
|
- Add following upstream patches for Fortran stride / slice support:
|
||||||
|
gdb-rhbz1964167-convert-enum-range_type.patch
|
||||||
|
gdb-rhbz1964167-fortran-array-slices-at-prompt.patch
|
||||||
|
gdb-rhbz1964167-fortran-array-strides-in-expressions.patch
|
||||||
|
gdb-rhbz1964167-fortran-clean-up-array-expression-evaluation.patch
|
||||||
|
gdb-rhbz1964167-fortran-range_type-to-range_flag.patch
|
||||||
|
gdb-rhbz1964167-fortran-whitespace_array.patch
|
||||||
|
gdb-rhbz1964167-move-fortran-expr-handling.patch
|
||||||
|
|
||||||
|
* Tue Jun 01 2021 Python Maint <python-maint@redhat.com>
|
||||||
|
- Bootstrap for Python 3.10
|
||||||
|
|
||||||
|
* Wed Mar 31 2021 Keith Seitz <keiths@redhat.com> - 10.1-18
|
||||||
|
- Backport "Save/restore file offset while reading notes in core file"
|
||||||
|
(Keith Seitz, RHBZ 1931344)
|
||||||
|
|
||||||
|
* Wed Mar 31 2021 Jonathan Wakely <jwakely@redhat.com> - 10.1-17
|
||||||
|
- Rebuilt for removed libstdc++ symbols (#1937698)
|
||||||
|
|
||||||
|
* Tue Mar 23 2021 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- Remove spec file workaround for RHBZ 1912913.
|
||||||
|
|
||||||
|
* Fri Mar 19 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-16
|
||||||
|
- Fix potential hang during gdbserver testing (RHBZ 1941080, Kevin Buettner).
|
||||||
|
|
||||||
|
* Thu Mar 18 2021 Keith Seitz <keiths@redhat.com>
|
||||||
|
- Disable libctf on RHEL (RHBZ 1935517).
|
||||||
|
|
||||||
|
* Thu Mar 11 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-15
|
||||||
|
- Update libipt to version 2.0.4.
|
||||||
|
|
||||||
|
* Fri Mar 05 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-14
|
||||||
|
- Backport patches which fix frame_id_p assertion failure (RHBZ 1909902,
|
||||||
|
Pedro Alves).
|
||||||
|
|
||||||
|
* Fri Mar 5 2021 Jan Kratochvil <jan.kratochvil@redhat.com> - 10.1-13
|
||||||
|
- Drop gdb-vla-intel-fortran-vla-strings.patch as it was still regressing the
|
||||||
|
testsuite.
|
||||||
|
|
||||||
|
* Thu Mar 4 2021 Jan Kratochvil <jan.kratochvil@redhat.com> - 10.1-12
|
||||||
|
- Fix gdb-vla-intel-fortran-vla-strings.patch to no longer modify cached
|
||||||
|
inferior types.
|
||||||
|
|
||||||
|
* Thu Mar 4 2021 Jan Kratochvil <jan.kratochvil@redhat.com> - 10.1-11
|
||||||
|
- Align gdb-vla-intel-fortran-vla-strings.patch more to upstream
|
||||||
|
fixing whitespaces in Fortran types printing.
|
||||||
|
|
||||||
|
* Thu Mar 4 2021 Jan Kratochvil <jan.kratochvil@redhat.com> - 10.1-10
|
||||||
|
- Reapply 10.1-8 after it has been accidentally reverted by 10.1-9.
|
||||||
|
|
||||||
|
* Wed Feb 24 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-9
|
||||||
|
- Fix aarch64 build problem (RHBZ 1932645, Kevin Buettner).
|
||||||
|
|
||||||
|
* Fri Feb 19 2021 Jan Kratochvil <jan.kratochvil@redhat.com> - 10.1-8
|
||||||
|
- Fix gdb-vla-intel-fortran-vla-strings.patch for compatiblity with GraalVM.
|
||||||
|
|
||||||
|
* Thu Feb 18 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-7
|
||||||
|
- Fix gnulib related build problem (RHBZ 1930528, Kevin Buettner).
|
||||||
|
|
||||||
|
* Wed Feb 17 2021 Kevin Buettner <kevinb@redhat.com> - 10.1-6
|
||||||
|
- Fix libstdc++ assert when performing tab completion; build must be made
|
||||||
|
with -D_GLIBCXX_DEBUG flag in order to trigger assert (RHBZ 1912985,
|
||||||
|
Kevin Buettner).
|
||||||
|
|
||||||
|
* Thu Feb 11 2021 Keith Seitz
|
||||||
|
- Disable Guile support for RHEL9+.
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Stephen Gallagher <sgallagh@redhat.com> - 10.1-5
|
||||||
|
- Build gdb-minimal for ELN
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org>
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 23 2021 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
- Add -Wno-stringop-overread to CFLAGS to work around gcc
|
||||||
|
bug (RH BZ 1912913)
|
||||||
|
|
||||||
|
* Tue Jan 12 2021 Keith Seitz <keiths@redhat.com> - 10.1-3
|
||||||
|
- Disable xxhash support for RHEL.
|
||||||
|
|
||||||
|
* Wed Dec 09 2020 Kevin Buettner <kevinb@redhat.com> - 10.1-2
|
||||||
|
- Fix off-by-one error in ada_fold_name. (RHBZ 1905996, Kevin Buettner)
|
||||||
|
|
||||||
* Wed Nov 04 2020 Kevin Buettner <kevinb@redhat.com> - 10.1-1
|
* Wed Nov 04 2020 Kevin Buettner <kevinb@redhat.com> - 10.1-1
|
||||||
- Rebase to FSF GDB 10.1.
|
- Rebase to FSF GDB 10.1.
|
||||||
- Bump 'snapgnulib' date.
|
- Bump 'snapgnulib' date.
|
||||||
|
@ -34,6 +34,8 @@ test "$1" = "-h" && usage
|
|||||||
|
|
||||||
uncommit=0
|
uncommit=0
|
||||||
if [ "$1" = "-u" ]; then
|
if [ "$1" = "-u" ]; then
|
||||||
|
command -v stg > /dev/null 2>&1 \
|
||||||
|
|| die "Cannot find stg. Is stgit installed?"
|
||||||
uncommit=1
|
uncommit=1
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
@ -46,16 +48,15 @@ fi
|
|||||||
|
|
||||||
test -f _git_upstream_commit || die "Cannot find _git_upstream_commit file."
|
test -f _git_upstream_commit || die "Cannot find _git_upstream_commit file."
|
||||||
test -f _patch_order || die "Cannot find _patch_order file."
|
test -f _patch_order || die "Cannot find _patch_order file."
|
||||||
command -v stg > /dev/null 2>&1 || die "Cannot find stg. Is stgit installed?"
|
|
||||||
|
|
||||||
last_ancestor_commit=`cat _git_upstream_commit`
|
last_ancestor_commit=`cat _git_upstream_commit`
|
||||||
|
|
||||||
|
f=`pwd`
|
||||||
cd $1
|
cd $1
|
||||||
|
|
||||||
git name-rev $last_ancestor_commit
|
git name-rev $last_ancestor_commit
|
||||||
test $? -eq 0 || die "Could not find $last_ancestor_commit in the repository $1. Did you run 'git fetch'?"
|
test $? -eq 0 || die "Could not find $last_ancestor_commit in the repository $1. Did you run 'git fetch'?"
|
||||||
|
|
||||||
f=`cd .. && pwd`
|
|
||||||
|
|
||||||
# Create a branch for the checkout if using stgit; use the distro name in
|
# Create a branch for the checkout if using stgit; use the distro name in
|
||||||
# the name of this branch.
|
# the name of this branch.
|
||||||
@ -68,8 +69,8 @@ fi
|
|||||||
git checkout $branch $last_ancestor_commit
|
git checkout $branch $last_ancestor_commit
|
||||||
|
|
||||||
echo "Applying patches..."
|
echo "Applying patches..."
|
||||||
for p in `cat ../_patch_order` ; do
|
for p in `cat $f/_patch_order` ; do
|
||||||
git am ../$p
|
git am $f/$p
|
||||||
test $? -eq 0 || die "Could not apply patch '$p'."
|
test $? -eq 0 || die "Could not apply patch '$p'."
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ for f in `cat _patch_order` ; do
|
|||||||
git rm -f $f
|
git rm -f $f
|
||||||
done
|
done
|
||||||
|
|
||||||
|
orig_dir=`pwd`
|
||||||
cd $1
|
cd $1
|
||||||
|
|
||||||
# If patches were uncommitted when the patches were applied,
|
# If patches were uncommitted when the patches were applied,
|
||||||
@ -82,8 +83,11 @@ for c in `git rev-list --reverse ${common_ancestor}..HEAD` ; do
|
|||||||
# before, even if nothing has changed. This is bad, so we replace
|
# before, even if nothing has changed. This is bad, so we replace
|
||||||
# the commit hash by something constant (the string
|
# the commit hash by something constant (the string
|
||||||
# "FEDORA_PATCHES").
|
# "FEDORA_PATCHES").
|
||||||
git format-patch --no-signature --no-stat --keep-subject -1 --stdout $c | sed -e '1 s/^From [0-9a-f]\+ \(.*\)/From FEDORA_PATCHES \1/' -e '/^index [0-9a-f]\+\.\.[0-9a-f]\+.*$/d' > ../$fname
|
git format-patch --no-base --no-thread --no-signature --no-stat \
|
||||||
(cd .. && git add $fname)
|
--keep-subject -1 --stdout $c \
|
||||||
|
| sed -e '1 s/^From [0-9a-f]\+ \(.*\)/From FEDORA_PATCHES \1/' \
|
||||||
|
-e '/^index [0-9a-f]\+\.\.[0-9a-f]\+.*$/d' > $orig_dir/$fname
|
||||||
|
(cd $orig_dir && git add $fname)
|
||||||
|
|
||||||
cat >> $temp_PATCH_file <<EOF
|
cat >> $temp_PATCH_file <<EOF
|
||||||
`git log -1 --pretty='format:%b' $c | sed -n 's/^;;/#/p'`
|
`git log -1 --pretty='format:%b' $c | sed -n 's/^;;/#/p'`
|
||||||
@ -94,7 +98,7 @@ EOF
|
|||||||
idx=`expr $idx + 1`
|
idx=`expr $idx + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ..
|
cd $orig_dir
|
||||||
mv $temp_PATCH_file _gdb.spec.Patch.include
|
mv $temp_PATCH_file _gdb.spec.Patch.include
|
||||||
mv $temp_patch_file _gdb.spec.patch.include
|
mv $temp_patch_file _gdb.spec.patch.include
|
||||||
mv $temp_patch_order_file _patch_order
|
mv $temp_patch_order_file _patch_order
|
||||||
|
6
plans/ci.fmf
Normal file
6
plans/ci.fmf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
summary: CI Gating Plan
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
directory: tests
|
||||||
|
execute:
|
||||||
|
how: tmt
|
4
sources
4
sources
@ -1,3 +1,3 @@
|
|||||||
SHA512 (gdb-libstdc++-v3-python-8.1.1-20180626.tar.xz) = a8b1c54dd348cfeb37da73f968742896be3dd13a4215f8d8519870c2abea915f5176c3fa6989ddd10f20020a16f0fab20cbae68ee8d58a82234d8778023520f8
|
SHA512 (gdb-libstdc++-v3-python-8.1.1-20180626.tar.xz) = a8b1c54dd348cfeb37da73f968742896be3dd13a4215f8d8519870c2abea915f5176c3fa6989ddd10f20020a16f0fab20cbae68ee8d58a82234d8778023520f8
|
||||||
SHA512 (v2.0.2.tar.gz) = bc256a57a8481e0be8220624da3ccf1fe4bf0ea83e9808fdf0aad6db865aee402a36e78285efb0316c016f57e0d6fc56b647ee8e9a2ad4b05bfc1ad68ddde535
|
SHA512 (v2.0.5.tar.gz) = 2e7ac2aede84671b15597d9c56dbe077a81357bbf44b6684802592246fb7729b4a5743238ddf02f6ea143b4d29872f581408135f9c1ea1ccc99dab905916d98d
|
||||||
SHA512 (gdb-10.1.tar.xz) = 0dc54380435c6853db60f1e388b94836d294dfa9ad7f518385a27db4edd03cb970f8717d5f1e9c9a0d4a33d7fcf91bc2e5d6c9cf9e4b561dcc74e65b806c1537
|
SHA512 (gdb-13.2.tar.xz) = 8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34
|
||||||
|
31
tests/README
31
tests/README
@ -1,31 +0,0 @@
|
|||||||
Justification
|
|
||||||
|
|
||||||
Adds tests according to the CI wiki specifically the standard test
|
|
||||||
interface in the spec.
|
|
||||||
|
|
||||||
The playbook includes Tier1 level test cases that have been tested in
|
|
||||||
the following contexts and is passing reliably: Classic and
|
|
||||||
Container. Test logs are stored in the artifacts directory.
|
|
||||||
|
|
||||||
The following steps are used to execute the tests using the standard
|
|
||||||
test interface: Test environment
|
|
||||||
|
|
||||||
Make sure you have installed packages from the spec
|
|
||||||
|
|
||||||
# rpm -q ansible python2-dnf libselinux-python standard-test-roles
|
|
||||||
ansible-2.3.2.0-1.fc26.noarch
|
|
||||||
python2-dnf-2.6.3-11.fc26.noarch
|
|
||||||
libselinux-python-2.6-7.fc26.x86_64
|
|
||||||
standard-test-roles-2.4-1.fc26.noarch
|
|
||||||
|
|
||||||
Run tests for Classic (must be run as root)
|
|
||||||
|
|
||||||
# export ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory)
|
|
||||||
# ansible-playbook --tags=classic tests.yml
|
|
||||||
|
|
||||||
Run tests for Container (must be run as root)
|
|
||||||
|
|
||||||
# export ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory)
|
|
||||||
# export TEST_SUBJECTS=docker:docker.io/library/fedora:26
|
|
||||||
# ansible-playbook --tags=container tests.yml
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
sta
|
start
|
||||||
si 30
|
si 30
|
||||||
n 10
|
n 10
|
||||||
up
|
up
|
||||||
|
17
tests/debug-system-binary/main.fmf
Normal file
17
tests/debug-system-binary/main.fmf
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
summary: Debug a system binary.
|
||||||
|
description: ''
|
||||||
|
contact:
|
||||||
|
- Marek Polacek <mpolacek@redhat.com>
|
||||||
|
component:
|
||||||
|
- gdb
|
||||||
|
test: ./runtest.sh
|
||||||
|
framework: beakerlib
|
||||||
|
recommend:
|
||||||
|
- gdb
|
||||||
|
- coreutils
|
||||||
|
- coreutils-debuginfo
|
||||||
|
- glibc
|
||||||
|
- glibc-debuginfo
|
||||||
|
duration: 5m
|
||||||
|
extra-summary: /tools/gdb/Sanity/debug-system-binary
|
||||||
|
extra-task: /tools/gdb/Sanity/debug-system-binary
|
@ -27,8 +27,7 @@
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
# Include Beaker environment
|
# Include Beaker environment
|
||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
. /usr/lib/beakerlib/beakerlib.sh || exit 1
|
|
||||||
|
|
||||||
CMD="gdb"
|
CMD="gdb"
|
||||||
BIN="$(which $CMD)"
|
BIN="$(which $CMD)"
|
||||||
|
@ -14,5 +14,4 @@ frame 1
|
|||||||
b xexit
|
b xexit
|
||||||
c
|
c
|
||||||
c
|
c
|
||||||
c
|
|
||||||
q
|
q
|
||||||
|
22
tests/debug-toolset-binary/main.fmf
Normal file
22
tests/debug-toolset-binary/main.fmf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
summary: We debug a binary that is delivered via the Toolset.
|
||||||
|
description: ''
|
||||||
|
contact:
|
||||||
|
- Marek Polacek <mpolacek@redhat.com>
|
||||||
|
component:
|
||||||
|
- gdb
|
||||||
|
test: ./runtest.sh
|
||||||
|
framework: beakerlib
|
||||||
|
recommend:
|
||||||
|
- gdb
|
||||||
|
- coreutils
|
||||||
|
- binutils
|
||||||
|
- binutils-debuginfo
|
||||||
|
- glibc
|
||||||
|
- glibc-debuginfo
|
||||||
|
- gcc
|
||||||
|
- gcc-debuginfo
|
||||||
|
- zlib
|
||||||
|
- zlib-debuginfo
|
||||||
|
duration: 5m
|
||||||
|
extra-summary: /tools/gdb/Sanity/debug-toolset-binary
|
||||||
|
extra-task: /tools/gdb/Sanity/debug-toolset-binary
|
@ -32,8 +32,7 @@
|
|||||||
# but in fact, it doesn't have to. It should not fail either way.
|
# but in fact, it doesn't have to. It should not fail either way.
|
||||||
|
|
||||||
# Include Beaker environment
|
# Include Beaker environment
|
||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
. /usr/lib/beakerlib/beakerlib.sh || exit 1
|
|
||||||
|
|
||||||
CMD="gdb"
|
CMD="gdb"
|
||||||
BIN="$(which $CMD)"
|
BIN="$(which $CMD)"
|
||||||
|
68
tests/gdb-testsuite-sanity/Makefile
Normal file
68
tests/gdb-testsuite-sanity/Makefile
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /tools/gdb/Sanity/gdb-testsuite-sanity
|
||||||
|
# Description: gdb testing by upstream testsuite
|
||||||
|
# Author: Michal Kolar <mkolar@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 2 of
|
||||||
|
# the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/tools/gdb/Sanity/gdb-testsuite-sanity
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE ref
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
test -x runtest.sh || chmod a+x runtest.sh
|
||||||
|
|
||||||
|
.SILENT: ref_file
|
||||||
|
ref_file: ./ref/gen.sh
|
||||||
|
test -x ./ref/gen.sh || chmod a+x ./ref/gen.sh
|
||||||
|
./ref/gen.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Michal Kolar <mkolar@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: gdb testing by upstream testsuite" >> $(METADATA)
|
||||||
|
@echo "Type: Sanity" >> $(METADATA)
|
||||||
|
@echo "TestTime: 1h" >> $(METADATA)
|
||||||
|
@echo "RunFor: gdb" >> $(METADATA)
|
||||||
|
@echo "Requires: gdb rpm-build yum-utils dejagnu make gcc gcc-gfortran glibc" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
30
tests/gdb-testsuite-sanity/PURPOSE
Normal file
30
tests/gdb-testsuite-sanity/PURPOSE
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
PURPOSE of /tools/gdb/Sanity/gdb-testsuite-sanity
|
||||||
|
Description: gdb testing by upstream testsuite
|
||||||
|
Author: Michal Kolar <mkolar@redhat.com>
|
||||||
|
|
||||||
|
By default, testsuite is executed with default options for the package that
|
||||||
|
corresponds to the gdb command by newly created ordinary user. Before
|
||||||
|
executing, the testsuite is reduced by the appropriate reference file that
|
||||||
|
defines the allowed test range.
|
||||||
|
|
||||||
|
Executing can be modified by these variables:
|
||||||
|
* BUILD_USER -- user which will be used for building and testing gdb
|
||||||
|
* PACKAGE -- explicitly defines which rpm package should be tested
|
||||||
|
* RUNTESTFLAGS -- variable which will be forwarded to 'make check' command
|
||||||
|
and can be used to reduce the range of testing
|
||||||
|
* TESTS_COUNT_MIN -- minimum number of cases that should be tested (does not
|
||||||
|
affect the triggering of testcases, it only sets the
|
||||||
|
value of the reference comparator)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
$ BUILD_USER=root \
|
||||||
|
PACKAGE=gdb \
|
||||||
|
RUNTESTFLAGS='GDB=/usr/bin/gdb gdb.base/break*.exp' \
|
||||||
|
TESTS_COUNT_MIN=32 make run
|
||||||
|
|
||||||
|
Reference files instructions:
|
||||||
|
* path of reference file for current package, distribution and architecture
|
||||||
|
can be generated by:
|
||||||
|
$ make ref_file
|
||||||
|
or directly by:
|
||||||
|
$ ./ref/gen.sh
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user