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

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