summaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-09-07 17:14:37 +0000
committerAdrian Prantl <aprantl@apple.com>2013-09-07 17:14:37 +0000
commit002c2a8ecee8535ff46798138a170cd9df9fa824 (patch)
treeec2d6fc526321c75fa37d21654699e3bdc2138b2 /debuginfo-tests
parent630c5e535c294da715191c284bac62a912bca00e (diff)
downloadllvm-002c2a8ecee8535ff46798138a170cd9df9fa824.tar.gz
Set the architecture when creating a target.
llvm-svn: 190252
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/llgdb.py3
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