clayborg added a comment.

One other optimization we can do is if we read from the process memory and it 
returns that is read zero bytes, right now we add the range we were trying to 
read into the m_invalid_ranges member variable. So lets say we were trying to 
read the range [0x1000-0x2000) on a mac. We will fail to read this due to 
__PAGEZERO, but I believe we currently add this range to the m_invalid_ranges. 
But we could ask about this memory region from the process and realize we can 
actually add [0x0-0x100000000) to the m_invalid_ranges. That might help avoid 
multiple bad reads from a large area that isn't mapped.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145624

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to