binutils-gdb/sim
Mike Frysinger 0d3d2c7158 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>
2010-04-22 00:26:08 +00:00
..
arm sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
avr sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
common sim: profile: implement --profile-file backend 2010-04-22 00:26:08 +00:00
cr16 sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
cris sim: update device_error() prototype 2010-03-30 20:38:26 +00:00
d10v sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
erc32 sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
frv sim: update device_error() prototype 2010-03-30 20:38:26 +00:00
h8300 sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
igen Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
iq2000 Regenerate cgen-derived files. 2010-02-12 02:44:26 +00:00
lm32 Regenerate cgen-derived files. 2010-02-12 02:44:26 +00:00
m32c sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
m32r sim: update device_error() prototype 2010-03-30 20:38:26 +00:00
m68hc11 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
mcore sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
microblaze sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
mips sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
mn10300 sim: mn10300: convert to new sockser status code 2010-04-19 19:03:28 +00:00
moxie sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
ppc sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
rx sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
sh sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
sh64 regenerate cgen-based files 2010-02-13 04:44:41 +00:00
testsuite Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
v850 sim: v850: fix build failure after watchpoint constification 2010-03-30 23:43:03 +00:00
ChangeLog sim: add more hacking notes 2010-04-12 21:44:46 +00:00
configure [sim] 2009-11-24 19:22:45 +00:00
configure.ac [sim] 2009-11-24 19:22:45 +00:00
MAINTAINERS * MAINTAINERS: Add myself as m32r maintainer. 2009-10-16 18:57:30 +00:00
Makefile.in Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
README-HACKING sim: add more hacking notes 2010-04-12 21:44:46 +00:00