This is the mail archive of the
mailing list for the GCC project.
C Macro information and -g3
- To: help-gcc at gnu dot org
- Subject: C Macro information and -g3
- From: "H. Nanosecond" <aldomel at ix dot netcom dot com>
- Date: Tue, 9 May 2000 18:41:19 -0400 (EDT)
I have gcc 2.8.1 and would like to know if the new version
supports -g3. See below, thanks.
I have a main.c that says
#define XXX "123"
but gcc -g3 main.c
and gcc -g2 main.c
give identical files.
Same result with -ggdb2 compared with -ggdb3
The info file says:
Request debugging information and also use LEVEL to specify how
much information. The default level is 2.
Level 1 produces minimal information, enough for making backtraces
in parts of the program that you don't plan to debug. This
includes descriptions of functions and external variables, but no
information about local variables and no line numbers.
Level 3 includes extra information, such as all the macro
definitions present in the program. Some debuggers support macro
expansion when you use `-g3'.