aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@kugelworks.com>2009-11-17 17:59:42 +0000
committerMaxim Kuvyrkov <maxim@kugelworks.com>2009-11-17 17:59:42 +0000
commit0c85e18e5f5ef8e982b64096626a03e72b04fac0 (patch)
treebb8fae2279491bd08e5fc048bac7efad1a9e8c17 /gdb
parent9ac544cece0ff0ae2782d70049c8c8f0a3924bf7 (diff)
downloadgdb-0c85e18e5f5ef8e982b64096626a03e72b04fac0.zip
gdb-0c85e18e5f5ef8e982b64096626a03e72b04fac0.tar.gz
gdb-0c85e18e5f5ef8e982b64096626a03e72b04fac0.tar.bz2
2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
* m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/m68k-tdep.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index ce62365..077442a 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
+2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
+
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
-2009-11-17 Vladimir Prus <vladimir@codesourcery.com>
+ Vladimir Prus <vladimir@codesourcery.com>
* Makefile.in (reg-cf.o, reg-cf.c): New targets.
* configure.ac: Check for __mcoldfire__ and set
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 9cbbbb3..87b3556 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1163,6 +1163,13 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
break;
}
+ if (best_arch != NULL)
+ {
+ if (tdesc_data != NULL)
+ tdesc_data_cleanup (tdesc_data);
+ return best_arch->gdbarch;
+ }
+
tdep = xzalloc (sizeof (struct gdbarch_tdep));
gdbarch = gdbarch_alloc (&info, tdep);
tdep->fpregs_present = has_fp;