KDE/kdevplatform/debugger/variable
Niko Sams
niko.sams at gmail.com
Wed Oct 14 08:53:36 UTC 2009
On Tue, Oct 13, 2009 at 22:18, Vladimir Prus <ghost at cs.msu.su> wrote:
> On Saturday 03 October 2009 Niko Sams wrote:
>
>> SVN commit 1030728 by nsams:
>>
>> Don't crash when debugger doesn't provide a VariableController
>>
>> M +6 -0 variablecollection.cpp
>>
>>
>> --- trunk/KDE/kdevplatform/debugger/variable/variablecollection.cpp #1030727:1030728
>> @@ -138,6 +138,7 @@
>>
>> Variable* Watches::add(const QString& expression)
>> {
>> + if (!currentSession()->variableController()) return 0;
>
>
> It seems to me that if methods of Watches class is called when there's
> no variable controller, then things are very, very broken. Am I missing
> something?
If a debugger plugin doesn't have a VariableController (because it's
simply not implemented)
then this could happen.
This *was* the case for xdebug.
If you think we don't need to support this I can revert it.
Niko
More information about the KDevelop-devel
mailing list