From 3340b03ebf044ec4b28cb32fccc40768b1d431d1 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 29 Sep 2003 19:05:49 +0000 Subject: [PATCH] Fix for PR 43856: Format doesn't work for wchar_t. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 4 ++++ .../src/org/eclipse/cdt/debug/internal/core/model/CValue.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 090fa7e0991..417870c2393 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2003-10-29 Mikhail Khodjaiants + Fix for PR 43856: Format doesn't work for wchar_t. + * CValue.java + 2003-10-23 Mikhail Khodjaiants Changed the 'hasStackFrames' method of the 'CThread' class to return true regardless if the thread contains stack frames or not. This method is only used by UI to update the thread label. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java index b8a050492a5..c709652a7bf 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java @@ -455,7 +455,7 @@ public class CValue extends CDebugElement implements ICValue if ( getParentVariable() != null ) { int size = getParentVariable().sizeof(); - if ( size == 16 ) + if ( size == 2 ) { switch( getParentVariable().getFormat() ) { @@ -471,7 +471,7 @@ public class CValue extends CDebugElement implements ICValue } } } - if ( size == 32 ) + if ( size == 4 ) { switch( getParentVariable().getFormat() ) {