[Lldb-commits] [PATCH] D100515: [lldb] Add GetCodeAddressMask and GetDataAddressMask to Process

Peter Collingbourne via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 15 10:08:42 PDT 2021


pcc added inline comments.


================
Comment at: lldb/source/Target/Process.cpp:5569-5570
+
+  if (m_code_address_mask == 0)
+    return -1; // All bits are used for addressing.
+
----------------
Is this part correct? (Same below.) In D100521 you have
```
  if (pc & pac_sign_extension)
    return pc | mask;
  return pc & (~mask);
```
So it looks like this would cause the pc to be set to 0 (or -1)?


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

https://reviews.llvm.org/D100515



More information about the lldb-commits mailing list