From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3877 invoked by alias); 18 Feb 2002 05:56:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3630 invoked from network); 18 Feb 2002 05:56:27 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 18 Feb 2002 05:56:27 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id VAA17584 for ; Sun, 17 Feb 2002 21:56:05 -0800 (PST) Received: (from kev@localhost) by cse.cygnus.com (8.11.6/8.11.6) id g1I5soj16615 for gdb-patches@sources.redhat.com; Sun, 17 Feb 2002 22:54:50 -0700 Date: Sun, 17 Feb 2002 21:56:00 -0000 From: Kevin Buettner Message-Id: <1020218055450.ZM16614@localhost.localdomain> X-Mailer: Z-Mail (4.0.1 13Jan97 Caldera) To: gdb-patches@sources.redhat.com Subject: [PATCH] ia64-tdep.c: ia64_gdbarch_init() fix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00463.txt.bz2 I've just committed the change below. From Peter Schauer : * 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));