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: Problems with remote debugging


> What is "my_prog"? Is this your debug executable? If so, it appears
that
> gdb is attempting to run it natively. What host are you on?

Yes, 'my_prog' is the executable (I just didn't bother with the entire
path and name).  My host is a PC running linux 7.3.  Insight is compiled
for host i686-pc-linux-gnu.  I agree it looks like it could be trying to
run the executable on the host.


> Can you show me a gdb session (command line) of what you're doing (the
> part that works)? Any messages in the debug window? (Open console,
type
> "tk ManagedWin::open DebugWin" to open.)

See below.


> Are you using a stub -- err, debug agent -- or gdbserver. I wasn't
aware
> that gdbserver worked on anything other than native targets. Even if
it
> did, it would almost certainly require a download.

I'm running gdbserver on the target.  This seems to work fine as I've
had success using just gdb with it, plus also with ddd.  When I get
Insight to download the program I get similar problems.


Here's the gdb session:

(ManagedWin::_open) TargetSelection -exportcancel 1 -center -transient
(ManagedWin::_create) win=targetselection args=-exportcancel 1 -center
-transient
(TargetSelection::change_target) remotetcp
(ManagedWin::find) SrcWin
(ModalDialog::post) POST ::.targetselection0.targetselection
(ModalDialog::destructor)   UNPOST ::.targetselection0.targetselection
(iwidgets::Labeledframe::destructor) In Labeledframe destructor for
::.targetselection0.targetselection.f.lab, reposition is 
(iwidgets::Labeledframe::destructor) In Labeledframe destructor for
::.targetselection0.targetselection.moreoptionsframe.frame.lf.childsite.
run_method, reposition is 
(iwidgets::Labeledframe::destructor) In Labeledframe destructor for
::.targetselection0.targetselection.moreoptionsframe.frame, reposition
is 
(SrcWin::_set_state) gdb_running l=0 d=0 r=0
(global::gdbtk_attach_remote) Attaching....
(ManagedWin::find) SrcWin
(SrcBar::enable_ui) 2 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(GDBToolBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(global::set_target) CONNECTING TO TARGET: remote 192.168.0.191:10000 
(SrcWin::_set_state) gdb_loaded l=0 d=0 r=0
(global::gdbtk_locate_main) Searching MAIN___ MAIN__ main cyg_user_start
cyg_start
(global::run_executable) Setting new BP at main
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin.container.pane0.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin.container.pane0.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "breakpoint"
to "::.srcwin0.srcwin"
(global::run_executable) Continuing target...
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 0 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBToolBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop running
(SrcBar::_set_runstop) running
(global::gdbtk_signal) caught signal SIGSEGV Segmentation fault
(ManagedWin::find) SrcWin
(ManagedWin::_open) WarningDlg -center -transient -message {{Program
received signal SIGSEGV, Segmentation fault}} -ignorable signal
(ManagedWin::_create) win=warningdlg args=-center -transient -message
{{Program received signal SIGSEGV, Segmentation fault}} -ignorable
signal
(WarningDlg::constructor) -message {Program received signal SIGSEGV,
Segmentation fault} -ignorable signal
(ManagedWin::find) SrcWin
(ModalDialog::post) POST ::.warningdlg0.warningdlg
(ModalDialog::destructor)   UNPOST ::.warningdlg0.warningdlg
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin"
(SrcWin::choose_and_update) chose window ::.srcwin0.srcwin
(SrcWin::_update) loc={} {} {} 0 0x1 0x1 {}
(SrcWin::location) running=0 tag= linespec={} {} {} 0 0x1 0x1 {}
(SrcWin::_set_state) gdb_running l=0 d=0 r=1
(SrcTextWin::FillSource) no source file; switch to assembly
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 0 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBToolBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop running
(SrcBar::_set_runstop) running
(SrcTextWin::mode_set) ASSEMBLY
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 1 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBToolBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop normal
(SrcBar::_set_runstop) normal
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 1 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBToolBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop normal
(SrcBar::_set_runstop) normal
(global::run_executable) RUNNING
(SrcWin::_set_state) gdb_running l=0 d=0 r=1
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "update" to
"::.srcwin0.srcwin"
(SrcWin::choose_and_update) chose window ::.srcwin0.srcwin
(SrcWin::_update) loc={} {} {} 0 0x1 0x1 {}
(SrcWin::location) running=1 tag= linespec={} {} {} 0 0x1 0x1 {}
(SrcWin::_set_state) gdb_running l=0 d=0 r=1
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 1 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBToolBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "




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