Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb internal error SIGINT/SIGSTOP
@ 2009-02-02 14:47 paawan oza
  2009-02-02 15:05 ` Daniel Jacobowitz
  2009-02-03  3:05 ` teawater
  0 siblings, 2 replies; 11+ messages in thread
From: paawan oza @ 2009-02-02 14:47 UTC (permalink / raw)
  To: gdb

Hello,

I have been modifying gdb for past couple of months.
I am trying to keep process always running and user should be able to type commands.
It is similar to tracepoints but on host system.

I am facing a problem as following when try to debug multi-threaded applications.

I am sending SIGINT/SIGSTOP (with no pass) to stop the process.
linux-nat-wait wll attempt to stop other threads and it succeeds.
and it works fine.

but,
when I have breakpoints on threads....
and if main/CLONEs thread is stopped due to breakpoint and if I send 
SIGINT/SIGSTOP to the main thread....
eventually I end up getting interrnal gdb assertion error.
gdb_assert (pid == GET_LWP (lp->ptid));

I would like to know !!

1) why is that happening ?
in the scenerio where (thread is already stopped because of breakpoint
and I am internally sending SIGINT/SIGSTOP (with no pass)

note : I have modified gdb code to suite my requirements. where process should always be running and user should be able to type commands

please do the needful.


Regards,
..Paawan.





















      


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

end of thread, other threads:[~2009-02-06  7:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-02 14:47 gdb internal error SIGINT/SIGSTOP paawan oza
2009-02-02 15:05 ` Daniel Jacobowitz
2009-02-02 15:20   ` paawan oza
2009-02-02 15:52     ` Daniel Jacobowitz
2009-02-03  3:05 ` teawater
     [not found]   ` <171515.38221.qm@web36204.mail.mud.yahoo.com>
2009-02-05  8:24     ` teawater
2009-02-05 13:48       ` paawan oza
2009-02-05 15:52         ` teawater
2009-02-05 16:22           ` paawan oza
2009-02-06  5:16             ` teawater
2009-02-06  7:54               ` paawan oza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox