This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] registers beginning with '$'
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com, Paul Brook <paul at codesourcery dot com>
- Date: Tue, 8 Mar 2005 08:43:08 -0500
- Subject: Re: [patch] registers beginning with '$'
- References: <420B383D.1020406@codesourcery.com> <20050307225806.GD28725@nevyn.them.org> <422D72C9.1060206@codesourcery.com>
On Tue, Mar 08, 2005 at 09:39:21AM +0000, Nathan Sidwell wrote:
> Daniel Jacobowitz wrote:
> >On Thu, Feb 10, 2005 at 10:32:29AM +0000, Nathan Sidwell wrote:
> >
> >>Hi,
> >>I had the misfortune to port to an architecture where register names
> >>all start with a '$' and the pc reg is '$PC'. This patch fixes expression
> >>printing of registers so that such names don't result in '$$name' being
> >>printed. It fixes register name lookup so that the leading '$' need not
> >>be specified (several places strip leading '$' on the name to be looked
> >>up). It also makes the register name lookup case insensitive.
> >>
> >>I also attach testsuite patches to allow $pc or $PC as the pc name.
> >>
> >>built and tested on i686-pc-linux-gnu, and an unreleased architecture, ok?
> >
> >
> >This one I'm less sure about. If you tell GDB the register names do
> >not contain '$', what output is wrong?
>
> The output from the 'info regs' command will then not have the '$'.
Then you should provide gdbarch_print_registers_info; you can make this
look however you want on a per-target basis.
--
Daniel Jacobowitz
CodeSourcery, LLC