2 Commits

Author SHA1 Message Date
b0e68ce801 terminal/command: bind if condition to location earlier (#3938)
* service/debugger: fix FindLocation with child processes

FindLocation should only return a "location not found" error if none of
the attached target processes can find the location.

Fixes #3933

* terminal/command: bind if condition to location earlier

Fix the problem that "if condition" is not bound to breakpoint when the location is not found. See command_test.go for the use case.
The overview of the testcase is to test whether a condition is bound to a breakpoint whose location is not found yet.

* replace range expression for backward compatibility

* delete redundant cond variable

* mocking yesno

* service/test: fix BuildFixture argument

---------

Co-authored-by: aarzilli <alessandro.arzilli@gmail.com>
2025-03-17 10:46:57 -07:00
f6e0c3e59b service/debugger: fix FindLocation with child processes (#3937)
FindLocation should only return a "location not found" error if none of
the attached target processes can find the location.

Fixes #3933
2025-03-13 11:03:45 -07:00