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

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