Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: Use the ARM CPSR as a fallback to determine ARM/Thumb
Date: Fri, 02 May 2008 14:06:00 -0000	[thread overview]
Message-ID: <20080502140254.GE29202@caradoc.them.org> (raw)
In-Reply-To: <uabj9xb6l.fsf@gnu.org>

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


  reply	other threads:[~2008-05-02 14:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20 22:03 Daniel Jacobowitz
2006-02-21 15:36 ` Richard Earnshaw
2006-02-21 16:10   ` Daniel Jacobowitz
2006-03-02 22:23     ` Daniel Jacobowitz
2006-03-02 22:52       ` Mark Kettenis
2006-03-02 23:02         ` Daniel Jacobowitz
2006-03-02 23:10           ` Mark Kettenis
2006-03-02 23:23             ` Daniel Jacobowitz
2008-05-01 18:38       ` Daniel Jacobowitz
2008-05-02 10:17         ` Eli Zaretskii
2008-05-02 14:06           ` Daniel Jacobowitz [this message]
2008-05-02 15:47             ` Eli Zaretskii
2008-05-02 16:03               ` Daniel Jacobowitz
2008-05-02 20:34                 ` Eli Zaretskii
2006-02-25 11:12 ` Jim Blandy
2006-02-26 13:10   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080502140254.GE29202@caradoc.them.org \
    --to=drow@false.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox