From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23542 invoked by alias); 4 Jan 2005 04:43:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23508 invoked from network); 4 Jan 2005 04:43:26 -0000 Received: from unknown (HELO mail.netspace.net.au) (203.10.110.76) by sourceware.org with SMTP; 4 Jan 2005 04:43:26 -0000 Received: from [192.168.1.11] (220-253-35-78.VIC.netspace.net.au [220.253.35.78]) by mail.netspace.net.au (Postfix) with ESMTP id 426D7110F4B for ; Tue, 4 Jan 2005 15:43:24 +1100 (EST) Message-ID: <41DA1FED.1050201@netspace.net.au> Date: Tue, 04 Jan 2005 04:43:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: Pause References: <41D921DE.6030109@netspace.net.au> <01c4f217$Blat.v2.2.2$1cf67520@zahav.net.il> In-Reply-To: <01c4f217$Blat.v2.2.2$1cf67520@zahav.net.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-01/txt/msg00024.txt.bz2 Eli Zaretskii wrote: >>Date: Mon, 03 Jan 2005 21:43:42 +1100 >>From: Russell Shaw >> >>Does gdb have a "pause" or delay command? I need one here: >> >>define simul >> detach >> shell killall -sHUP simulavr >> shell simulavr -g -p 4242 -d atmega16 -c 16000000 loader_02.bin & >> file loader_02 >> >> < delay 300ms > >> >> target remote localhost:4242 >>end > > Would "shell sleep 1" do the trick? (If 1 second is too long, you > could write a simple program that called nanosleep or some such to > sleep with finer granularity.) shell sleep 1 should work well. Thanks.