aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-02-14 15:13:53 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-02-14 15:13:53 +0000
commitdd47e6fdd903e23ca947c265611abe40c2b5f21c (patch)
tree8723d411d4ed062dbcf21e1372c5dbc6b41765c0 /gdb
parent9694d6b2ea90ab19b6fb97b7467afbc7f2a4c229 (diff)
downloadgdb-dd47e6fdd903e23ca947c265611abe40c2b5f21c.zip
gdb-dd47e6fdd903e23ca947c265611abe40c2b5f21c.tar.gz
gdb-dd47e6fdd903e23ca947c265611abe40c2b5f21c.tar.bz2
2002-02-14 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Don't call find_variant_by_name, because it confuses the multiarch framework. Return NULL if there isn't an architecture with the user supplied name, instead of forcing a different one without recording the change with the multiarch machinery. (find_variant_by_name): Delete.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/rs6000-tdep.c18
2 files changed, 11 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 65409db..307a18d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+2002-02-14 Elena Zannoni <ezannoni@redhat.com>
+
+ * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
+ find_variant_by_name, because it confuses the multiarch
+ framework. Return NULL if there isn't an architecture with the
+ user supplied name, instead of forcing a different one without
+ recording the change with the multiarch machinery.
+ (find_variant_by_name): Delete.
+
2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index be8c595..2105727 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2262,21 +2262,6 @@ static const struct variant variants[] =
#undef num_registers
-/* Look up the variant named NAME in the `variants' table. Return a
- pointer to the struct variant, or null if we couldn't find it. */
-
-static const struct variant *
-find_variant_by_name (char *name)
-{
- const struct variant *v;
-
- for (v = variants; v->name; v++)
- if (!strcmp (name, v->name))
- return v;
-
- return NULL;
-}
-
/* Return the variant corresponding to architecture ARCH and machine number
MACH. If no such variant exists, return null. */
@@ -2471,7 +2456,8 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Choose variant. */
v = find_variant_by_arch (arch, mach);
if (!v)
- v = find_variant_by_name (power ? "power" : "powerpc");
+ return NULL;
+
tdep->regs = v->regs;
tdep->ppc_gp0_regnum = 0;