forked from OSchip/llvm-project
Set the architecture when creating a target.
llvm-svn: 190252
This commit is contained in:
parent
630c5e535c
commit
002c2a8ece
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue