[PATCH 1/2] gdb: get_frame_language now takes a frame parameter.

Pedro Alves palves@redhat.com
Fri Aug 7 09:45:00 GMT 2015


On 08/07/2015 09:55 AM, Andrew Burgess wrote:

> New version below.

OK, with ...

>  
>  	* infcmd.c (signal_command): Call do_cleanups for args_chain.
> diff --git a/gdb/language.c b/gdb/language.c
> index a8b432e..75d4497 100644
> --- a/gdb/language.c
> +++ b/gdb/language.c
> @@ -118,7 +118,8 @@ static void
>  show_language_command (struct ui_file *file, int from_tty,
>  		       struct cmd_list_element *c, const char *value)
>  {
> -  enum language flang;		/* The language of the current frame.  */
> +  struct frame_info *frame;

This new variable is only used in the has_stack_frames block, so move the
declaration there please.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list