This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: gdbserver, pthreads and SIGPWR


> 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




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