summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-08-24 21:46:36 +0800
committerXusheng <xusheng@vector35.com>2020-09-15 09:29:54 +0800
commit75d05ea710f80a0ca2fdc53b638952a7a97e7ad8 (patch)
treef8fe2205178cd7942a1e6d45c79dda9d748b526f /binaryninjacore.h
parent33e31719d37deed58cfe709bf475b80fece8c34a (diff)
display as in linear view
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 7715bd9d..9cc2bb32 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -259,6 +259,7 @@ extern "C"
CommentToken = 29,
PossibleValueToken = 30,
PossibleValueTypeToken = 31,
+ ArrayIndexToken = 32,
// The following are output by the analysis system automatically, these should
// not be used directly by the architecture plugins
CodeSymbolToken = 64,
@@ -1546,6 +1547,13 @@ extern "C"
uint8_t mix, r, g, b, alpha;
};
+ struct BNDisassemblyTextLineTypeInfo
+ {
+ bool hasTypeInfo;
+ BNType* parentType;
+ size_t fieldIndex;
+ };
+
struct BNDisassemblyTextLine
{
uint64_t addr;
@@ -1555,6 +1563,7 @@ extern "C"
BNHighlightColor highlight;
BNTag** tags;
size_t tagCount;
+ BNDisassemblyTextLineTypeInfo typeInfo;
};
struct BNLinearDisassemblyLine
@@ -3027,7 +3036,8 @@ __attribute__ ((format (printf, 1, 2)))
BNDisassemblySettings* settings, size_t* count);
BINARYNINJACOREAPI void BNFreeDisassemblyTextLines(BNDisassemblyTextLine* lines, size_t count);
- BINARYNINJACOREAPI char* BNGetDisplayStringForInteger(BNBinaryView* binaryView, BNIntegerDisplayType type, uint64_t value, size_t inputWidth);
+ BINARYNINJACOREAPI char* BNGetDisplayStringForInteger(BNBinaryView* binaryView, BNIntegerDisplayType type,
+ uint64_t value, size_t inputWidth, bool isSigned);
BINARYNINJACOREAPI BNDisassemblyTextRenderer* BNCreateDisassemblyTextRenderer(BNFunction* func,
BNDisassemblySettings* settings);
BINARYNINJACOREAPI BNDisassemblyTextRenderer* BNCreateLowLevelILDisassemblyTextRenderer(BNLowLevelILFunction* func,
@@ -3996,6 +4006,8 @@ __attribute__ ((format (printf, 1, 2)))
BINARYNINJACOREAPI BNTypeClass BNGetTypeClass(BNType* type);
BINARYNINJACOREAPI uint64_t BNGetTypeWidth(BNType* type);
BINARYNINJACOREAPI size_t BNGetTypeAlignment(BNType* type);
+ BINARYNINJACOREAPI BNIntegerDisplayType BNGetIntegerTypeDisplayType(BNType* type);
+ BINARYNINJACOREAPI void BNSetIntegerTypeDisplayType(BNTypeBuilder* type, BNIntegerDisplayType displayType);
BINARYNINJACOREAPI BNBoolWithConfidence BNIsTypeSigned(BNType* type);
BINARYNINJACOREAPI BNBoolWithConfidence BNIsTypeConst(BNType* type);
BINARYNINJACOREAPI BNBoolWithConfidence BNIsTypeVolatile(BNType* type);