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

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