[Lldb-commits] [PATCH] D62159: LLGS: support 32-bit on 64-bit hosts

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 20 23:32:48 PDT 2019


labath added a comment.

BTW, there's no fundamental reason why a 64-bit lldb-server has to use instruction emulation for debugging arm32 binaries. Since all arm64 chips support hardware single stepping, we could just teach the arm32 native register context to issue PTRACE_SINGLESTEP commands when build in 64-bit mode, and increase debugging reliability while decreasing lldb-server size. (The same is probably also true for a 32-bit lldb-server running on a 64-bit kernel, but that's something that we would have to detect at runtime.)

Anyway, just an idea, this patch is fine. I was under the impression that arm64 defines __arm__, but obviously I was wrong.


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D62159





More information about the lldb-commits mailing list