This is the mail archive of the gdb-patches@sourceware.org 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: [patch] Fix another stale frame_info *


On Fri, 24 Feb 2012 16:52:01 +0100, Pedro Alves wrote:
> --- a/gdb/breakpoint.c
> +++ b/gdb/breakpoint.c
> @@ -9853,6 +9853,9 @@ until_break_command (char *arg, int from_tty, int anywhere)
>    struct symtabs_and_lines sals;
>    struct symtab_and_line sal;
>    struct frame_info *frame = get_selected_frame (NULL);
> +  struct gdbarch *gdbarch = get_frame_arch (frame);
> +  struct frame_id stack_frame_id = get_stack_frame_id (frame);
> +  struct frame_id caller_frame_id = frame_unwind_caller_id (frame);

OK with it.

'gdbarch' should be called 'frame_gdbarch' as this function deals both with
FRAME and previous-of-FRAME (caller_frame_id).


Thanks,
Jan


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