This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb does not find any source files in a very simple testcase.


> Then i compile it using:
> 
> g++ main.cc (using gcc with a main.c does not work either)

Is this the complete command you used? You should add "-g" to tell
the compiler to include debugging information. Without that, the
debugger operations are limited.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]