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: Sending signal to inferior program.


Thanks for the reply, but i'm still a little confused. Isn't what you said
the same thing as forking a thread from gdb which sends the signal. Instead
of CTRL-C, I want the signal to be sent from gdb to the prog. I want to
actually break the execution of the program at a specific time, so to send
the signal to the program at say 100ms.
Thanks again


Jan Kratochvil-3 wrote:
> 
> On Mon, 06 Jun 2011 19:32:13 +0200, logitech wrote:
>> I wish to send a signal to the inferior program at a specific time.
> 
> I do not know how is GDB related to it.  Cannot you just write an
> independent
> C program which will wait till that time and call kill (thatPID, SIGsome)?
> 
> From GDB when you stop the inferior first (CTRL-C) you can send a signal:
> (gdb) help signal
> Continue program giving it signal specified by the argument.
> An argument of "0" means continue program without giving it a signal.
> 
> 
> 
> Regards,
> Jan
> 
> 

-- 
View this message in context: http://old.nabble.com/Sending-signal-to-inferior-program.-tp31785488p31786813.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


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