From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8691 invoked by alias); 6 Jun 2011 20:25:33 -0000 Received: (qmail 8673 invoked by uid 22791); 6 Jun 2011 20:25:32 -0000 X-SWARE-Spam-Status: No, hits=2.1 required=5.0 tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jun 2011 20:25:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QTgMO-0004Pe-B4 for gdb@sourceware.org; Mon, 06 Jun 2011 13:25:16 -0700 Message-ID: <31786813.post@talk.nabble.com> Date: Mon, 06 Jun 2011 20:25:00 -0000 From: logitech To: gdb@sourceware.org Subject: Re: Sending signal to inferior program. In-Reply-To: <20110606181746.GA32266@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <31785488.post@talk.nabble.com> <20110606181746.GA32266@host1.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00035.txt.bz2 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.