This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MI: new timing command
> > 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 <sys/resource.h> 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 <sys/resource.h>
+
+ /* 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;