summaryrefslogtreecommitdiff
path: root/gdb-container-rh-pkg.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-02 07:07:44 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-02 07:07:44 +0000
commite0d752d2881e86d4360913364322e02d5c55c587 (patch)
tree4fa0b980b9deb3a41ba7b8a17845888d77150f31 /gdb-container-rh-pkg.patch
parent99588ca2358b88299132df3a693266065f78808b (diff)
automatic import of gdbopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'gdb-container-rh-pkg.patch')
-rw-r--r--gdb-container-rh-pkg.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb-container-rh-pkg.patch b/gdb-container-rh-pkg.patch
new file mode 100644
index 0000000..7107e5d
--- /dev/null
+++ b/gdb-container-rh-pkg.patch
@@ -0,0 +1,30 @@
+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-container-rh-pkg.patch
+
+;; Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114).
+;;=fedora
+
+diff --git a/gdb/remote.c b/gdb/remote.c
+--- a/gdb/remote.c
++++ b/gdb/remote.c
+@@ -14742,7 +14742,17 @@ remote_target::pid_to_exec_file (int pid)
+ char *annex = NULL;
+
+ if (m_features.packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
+- return NULL;
++ {
++ warning (_("Remote gdbserver does not support determining executable "
++ "automatically.\n"
++"RHEL <=6.8 and <=7.2 versions of gdbserver do not support such automatic executable detection.\n"
++"The following versions of gdbserver support it:\n"
++"- Upstream version of gdbserver (unsupported) 7.10 or later\n"
++"- Red Hat Developer Toolset (DTS) version of gdbserver from DTS 4.0 or later (only on x86_64)\n"
++"- RHEL-7.3 versions of gdbserver (on any architecture)"
++));
++ return NULL;
++ }
+
+ inferior *inf = find_inferior_pid (this, pid);
+ if (inf == NULL)