Set the architecture when creating a target.
authorAdrian Prantl <aprantl@apple.com>
Sat, 7 Sep 2013 17:14:37 +0000 (17:14 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 7 Sep 2013 17:14:37 +0000 (17:14 +0000)
llvm-svn: 190252

debuginfo-tests/llgdb.py

index 40f7e36..47469a3 100644 (file)
@@ -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