This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: How to see source code?
- From: Keith Seitz <keiths at redhat dot com>
- To: Fernando Martins <fmartins at hetnet dot nl>
- Cc: <insight at sources dot redhat dot com>, <root at sourceware dot cygnus dot com>
- Date: Mon, 8 Jul 2002 16:24:15 -0700 (PDT)
- Subject: Re: How to see source code?
On Tue, 9 Jul 2002, Fernando Martins wrote:
> a newbie question: I compiled a package (configure/make/make install) and I
> was trying to debug it. However when I run gdb (gdb gda-test.exe) I get a
> window with Assembly code and I don't get source code when I select SOURCE.
> I want to step over the C source code, not assembly.
Make sure that your executable was built with debugging info ("-g" option
to gcc).
> Also, if I select menu File; Source I get an error (invalid command or
> so).
File->Source "sources" a GDB command script file. To view source files,
use the file combobox on the source window (or the function browser).
Keith