diff options
author | eutarass | 2009-11-18 23:20:06 +0000 |
---|---|---|
committer | eutarass | 2009-11-18 23:20:06 +0000 |
commit | f00317390364afbeb338bb9870f2e4b227976830 (patch) | |
tree | 7a692b2362b1e9e54eb21e046a939eb71544a315 | |
parent | 670352564ea915bf164887003ddc66efe4cc802c (diff) | |
download | org.eclipse.tcf-f00317390364afbeb338bb9870f2e4b227976830.tar.gz org.eclipse.tcf-f00317390364afbeb338bb9870f2e4b227976830.tar.xz org.eclipse.tcf-f00317390364afbeb338bb9870f2e4b227976830.zip |
Symbols service: add two new symbol properties: LowerBound and UpperBound
-rw-r--r-- | plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/SymbolsProxy.java | 8 | ||||
-rw-r--r-- | plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/ISymbols.java | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/SymbolsProxy.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/SymbolsProxy.java index 728321da4..bd1387b3b 100644 --- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/SymbolsProxy.java +++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/SymbolsProxy.java @@ -49,6 +49,14 @@ public class SymbolsProxy implements ISymbols { return n.intValue(); } + public Number getLowerBound() { + return (Number)props.get(PROP_LOWER_BOUND); + } + + public Number getUpperBound() { + return (Number)props.get(PROP_UPPER_BOUND); + } + public String getName() { return (String)props.get(PROP_NAME); } diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/ISymbols.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/ISymbols.java index e1b0e335f..450a6e7df 100644 --- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/ISymbols.java +++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/ISymbols.java @@ -117,6 +117,18 @@ public interface ISymbols extends IService { int getLength(); /** + * If symbol is an array type - return array index lower bound. + * @return lower bound. + */ + Number getLowerBound(); + + /** + * If symbol is an array type - return array index upper bound. + * @return upper bound. + */ + Number getUpperBound(); + + /** * Return offset from 'this' for member of class, struct or union. * @return offset in bytes. */ @@ -155,6 +167,8 @@ public interface ISymbols extends IService { PROP_INDEX_TYPE_ID = "IndexTypeID", PROP_SIZE = "Size", PROP_LENGTH = "Length", + PROP_LOWER_BOUND = "LowerBound", + PROP_UPPER_BOUND = "UpperBound", PROP_OFFSET = "Offset", PROP_ADDRESS = "Address", PROP_VALUE = "Value"; |