From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25828 invoked by alias); 2 May 2008 14:03:24 -0000 Received: (qmail 25811 invoked by uid 22791); 2 May 2008 14:03:22 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 May 2008 14:02:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E489C983EB; Fri, 2 May 2008 14:02:55 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C584A983DA; Fri, 2 May 2008 14:02:55 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jrvqh-0008CD-0Q; Fri, 02 May 2008 10:02:55 -0400 Date: Fri, 02 May 2008 14:06:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: RFC: Use the ARM CPSR as a fallback to determine ARM/Thumb Message-ID: <20080502140254.GE29202@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <20060220214918.GA28798@nevyn.them.org> <1140519913.27380.29.camel@pc960.cambridge.arm.com> <20060221153601.GA21183@nevyn.them.org> <20060302221446.GA18830@nevyn.them.org> <20080501183805.GA22218@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) 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-05/txt/msg00080.txt.bz2 On Fri, May 02, 2008 at 01:17:06PM +0300, Eli Zaretskii wrote: > > +@item set arm fallback-mode > > +This command sets the mode (ARM versus Thumb) which @value{GDBN} will > > +assume for code without a symbol table. The default is @samp{auto}, > > +which causes @value{GDBN} to use the mode associated with the current > > +CPSR. > > Please explain (in parens or in a @footnote) what is CPSR. There's no > other instance in the manual where this acronym is used. Is this better? I could expand the acronym (current program status register), but I think mentioning it as a register is clear enough. It's visible in GDB as $cpsr. @item set arm fallback-mode (arm|thumb|auto) @value{GDBN} uses the symbol table, when available, to determine whether instructions are ARM or Thumb. This command controls @value{GDBN}'s default behavior when the symbol table is not available. The default is @samp{auto}, which causes @value{GDBN} to use the current execution mode (from the T bit in the CPSR register). @item set arm fallback-mode (arm|thumb|auto) This command sets the mode (ARM versus Thumb) which @value{GDBN} will assume for code without a symbol table. The default is @samp{auto}, which causes @value{GDBN} to use the current execution mode (from the T bit in the CPSR register). @item show arm fallback-mode Show the current fallback instruction mode. @item set arm force-mode (arm|thumb|auto) This command overrides use of the symbol table to determine whether instructions are ARM or Thumb. The default is @samp{auto}, which causes @value{GDBN} to use the symbol table and then the setting of @samp{set arm fallback-mode}. @item show arm force-mode Show the current forced instruction mode. > > +set arm fallback-mode (arm|thumb|auto) > > +show arm fallback-mode > > +set arm force-mode (arm|thumb|auto) > > +show arm force-mode > > + These variables control how ARM GDB determines whether instructions > ^^^^^^^^^ > "commands", not "variables", I think. I agree, changed. (There's a "variable" reference to a set command a few lines above, though). -- Daniel Jacobowitz CodeSourcery