7fd1c9cb3f
Following on from the previous commit, this commit remove gdb-6.8-bz442765-threaded-exec-test.patch. Like the previous commit, this patch was a testsuite only patch that extended the test originally added in the previous commit, in order to do some additional threads/exec related testing. The issue exposed by this test (Bug bz442765) was present on Fedora 9, with GDB 6.8-1.fc9. I have setup a Fedora 9 VM and recreated the failure with the test in the patch I'm deleting here. The test does a number of exec's, in each iteration the test binary runs in a different mode. However, the failure is triggered when we have a main thread that spawns a worker thread and then called exec from the main thread. Just like the previous commit, this situation already exists in the upstream test gdb.threads/execl.exp, and, if I copy this upstream test to my Fedora 9 VM, I can reproduce the failure using this upstream test. The test being deleted here does do a number of other permutations of threading and execing, for example it tests calling exec in a non-threaded inferior, but this is also tested upstream with things like gdb.base/foll-exec.exp. In summary, I don't believe there is anything new added by this test that is not already covered with existing upstream tests, as such, I think we should drop this patch. |
||
---|---|---|
.fmf | ||
plans | ||
tests | ||
_gdb.spec.patch.include | ||
_gdb.spec.Patch.include | ||
_git_upstream_commit | ||
_patch_order | ||
.gitignore | ||
gating.yaml | ||
gdb-6.3-attach-see-vdso-test.patch | ||
gdb-6.3-bz140532-ppc-unwinding-test.patch | ||
gdb-6.3-gstack-20050411.patch | ||
gdb-6.3-mapping-zero-inode-test.patch | ||
gdb-6.3-rh-testversion-20041202.patch | ||
gdb-6.5-BEA-testsuite.patch | ||
gdb-6.5-bz109921-DW_AT_decl_file-test.patch | ||
gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch | ||
gdb-6.5-bz218379-ppc-solib-trampoline-test.patch | ||
gdb-6.5-bz243845-stale-testing-zombie-test.patch | ||
gdb-6.5-gcore-buffer-limit-test.patch | ||
gdb-6.5-ia64-libunwind-leak-test.patch | ||
gdb-6.5-last-address-space-byte-test.patch | ||
gdb-6.5-missed-trap-on-step-test.patch | ||
gdb-6.5-readline-long-line-crash-test.patch | ||
gdb-6.5-section-num-fixup-test.patch | ||
gdb-6.5-sharedlibrary-path.patch | ||
gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch | ||
gdb-6.6-buildid-locate-rpm-librpm-workaround.patch | ||
gdb-6.6-buildid-locate-rpm.patch | ||
gdb-6.6-buildid-locate-solib-missing-ids.patch | ||
gdb-6.6-buildid-locate.patch | ||
gdb-6.6-bz229517-gcore-without-terminal.patch | ||
gdb-6.6-bz237572-ppc-atomic-sequence-test.patch | ||
gdb-6.6-testsuite-timeouts.patch | ||
gdb-6.7-charsign-test.patch | ||
gdb-6.7-ppc-clobbered-registers-O2-test.patch | ||
gdb-6.7-testsuite-stable-results.patch | ||
gdb-6.8-bz466901-backtrace-full-prelinked.patch | ||
gdb-archer-next-over-throw-cxx-exec.patch | ||
gdb-backport-call-check_typedef-at-beginning-of-dwarf_expr_context.patch | ||
gdb-backport-fix-break-main-file-remove-fail.patch | ||
gdb-backport-python-config-replace-deprecated-distutils.patch | ||
gdb-backport-readline_support.patch | ||
gdb-bz634108-solib_address.patch | ||
gdb-ccache-workaround.patch | ||
gdb-container-rh-pkg.patch | ||
gdb-core-open-vdso-warning.patch | ||
gdb-fedora-libncursesw.patch | ||
gdb-gcc-13-backport-self-move-diagnostic-fix | ||
gdb-glibc-strstr-workaround.patch | ||
gdb-gstack.man | ||
gdb-libexec-add-index.patch | ||
gdb-lineno-makeup-test.patch | ||
gdb-linux_perf-bundle.patch | ||
gdb-opcodes-clflushopt-test.patch | ||
gdb-orphanripper.c | ||
gdb-ppc-power7-test.patch | ||
gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch | ||
gdb-rhbz1007614-memleak-infpy_read_memory-test.patch | ||
gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch | ||
gdb-rhbz1149205-catch-syscall-after-fork-test.patch | ||
gdb-rhbz1156192-recursive-dlopen-test.patch | ||
gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch | ||
gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch | ||
gdb-rhbz1350436-type-printers-error.patch | ||
gdb-rhbz1553104-s390x-arch12-test.patch | ||
gdb-rhbz2042664-fix-sect_index_data-internal-error | ||
gdb-rhbz2143992-libiberty-fix-c89isms-in-configure.patch | ||
gdb-rhbz2152431-label-symbol-value.patch | ||
gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch | ||
gdb-rhel5.9-testcase-xlf-var-inside-mod.patch | ||
gdb-simultaneous-step-resume-breakpoint-test.patch | ||
gdb-sw22395-constify-target_desc.patch | ||
gdb-test-bt-cfi-without-die.patch | ||
gdb-test-dw2-aranges.patch | ||
gdb-test-ivy-bridge.patch | ||
gdb-test-pid0-core.patch | ||
gdb-testsuite-readline63-sigint-revert.patch | ||
gdb.spec | ||
gdbinit | ||
gdbtui | ||
generate-git-repo-from-patches.sh | ||
generate-patches-from-git-repo.sh | ||
README.local-patches.md | ||
sources | ||
v1.5-libipt-static.patch |
Fedora GDB local patches policy
In order to make things easier for the Fedora GDB maintainer, we choose to auto-generate the local patches by making use of an upstream git repository. Below you can find a few instructions on how to work using this method.
You need to run the following commands from the directory that contains the "gdb.spec" file.
Importing the GDB patches into a git repository
- The local patches (
*.patch
) need to be imported into an upstream git repository. For example, let's assume you cloned the repository by doing:
$ git clone git://sourceware.org/git/binutils-gdb.git
TIP: if you already have the repository cloned somewhere in your system, you can pass a "--reference
" to the "git clone" command and it will use your local repository as much as possible to make the clone, speeding up things.
- After cloning the upstream repository, you can import your patches by using the script "generate-git-repo-from-patches.sh":
$ sh generate-git-repo-from-patches.sh <REPOSITORY_DIR>
The script will basically cd into the repository, checkout the
revision specified in the file _git_upstream_commit
, iterate through
the file _patch_order
and "git-am" every patch in that order.
This operation should complete without errors; if you find a problem
with git-am
, it probably means that the revision specified in the
file _git_upstream_commit
is wrong.
Rebasing the patches against a newer version/release
- First, cd into the upstream repository. All you have to do is
choose the revision against which you plan to rebase the patches, and
git rebase <REVISION>
. git will do the rest, and you will be able to perform conflict resolution by git's algorithm, which is smarter.
Creating new patches
-
Create the new patch on top of the the others, as usual. Note that you can use
git rebase
whenever you want to reorder patch order, or even to delete a patch. -
When writing the commit log, you must obey a few rules. The subject line must be the filename of the patch. This line will be used when exporting the patches from the git repository, and (obviously) it gives the filename that should be used for this specific patch.
-
You can also add comments that will go into the auto-generated
Patch:
file (see below). To do that, use the special marker;;
at the beginning of the line. This way, a commit log that says:
test-patch.patch
;; This is a test patch
;; Second line
Will generate the following entry in the auto-generated Patch:
file:
# This is a test patch
# Second line
PatchXYZ: test-patch.patch
Exporting the GDB patches from the git repository
- When you're done working with the patches, go back to the directory
that contains the
gdb.spec
file, and from there you run:
$ sh generate-patches-from-git-repo.sh <REPOSITORY_DIR>
This will regenerate all of the *.patch
files (excluding the ones that
were also excluded from the git repository), and also regenerate a few
control files. These control files are:
-
_gdb.spec.Patch.include
: This file contains thePatch:
directives. -
_gdb.spec.patch.include
: This file contains the%patch
directives. -
_patch_order
: This file contains the patches, in the exact order that they must be applied. It is used when importing the patches into the git repository. -
_git_upstream_commit
: This file contains the last upstream commit against which the patches were rebased. It is used when importing the patches into the git repository.
NOTE: If you did a rebase against a newer upstream version, you need to specify the commit/tag/branch against which you rebased:
$ sh generate-patches-from-git-repo.sh <REPOSITORY_DIR> <COMMIT_OR_TAG_OR_BRANCH>
For example, if you rebased against gdb-8.1-release
:
$ sh generate-patches-from-git-repo.sh <REPOSITORY_DIR> gdb-8.1-release