This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdbarch.sh -- new field
- To: David Taylor <taylor at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- Subject: Re: gdbarch.sh -- new field
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Fri, 11 Aug 2000 11:59:37 -0700
- References: <200008111840.OAA15987@texas.cygnus.com>
On Aug 11, 2:40pm, David Taylor wrote:
> I propose the addition of a new function field to gdbarch / new macro:
>
> addr_next_inst / ADDR_NEXT_INST (pc)
>
> which given the address of an instruction (pc), returns the address of
> the next instruction (pc + 4 in the above).
I think it's a good idea, but I'd be more inclined to name it
NEXT_INSTRUCTION_ADDRESS instead. (But I sometimes tend to be
more verbose about these things than necessary.)