labath added a comment.

Sorry about the delay. I think this is better, but the handling 
of`eBreakpointEventTypeLocationsAdded/Removed` it still does not seem 
completely right. Though I don't really understand how VSCode works, if my 
understanding that we are now creating a "vscode" breakpoint for each "lldb 
breakpoint" (instead of breakpoint _location_) is correct, then it seems that 
we should treat the "vscode breakpoint" enabled as long as the lldb breakpoint 
has at least one location.

However, that's not what the code does now, I think. Whenever a single location 
disappears (eBreakpointEventTypeLocationsRemoved), e.g. in response to a shared 
library unloading, we will set the `reason=removed` packet, even if other 
locations remain. I think that we should send the "removed" message only when 
the location count goes down to zero (and send the "new" packet whenever it 
goes non-zero).

Am I misunderstanding something?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73665



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

Reply via email to