mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-02 18:55:13 +02:00
ChangeBreakPointAddress() moves the breakpoint keeping its action, condition and log format, invalidates both ends, refuses to land on an existing breakpoint, and resets the hit count since it belonged to the old address. The edit form now works on a copy of the address and commits on deactivation rather than per keystroke, so typing one address doesn't churn through every prefix of it. The breakpoint edit form assigned straight to bp.addr and then invalidated the icache at "bp.addr - 4, 8" - which by then is the *new* address - need both. Also clear the selection after Delete in both edit forms - the reference into the vector is dangling from that point on. Harmless today, but only because nothing happens to touch it below. Covered by a new Breakpoints unit test (verified to fail without the duplicate check and the hit reset). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9