No header sources in GDB

Remko Troncon spike@kotnet.org
Thu Feb 5 23:03:00 GMT 2004


Hi,

When looking for a solution for a GDB problem i had where the header
files were not included in the sources list, i stumbled upon the
following post from the archive:
    http://gcc.gnu.org/ml/gcc-help/2003-05/msg00189.html
However, nobody ever responded to that problem, so i wonder what's the
status of that report ?

To quickly recap: When compiling a project GCC 3.3 (or 3.2), doing a
'info sources' lists only a few files (the .c files), compared to when
i compile the same project with GCC 3.0 (where all include files are
included in the list, which is a lot more). As a consequence, i cannot
put breakpoints in header files (not even if i explicitly add a path to
gdb where to find headers).

The original poster of the problem is running RedHat, whereas i use the
GCC distributed with Debian, so it's pbb not a distribution-specific
problem.

Can someone help me please ?

thanks,
Remko



More information about the Gcc-help mailing list