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

« back to all changes in this revision

Viewing changes to coregrind/m_libcprint.c

  • Committer: Benjamin Kerensa
  • Date: 2012-11-21 23:57:58 UTC
  • mfrom: (1.1.16)
  • Revision ID: bkerensa@ubuntu.com-20121121235758-bd1rv5uc5vzov2p6
Merge from debian unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
   This file is part of Valgrind, a dynamic binary instrumentation
8
8
   framework.
9
9
 
10
 
   Copyright (C) 2000-2011 Julian Seward 
 
10
   Copyright (C) 2000-2012 Julian Seward 
11
11
      jseward@acm.org
12
12
 
13
13
   This program is free software; you can redistribute it and/or
396
396
 
397
397
      // Print one '>' in front of the messages for each level of
398
398
      // self-hosting being performed.
 
399
      // Do not print such '>' if sim hint "no-inner-prefix" given
 
400
      // (useful to run regression tests in an outer/inner setup
 
401
      // and avoid the diff failing due to these unexpected '>').
399
402
      depth = RUNNING_ON_VALGRIND;
400
 
      if (depth > 10)
401
 
         depth = 10; // ?!?!
402
 
      for (i = 0; i < depth; i++) {
403
 
         b->buf[b->buf_used++] = '>';
 
403
      if (depth > 0 && !VG_(strstr)(VG_(clo_sim_hints), "no-inner-prefix")) {
 
404
         if (depth > 10)
 
405
            depth = 10; // ?!?!
 
406
         for (i = 0; i < depth; i++) {
 
407
            b->buf[b->buf_used++] = '>';
 
408
         }
404
409
      }
405
410
 
406
411
      if (Vg_FailMsg == b->kind) {