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

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