Set the architecture when creating a target.

llvm-svn: 190252
This commit is contained in:
Adrian Prantl 2013-09-07 17:14:37 +00:00
parent 630c5e535c
commit 002c2a8ece
1 changed files with 2 additions and 1 deletions

View 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