jimingham wrote:

It also seems architecturally wrong to try to guess and influence what 
BreakpointResolvers do behind their backs.  After all, the resolver might be 
just some Python Code you know nothing about.  How would you instrument that?  
If I set a regular expression name breakpoint, will you know to compare that 
regex against what the JIT produces?  What about source regular expression 
breakpoints?  Do you figure out what the containing source file is and observe 
that?

Having a system where "if you set these kinds of breakpoints we'll be able to 
intervene, but other breakpoint types just won't work" seems awkward.  If you 
are going to only support certain breakpoint types for JIT debugging, it seems 
much better to make that an explicit JIT breakpoint type writing a custom 
resolver that cooperates with your JIT engine to register interest and get 
called back when JIT events occur that are relevant to it.



https://github.com/llvm/llvm-project/pull/142514
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to