Re: debuggable gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



raja.saleru@xxxxxxxxxxxxxx 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux