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: Andrew Cagney <ac131313 at cygnus dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 03 Apr 2002 20:10:45 -0500
- Subject: Re: RFA: also return exact PC used to choose block
- References: <20020329235440.C9E685EA11@zwingli.cygnus.com>
> /* 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.
enjoy,
Andrew