public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Mike Smith" <msmith@trinityconvergence.com>
To: "'Keith Seitz'" <keiths@redhat.com>
Cc: <insight@sources.redhat.com>
Subject: RE: Problems with remote debugging
Date: Tue, 16 Sep 2003 15:06:00 -0000	[thread overview]
Message-ID: <005001c37c64$55e1a190$4801a8c0@Arrows> (raw)
In-Reply-To: <1063720002.1589.3.camel@lindt.uglyboxes.com>

> 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 "



  reply	other threads:[~2003-09-16 15:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16  9:10 Mike Smith
2003-09-16 13:44 ` Keith Seitz
2003-09-16 15:06   ` Mike Smith [this message]
2003-09-16 20:05 Rod Boyce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005001c37c64$55e1a190$4801a8c0@Arrows' \
    --to=msmith@trinityconvergence.com \
    --cc=insight@sources.redhat.com \
    --cc=keiths@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).