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: Adjust insight to recent globals removal


On Friday 19 September 2008 03:13:48, Keith Seitz wrote:
> Pedro Alves wrote:
> > I have no idea how well it works, because insight seems to be broken here
> > in several ways ("run" or "attach" from the menu does nothing,
> > "console" either).  I'm no insight user, so I can't tell what's
> > going on.
>
> Hmmm. That's odd... "It works for me." Target settings problem?

Hmmm, odd indeed.  I built a native insight, so I'd expect I'd
not need to tweak target settings?

I do get a bunch of scary aliasing and wrong type
warnings when building insight (on x86_64-unknown-linux-gnu), so
I build without -Werror.

File->Target Settings... doesn't do anything here.

I just tried:
./insight ./insight

and I get a "Source Window" and a "top" window, both grey.

Issuing Run->Run I get an error message box claiming with an error, and giving
me an option to get a backtrace, and here it is:

can't set "gdb_running": {hook=namespace inscope ::SrcWin {::.srcwin0.srcwin _set_state} args="gdb_running" can't read "twin": no such variable
}
    while executing
"set gdb_running 0"
    (procedure "run_executable" line 9)
    invoked from within
"run_executable"
    (procedure "gdbtk_run" line 10)
    invoked from within
"gdbtk_run "
    ("run" arm line 1)
    invoked from within
"switch $action {
    step { gdbtk_step }
    next { gdbtk_next }
    finish { gdbtk_finish }
    continue { gdbtk_continue }
    stepi { gdbtk_stepi }..."
    (object "::.srcwin0.srcwin" method "::SrcWin::inferior" body line 33)
    invoked from within
"::.srcwin0.srcwin inferior run"
    (in namespace inscope "::SrcBar" script line 1)
    invoked from within
"namespace inscope ::SrcBar {::.srcwin0.srcwin inferior run}"
    invoked from within
".srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#run invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 47)
    invoked from within
"tk::MenuInvoke .srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#run 1
"
    (command bound to event)errorCode is NONE

Run->Attach does nothing.

File->Open... then point at the new insight binary, I get:

can't set "gdb_loaded": {hook=namespace inscope ::SrcWin {::.srcwin0.srcwin _set_state} args="gdb_loaded" can't read "twin": no such variable
}
    while executing
"set gdb_loaded 0"
    (procedure "set_exe" line 24)
    invoked from within
"set_exe"
    (procedure "_open_file" line 63)
    invoked from within
"_open_file"
    invoked from within
".srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 47)
    invoked from within
"tk::MenuInvoke .srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file 1
"
    (command bound to event)errorCode is NONE

Most other menu items do nothing.  Preferences->Global... showed a
bit red window with "looking for fonts" or similar written, but when that
went away nothing else appeared.  Choosing "Preferences->Global..." again
does nothing.

> > Just thought I'd fix what I broke.  Hope this helps.
>
> I haven't seen a commit on this, so I committed this myself this afternoon.

Oh, I didn't realize it was an approval.

> Thanks a bunch for thinking about me!

You're welcome.  ;-)

-- 
Pedro Alves


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