[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:

> Otto Wyss 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>>
> > 
> 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 do

        g++ -c `$(WXCONFIG) --cxxflags` `gtk-config --cflags` -o $@ $<

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

Reply to: