[GCC-XML] How to debug gccxml?

Brad King brad.king at kitware.com
Sun Jan 15 11:02:15 EST 2006


Daniel J. Lauk wrote:
> 1) How do I make a debug build of gccxml? (couldn't find appropriate CMake 
> docs)

Set CMAKE_BUILD_TYPE to "Debug" in the configuration dialog.

> 2) How would I run the gdb (or any GUI frontend) so that it breaks inside of 
> xml.c:do_xml_output?

First run the main program "gccxml" as normal but add the "--debug" 
option.  It will print the full command line for gccxml_cc1plus.  Then 
you can use that command line inside gdb.

-Brad



More information about the gccxml mailing list