[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /lib/cpp not found in c-mode
From: |
Nick Roberts |
Subject: |
Re: /lib/cpp not found in c-mode |
Date: |
Fri, 6 May 2005 09:54:41 +1200 |
> > If gdb can expand macros using macro information from the executable
> > (which requires knowledge of include paths and predefined macros), why
> > can't cpp (or gcc -E) ?
> >
>
> The information you see in gdb is all from the debug info in the
> executable, so it does not require knowledge of include paths and
> predefined macros. The compilation of the executable does, but after
> that it is all in the debug info, so gdb does not care what the
> include paths where at the time of compilation.
>
> Jan D.
Sorry, yes you're right it doesn't care what the include paths where. But my
point is that it can expand all the macros while "gcc -E" can't. "gcc -E" is
typically given the source file as input but if it was also given the
executable, it presumably could be adapted so that it could expand all the
macros just like GDB can.
Would that not be a worthwhile thing to do?
Nick
- Re: /lib/cpp not found in c-mode, (continued)
- Re: /lib/cpp not found in c-mode, Josh Varner, 2005/05/04
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/03
- Re: /lib/cpp not found in c-mode, Stefan Monnier, 2005/05/03
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/04
- Re: /lib/cpp not found in c-mode, Nick Roberts, 2005/05/05
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/05
- Message not available
- Re: /lib/cpp not found in c-mode,
Nick Roberts <=
- Re: /lib/cpp not found in c-mode, Jan D., 2005/05/06
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/06
- Re: /lib/cpp not found in c-mode, Jan D., 2005/05/03
- Re: /lib/cpp not found in c-mode, Magnus Henoch, 2005/05/03
- Re: /lib/cpp not found in c-mode, Nick Roberts, 2005/05/04
- Re: /lib/cpp not found in c-mode, Stefan Monnier, 2005/05/05
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/05
- Re: /lib/cpp not found in c-mode, Stefan Monnier, 2005/05/05
- Re: /lib/cpp not found in c-mode, Nick Roberts, 2005/05/05
- Re: /lib/cpp not found in c-mode, Eli Zaretskii, 2005/05/06