Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How can I figure out the register numbers for a remote target stub?
@ 2017-11-29 10:39 Sebastian Huber
  2017-11-29 10:53 ` Sebastian Huber
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Huber @ 2017-11-29 10:39 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-02 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 10:39 How can I figure out the register numbers for a remote target stub? Sebastian Huber
2017-11-29 10:53 ` Sebastian Huber
2017-12-02 21:49   ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox