* C Macro information and -g3
@ 2000-05-09 15:41 H. Nanosecond
2000-05-10 0:12 ` Martin v. Loewis
0 siblings, 1 reply; 2+ messages in thread
From: H. Nanosecond @ 2000-05-09 15:41 UTC (permalink / raw)
To: help-gcc
Hello,
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"
#include <stdio.h>
int main()
{
puts(XXX);
return 0;
}
but gcc -g3 main.c
and gcc -g2 main.c
give identical files.
Same result with -ggdb2 compared with -ggdb3
The info file says:
`-gLEVEL'
`-ggdbLEVEL'
`-gstabsLEVEL'
`-gcoffLEVEL'
`-gxcoffLEVEL'
`-gdwarfLEVEL'
`-gdwarf-2LEVEL'
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'.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C Macro information and -g3
2000-05-09 15:41 C Macro information and -g3 H. Nanosecond
@ 2000-05-10 0:12 ` Martin v. Loewis
0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-05-10 0:12 UTC (permalink / raw)
To: aldomel; +Cc: help-gcc
> I have gcc 2.8.1 and would like to know if the new version
> supports -g3. See below, thanks.
It does, as indicated in the documentation.
> Level 3 includes extra information, such as all the macro
> definitions present in the program. Some debuggers support macro
> expansion when you use `-g3'.
Not all debugging formats support this extra information. In
particular, gdb debugging (i.e. stabs) does not support that. You
could try to use -gdwarf, which does support macro recording.
Regards,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-10 0:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-09 15:41 C Macro information and -g3 H. Nanosecond
2000-05-10 0:12 ` Martin v. Loewis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).