From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3752 invoked by alias); 30 Dec 2006 22:10:22 -0000 Received: (qmail 3744 invoked by uid 22791); 30 Dec 2006 22:10:22 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 30 Dec 2006 22:10:16 +0000 Received: from kahikatea.snap.net.nz (p202-124-125-62.snap.net.nz [202.124.125.62]) by viper.snap.net.nz (Postfix) with ESMTP id 51D363D81F7; Sun, 31 Dec 2006 11:10:13 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 7477CBE449; Sun, 31 Dec 2006 11:05:38 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17814.58031.865155.682869@kahikatea.snap.net.nz> Date: Sat, 30 Dec 2006 22:10:00 -0000 To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] MI: new timing command In-Reply-To: References: <17814.10139.269708.848818@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.92.3 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00377.txt.bz2 > > Here's a patch for timing MI commands e.g. > > Thanks, but where's the documentation to go with it? There isn't any yet. I would include it if I was confident that the patch would get timely review/approval. I think the code part is easily understood so I guess I'm asking for approval for that, conditional to tests/documentation being provided. This saves wasted effort on my part. > > diff -c -p -r1.86 mi-main.c > > *** mi-main.c 17 Nov 2006 19:30:41 -0000 1.86 > > --- mi-main.c 30 Dec 2006 08:42:29 -0000 > > *************** > > *** 49,54 **** > > --- 49,55 ---- > > > > #include > > #include > > + #include > > Is sys/resource.h guaranteed to be available on all supported > platforms? If not, we need to add a configure-time test and enable > this code only under HAVE_GETRUSAGE or some such. mi-main.c already uses sys/time.h. Is sys/resource.h any less widely distributed? Is there any way of finding out e.g online database? -- Nick http://www.inet.net.nz/~nickrob