[patch/rfc] Re-implement ``standard registers''
Andrew Cagney
ac131313@cygnus.com
Mon Apr 8 20:13:00 GMT 2002
> Hello,
>
> This follows up a WIP patch I sent out a few months ago. It re-implements the ``Standard Registers''. For background, see:
>
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=251
> http://sources.redhat.com/gdb/current/onlinedocs/gdb_9.html#SEC60
>
> In a follow-on patch I'll be removing the existing std-reg code (parse.c) and that nasty piece of work that sometimes maps $fp <-> frame->base.
>
> With the two patches committed, GDB should match its documentation.
>
> After that, the $frame.base register can be disabled (or what ever it is called).
>
> enjoy,
> Andrew
I've checked this in. Two architectures come to mind for testing this -
Arm and MIPS.
Andrew
> 2002-04-06 Andrew Cagney <ac131313@redhat.com>
>
> * findvar.c: Include "builtin-regs.h".
> (value_of_register): Call value_of_builtin_reg when applicable.
> * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
> (target_map_name_to_register): Call
> builtin_reg_map_name_to_regnum.
> * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
> (COMMON_OBS): Add builtin-regs.o and std-regs.o.
> (builtin_regs_h): Define.
> (builtin-regs.o): New target.
> (findvar.o): Add $(builtin_regs_h).
> * builtin-regs.c, builtin-regs.h: New files.
> * std-regs.c: New file.
> Partial fix for PR gdb/251.
>
More information about the Gdb-patches
mailing list