This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb does not find any source files in a very simple testcase.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yasuo Iwakura <deus at thewired dot net>
- Cc: gdb at sourceware dot org
- Date: Fri, 10 Feb 2006 13:44:53 -0800
- Subject: Re: gdb does not find any source files in a very simple testcase.
- References: <1139607618.14928.25.camel@lainsglove>
> 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