From: Adrian von Bidder <avbidder@acter.ch>
To: Richard.Earnshaw@arm.com
Cc: gdb mailing list <gdb@sources.redhat.com>
Subject: Re: [arm] force gdb into disassembling in thumb (arm) mode
Date: Wed, 23 Jan 2002 04:27:00 -0000 [thread overview]
Message-ID: <1011788835.10900.8.camel@atlas> (raw)
In-Reply-To: <200201231044.KAA11674@cam-mail2.cambridge.arm.com>
On Wed, 2002-01-23 at 11:44, Richard Earnshaw wrote:
> Hmm, a quick test on the CVS sources shows that using an odd address will
> DTRT (ie force thumb mode but then round the address down); I can't see
> anything from the commit log that might have changed. The key is this
> line of code:
>
> gdb/arm-tdep.c/gdb_print_insn_arm()
> memaddr = UNMAKE_THUMB_ADDR (memaddr);
>
> Which strips off the thumb bit before actually loading the half-word.
Sorry, my fault, mostly - Memory didn't contain what I thought it did,
which did confuse me, together with the memory addresses on the
disassembler output having the lsb set. But you're right, the data
actually displayed is at the right addresses.
But then I should be able to do "display/i $pc+1" but this has no effect
(neither does disp/i $pc|1):
(gdb) disp/i $pc+1
4: x/i $pc + 1 0xf54: undefined
(is the same as plain disp/i $pc - it tries to decode arm).
while
(gdb) x/i $pc+1
0xf55: push {r4, r5, r7, lr}
shows the thumb instruction really at 0xf54.
greets from Zürich
-- vbi
prev parent reply other threads:[~2002-01-23 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-23 1:56 Adrian von Bidder
2002-01-23 3:44 ` Richard Earnshaw
2002-01-23 4:27 ` Adrian von Bidder [this message]
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=1011788835.10900.8.camel@atlas \
--to=avbidder@acter.ch \
--cc=Richard.Earnshaw@arm.com \
--cc=gdb@sources.redhat.com \
/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