This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: also return exact PC used to choose block
- From: Jim Blandy <jimb at redhat dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 04 Apr 2002 16:14:03 -0500
- Subject: Re: RFA: also return exact PC used to choose block
- References: <20020329235440.C9E685EA11@zwingli.cygnus.com><3CABA815.8030603@cygnus.com>
Andrew Cagney <ac131313@cygnus.com> writes:
> > /* Return the innermost lexical block in execution
> > ! in a specified stack frame. The frame address is assumed valid.
> > + If PC_IN_BLOCK is non-zero, set *PC_IN_BLOCK to the exact PC
> > we
> > + used to choose the block. */
> > + struct block *
> > ! get_frame_block (struct frame_info *frame, CORE_ADDR *pc_in_block)
> > {
> > CORE_ADDR pc;
>
> I think ``exact ADDRESS'' / address_in_block is more correct - it
> isn't a valid PC on most architectures. Perhaphs also mention that
> frame->pc isn't much use.
Okay, I'll change that. Thanks!