This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc/rfa] multi-arch *_REG_TO_REGNUM()
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: [rfc/rfa] multi-arch *_REG_TO_REGNUM()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 04 Dec 2000 14:59:08 +1100
- References: <3A25F04A.DD2D108@cygnus.com>
FYI, I've checked this part in. MichaelS needs it.
> Thu Nov 30 16:33:36 2000 Andrew Cagney <cagney@b1.cygnus.com>
>
> * gdbarch.sh (STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
> DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM):
> Add.
> * gdbarch.h, gdbarch.c: Regenerate.
> * arch-utils.c (no_op_reg_to_regnum): New function.
> * arch-utils.h (no_op_reg_to_regnum): Declare.
>
> * dwarfread.c (DWARF_REG_TO_REGNUM), coffread.c
> (SDB_REG_TO_REGNUM), stabsread.h (STAB_REG_TO_REGNUM),
> mdebugread.c (ECOFF_REG_TO_REGNUM): Delete macro.
>
> * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM, STAB_REG_TO_REGNUM):
> Delete. Moved to mips-tdep.c.
> * mips-tdep.c (mips_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
> New functions.
> (mips_gdbarch_init): Add ``mips_ecoff_reg_to_regnum'' and
> ``mips_stab_reg_to_regnum'' to multi-arch vector.
>
I'll follow up the attatched later.
Andrew
Index: doc/ChangeLog
Thu Nov 30 16:57:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
* gdbint.texinfo (ECOFF_REG_TO_REGNUM, DWARF_REG_TO_REGNUM,
DWARF2_REG_TO_REGNUM): Document.
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.16
diff -p -r1.16 gdbint.texinfo
*** gdbint.texinfo 2000/11/24 11:02:59 1.16
--- gdbint.texinfo 2000/11/30 06:10:08
*************** library in which breakpoints cannot be s
*** 1640,1645 ****
--- 1640,1657 ----
@item DO_REGISTERS_INFO
If defined, use this to print the value of a register or all registers.
+ @item DWARF_REG_TO_REGNUM
+ Convert DWARF register number into @value{GDBN} regnum. If not defined,
+ no conversion will be performed.
+
+ @item DWARF2_REG_TO_REGNUM
+ Convert DWARF2 register number into @value{GDBN} regnum. If not
+ defined, no conversion will be performed.
+
+ @item ECOFF_REG_TO_REGNUM
+ Convert ECOFF register number into @value{GDBN} regnum. If not defined,
+ no conversion will be performed.
+
@item END_OF_TEXT_DEFAULT
This is an expression that should designate the end of the text section
(? FIXME ?)