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

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