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]
Other format: [Raw text]

Re: RFA: also return exact PC used to choose block


>  /* 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



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