summaryrefslogtreecommitdiff
path: root/binaryninjaapi.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 /binaryninjaapi.h
parent33e31719d37deed58cfe709bf475b80fece8c34a (diff)
display as in linear view
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 0348c52b..05924070 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -1198,6 +1198,13 @@ __attribute__ ((format (printf, 1, 2)))
class Tag;
+ struct DisassemblyTextLineTypeInfo
+ {
+ bool hasTypeInfo;
+ BinaryNinja::Ref<BinaryNinja::Type> parentType;
+ size_t fieldIndex;
+ };
+
struct DisassemblyTextLine
{
uint64_t addr;
@@ -1205,6 +1212,7 @@ __attribute__ ((format (printf, 1, 2)))
std::vector<InstructionTextToken> tokens;
BNHighlightColor highlight;
std::vector<Ref<Tag>> tags;
+ DisassemblyTextLineTypeInfo typeInfo;
DisassemblyTextLine();
};
@@ -2500,6 +2508,8 @@ __attribute__ ((format (printf, 1, 2)))
QualifiedName GetStructureName() const;
Ref<NamedTypeReference> GetRegisteredName() const;
+ BNIntegerDisplayType GetIntegerTypeDisplayType() const;
+
uint64_t GetElementCount() const;
uint64_t GetOffset() const;
@@ -2597,6 +2607,7 @@ __attribute__ ((format (printf, 1, 2)))
Confidence<bool> IsSigned() const;
Confidence<bool> IsConst() const;
Confidence<bool> IsVolatile() const;
+ void SetIntegerTypeDisplayType(BNIntegerDisplayType displayType);
Confidence<Ref<Type>> GetChildType() const;
Confidence<Ref<CallingConvention>> GetCallingConvention() const;
@@ -5289,7 +5300,8 @@ __attribute__ ((format (printf, 1, 2)))
bool hasAutoAnnotations,
const std::string& leadingSpaces=" ",
const std::string& indentSpaces="");
- static std::string GetDisplayStringForInteger(Ref<BinaryView> binaryView, BNIntegerDisplayType type, uint64_t value, size_t inputWidth);
+ static std::string GetDisplayStringForInteger(Ref<BinaryView> binaryView, BNIntegerDisplayType type,
+ uint64_t value, size_t inputWidth, bool isSigned = true);
};
struct LinearViewObjectIdentifier