Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-11-25 18:35:23 +0000
committerEugene Tarassov2014-11-25 18:35:23 +0000
commit0cd22cd3514cf8f60bc307c526714a16918abddd (patch)
tree2b58a27261cde3cbd45f01dea9aa16dffacf820d
parente358dcc6a09857bc070e852365c837846b3c1394 (diff)
downloadorg.eclipse.tcf-0cd22cd3514cf8f60bc307c526714a16918abddd.tar.gz
org.eclipse.tcf-0cd22cd3514cf8f60bc307c526714a16918abddd.tar.xz
org.eclipse.tcf-0cd22cd3514cf8f60bc307c526714a16918abddd.zip
Bug 451356 - Long double values are not reported in the expression view
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
index e697b5073..05f6f5d62 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
@@ -203,6 +203,12 @@ public class TCFNumberFormat {
public static String toFPString(byte[] data, int offs, int size, boolean big_endian) {
assert offs + size <= data.length;
+
+ if (size == 12) {
+ // padded 80-bit extended precision on IA32
+ size = 10;
+ }
+
byte[] arr = new byte[size];
if (big_endian) {
System.arraycopy(data, offs, arr, 0, size);

Back to the top