Changed this breakpoint callback function to print to the stdout instead of

stderr so as not to disrupt the information emitted by the unittest framework.

llvm-svn: 114377
This commit is contained in:
Johnny Chen 2010-09-20 23:51:27 +00:00
parent 8162d4ad31
commit dba0a0fbef
1 changed files with 4 additions and 4 deletions

View File

@ -24,15 +24,15 @@ def stop_if_called_from_a():
# of the leaf function c() is a(). If it's not the right caller, we ask the
# command interpreter to continue execution.
print >> sys.stderr, "Checking call frames..."
print >> sys.stdout, "Checking call frames..."
lldbutil.PrintStackTrace(thread)
if thread.GetNumFrames() >= 2:
funcs = lldbutil.GetFunctionNames(thread)
print >> sys.stderr, funcs[0], "called from", funcs[1]
print >> sys.stdout, funcs[0], "called from", funcs[1]
if (funcs[0] == 'c' and funcs[1] == 'a'):
print >> sys.stderr, "Stopped at c() with immediate caller as a()."
print >> sys.stdout, "Stopped at c() with immediate caller as a()."
else:
print >> sys.stderr, "Continuing..."
print >> sys.stdout, "Continuing..."
ci.HandleCommand("process continue", res)
return True