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

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