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

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