2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-container-rh-pkg.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; 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
|
2023-12-09 01:43:22 +00:00
|
|
|
@@ -14742,7 +14742,17 @@ remote_target::pid_to_exec_file (int pid)
|
2016-04-06 18:36:28 +00:00
|
|
|
char *annex = NULL;
|
|
|
|
|
2023-12-09 01:43:22 +00:00
|
|
|
if (m_features.packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
|
2016-04-06 18:36:28 +00:00
|
|
|
- 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"
|
2016-05-03 20:38:13 +00:00
|
|
|
+"- RHEL-7.3 versions of gdbserver (on any architecture)"
|
2016-04-06 18:36:28 +00:00
|
|
|
+));
|
|
|
|
+ return NULL;
|
|
|
|
+ }
|
|
|
|
|
2020-11-05 21:17:24 +00:00
|
|
|
inferior *inf = find_inferior_pid (this, pid);
|
2017-12-08 04:31:26 +00:00
|
|
|
if (inf == NULL)
|