|
From: <sv...@va...> - 2007-02-12 08:40:01
|
Author: sewardj
Date: 2007-02-12 08:39:54 +0000 (Mon, 12 Feb 2007)
New Revision: 6584
Log:
Get rid of the unused --model-pthreads flag.
Modified:
trunk/coregrind/m_main.c
trunk/coregrind/m_options.c
trunk/coregrind/m_scheduler/scheduler.c
trunk/coregrind/pub_core_options.h
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2007-02-11 09:09:20 UTC (rev 6583)
+++ trunk/coregrind/m_main.c 2007-02-12 08:39:54 UTC (rev 6584)
@@ -357,7 +357,6 @@
else VG_BOOL_CLO(arg, "--trace-syscalls", VG_(clo_trace_syscalls))
else VG_BOOL_CLO(arg, "--trace-pthreads", VG_(clo_trace_pthreads))
else VG_BOOL_CLO(arg, "--wait-for-gdb", VG_(clo_wait_for_gdb))
- else VG_BOOL_CLO(arg, "--model-pthreads", VG_(clo_model_pthreads))
else VG_STR_CLO (arg, "--db-command", VG_(clo_db_command))
else VG_STR_CLO (arg, "--sim-hints", VG_(clo_sim_hints))
@@ -1779,13 +1778,6 @@
VG_(ii_finalise_image)( the_iifii );
//--------------------------------------------------------------
- // Initialise the pthread model
- // p: ?
- //--------------------------------------------------------------
- //if (VG_(clo_model_pthreads))
- // VG_(pthread_init)();
-
- //--------------------------------------------------------------
// Initialise the signal handling subsystem
// p: n/a
//--------------------------------------------------------------
@@ -1892,8 +1884,6 @@
// jrs: Huh? but they surely are already gone
VG_(reap_threads)(tid);
- VG_(clo_model_pthreads) = False;
-
// Clean the client up before the final report
// this causes the libc_freeres function to run
final_tidyup(tid);
@@ -1910,8 +1900,6 @@
// that none of the other threads ever run again.
vg_assert( VG_(count_living_threads)() >= 1 );
- VG_(clo_model_pthreads) = False;
-
// Clean the client up before the final report
// this causes the libc_freeres function to run
// perhaps this is unsafe, as per comment above
Modified: trunk/coregrind/m_options.c
===================================================================
--- trunk/coregrind/m_options.c 2007-02-11 09:09:20 UTC (rev 6583)
+++ trunk/coregrind/m_options.c 2007-02-12 08:39:54 UTC (rev 6584)
@@ -74,7 +74,6 @@
Bool VG_(clo_run_libc_freeres) = True;
Bool VG_(clo_track_fds) = False;
Bool VG_(clo_show_below_main)= False;
-Bool VG_(clo_model_pthreads) = False;
Bool VG_(clo_show_emwarns) = False;
Int VG_(clo_max_stackframe) = 2000000;
Bool VG_(clo_wait_for_gdb) = False;
Modified: trunk/coregrind/m_scheduler/scheduler.c
===================================================================
--- trunk/coregrind/m_scheduler/scheduler.c 2007-02-11 09:09:20 UTC (rev 6583)
+++ trunk/coregrind/m_scheduler/scheduler.c 2007-02-12 08:39:54 UTC (rev 6584)
@@ -1121,9 +1121,6 @@
vg_assert(VG_(is_exiting)(tid));
- //if (VG_(clo_model_pthreads))
- // VG_(tm_thread_exit)(tid);
-
return tst->exitreason;
}
Modified: trunk/coregrind/pub_core_options.h
===================================================================
--- trunk/coregrind/pub_core_options.h 2007-02-11 09:09:20 UTC (rev 6583)
+++ trunk/coregrind/pub_core_options.h 2007-02-12 08:39:54 UTC (rev 6584)
@@ -141,8 +141,6 @@
extern Bool VG_(clo_run_libc_freeres);
/* Continue stack traces below main()? Default: NO */
extern Bool VG_(clo_show_below_main);
-/* Model the pthread library */
-extern Bool VG_(clo_model_pthreads);
/* Should we show VEX emulation warnings? Default: NO */
extern Bool VG_(clo_show_emwarns);
|