[RFA] remove ALPHA_FP_REGNUM

Andrew Cagney ac131313@redhat.com
Sun Jun 1 19:08:00 GMT 2003


> Even worse than other ports, this was some bogus non-architectural
> register that sort of corresponds to the dwarf2 CFA concept, but
> hasn't actually been set to anything useful in who knows how long.
> 
> So I've removed it entirely.  Ok?

Almost.

> 	* alpha-tdep.h (ALPHA_NUM_REGS): Decrement.
> 	(ALPHA_FP_REGNUM): Remove.
> 	(ALPHA_UNIQUE_REGNUM): Decrement.
> 	* alpha-tdep.c (alpha_register_name): Remove vfp entry.
> 	(alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
> 	(alpha_cannot_store_register): Likewise.
> 	* alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
> 	* alpha-nat.c (supply_gregset): Likewise.
> 	* alphanbsd-tdep.c (fetch_core_registers): Likewise.

> Index: alpha-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
> retrieving revision 1.91
> diff -c -p -d -u -r1.91 alpha-tdep.c
> --- alpha-tdep.c	1 Jun 2003 18:44:13 -0000	1.91
> +++ alpha-tdep.c	1 Jun 2003 18:45:24 -0000
> @@ -57,7 +57,7 @@ alpha_register_name (int regno)
>      "f8",   "f9",   "f10",  "f11",  "f12",  "f13",  "f14",  "f15",
>      "f16",  "f17",  "f18",  "f19",  "f20",  "f21",  "f22",  "f23",
>      "f24",  "f25",  "f26",  "f27",  "f28",  "f29",  "f30",  "fpcr",
> -    "pc",   "vfp",  "unique",
> +    "pc",   "unique"
>    };

"vfp" should be replaced with "" leaving a hole in the register space. 
Otherwize the layout of the remote protocol buffer gets changed and 
doing that breaks compatibility with existing remote alpha targets (yes, 
this shouldn't happen).

Otherwize ok.

Andrew




More information about the Gdb-patches mailing list