Blame SOURCES/gdb-6.5-bz190810-gdbserver-arch-advice.patch

b33083
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=190810
b33083
b33083
b33083
2006-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
b33083
b33083
	* remote.c (remote_wait): Suggestion on crash due to nonmatching target.
b33083
	(remote_async_wait): Likewise.
b33083
b33083
b33083
Index: gdb-6.8.50.20090818/gdb/remote.c
b33083
===================================================================
b33083
--- gdb-6.8.50.20090818.orig/gdb/remote.c	2009-08-18 21:00:35.000000000 +0200
b33083
+++ gdb-6.8.50.20090818/gdb/remote.c	2009-08-18 21:04:46.000000000 +0200
b33083
@@ -4408,8 +4408,13 @@ Packet: '%s'\n"),
b33083
 	      VEC_safe_push (cached_reg_t, event->regcache, &cached_reg);
b33083
 	    }
b33083
 
b33083
+	  /* It may also occur on amd64 which defaults to 32-bit i386
b33083
+	     target.  gdbserver(1) is not aware of the `set architecture'
b33083
+	     name itself as it is not using libbfd.  */
b33083
 	  if (*p != ';')
b33083
-	    error (_("Remote register badly formatted: %s\nhere: %s"),
b33083
+	    error (_("Remote register badly formatted: %s\nhere: %s"
b33083
+		     "\nTry to load the executable by `file' first,"
b33083
+		     "\nyou may also check `set/show architecture'."),
b33083
 		   buf, p);
b33083
 	  ++p;
b33083
 	}