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

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