diff options
| author | Adrian Prantl <aprantl@apple.com> | 2013-09-07 20:04:29 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2013-09-07 20:04:29 +0000 |
| commit | ee30f63cc1ea5dcedfc4fa83f4d299c90096f4cb (patch) | |
| tree | ac4d5907973ef364d8eabbc473c24080fecc80ba /debuginfo-tests | |
| parent | a82566b86e511f018fa7eadf11092e01f4cc5cf6 (diff) | |
| download | bcm5719-llvm-ee30f63cc1ea5dcedfc4fa83f4d299c90096f4cb.tar.gz bcm5719-llvm-ee30f63cc1ea5dcedfc4fa83f4d299c90096f4cb.zip | |
Auto-detect the architecture of the executable instead of using the arch of
the kernel.
llvm-svn: 190256
Diffstat (limited to 'debuginfo-tests')
| -rw-r--r-- | debuginfo-tests/llgdb.py | 2 |
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: |

