[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: GDB doesn't list anything when debuging

Harshwardhan Nagaonkar <harsh@ee.byu.edu> wrote:

> > I'm using Debian/Sarge. When I debug an application and it stops at a
> > breakpoint, I could just use "list" or "list 30" but now it just shows
> > 
> > 1     in <<C++namespaces>>
> > 
> > What do I have to do so GDB starts showing the source again.
> > 
> This will happen if the program you are debugging is not compiled with
> debugging symbols. Use a "-g" option in front of your g++/gcc compiler
> command to enable debugging symbols.
I lately regouped my Makefile so the "-g" got lost. Thanks a lot.

O. Wyss

See a huge pile of work at "http://wyodesktop.sourceforge.net/";

Reply to: