Oops, correctly handle case where `#selectedFrame` is `nil`
...when updating selected frame.
--- a/GDBDebugger.st Tue Jan 25 15:31:28 2022 +0000
+++ b/GDBDebugger.st Wed Jan 26 16:06:07 2022 +0000
@@ -3,7 +3,7 @@
"
jv:libgdbs - GNU Debugger Interface Library
Copyright (C) 2015-now Jan Vrany
-Copyright (C) 2021 LabWare
+Copyright (C) 2021-2022 LabWare
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -40,7 +40,7 @@
"
jv:libgdbs - GNU Debugger Interface Library
Copyright (C) 2015-now Jan Vrany
-Copyright (C) 2021 LabWare
+Copyright (C) 2021-2022 LabWare
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -309,7 +309,7 @@
self changed: #selectedFrame with: selectedFrame
] ifFalse: [
selectedFrame ~= frame ifTrue: [
- (selectedFrame isSameAs: frame) ifTrue: [
+ (selectedFrame notNil and:[selectedFrame isSameAs: frame]) ifTrue: [
selectedFrame invalidate.
selectedFrame setAddr: frame addr.
selectedFrame setLine: frame line.
@@ -321,7 +321,7 @@
].
"Created: / 09-03-2021 / 14:54:42 / Jan Vrany <jan.vrany@labware.com>"
- "Modified: / 10-03-2021 / 19:12:57 / Jan Vrany <jan.vrany@labware.com>"
+ "Modified: / 24-01-2022 / 15:59:26 / Jan Vrany <jan.vrany@labware.com>"
! !
!GDBDebugger methodsFor:'accessing-properties'!