From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8075 invoked by alias); 2 Mar 2006 22:23:18 -0000 Received: (qmail 8065 invoked by uid 22791); 2 Mar 2006 22:23:17 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Mar 2006 22:23:14 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k22MMR0A006988; Thu, 2 Mar 2006 23:22:27 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id k22MMRxZ028055; Thu, 2 Mar 2006 23:22:27 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id k22MMQre000048; Thu, 2 Mar 2006 23:22:26 +0100 (CET) Date: Thu, 02 Mar 2006 22:52:00 -0000 Message-Id: <200603022222.k22MMQre000048@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: rearnsha@arm.com, gdb-patches@sourceware.org, sjackman@gmail.com In-reply-to: <20060302221446.GA18830@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 2 Mar 2006 17:14:46 -0500) Subject: Re: RFC: Use the ARM CPSR as a fallback to determine ARM/Thumb References: <20060220214918.GA28798@nevyn.them.org> <1140519913.27380.29.camel@pc960.cambridge.arm.com> <20060221153601.GA21183@nevyn.them.org> <20060302221446.GA18830@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00059.txt.bz2 > Date: Thu, 2 Mar 2006 17:14:46 -0500 > From: Daniel Jacobowitz > > On Tue, Feb 21, 2006 at 10:36:01AM -0500, Daniel Jacobowitz wrote: > > What I had in mind for this was: > > > > set arm fallback-mode [arm|thumb|auto] > > > > That is, continue to honor symbol information, but change the fallback > > when we don't have symbols to arm, thumb, or current cpsr. > > > > And maybe augment that with: > > > > set arm force-mode [arm|thumb|auto] > > > > This would also override symbol information. > > > > This is basically the same as your first option, but spread out over > > two variables. How does that sound? > > Something like the attached; look OK? > > For correctness this needs the massive remove_breakpoint patch > I'm posting next. Hmm, this really should unwind CPSR from the frame I think. A bit impractical to change that now, but something to keep in mind. Could you add a FIXME that points this out if you agree? > 2006-03-02 Daniel Jacobowitz > > * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string) > (arm_force_mode_string, arm_show_fallback_mode) > (arm_show_force_mode): New. > (arm_pc_is_thumb): Honor fallback-mode and force-mode. > Fall back to the CPSR. > (_initialize_arm_tdep): Add "set arm fallback-mode" > and "set arm force-mode". > > 2006-03-02 Daniel Jacobowitz > > * gdb.texinfo (ARM): Document set/show arm fallback-mode > and set/show arm force-mode. >