From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2227 invoked by alias); 16 Sep 2003 15:06:11 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 2220 invoked from network); 16 Sep 2003 15:06:10 -0000 Received: from unknown (HELO mail.trinityconvergence.com) (69.0.243.43) by sources.redhat.com with SMTP; 16 Sep 2003 15:06:10 -0000 Received: from Arrows [194.154.183.38] by mail.trinityconvergence.com with ESMTP (SMTPD32-7.15) id A6D721F0210; Tue, 16 Sep 2003 11:05:59 -0400 From: "Mike Smith" To: "'Keith Seitz'" Cc: Subject: RE: Problems with remote debugging Date: Tue, 16 Sep 2003 15:06:00 -0000 Message-ID: <005001c37c64$55e1a190$4801a8c0@Arrows> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <1063720002.1589.3.camel@lindt.uglyboxes.com> X-SW-Source: 2003-q3/txt/msg00164.txt.bz2 > 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 "