* [PATCH] ia64-tdep.c: ia64_gdbarch_init() fix
@ 2002-02-17 21:56 Kevin Buettner
0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2002-02-17 21:56 UTC (permalink / raw)
To: gdb-patches
I've just committed the change below.
From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
of ``current_gdbarch''.
Index: ia64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ia64-tdep.c,v
retrieving revision 1.24
diff -u -p -r1.24 ia64-tdep.c
--- ia64-tdep.c 2001/10/21 17:19:37 1.24
+++ ia64-tdep.c 2002/02/18 05:43:49
@@ -2090,9 +2090,9 @@ ia64_gdbarch_init (struct gdbarch_info i
arches != NULL;
arches = gdbarch_list_lookup_by_info (arches->next, &info))
{
- if (gdbarch_tdep (current_gdbarch)->os_ident != os_ident)
- continue;
- return arches->gdbarch;
+ tdep = gdbarch_tdep (arches->gdbarch);
+ if (tdep &&tdep->os_ident == os_ident)
+ return arches->gdbarch;
}
tdep = xmalloc (sizeof (struct gdbarch_tdep));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-18 5:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-17 21:56 [PATCH] ia64-tdep.c: ia64_gdbarch_init() fix Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox