From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27365 invoked by alias); 15 Feb 2008 17:44:28 -0000 Received: (qmail 27354 invoked by uid 22791); 15 Feb 2008 17:44:28 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Feb 2008 17:44:11 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id B0DB03BD80; Fri, 15 Feb 2008 09:44:07 -0800 (PST) Subject: Re: [rfc]: Replace current_gdbarch in sentinel-frame.c From: Michael Snyder To: Markus Deuling Cc: GDB Patches , Ulrich Weigand In-Reply-To: <47B55A49.2040107@de.ibm.com> References: <47B55A49.2040107@de.ibm.com> Content-Type: text/plain Date: Fri, 15 Feb 2008 17:44:00 -0000 Message-Id: <1203097447.19253.128.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00258.txt.bz2 On Fri, 2008-02-15 at 10:24 +0100, Markus Deuling wrote: > Hi, > > this is a trivial replacement of current_gdbarch in sentinel-frame.c. Tested on x86. > > Ok to commit? Looks fine to me. > > > ChangeLog: > > * sentinel-frame.c (sentinel_frame_prev_register): Use get_frame_arch > to get at the current architecture. > > Regards, > Markus > > > plain text document attachment (diff-sentinel) > diff -urpN src/gdb/sentinel-frame.c dev/gdb/sentinel-frame.c > --- src/gdb/sentinel-frame.c 2008-01-01 23:53:12.000000000 +0100 > +++ dev/gdb/sentinel-frame.c 2008-02-15 10:07:36.000000000 +0100 > @@ -54,7 +54,7 @@ sentinel_frame_prev_register (struct fra > onto the corresponding hardware register. */ > *optimized = 0; > *lvalp = lval_register; > - *addrp = register_offset_hack (current_gdbarch, regnum); > + *addrp = register_offset_hack (get_frame_arch (next_frame), regnum); > *realnum = regnum; > > /* If needed, find and return the value of the register. */