From 0c85e18e5f5ef8e982b64096626a03e72b04fac0 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Tue, 17 Nov 2009 17:59:42 +0000 Subject: 2009-11-17 Daniel Jacobowitz * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. --- gdb/m68k-tdep.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/m68k-tdep.c') 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; -- cgit v1.1