|
From: Nicholas N. <nj...@ca...> - 2004-01-24 18:19:26
|
CVS commit by nethercote: Moved stage2.c into vg_main.c. Merged main() and VG_(main)(); VG_(main)() no longer exists. One advantage of this is that global variables/structures needed for communicating between the two can be made local. Also, the order in which things happen has been simplified. This is mostly just a big refactoring. Startup is now a fair bit easier to understand. Dependencies between the various startup stages are fairly well documented in comments. Also, --help and --version now work properly -- eg. --help gives tool-specific help if --tool was specified. There is still some parts where things could be reordered and/or simplified, and where the dependencies aren't clear. These are marked with 'XXX'. One new feature was added: ability to read options from ~/.valgrindrc and ./.valgrindrc. Part of this is support for specifying tool-specific options in the form --toolname:tool-specific-option. M +0 -1 coregrind/Makefile.am 1.64 M +1 -1 coregrind/stage1.c 1.6 M +4 -1 coregrind/ume.c 1.8 M +3 -3 coregrind/ume.h 1.4 M +2 -2 coregrind/vg_dispatch.S 1.16 M +9 -59 coregrind/vg_include.h 1.172 M +2336 -1163 coregrind/vg_main.c 1.140 [POSSIBLY UNSAFE: printf] M +9 -122 coregrind/vg_memory.c 1.51 M +1 -2 coregrind/vg_scheduler.c 1.139 M +64 -3 coregrind/vg_syscalls.c 1.81 M +29 -10 coregrind/docs/coregrind_core.html 1.23 M +1 -7 include/vg_skin.h.base 1.11 |