This is the mail archive of the
mailing list for the Insight project.
debugging threads on remote target with insight on cygwin
- From: "Rick Bauer" <rbauer at amnis dot com>
- To: <insight at sources dot redhat dot com>
- Date: Wed, 27 Jul 2005 11:01:49 -0700
- Subject: debugging threads on remote target with insight on cygwin
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?