From: Philip Blundell <pb@nexus.co.uk>
To: Ben Harris <bjh21@netbsd.org>
Cc: gdb@sources.redhat.com
Subject: Re: PC and PSR on 26-bit ARM
Date: Tue, 23 Oct 2001 01:35:00 -0000 [thread overview]
Message-ID: <E15vwzH-0005dJ-00@mill.nexus.co.uk> (raw)
In-Reply-To: <Pine.SOL.4.33.0110230101130.17545-100000@virgo.cus.cam.ac.uk>
>I'm trying to make GDB work happily on NetBSD/arm26, which runs on ancient
>ARM processors, where the PC and PSR share R15. As far as I can tell, the
>code in arm-linux-nat.c, when fetching registers subprocess on a 26-bit
>CPU, puts the PC in registers[PC_REGNUM], and the PC+PSR in
>registers[PS_REGNUM]. When putting registers back into the process, it
>sets R15 (PC+PSR) from registers[PC_REGNUM] and ignores
>registers[PS_REGNUM].
I don't think the 26-bit support for arm-linux has ever really been tested, so
you probably don't want to put too much faith in it. What you've described
doesn't really sound like the right thing to me; the fetching side is OK, but
when it writes registers back into the process I think it needs to combine
registers[PC_REGNUM] and registers[PS_REGNUM] in order to get the correct R15
value.
p.
next prev parent reply other threads:[~2001-10-23 1:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-22 17:27 Ben Harris
2001-10-23 1:35 ` Philip Blundell [this message]
2001-10-25 21:48 ` Andrew Cagney
2001-10-29 14:44 ` Ben Harris
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=E15vwzH-0005dJ-00@mill.nexus.co.uk \
--to=pb@nexus.co.uk \
--cc=bjh21@netbsd.org \
--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