This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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: 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



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