Line 37... |
Line 37... |
|
|
#ifdef HAVE_SYS_REG_H
|
#ifdef HAVE_SYS_REG_H
|
#include <sys/reg.h>
|
#include <sys/reg.h>
|
#endif
|
#endif
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/*!Initialize the register data.
|
|
|
|
Should be automagically created from a data file in gdb/regformats, but for
|
|
now we do it manually. */
|
|
/* -------------------------------------------------------------------------- */
|
|
static void
|
|
init_registers_or32 ()
|
|
{
|
|
struct reg regs_or32[] = {
|
struct reg regs_or32[] = {
|
{ "npc", PC * 8, 32 },
|
{ "npc", PC * 8, 32 },
|
{ "sr", SR * 8, 32 },
|
{ "sr", SR * 8, 32 },
|
{ "sp", SP * 8, 32 },
|
{ "sp", SP * 8, 32 },
|
{ "fp", GPR2 * 8, 32 },
|
{ "fp", GPR2 * 8, 32 },
|
Line 82... |
Line 72... |
{ "r28", GPR28 * 8, 32 },
|
{ "r28", GPR28 * 8, 32 },
|
{ "r29", GPR29 * 8, 32 },
|
{ "r29", GPR29 * 8, 32 },
|
{ "r30", GPR30 * 8, 32 },
|
{ "r30", GPR30 * 8, 32 },
|
{ "r31", GPR31 * 8, 32 },
|
{ "r31", GPR31 * 8, 32 },
|
};
|
};
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/*!Initialize the register data.
|
|
|
|
Should be automagically created from a data file in gdb/regformats, but for
|
|
now we do it manually. */
|
|
/* -------------------------------------------------------------------------- */
|
|
static void
|
|
init_registers_or32 ()
|
|
{
|
|
|
static const char *expedite_regs_or32[] = { "sp", "lr", "npc", 0 };
|
static const char *expedite_regs_or32[] = { "sp", "lr", "npc", 0 };
|
|
|
set_register_cache (regs_or32, sizeof (regs_or32) / sizeof (regs_or32[0]));
|
set_register_cache (regs_or32, sizeof (regs_or32) / sizeof (regs_or32[0]));
|
gdbserver_expedite_regs = expedite_regs_or32;
|
gdbserver_expedite_regs = expedite_regs_or32;
|
gdbserver_xmltarget = NULL;
|
gdbserver_xmltarget = NULL;
|