]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Get rid of the unused --model-pthreads flag.
authorJulian Seward <jseward@acm.org>
Mon, 12 Feb 2007 08:39:54 +0000 (08:39 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 12 Feb 2007 08:39:54 +0000 (08:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6584

coregrind/m_main.c
coregrind/m_options.c
coregrind/m_scheduler/scheduler.c
coregrind/pub_core_options.h

index 203545bdea140b1e8e123bed759c6f7e5f27d950..8e38b9b2867b225c8b05e5d7da66368af0aaa8a8 100644 (file)
@@ -357,7 +357,6 @@ static Bool process_cmd_line_options( UInt* client_auxv, const char* toolname )
       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))
@@ -1778,13 +1777,6 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
    VG_(debugLog)(1, "main", "Finalise initial image\n");
    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 @@ void shutdown_actions_NORETURN( ThreadId tid,
       // 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 @@ void shutdown_actions_NORETURN( ThreadId tid,
       // 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
index 0056ec260219acca4221a49a95251bac35d6d292..3ec68d59a06afe9d1e3ea723a59051c3dda4cb07 100644 (file)
@@ -74,7 +74,6 @@ Bool   VG_(clo_sym_offsets)    = False;
 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;
index 87605fc8bc564380fba20c5d2bf1149b0757df37..c8e41ae96447be4caf19c0e5618cbfbb9e24aab2 100644 (file)
@@ -1121,9 +1121,6 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
 
    vg_assert(VG_(is_exiting)(tid));
 
-   //if (VG_(clo_model_pthreads))
-   //   VG_(tm_thread_exit)(tid);
-   
    return tst->exitreason;
 }
 
index 662d9e16ef3d1af95d4f086d2bfe337102e84e88..60bd58cdab8c3f933c1e9e8c6b14fa4ebd60705d 100644 (file)
@@ -141,8 +141,6 @@ extern Bool  VG_(clo_track_fds);
 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);