diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-09-07 17:14:37 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-09-07 17:14:37 +0000 |
commit | 002c2a8ecee8535ff46798138a170cd9df9fa824 (patch) | |
tree | ec2d6fc526321c75fa37d21654699e3bdc2138b2 /debuginfo-tests | |
parent | 630c5e535c294da715191c284bac62a912bca00e (diff) | |
download | llvm-002c2a8ecee8535ff46798138a170cd9df9fa824.tar.gz |
Set the architecture when creating a target.
llvm-svn: 190252
Diffstat (limited to 'debuginfo-tests')
-rw-r--r-- | debuginfo-tests/llgdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py index 40f7e365a4bf..47469a3ae379 100644 --- a/debuginfo-tests/llgdb.py +++ b/debuginfo-tests/llgdb.py @@ -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 |