On Fri, 30 Mar 2001, David Douthitt wrote:

> [EMAIL PROTECTED] wrote:
> > 
> > On Fri, 30 Mar 2001, David Douthitt wrote:
> 
> > > What gives?  Also, what's the difference between no options and -g?
> > 
> > information about line number positions in the source code
> > 
> > > After all, what gets stripped if -g isn't used?
> > 
> > relation between addresses and symbols. That is, if you are looking at a
> > memory dump of the executable, what is the name of these locations that
> > the code loads data from or jumps to?
> 
> So put another way, for debugging purposes:
> 
> gcc           Okay... gives names and symbols
> gcc -s        Useless (no symbols)
> gcc -g        Only truly useful with source code files

-g is preferred.

> Am I right?

For debugging, most of us would prefer to look at source code when using
gdb, unless you are a "Real Programmer(TM)".  Still, knowing what symbols
were near the point of execution when the program died (no option) is
better than nothing (-s), and is more compact than shipping out the source
code everywhere the binary is located.. :)

But I thought this began with a question about stripped (production)
binaries.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
Work:<[EMAIL PROTECTED]>              Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------


_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to