mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Auto-detect the architecture of the executable instead of using the arch of
the kernel. llvm-svn: 190256
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user