GDBTransientObject.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 01 Oct 2014 02:04:11 +0100
changeset 51 2fa20404923c
parent 37 a85f0c91f164
child 55 437ee6413c74
permissions -rw-r--r--
Introduced GDBThreadGroupType. Currently, there's only type 'process' as it is the only type supported by GDB.

"{ Package: 'jv:libgdbs' }"

GDBDebuggerObject subclass:#GDBTransientObject
	instanceVariableNames:'stateSequenceNumber'
	classVariableNames:''
	poolDictionaries:''
	category:'GDB-Core'
!

!GDBTransientObject class methodsFor:'testing'!

isAbstract
    ^ self == GDBTransientObject
! !

!GDBTransientObject methodsFor:'private'!

ensureIsValid
    self isValid ifTrue:[
        (GDBInvalidObject newException)
            parameter:self;
            messageText:'Invalid object (thread resumed)';
            raise.
    ].

    "Created: / 07-09-2014 / 23:08:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!GDBTransientObject methodsFor:'testing'!

isValid
    ^ debugger currentInferiorStateSequnceNumber ~~ stateSequenceNumber
! !