This is the mail archive of the insight@sourceware.org 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]

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?


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