Community
Participate
Working Groups
- Try to put 5 hardware breakpoints - 5th one can not be planted because there is not enough resource - remove one, the 5th one is still not planted (even if resource is now available) - disable/enable it. It is now planted.
Fixed. Thanks!
(In reply to Eugene Tarassov from comment #1) > Fixed. > Thanks! Can you explain why you need to test whether bi->cb.ctx is stopped to add the breakpoint in the list?
(In reply to Eric Le Port from comment #2) > (In reply to Eugene Tarassov from comment #1) > > Fixed. > > Thanks! > > Can you explain why you need to test whether bi->cb.ctx is stopped to add > the breakpoint in the list? We have to check current running/stopped state, because, normally, planting breakpoint while context is running is not supported, and it will fail. In particular, we should not select a context, which would fail assertions in plant_instruction(). However, you are right, checking bi->cb.ctx->stopped is not correct - it works only when "breakpoints group" is same as "stop group". The right check is is_all_stopped(bi->cb.ctx). Fixed.