This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdbarch.sh -- new field
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: gdbarch.sh -- new field
- From: Michael Snyder <msnyder at redhat dot com>
- Date: Fri, 11 Aug 2000 12:03:58 -0700
- CC: David Taylor <taylor at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat, Inc.
- References: <200008111840.OAA15987@texas.cygnus.com> <1000811185937.ZM425@ocotillo.lan>
Kevin Buettner wrote:
>
> 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.)
Maybe, but I like your (Kevin's) name better.