This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] [patch] Fix another stale frame_info * (PR 11914, like PR 13866)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 16 Jul 2012 21:16:04 +0200
- Subject: [commit] [patch] Fix another stale frame_info * (PR 11914, like PR 13866)
- References: <20120714204900.GA2369@host2.jankratochvil.net>
On Sat, 14 Jul 2012 22:49:00 +0200, Jan Kratochvil wrote:
> gdb/
> 2012-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> PR 11914
> * f-valprint.c (info_common_command): New variable frame_id.
> Reinitialize FI form FRAME_ID after each print_variable_and_value.
> * printcmd.c (print_variable_and_value): Extend function comment.
> Add comment for invalidated FRAME.
> * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
> FI form FRAME_ID after each print_frame_local_vars.
> (struct print_variable_and_value_data): Change frame to frame_id.
> (do_print_variable_and_value): New variable frame, initialize it from
> p->frame_id. Add comment for invalidated FRAME.
> (print_frame_local_vars, print_frame_arg_vars): New function comment.
> Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
> for invalidated FRAME.
>
> gdb/testsuite/
> 2012-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> PR 11914
> * gdb.python/py-prettyprint.c (eval_func, eval_sub): New.
> (main): Call eval_sub.
> * gdb.python/py-prettyprint.exp:
> (python execfile ('py-prettyprint.py')): Move it earlier.
> New breakpoint for eval-break.
> (continue to breakpoint: eval-break, info locals): New test.
> (python execfile ('py-prettyprint.py')): Move it from here.
> * gdb.python/py-prettyprint.py (class pp_eval_type): New.
> (register_pretty_printers): Register pp_eval_type.
Checked in for 7.5, sorry it has not been left for more reading but I am
pretty sure with the patch correctness:
http://sourceware.org/ml/gdb-cvs/2012-07/msg00109.html
Thanks,
Jan