|
From: <sv...@va...> - 2005-09-25 19:34:26
|
Author: njn
Date: 2005-09-25 20:34:13 +0100 (Sun, 25 Sep 2005)
New Revision: 4771
Log:
Tweak the startup order.
Modified:
branches/ASPACEM/coregrind/m_main.c
Modified: branches/ASPACEM/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_main.c 2005-09-25 19:13:21 UTC (rev 4770=
)
+++ branches/ASPACEM/coregrind/m_main.c 2005-09-25 19:34:13 UTC (rev 4771=
)
@@ -2153,8 +2153,6 @@
// Init tool part 1: pre_clo_init
// p: setup_client_stack() [for 'VG_(client_arg[cv]']
// p: setup_file_descriptors() [for 'VG_(fd_xxx_limit)']
- // p: parse_procselfmaps [so VG segments are setup so tool c=
an
- // call VG_(malloc)]
//--------------------------------------------------------------
{
Char* s;
@@ -2182,24 +2180,12 @@
// Process command line options to Valgrind + tool
// p: setup_client_stack() [for 'VG_(client_arg[cv]']
// p: setup_file_descriptors() [for 'VG_(fd_xxx_limit)']
- // p: parse_procselfmaps [so VG segments are setup so tool c=
an
- // call VG_(malloc)]
//--------------------------------------------------------------
VG_(debugLog)(1, "main", "Process Valgrind's command line options, "
" setup logging\n");
logging_to_fd =3D process_cmd_line_options(client_auxv, toolname);
=20
//--------------------------------------------------------------
- // Init tool part 2: post_clo_init
- // p: setup_client_stack() [for 'VG_(client_arg[cv]']
- // p: setup_file_descriptors() [for 'VG_(fd_xxx_limit)']
- // p: parse_procselfmaps [so VG segments are setup so tool c=
an
- // call VG_(malloc)]
- //--------------------------------------------------------------
- VG_(debugLog)(1, "main", "Initialise the tool part 2 (post_clo_init)\=
n");
- VG_TDICT_CALL(tool_post_clo_init);
-
- //--------------------------------------------------------------
// Print the preamble
// p: tl_pre_clo_init [for 'VG_(details).name' and frien=
ds]
// p: process_cmd_line_options() [for VG_(clo_verbosity), VG_(clo_x=
ml),
@@ -2211,6 +2197,16 @@
VG_(debugLog)(1, "main", "...finished the preamble\n");
=20
//--------------------------------------------------------------
+ // Init tool part 2: post_clo_init
+ // p: setup_client_stack() [for 'VG_(client_arg[cv]']
+ // p: setup_file_descriptors() [for 'VG_(fd_xxx_limit)']
+ // p: print_preamble() [so any warnings printed in post_cl=
o_init
+ // are shown after the preamble]
+ //--------------------------------------------------------------
+ VG_(debugLog)(1, "main", "Initialise the tool part 2 (post_clo_init)\=
n");
+ VG_TDICT_CALL(tool_post_clo_init);
+
+ //--------------------------------------------------------------
// Initialise translation table and translation cache
// p: aspacem [??]
// p: tl_pre_clo_init [for 'VG_(details).avg_translation_sizeB']
|