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

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