summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorChinmay <chinmay1dd@gmail.com>2020-08-12 01:20:22 -0700
committerChinmay Deshpande <chinmay1dd@gmail.com>2020-08-13 19:31:20 -0700
commit139c90f93cb10317339fce1ad81ac61425498099 (patch)
tree25e90b6cfdc91580eba6017b55b5046bf1faae33 /binaryninjaapi.h
parent153e9543984751449e64048a5acceff9524221ce (diff)
Update function names and change up API
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 90bbc4c2..692cbebf 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2909,6 +2909,24 @@ __attribute__ ((format (printf, 1, 2)))
Ref<Architecture> arch;
uint64_t address;
+ ArchAndAddr& operator=(const ArchAndAddr& a)
+ {
+ arch = a.arch;
+ address = a.address;
+ return *this;
+ }
+ bool operator==(const ArchAndAddr& a) const
+ {
+ return (arch == a.arch) && (address == a.address);
+ }
+ bool operator<(const ArchAndAddr& a) const
+ {
+ if (arch < a.arch)
+ return true;
+ if (arch > a.arch)
+ return false;
+ return address < a.address;
+ }
ArchAndAddr(): arch(nullptr), address(0) {}
ArchAndAddr(Architecture* a, uint64_t addr): arch(a), address(addr) {}
};
@@ -3163,9 +3181,10 @@ __attribute__ ((format (printf, 1, 2)))
Ref<FlowGraph> GetUnresolvedStackAdjustmentGraph();
- void SetVariableValue(const Variable& var, uint64_t defAddr, PossibleValueSet& value);
- void ClearInformedVariableValue(const Variable& var, uint64_t defAddr);
- void ClearInformedVariableValues();
+ void SetUserVariableValue(const Variable& var, uint64_t defAddr, PossibleValueSet& value);
+ void ClearUserVariableValue(const Variable& var, uint64_t defAddr);
+ std::map<Variable, std::map<ArchAndAddr, PossibleValueSet>> GetAllUserVariableValues();
+ void ClearAllUserVariableValues();
void RequestDebugReport(const std::string& name);