Jan Kratochvil 98045fb
--- gdb-7.11/gdb/remote.c-orig	2016-04-06 17:46:52.428921496 +0200
Jan Kratochvil 98045fb
+++ gdb-7.11/gdb/remote.c	2016-04-06 18:28:26.781923516 +0200
Jan Kratochvil 98045fb
@@ -13002,7 +13002,17 @@ remote_pid_to_exec_file (struct target_o
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
 
Jan Kratochvil 98045fb
   if (filename != NULL)
Jan Kratochvil 98045fb
     xfree (filename);