From: Joern Rennecke <joernr@arc.com>
To: gdb@sourceware.org
Subject: Re: How do I replace DEPRECATED_TM_FILE?
Date: Thu, 21 Jun 2007 17:33:00 -0000 [thread overview]
Message-ID: <20070621173342.GE8169@elsdt-razorfish.arc.com> (raw)
In-Reply-To: <20070621162152.GA18158@caradoc.them.org>
> Why are the register numbers different (and which register numbers)?
It's because of the different dwarf mapping.
These are the registers that are different in linux that for the plain
embedded target:
enum arc700_linux_regnums
{
/* Regnums 0..26 are R0..R26 */
ARC_BTA_REGNUM = 27,
ARC_LP_START_REGNUM = 28,
ARC_LP_END_REGNUM = 29,
ARC_LP_COUNT_REGNUM = 30,
ARC_STATUS32_REGNUM = 31,
ARC_BLINK_REGNUM = 32,
ARC_FP_REGNUM = 33,
ARC_SP_REGNUM = 34,
ARC_EFA_REGNUM = 35,
ARC_RET_REGNUM = 36,
ARC_ORIG_R8_REGNUM = 37,
ARC_STOP_PC_REGNUM = 38
};
#define ARC_NR_REGS 39
/* Pseudo-regs. */
#define ARC_ILINK1_REGNUM (NUM_REGS)
#define ARC_ILINK2_REGNUM (NUM_REGS+1)
#define ARC_ERET_REGNUM (NUM_REGS+2)
#define ARC_STATUS32_L1_REGNUM (NUM_REGS+3)
#define ARC_STATUS32_L2_REGNUM (NUM_REGS+4)
#define ARC_ERSTATUS_REGNUM (NUM_REGS+5)
except for ARC_RET_REGNUM and ARC_ORIG_R8_REGNUM, these registers
exist also for the embedded target, but with different numbers;
the embedded target allos access to numerous extra auxilary registers.
> That determines the answer to your question. If it's the dwarf2
> mapping, for instance, you'd put overrides in an OS/ABI sniffer in the
> Linux tdep file.
>
> I've done a lot of work lately to isolate GDB's internal register
> numbering from various external numberings. You can probably use the
> same internal registers in most places now.
Another difference is the osabi setting. arc_gdbarch_init also calls
different functions for the different subtargtes to set a number of other
settings.
next prev parent reply other threads:[~2007-06-21 17:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 16:13 Joern Rennecke
2007-06-21 16:21 ` Daniel Jacobowitz
2007-06-21 17:33 ` Joern Rennecke [this message]
2007-06-21 17:44 ` Daniel Jacobowitz
2007-07-13 17:32 ` Joern Rennecke
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=20070621173342.GE8169@elsdt-razorfish.arc.com \
--to=joernr@arc.com \
--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