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

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