Changed startup message to give information about skin and core separately.
Added "version" and "copyright_author" fields for skins to supply.
Now startup message looks something like this:
==12698== cachegrind, an I1/D1/L2 cache profiler for x86-linux.
==12698== Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote.
==12698== Built with valgrind-HEAD, a program execution monitor.
==12698== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==12698== Estimated CPU clock rate is 1422 MHz
==12698== For more details, rerun with: -v
The skin can specify a version number, but the skins that will be distributed
with Valgrind don't.
Also changed "x86 GNU/Linux" to the wicked "x86-linux" at Julian's request.
Updated default regression test filter to handle this new startup message.
----
Also moved the skin's name, description, etc., fields out of VG_(needs) into a
new struct VG_(details), since they are logically quite different to the needs.
Did a little code formatting, etc., for this. Updated skin docs
correspondingly, too.
Also renamed the need `run_libc_freeres' --> `libc_freeres' so it's a noun
phrase rather than a verb phrase.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1172 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/nl_main.c b/none/nl_main.c
index cbc1292..e2d2db2 100644
--- a/none/nl_main.c
+++ b/none/nl_main.c
@@ -31,11 +31,15 @@
#include "vg_skin.h"
-void SK_(pre_clo_init)(VgNeeds* needs, VgTrackEvents* track)
+void SK_(pre_clo_init)(VgDetails* details, VgNeeds* not_used1,
+ VgTrackEvents* not_used2)
{
- needs->name = "nulgrind";
- needs->description = "a binary JIT-compiler";
- needs->bug_reports_to = "njn25@cam.ac.uk";
+ details->name = "nulgrind";
+ details->version = NULL;
+ details->description = "a binary JIT-compiler";
+ details->copyright_author =
+ "Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote.";
+ details->bug_reports_to = "njn25@cam.ac.uk";
/* No needs, no core events to track */
}