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

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