public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* debugging threads on remote target with insight on cygwin
@ 2005-07-27 18:01 Rick Bauer
  2005-08-01 18:49 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Bauer @ 2005-07-27 18:01 UTC (permalink / raw)
  To: insight

I've built insight 6.3 on cygwin configured for debugging a remote embedded linux target ( based on RedHat 9.0 ): the target is i686-pc-linux-gnu.  I also built the corresponding gdbserver to run on that target.  I then use that gdbserver on the target to launch our embedded application.  The embedded application is built using cygwin with a cross gcc (i686-pc-linux-gnu ) that compiles and links against a copy of the RedHat 9.0 include directories and runtime libraries .  The embedded application uses the pthreads library for threading.
 
Insight loads the program file and its symbols and connects to the target gdbserver successfully.  I can control the execution of the remote application successfully, set breakpoints, single step the application, and view program variables. However "info threads" only shows one thread running on the target whereas multiple threads are actually running. If I set a breakpoint in a routine that is subsequently invoked from a newly created thread, gdbserver quits with a message "killing inferior", and insight displays a message indicating "Program terminated with signal SIGTRAP, Trace/breakpoint trap".  It appears that either gdbserver or insight is unable to handle a breakpoint in a routine that is invoked when a new thread begins to run in the embedded application. When I built the gdbserver, the messages output from the build seemed to indicate that it had included support for threads ( thread_db ).  I'm not as sure about insight.  The same problem occurs if I try debugging the application remotely with the gdb command line rather than with insight.  I also have the same problem with insight 6.1.
 
Does insight on cygwin support threads on the remote target if that target is an embedded RedHat Linux?  I configured insight with the following command, "configure --target=i686-pc-linux-gnu".  Do I need to configure or make insight in a different way to enable support for threads?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: debugging threads on remote target with insight on cygwin
  2005-07-27 18:01 debugging threads on remote target with insight on cygwin Rick Bauer
@ 2005-08-01 18:49 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2005-08-01 18:49 UTC (permalink / raw)
  To: Rick Bauer; +Cc: insight

On Wed, 2005-07-27 at 11:01 -0700, Rick Bauer wrote:

> The same problem occurs if I try debugging the application remotely
> with the gdb command line rather than with insight.  I also have the
> same problem with insight 6.1.

Since "normal" gdb exhibits similar behavior, you're best bet is to ask
the experts on the gdb mailing list for help. It's been many, many years
since I last touched an embedded target or used anything like gdbserver.

Keith

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-01 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 18:01 debugging threads on remote target with insight on cygwin Rick Bauer
2005-08-01 18:49 ` Keith Seitz

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).