Files
Alessandro Arzilli 2e8df9d9b6 service/debugger,rpc2,dap: target locking review (#3997)
We had a few problems with missing targetMutex acquisitions in
service/debugger, this commit takes care of a few other methods (although I
don't think any of these are problems in practice).

- DwarfRegisterToString is removed, there is no need to call this method
  outside of the context of ScopeRegisters/ThreadRegisters which can
  directly return the function that DwarfRegisterToString would call
- add lock acquisition to BuildID
- remove Target, TargetGroup, TargetLock and TargetUnlock. Replace them with
  a single LockTargetGroup method that acquires the lock and returns the
  target group and the unlock function. Callers can still misuse
  LockTargetGroup by calling unlock immediately and continuing to use the
  target group but this is harder to do accidentally compared to the others.
2025-05-21 12:46:59 -07:00
..