# HG changeset patch # User Jan Vrany # Date 1538474193 -3600 # Node ID 50a8d9281fdc6f0aa97f33187ae9050ff781fde2 # Parent 1256a03213cf8d4aac1f31b8f96bef06c57b83c8 API: add `GDBFrame >> hasSymbol` and `GDBFrame >> hasSource` diff -r 1256a03213cf -r 50a8d9281fdc GDBFrame.st --- a/GDBFrame.st Fri Sep 28 09:56:36 2018 +0100 +++ b/GDBFrame.st Tue Oct 02 10:56:33 2018 +0100 @@ -364,6 +364,26 @@ "Modified: / 27-09-2018 / 10:18:46 / Jan Vrany " ! ! +!GDBFrame methodsFor:'queries'! + +hasSource + "Return `true` if a source file can is available, + `false` otherwise." + + ^ self file notNil + + "Created: / 02-10-2018 / 10:28:51 / Jan Vrany " +! + +hasSymbol + "Return `true` if GDB find a symbol (function name) + for this frame's code, `false` otherwise." + + ^ func notNil and:[ func ~= '??' ] + + "Created: / 02-10-2018 / 09:47:50 / Jan Vrany " +! ! + !GDBFrame methodsFor:'testing'! isValid