This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: debuggable gcc


raja.saleru@iap-online.com wrote:

> tried to debug the same
> $ ddd newARM-gcc
> 
> The ddd does not contails all the source files of the compiler, but it has
> only few c and h files.
> 
> Please help us how to proceed further to debug the gcc.

Oh come on, it's at the top of the page:

"A lot of people frequently have questions about debugging GCC. In
particular, how to debug the compiler itself, instead of the driver.

Here is a quick rundown:

Assuming you've produced preprocessed source (see the bug reporting
directions for how to do this), and have a debuggable compiler built
somewhere, you can simply do

gdb --args <location of cc1, cc1plus, or whatever compiler for the
   language the preprocessed source file is in> <flags passed to
   compiler>

This will enable you to debug the compiler itself, instead of the
driver."

Andrew.


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