jasonmolenda added a comment.

I should say, my suggestion of changing Target::ReadMemory is just an opinion, 
please do feel free to disagree!

I think if you look at the callers, I suspect all (or nearly all) of them are 
passing prefer_file_cache == true right now, which is the 
force_live_memory==false default case.  Anyone passing prefer_file_cache==false 
would want to pass force_live_memory==true, and it may be that they are doing 
this incorrect (you were originally looking at an instance where that was true 
in swift)

An example where we WANT prefer_file_cache==false aka force_live_memory==true 
is in CommandObjectMemory.cpp.  When people use the memory read command, we 
want to show them the actual memory contents [*], we don't want to optimize by 
getting data from a file.

[X] we still replace breakpoint instructions with the real instruction when 
reading instructions, iirc.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100338

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

Reply via email to