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: [RFC 3/3] GDB/MI: Add new "--language LANG" command option.


> > 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


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