summaryrefslogtreecommitdiffstats
path: root/patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch')
-rw-r--r--patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch b/patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch
new file mode 100644
index 000000000..7b5f68162
--- /dev/null
+++ b/patches/gdb-6.8/m68k-linux-nat-get_regcache_arch.patch
@@ -0,0 +1,25 @@
+From: Carsten Schlote <c.schlote@konzeptpark.de>
+Date: Tue, 1 Apr 2008 15:49:37 +0200
+Subject: [PATCH] [gdb-6.8] Updated rules files and fixed code for m68k native GDB
+
+Hmm, nobody seems to build GDB for Coldffire nativly. Changed call
+to reg_regcache_arch() to get_regcache_arch().
+
+It fixes the compile, but is of course untested and may break GDB on
+your target.
+
+Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
+
+Index: gdb-6.8/gdb/m68klinux-nat.c
+===================================================================
+--- gdb-6.8.orig/gdb/m68klinux-nat.c 2008-04-01 15:34:54.000000000 +0200
++++ gdb-6.8/gdb/m68klinux-nat.c 2008-04-01 15:43:19.000000000 +0200
+@@ -179,7 +179,7 @@
+ static void
+ store_register (const struct regcache *regcache, int regno)
+ {
+- struct gdbarch *gdbarch = reg_regcache_arch (regcache);
++ struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ /* This isn't really an address. But ptrace thinks of it as one. */
+ CORE_ADDR regaddr;
+ char mess[128]; /* For messages */