This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 3/3] GDB/MI: Add new "--language LANG" command option.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 14 Nov 2013 14:55:36 +0400
- Subject: Re: [RFC 3/3] GDB/MI: Add new "--language LANG" command option.
- Authentication-results: sourceware.org; auth=none
- References: <1384151855-12926-1-git-send-email-brobecker at adacore dot com> <1384151855-12926-3-git-send-email-brobecker at adacore dot com> <5283D47A dot 4060900 at redhat dot com>
> > This patch follows the same steps for the language, adding a similar
> > new command option: --language LANG. Example of use:
>
> Makes sense to me. I skimmed the patch and it looked fine.
>
> >
> > -data-evaluate-expression --language c "sizeof (void*)"
> > ^done,value="4"
> >
> > gdb/ChangeLog:
> >
> > * mi/mi-parse.h (struct mi_parse) [language]: New field.
>
> [] is used for conditionally compiled code (#if FOO). For specifying
> context, use <>.
>
> > * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
> > PARSE->LANGUAGE during command execution, if set.
> > * mi/mi-parse.c: Add "language.h" #include.
> > (mi_parse): Add parsing of "--language" command option.
Thanks! I made the correction you pointed out, and pushed the commit.
--
Joel