[RFC] Unexpected automatic language switch - get_frame_language()

Andrew Cagney cagney@gnu.org
Wed Dec 10 16:14:00 GMT 2003

> Looked at frame_addr_in_block?
> That's (almost) the function I was trying to remember about. Thanks a
> lot!  The following patch addresses the problem in a way that I hope
> will satisfy MichaelS' concerns.
> 2003-12-09  J. Brobecker  <brobecker@gnat.com>
>         * frame.c (select_frame): Get the current frame PC using
>         get_frame_address_in_block() instead of get_frame_pc().
>         * stack.c (get_frame_language): Likewise.
> Tested on x86-linux, with no regression.
> OK to apply?

Yes, but just add a comment at each point reminding us why the PC is 
wrong before committing.


More information about the Gdb-patches mailing list