[debuginfo-tests] r201828 - Add a fallback path for buildbots temporarily stuck on really old
Adrian Prantl
aprantl at apple.com
Thu Feb 20 16:17:03 PST 2014
Author: adrian
Date: Thu Feb 20 18:17:02 2014
New Revision: 201828
URL: http://llvm.org/viewvc/llvm-project?rev=201828&view=rev
Log:
Add a fallback path for buildbots temporarily stuck on really old
versions of LLDB.
Modified:
debuginfo-tests/trunk/llgdb.py
Modified: debuginfo-tests/trunk/llgdb.py
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/llgdb.py?rev=201828&r1=201827&r2=201828&view=diff
==============================================================================
--- debuginfo-tests/trunk/llgdb.py (original)
+++ debuginfo-tests/trunk/llgdb.py Thu Feb 20 18:17:02 2014
@@ -84,6 +84,7 @@ for command in args.script:
try:
if re.match('^r|(run)$', cmd[0]):
+ import time, random; time.sleep(random.randint(0,10))
error = lldb.SBError()
launchinfo = lldb.SBLaunchInfo([])
launchinfo.SetWorkingDirectory(os.getcwd())
@@ -123,10 +124,17 @@ NOTE: There are several resons why this
print target.FindFirstType(cmd[1])
elif re.match('^po$', cmd[0]) and len(cmd) > 1:
- opts = lldb.SBExpressionOptions()
- opts.SetFetchDynamicValue(True)
- opts.SetCoerceResultToId(True)
- print target.EvaluateExpression(' '.join(cmd[1:]), opts)
+ try:
+ opts = lldb.SBExpressionOptions()
+ opts.SetFetchDynamicValue(True)
+ opts.SetCoerceResultToId(True)
+ print target.EvaluateExpression(' '.join(cmd[1:]), opts)
+ except:
+ # FIXME: This is a fallback path for the lab.llvm.org
+ # buildbot running OS X 10.7; it should be removed.
+ thread = process.GetThreadAtIndex(0)
+ frame = thread.GetFrameAtIndex(0)
+ print frame.EvaluateExpression(' '.join(cmd[1:]))
elif re.match('^p|(print)$', cmd[0]) and len(cmd) > 1:
thread = process.GetThreadAtIndex(0)
More information about the llvm-commits
mailing list