[Lldb-commits] [lldb] [LLDB] Add optional callback function to `TypeMatcher` (PR #143748)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 11 13:13:11 PDT 2025


jimingham wrote:

We would very much like to support debug sessions with two targets on different systems.  For instance, imagine debugging a Windows client on the host system,  and a Linux server running on another machine.  There's all sorts of opportunities to do coordinated debugging between server and client, so we really want to support this scenario.

But it shouldn't be that hard to support this.  When you are about to use a cached formatter, just run the validator function from that formatter on the candidate VO.  If it doesn't pass the validator, fall back to the full search.  Running the validator should be much quicker than a full type search, so you still get a lot of the benefit of caching, but you won't use the cache when it isn't appropriate.



https://github.com/llvm/llvm-project/pull/143748


More information about the lldb-commits mailing list