Re: [PATCH] MI: new timing command

Eli Zaretskii
2007-01-20T17:27:47Z

> From: Nick Roberts <nickrob@snap.net.nz>
> Date: Tue, 16 Jan 2007 18:57:17 +1300
> Cc: mark.kettenis@xs4all.nl, ghost@cs.msu.su,
> gdb-patches@sources.redhat.com
>
> > > OK, this patch gives wallclock, user and system time in the output.
> > > In the case when getrusage is not available it the output of get_run_time
> > > is used for the wallclock field and user and system time are given as 0.0.
> >
> > Thanks.
> >
> > > Can you please test it for this latter case?
> >
> > Will do, but it could take me a few days before I have enough free
> > time to try the patch.
>
> 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.