--- a/GDBDebugger.st Thu Dec 07 15:41:12 2023 +0000
+++ b/GDBDebugger.st Thu Dec 07 12:33:31 2023 +0000
@@ -1194,6 +1194,18 @@
"Created: / 18-11-2021 / 23:10:21 / Jan Vrany <jan.vrany@labware.com>"
!
+onRegisterChangedEvent: aGDBRegisterChangedEvent
+ "Some register has changed. We treat it here as if complete state of
+ the inferior has changed since one may change SP / PC / FP which then
+ affects thread state.
+
+ We could in theory only invalidate specific thread, but won't buy us
+ much."
+ self nextInferiorStateSequnceNumber.
+
+ "Created: / 04-09-2023 / 16:26:44 / Jan Vrany <jan.vrany@labware.com>"
+!
+
onRunningEvent: aGDBRunningEvent
| threads threadId |
@@ -1463,11 +1475,13 @@
when: GDBCmdParamChangedEvent send: #onCmdParamChangedEvent: to: self;
- when: GDBTargetConnectedEvent send: #onTargetConnectedEvent: to: self.
+ when: GDBTargetConnectedEvent send: #onTargetConnectedEvent: to: self;
+
+ when: GDBRegisterChangedEvent send: #onRegisterChangedEvent: to: self.
"Created: / 20-06-2014 / 22:07:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 22-01-2019 / 13:36:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 18-11-2021 / 23:11:08 / Jan Vrany <jan.vrany@labware.com>"
+ "Modified: / 04-09-2023 / 16:25:40 / Jan Vrany <jan.vrany@labware.com>"
!
unsubscribe