[debuginfo-tests] r190252 - Set the architecture when creating a target.

Adrian Prantl aprantl at apple.com
Sat Sep 7 10:14:37 PDT 2013


Author: adrian
Date: Sat Sep  7 12:14:37 2013
New Revision: 190252

URL: http://llvm.org/viewvc/llvm-project?rev=190252&view=rev
Log:
Set the architecture when creating a target.

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=190252&r1=190251&r2=190252&view=diff
==============================================================================
--- debuginfo-tests/trunk/llgdb.py (original)
+++ debuginfo-tests/trunk/llgdb.py Sat Sep  7 12:14:37 2013
@@ -62,7 +62,8 @@ debugger.SkipLLDBInitFiles(args.n)
 debugger.SetAsync(False)
 
 # Create a target from a file and arch.
-target = debugger.CreateTargetWithFileAndArch(args.target, lldb.LLDB_ARCH_DEFAULT)
+_, _, _, _, arch = os.uname()
+target = debugger.CreateTargetWithFileAndArch(args.target, arch)
 
 if not target:
     print "Could not create target", args.target





More information about the llvm-commits mailing list