[RFC 3/3] GDB/MI: Add new "--language LANG" command option.
Joel Brobecker
brobecker@adacore.com
Thu Nov 14 11:17:00 GMT 2013
> > 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
More information about the Gdb-patches
mailing list