This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] gdb: get_frame_language now takes a frame parameter.
- From: Pedro Alves <palves at redhat dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 07 Aug 2015 10:45:06 +0100
- Subject: Re: [PATCH 1/2] gdb: get_frame_language now takes a frame parameter.
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1438699523 dot git dot andrew dot burgess at embecosm dot com> <27becf0497c6090b676523ee45069d3e5e6afa17 dot 1438699523 dot git dot andrew dot burgess at embecosm dot com> <55C0E222 dot 1030006 at redhat dot com> <20150807085557 dot GA30204 at embecosm dot com>
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