[patch] registers beginning with '$'
Nathan Sidwell
nathan@codesourcery.com
Thu Feb 10 15:27:00 GMT 2005
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?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regnames.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050210/48bf0c61/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pctest.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050210/48bf0c61/attachment-0001.ksh>
More information about the Gdb-patches
mailing list