2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
authorMaxim Kuvyrkov <maxim@kugelworks.com>
Tue, 17 Nov 2009 17:59:42 +0000 (17:59 +0000)
committerMaxim Kuvyrkov <maxim@kugelworks.com>
Tue, 17 Nov 2009 17:59:42 +0000 (17:59 +0000)
* m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.

gdb/gdbserver/ChangeLog
gdb/m68k-tdep.c

index ce62365ec8073fe8f95353d30aa847dd9a4dd707..077442a9c8515aedf07422ca9955cfa068a87aee 100644 (file)
@@ -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
index 9cbbbb3661d73621684e255522ed8c25ad89595c..87b355689639757df7fa69752fa4c8e5d481b3c3 100644 (file)
@@ -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;
This page took 0.029843 seconds and 4 git commands to generate.