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