[Lldb-commits] [PATCH] D95922: [lldb] Honor the CPU type & subtype on macOS

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 2 21:24:42 PST 2021


JDevlieghere added a comment.

I tested this locally with a fat binary containing both an `x86_64` and `x86_64h` slice. We could do something on AS using `arm64` and `arm64e`, but I couldn't find a good way to find out (from Python) if the current architecture has Haswell/arm64e support.

  (lldb) target create --arch x86_64h /Users/jonas/fat/fat.out
  Current executable set to '/Users/jonas/fat/fat.out' (x86_64h).
  (lldb) r
  Process 78326 launched: '/Users/jonas/fat/fat.out' (x86_64h)
  x86_64h
  Process 78326 exited with status = 0 (0x00000000)
  (lldb) target create --arch x86_64 /Users/jonas/fat/fat.out
  Current executable set to '/Users/jonas/fat/fat.out' (x86_64).
  (lldb) r
  Process 78335 launched: '/Users/jonas/fat/fat.out' (x86_64h)
  x86_64
  Process 78335 exited with status = 0 (0x00000000)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95922/new/

https://reviews.llvm.org/D95922



More information about the lldb-commits mailing list