gdbserver, pthreads and SIGPWR

Andrew Cagney ac131313@cygnus.com
Thu Mar 7 09:54:00 GMT 2002


> Hello,
> i am using gdb 5.1.1 to remote debug my programs.
> whenever i create a new thread with pthread_create(), a SIGPWR is caught.
> 
> Why does this happen when i do remote debugging, but not, when i use gdb
> directly?
> What should i do when the signal arrives?
> Can i continue savely?

(I'm guessing a remote GNU/Linux target).

Try:
	(gdb) help handle
	(gdb) handle SIGPWR pass nostop noprint
I suspect the SIGPWR is being used as part of the thread implementation. 
  You're probably also going to find that threads don't work very well 
remotely, I don't know of many debug agent implementations that support 
threads.

Andrew





More information about the Gdb mailing list