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

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

Otto Wyss wrote:
Sorry I've no idea to ask this anywhere else, if there is a better
places, just say so.

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.

O. Wyss

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.


Harshwardhan Nagaonkar
Electrical Engineering Sysop
Brigham Young University - 84602

Reply to: