This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim/common ChangeLog sim-profile.c sim-pro ...
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 22 Apr 2010 00:26:13 -0000
- Subject: src/sim/common ChangeLog sim-profile.c sim-pro ...
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2010-04-22 00:26:12
Modified files:
sim/common : ChangeLog sim-profile.c sim-profile.h
Log message:
sim: profile: implement --profile-file backend
The profile code already has options and handling for accepting a file to
write the profile output like the trace code, but it doesn't actually use
it. At the moment, it simply opens the file at the start and closes it at
the end. So add two new local functions the way the trace code is doing
it and have them figure out whether to write the output to stdout or the
specified file. Then convert all existing output in the profile code to
use these helpers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/ChangeLog.diff?cvsroot=src&r1=1.216&r2=1.217
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-profile.c.diff?cvsroot=src&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-profile.h.diff?cvsroot=src&r1=1.9&r2=1.10