summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/llgdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py
index 47469a3ae37..8316578b7fd 100644
--- a/debuginfo-tests/llgdb.py
+++ b/debuginfo-tests/llgdb.py
@@ -62,7 +62,7 @@ debugger.SkipLLDBInitFiles(args.n)
debugger.SetAsync(False)
# Create a target from a file and arch.
-_, _, _, _, arch = os.uname()
+arch = os.popen("file "+args.target).read().split()[-1]
target = debugger.CreateTargetWithFileAndArch(args.target, arch)
if not target:
OpenPOWER on IntegriCloud