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

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