Blame SOURCES/gdb-container-rh-pkg.patch

93189d
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
93189d
From: Fedora GDB patches <invalid@email.com>
93189d
Date: Fri, 27 Oct 2017 21:07:50 +0200
93189d
Subject: gdb-container-rh-pkg.patch
93189d
93189d
;; Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114).
93189d
;;=fedora
93189d
93189d
diff --git a/gdb/remote.c b/gdb/remote.c
93189d
--- a/gdb/remote.c
93189d
+++ b/gdb/remote.c
93189d
@@ -14291,7 +14291,17 @@ remote_target::pid_to_exec_file (int pid)
93189d
   char *annex = NULL;
93189d
 
93189d
   if (packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
93189d
-    return NULL;
93189d
+    {
93189d
+      warning (_("Remote gdbserver does not support determining executable "
93189d
+		 "automatically.\n"
93189d
+"RHEL <=6.8 and <=7.2 versions of gdbserver do not support such automatic executable detection.\n"
93189d
+"The following versions of gdbserver support it:\n"
93189d
+"- Upstream version of gdbserver (unsupported) 7.10 or later\n"
93189d
+"- Red Hat Developer Toolset (DTS) version of gdbserver from DTS 4.0 or later (only on x86_64)\n"
93189d
+"- RHEL-7.3 versions of gdbserver (on any architecture)"
93189d
+));
93189d
+      return NULL;
93189d
+    }
93189d
 
93189d
   inferior *inf = find_inferior_pid (this, pid);
93189d
   if (inf == NULL)