From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29776 invoked by alias); 20 Jan 2007 20:58:33 -0000 Received: (qmail 29768 invoked by uid 22791); 20 Jan 2007 20:58:33 -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, 20 Jan 2007 20:58:24 +0000 Received: from kahikatea.snap.net.nz (unknown [123.255.63.13]) by viper.snap.net.nz (Postfix) with ESMTP id B2F353D83DA; Sun, 21 Jan 2007 09:58:20 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 5EB0D4F713; Sun, 21 Jan 2007 09:58:20 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17842.33386.836316.276127@kahikatea.snap.net.nz> Date: Sat, 20 Jan 2007 20:58:00 -0000 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] MI: new timing command In-Reply-To: References: <17814.10139.269708.848818@kahikatea.snap.net.nz> <17814.58031.865155.682869@kahikatea.snap.net.nz> <20061231042547.GA3236@nevyn.them.org> <17815.18190.987950.612053@kahikatea.snap.net.nz> <20061231054946.GA4873@nevyn.them.org> <17815.27092.497145.908734@kahikatea.snap.net.nz> <20061231151527.GC16449@nevyn.them.org> <200612311524.kBVFObud010411@brahms.sibelius.xs4all.nl> <200612311609.kBVG9Fgh022431@brahms.sibelius.xs4all.nl> <17816.34925.514170.51734@farnswood.snap.net.nz> <17817.34304.221915.628057@kahikatea.snap.net.nz> <17836.26941.915573.399839@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.92.10 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: 2007-01/txt/msg00428.txt.bz2 > > Any progress? > > I tried, but unfortunately, I cannot compile the patched version. It > seems like at least one part of your patch was never sent to the list: > > * mi/mi-parse.h: Include if present. > (mi_timestamp): New structure. > (mi_parse): Add mi_timestamp* member. > > Without this, mi-main.c doesn't compile, because it misses the > definition of the mi_timestamp structure. Yes, sorry. It was part of an earlier patch but got left out somehow. -- Nick http://www.inet.net.nz/~nickrob Index: mi/mi-parse.h =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-parse.h,v retrieving revision 1.5 diff -c -p -r1.5 mi-parse.h *** mi/mi-parse.h 23 Dec 2005 18:57:46 -0000 1.5 --- mi/mi-parse.h 31 Dec 2006 07:39:14 -0000 *************** *** 24,29 **** --- 24,37 ---- /* MI parser */ + #include + + /* Timestamps for current command and last asynchronous command */ + struct mi_timestamp { + struct timeval wallclock; + struct rusage rusage; + }; + enum mi_command_type { MI_COMMAND, CLI_COMMAND *************** struct mi_parse *** 35,40 **** --- 43,49 ---- char *command; char *token; const struct mi_cmd *cmd; + struct mi_timestamp *cmd_start; char *args; char **argv; int argc;