Go to file
David Abdurachmanov c87d06b061
Fix riscv64
As stated in the commit message for the fix:

Without that it is impossible to debug on riscv64.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2021-10-14 13:28:05 +03:00
.fmf init FMF CI gating 2021-09-27 15:53:32 +02:00
plans init FMF CI gating 2021-09-27 15:53:32 +02:00
tests init FMF CI gating 2021-09-27 15:53:32 +02:00
.gitignore Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
0001-gdb-Support-DW_LLE_start_end.patch Fix riscv64 2021-10-14 13:28:05 +03:00
README.local-patches.md Rename README.local-patches to README.local-patches.md 2020-02-11 15:34:42 -05:00
_gdb.spec.Patch.include Fix riscv64 2021-10-14 13:28:05 +03:00
_gdb.spec.patch.include Fix riscv64 2021-10-14 13:28:05 +03:00
_git_upstream_commit Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
_patch_order Fix riscv64 2021-10-14 13:28:05 +03:00
gating.yaml init FMF CI gating 2021-09-27 15:53:32 +02:00
gdb-6.3-attach-see-vdso-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-bz140532-ppc-unwinding-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-bz202689-exec-from-pthread-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-focus-cmd-prev-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-gstack-20050411.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.3-inferior-notification-20050721.patch Rebase to FSF GDB 9.2 and fix a bunch of issues. 2020-06-09 07:54:16 -07:00
gdb-6.3-inheritancetest-20050726.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-mapping-zero-inode-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-rh-testversion-20041202.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.3-test-dtorfix-20050121.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-test-movedir-20050125.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.3-threaded-watchpoints2-20050225.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-BEA-testsuite.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-bz109921-DW_AT_decl_file-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.5-bz218379-ppc-solib-trampoline-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-bz243845-stale-testing-zombie-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-gcore-buffer-limit-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-ia64-libunwind-leak-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-last-address-space-byte-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-missed-trap-on-step-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-readline-long-line-crash-test.patch Rebase to FSF GDB 8.2.50.20190120 (8.3pre). 2019-01-21 12:16:00 -05:00
gdb-6.5-section-num-fixup-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.5-sharedlibrary-path.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch Rebase to FSF GDB 8.3.50.20190304 (8.4pre). 2019-03-05 11:27:44 -05:00
gdb-6.6-buildid-locate-rpm-librpm-workaround.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.6-buildid-locate-rpm-scl.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-6.6-buildid-locate-rpm.patch gdb/build-id.c: make GDB advise to use dnf debuginfo-install 2021-10-11 15:29:15 +02:00
gdb-6.6-buildid-locate-solib-missing-ids.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.6-buildid-locate.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-6.6-bz229517-gcore-without-terminal.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.6-bz230000-power6-disassembly-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.6-bz237572-ppc-atomic-sequence-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.6-testsuite-timeouts.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.7-charsign-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.7-ppc-clobbered-registers-O2-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.7-testsuite-stable-results.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-6.8-bz442765-threaded-exec-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-6.8-bz466901-backtrace-full-prelinked.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-archer-next-over-throw-cxx-exec.patch Update gdb-6.3-gstack-20050411.patch (Pedro Alves). 2018-12-11 16:37:09 -05:00
gdb-bfd-aliasing.patch Fix strict-aliasing rules compilation error (RH BZ 1315191). 2016-03-08 15:03:26 +01:00
gdb-bz601887-dwarf4-rh-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-bz634108-solib_address.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-ccache-workaround.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-config.patch Fix more broken configure files 2020-07-21 00:58:44 -06:00
gdb-container-rh-pkg.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-core-open-vdso-warning.patch Rebase to FSF GDB 9.0.50.20191119 (9.1pre). 2019-11-21 12:10:32 -05:00
gdb-dont-overwrite-fsgsbase-m32.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-entryval-crash-1of3.patch Rebase to FSF GDB 7.7.91.20140721 (pre-7.8 snapshot). 2014-07-22 20:38:38 +02:00
gdb-entryval-crash-2of3.patch Rebase to FSF GDB 7.7.91.20140721 (pre-7.8 snapshot). 2014-07-22 20:38:38 +02:00
gdb-entryval-crash-3of3.patch Rebase to FSF GDB 7.7.91.20140721 (pre-7.8 snapshot). 2014-07-22 20:38:38 +02:00
gdb-fedora-libncursesw.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-fortran-frame-string.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-gdb27743-psymtab-imported-unit.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-glibc-strstr-workaround.patch Update gdb-6.3-gstack-20050411.patch (Pedro Alves). 2018-12-11 16:37:09 -05:00
gdb-gstack.man - ia64 build fixes from Doug Chapman (BZ 428882). 2008-02-20 09:43:35 +00:00
gdb-libexec-add-index.patch Rebase to FSF GDB 8.3.50.20190625 (8.4pre). 2019-06-25 15:49:31 -04:00
gdb-lineno-makeup-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-linux_perf-bundle.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-ltofix.patch - Fix broken configure tests compromised by LTO 2020-07-21 00:15:20 -06:00
gdb-opcodes-clflushopt-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-orphanripper.c [testsuite] [RHEL-5] Fix gdb-orphanripper.c runtime error. 2013-05-06 17:30:58 +02:00
gdb-physname-pr11734-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-physname-pr12273-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-ppc-power7-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1007614-memleak-infpy_read_memory-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1149205-catch-syscall-after-fork-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1156192-recursive-dlopen-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1325795-framefilters-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1350436-type-printers-error.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1398387-tab-crash-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1553104-s390x-arch12-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-rhbz1898252-loadable-section-outside-ELF-segments.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1909902-frame_id_p-assert-1.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1909902-frame_id_p-assert-2.patch Backport patches which fix frame_id_p assertion failure (RHBZ 1909902, 2021-03-05 15:18:19 -07:00
gdb-rhbz1916516-pathstuff.cc132-internal-error.patch Backport [gdb/cli] Don't assert on empty string for core-file 2021-09-23 12:04:34 -03:00
gdb-rhbz1964167-convert-enum-range_type.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-array-slices-at-prompt.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-array-strides-in-expressions.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-clean-up-array-expression-evaluation.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-fix-type-format-mismatch-in-f-lang.c.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-range_type-to-range_flag.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-fortran-whitespace_array.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1964167-move-fortran-expr-handling.patch Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
gdb-rhbz1970741-early-exit-for-empty-debuginfod-url.patch Backport [gdb] Improve early exits for env var in debuginfod-support.c 2021-09-23 12:05:47 -03:00
gdb-rhbz1976887-field-location-kind.patch Backport upstream patch which fixes internal-error: Unexpected 2021-09-26 23:49:52 +02:00
gdb-rhel5.9-testcase-xlf-var-inside-mod.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-runtest-pie-override.patch Rebase to FSF GDB 10.1. 2020-11-03 09:18:01 -07:00
gdb-simultaneous-step-resume-breakpoint-test.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-test-bt-cfi-without-die.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-test-dw2-aranges.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-test-expr-cumulative-archer.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-test-for-rhbz1976887.patch Backport test for RHBZ 1976887 (Kevin Buettner). 2021-09-26 23:55:31 +02:00
gdb-test-ivy-bridge.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-test-pid0-core.patch Remove need for "FileName:" line on the header of the patches. 2018-06-18 20:10:24 -04:00
gdb-testsuite-readline63-sigint-revert.patch [testsuite] Fix several false FAILs. 2016-04-08 17:32:35 +02:00
gdb.spec Merge remote-tracking branch 'up/f33' into f33-riscv64 2021-10-14 11:19:14 +03:00
gdbinit [rhel5] Fix /etc/gdbinit compatibility with python-2.4. 2013-10-30 12:53:46 +01:00
gdbtui testsuite: Fix gdb.base/macscp.exp ccache workaround in SCL mode. 2012-02-28 18:05:01 +01:00
generate-git-repo-from-patches.sh Rebase to FSF GDB 9.2 and fix a bunch of issues. 2020-06-09 07:54:16 -07:00
generate-patches-from-git-repo.sh Fix python build and re-enable it. 2020-06-05 15:45:45 -07:00
sources Rebase to FSF GDB 10.2. 2021-06-24 15:46:14 -07:00
v1.5-libipt-static.patch Rebase to FSF GDB 8.3.50.20190824 (8.4pre). 2019-08-25 16:37:00 -04:00

README.local-patches.md

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

  1. 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.

  1. 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

  1. 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

  1. 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.

  2. 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.

  3. 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

  1. 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 the Patch: 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