This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Revise REGISTER_SIM_REGNO()
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: Richard dot Earnshaw at arm dot com, Andrew Cagney <ac131313 at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Date: Sat, 18 May 2002 11:55:01 +0100
- Subject: Re: [patch/rfc] Revise REGISTER_SIM_REGNO()
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> > I need a way the target vector to let REGISTER_NAME() know that the
> > register is "unavailable this session", so that it can return an empty
> > string for the register; so that gdb won't think it exists at all.
>
>
> I see. This is something that depends on both the arch and the target.
Yep, the arch says what registers a processor has, the target says which
of those it can supply.
Of course, you will only get a useful debugging session if the two overlap
sufficiently.
I suspect that it will be quite common for the arch to describe registers
that are only available when the processor is running in a privileged
mode; clearly you don't need those to debug a user-level program, but they
can be very helpful when trying to debug an OS. Certainly this is the way
I'd like to describe the views of ARM processors.
R.