This is the mail archive of the insight@sourceware.org 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: Insight 6.8


Keith Seitz <keiths@redhat.com> wrote:
>
> > "list main" shows the correct source code. I can also select any
> > source file in the source window and I get the full source. It looks
> > like it only doesn't display the source once at startup. Weird!
> >
>
> That is very confusing. So let me see if I understand what's happening...
> You start up insight, load an executable file, and insight cannot show the
> entry point -- the source window is blank. When you attach to a target (and
> download?), the source is then displayed properly in the source window.

I don't get a blank source window but a window with disassembly from
main(). This main() function is in the file App.cpp. If I manually
select the same file from the drop down list in the source window I
suddenly get the C++ source. So only the very first time I get
disassembly, the next time the source file is loaded I get source
code.

> It sounds like there is a problem finding the entry point (which is what
> insight attempts to show before there is a register set). When you start up
> (and the source window is blank), open a console window and enter the
> command "tk gdbtk_locate_main". What is the result?

(gdb) tk gdbtk_locate_main
../MasterX86/App.cpp main ../MasterX86/App.cpp 33 0x041004f4 0x00000000 {}

So that's not the problem...


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