[gnu.g++.bug] Difference between -g and -g0

schmidt%london.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (11/27/88)

Hi,

  Could someone please explain to me the difference between -g and -g0
for g++ 1.27?  For some reason, compiling programs with -g results in
executables that kill the debugger, whereas -g0 works just fine with
the debugger ( gdb+, 2.8 ).  The type of problem is manifested as follows:

----------------------------------------

Script started on Sat Nov 26 11:26:36 1988
[/cd/cd/schmidt/test ] [/cd/cd/schmidt/test]
[7m[11:26am][m [london] [1]..: gdb+ CIF
GDB 2.8.0 (GNU C++ 1.27.0 compatible), Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /cd/cd/schmidt/test/CIF...Invalid symbol
data: invalid character \075 at symbol pos 2584.
Type "help" for a list of commands.
(gdb+) quit

----------------------------------------

thanks,

Doug