This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Have remote.c handle 0 .. NUM_REGS+NUM_PSEUDO_REGS, almost
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 20 Dec 2001 17:37:06 +0000
- Subject: Re: [patch] Have remote.c handle 0 .. NUM_REGS+NUM_PSEUDO_REGS, almost
- References: <3C0EBF59.4030201@cygnus.com>
> Hello,
>
> The attached modifies remote.c so that it can, almost, handle registers
> that are not in the g-packet. I say ``almost'' since it is also going
> to need a follow on change - p-packet support (Fernando proposed
> something a long time ago, I'll need to review that).
>
> Andrew
>
>
>
> 2001-12-04 Andrew Cagney <ac131313@redhat.com>
>
> * remote.c (struct packet_reg): Add field in_g_packet.
> (struct remote_state): Rename field g_packet to regs;
> (free_remote_state): Update.
> (init_remote_state): Add pseudo-registers to table. Initialize
> in_g_packet. Drop sentinal from table.
> (packet_reg_from_regnum, packet_reg_from_pnum): Update.
> (remote_fetch_registers): Handle registers not in the g-packet.
> (remote_store_registers): Ditto.
>
>
Just FYI, I finally managed to test it - against a remote SID. I've
checked it in.
Andrew