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

be09dc
--- gdb-7.11/gdb/remote.c-orig	2016-04-06 17:46:52.428921496 +0200
be09dc
+++ gdb-7.11/gdb/remote.c	2016-04-06 18:28:26.781923516 +0200
be09dc
@@ -13002,7 +13002,17 @@ remote_pid_to_exec_file (struct target_o
be09dc
   char *annex = NULL;
be09dc
 
be09dc
   if (packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE)
be09dc
-    return NULL;
be09dc
+    {
be09dc
+      warning (_("Remote gdbserver does not support determining executable "
be09dc
+		 "automatically.\n"
be09dc
+"RHEL <=6.8 and <=7.2 versions of gdbserver do not support such automatic executable detection.\n"
be09dc
+"The following versions of gdbserver support it:\n"
be09dc
+"- Upstream version of gdbserver (unsupported) 7.10 or later\n"
be09dc
+"- Red Hat Developer Toolset (DTS) version of gdbserver from DTS 4.0 or later (only on x86_64)\n"
be09dc
+"- RHEL-7.3 versions of gdbserver (on any architecture)"
be09dc
+));
be09dc
+      return NULL;
be09dc
+    }
be09dc
 
be09dc
   if (filename != NULL)
be09dc
     xfree (filename);