~bkerensa/ubuntu/raring/valgrind/merge-from-deb

« back to all changes in this revision

Viewing changes to callgrind/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-11-16 17:56:30 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20061116175630-hatkgajb0twz0upw
Tags: upstream-3.2.1
Import upstream version 3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
771
771
  /* unwind regular call stack */
772
772
  while(CLG_(current_call_stack).sp>0)
773
773
    CLG_(pop_call_stack)();
 
774
 
 
775
  /* reset context and function stack for context generation */
 
776
  CLG_(init_exec_state)( &CLG_(current_state) );
 
777
  CLG_(current_fn_stack).top = CLG_(current_fn_stack).bottom;
774
778
}
775
779
 
776
780
/* Ups, this can go wrong... */
795
799
  if (0)
796
800
    CLG_(forall_threads)(zero_thread_cost);
797
801
 
798
 
  if (!state)
799
 
    CLG_(init_exec_state)( &CLG_(current_state) );
800
 
 
801
802
  if (VG_(clo_verbosity) > 1)
802
 
    VG_(message)(Vg_DebugMsg, "%s: instrumentation switched %s\n",
 
803
    VG_(message)(Vg_DebugMsg, "%s: instrumentation switched %s",
803
804
                 reason, state ? "ON" : "OFF");
804
805
}
805
806