From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: gdb@sourceware.org
Subject: How can I figure out the register numbers for a remote target stub?
Date: Wed, 29 Nov 2017 10:39:00 -0000 [thread overview]
Message-ID: <f1b75b77-2a0d-89af-d39d-45c6ffa74573@embedded-brains.de> (raw)
Hello,
I would like to extend the RTEMS GDB remote target stub to support
PowerPC (e500, e6500). In the ARM support we have some magic register
numbers:
https://git.rtems.org/rtems/tree/cpukit/libdebugger/rtems-debugger-arm.c#n132
|/* * Debugger registers layout. */ #define REG_R0 0 #define REG_R1 1
#define REG_R2 2 #define REG_R3 3 #define REG_R4 4 #define REG_R5 5
#define REG_R6 6 #define REG_R7 7 #define REG_R8 8 #define REG_R9 9
#define REG_R10 10 #define REG_R11 11 #define REG_R12 12 #define REG_SP
13 #define REG_LR 14 #define REG_PC 15 #define REG_CPSR 25 How can I
find the corresponding numbers for the PowerPC? There is a comment in
(gdb/ppc-tdep.h): /* Register number constants. These are GDB internal
register numbers; they are not used for the simulator or remote targets.
Extra SPRs (those other than MQ, CTR, LR, XER, SPEFSCR) are given
numbers above PPC_NUM_REGS. So are segment registers and other
target-defined registers. */ enum { PPC_R0_REGNUM = 0, PPC_F0_REGNUM =
32, I cannot find the numbers which are used for remote targets. Are
they defined by the XML files in gdb/features/rs6000? |
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
next reply other threads:[~2017-11-29 10:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 10:39 Sebastian Huber [this message]
2017-11-29 10:53 ` Sebastian Huber
2017-12-02 21:49 ` Simon Marchi
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=f1b75b77-2a0d-89af-d39d-45c6ffa74573@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=gdb@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