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