From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15354 invoked by alias); 6 Jun 2011 18:18:10 -0000 Received: (qmail 15344 invoked by uid 22791); 6 Jun 2011 18:18:10 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jun 2011 18:17:54 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p56IHsmW017755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Jun 2011 14:17:54 -0400 Received: from host1.jankratochvil.net (ovpn-113-49.phx2.redhat.com [10.3.113.49]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p56IHq6c018888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 6 Jun 2011 14:17:53 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p56IHluO000552; Mon, 6 Jun 2011 20:17:47 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p56IHkIe000546; Mon, 6 Jun 2011 20:17:46 +0200 Date: Mon, 06 Jun 2011 18:18:00 -0000 From: Jan Kratochvil To: logitech Cc: gdb@sourceware.org Subject: Re: Sending signal to inferior program. Message-ID: <20110606181746.GA32266@host1.jankratochvil.net> References: <31785488.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31785488.post@talk.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00034.txt.bz2 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