From ee30f63cc1ea5dcedfc4fa83f4d299c90096f4cb Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Sat, 7 Sep 2013 20:04:29 +0000 Subject: [PATCH] Auto-detect the architecture of the executable instead of using the arch of the kernel. llvm-svn: 190256 --- debuginfo-tests/llgdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py index 47469a3ae379..8316578b7fde 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: