This is the mail archive of the gdb@sourceware.org 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: why SIGINT top stop the process, why was not SIGSTOP used ?


On Tue, Feb 10, 2009 at 08:34:54AM -0800, paawan oza wrote:
> Hello,
> 
> I have been changing gdb.
> as gdb uses ctrl+c (send SIGINT) to stop the process......
> I am also doing the same.

GDB is not sending the SIGINT.  On most systems, GDB puts the process
in the foreground terminal process group, and the operating system
is responsible for sending the SIGINT.

Using SIGSTOP has some other weird effects on job control, especially
in threaded applications.

-- 
Daniel Jacobowitz
CodeSourcery


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