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

« back to all changes in this revision

Viewing changes to callgrind/context.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:
279
279
  call_stack* cs = &CLG_(current_call_stack);
280
280
  Int fn_entries;
281
281
 
 
282
  CLG_DEBUG(5, "+ push_cxt(fn '%s'): old ctx %d\n", 
 
283
            fn ? fn->name : (Char*)"0x0",
 
284
            CLG_(current_state).cxt ?
 
285
            CLG_(current_state).cxt->base_number : -1);
 
286
 
282
287
  /* save old context on stack (even if not changed at all!) */
283
288
  CLG_ASSERT(cs->sp < cs->size);
284
289
  CLG_ASSERT(cs->entry[cs->sp].cxt == 0);
321
326
  *(CLG_(current_fn_stack).top) = fn;
322
327
  CLG_(current_state).cxt = CLG_(get_cxt)(CLG_(current_fn_stack).top);
323
328
 
324
 
  CLG_DEBUG(5, "  push_cxt(fn '%s'): %d\n", 
325
 
           fn ? fn->name : (Char*)"0x0",
326
 
           CLG_(current_fn_stack).top - CLG_(current_fn_stack).bottom);
 
329
  CLG_DEBUG(5, "- push_cxt(fn '%s'): new cxt %d, fn_sp %d\n", 
 
330
            fn ? fn->name : (Char*)"0x0",
 
331
            CLG_(current_state).cxt ?
 
332
              CLG_(current_state).cxt->base_number : -1,
 
333
            CLG_(current_fn_stack).top - CLG_(current_fn_stack).bottom);
327
334
}
328
335