This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdbarch.sh -- new field


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]