help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Single-step debugging, Semaphore and thread-schedul


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Single-step debugging, Semaphore and thread-scheduling
Date: Mon, 05 May 2014 02:29:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Il 05/05/2014 02:16, Holger Hans Peter Freyther ha scritto:
> Any ideas for a short-term fix? I would love to release v3.3 of GST
> but the VisualGST debugger is breaking in way too simple ways right
> now.
VisualGST.GtkDebugger extend [
    debugWith: aBlock [
        <category: 'execute events'>

        TaskQueue uniqueInstance add: [
            self isLastContextSelected ifFalse: [ self stepToSelectedContext ].
            aBlock value.
            debugger suspendedContext ifNotNil: [
                (debugger suspendedContext method = 
(Object>>#removeToBeFinalized))
                    ifTrue: [debugger finish]].
            self updateContextWidget ]
    ]
]


This would be my proposal. Determine some methods we can not support in
single-step mode and then just skip them. Right now this would be the
addToBeFinalized/removeToBeFinalized as the Glib/Gtk code is using them
internally. Same probably goes for the Transcript>>#critical: if the
rest of the code would go through "self critical:" instead of "semaphore
criticial".

With a comment, that looks good.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]