[debuginfo-tests] r190256 - Auto-detect the architecture of the executable instead of using the arch of
Adrian Prantl
aprantl at apple.com
Sat Sep 7 13:04:29 PDT 2013
Author: adrian
Date: Sat Sep 7 15:04:29 2013
New Revision: 190256
URL: http://llvm.org/viewvc/llvm-project?rev=190256&view=rev
Log:
Auto-detect the architecture of the executable instead of using the arch of
the kernel.
Modified:
debuginfo-tests/trunk/llgdb.py
Modified: debuginfo-tests/trunk/llgdb.py
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/llgdb.py?rev=190256&r1=190255&r2=190256&view=diff
==============================================================================
--- debuginfo-tests/trunk/llgdb.py (original)
+++ debuginfo-tests/trunk/llgdb.py Sat Sep 7 15:04:29 2013
@@ -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:
More information about the llvm-commits
mailing list