]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.5-bz190810-gdbserver-arch-advice.patch
- from fedora
[packages/gdb.git] / gdb-6.5-bz190810-gdbserver-arch-advice.patch
diff --git a/gdb-6.5-bz190810-gdbserver-arch-advice.patch b/gdb-6.5-bz190810-gdbserver-arch-advice.patch
new file mode 100644 (file)
index 0000000..fa3653c
--- /dev/null
@@ -0,0 +1,29 @@
+https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=190810
+
+
+2006-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * remote.c (remote_wait): Suggestion on crash due to nonmatching target.
+       (remote_async_wait): Likewise.
+
+
+Index: gdb-6.8.50.20081128/gdb/remote.c
+===================================================================
+--- gdb-6.8.50.20081128.orig/gdb/remote.c      2008-12-09 16:59:51.000000000 +0100
++++ gdb-6.8.50.20081128/gdb/remote.c   2008-12-09 17:00:04.000000000 +0100
+@@ -4329,8 +4329,13 @@ Packet: '%s'\n"),
+               VEC_safe_push (cached_reg_t, event->regcache, &cached_reg);
+             }
+-          if (*p != ';')
+-            error (_("Remote register badly formatted: %s\nhere: %s"),
++          /* It may also occur on amd64 which defaults to 32-bit i386
++             target.  gdbserver(1) is not aware of the `set architecture'
++             name itself as it is not using libbfd.  */
++          if (*p != ';')
++            error (_("Remote register badly formatted: %s\nhere: %s"
++                     "\nTry to load the executable by `file' first,"
++                     "\nyou may also check `set/show architecture'."),
+                    buf, p);
+           ++p;
+         }
This page took 0.02367 seconds and 4 git commands to generate.