From 68a9e96c98dbed4e4154a13ffec7b9c94876661a Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 27 Apr 2020 23:14:44 -0400 Subject: Add names for goto labels --- binaryninjaapi.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 7a864b58..af68eafd 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -3144,6 +3144,9 @@ __attribute__ ((format (printf, 1, 2))) Ref GetUnresolvedStackAdjustmentGraph(); void RequestDebugReport(const std::string& name); + + std::string GetGotoLabelName(uint64_t labelId); + void SetGotoLabelName(uint64_t labelId, const std::string& name); }; class AdvancedFunctionAnalysisDataRequestor @@ -4070,8 +4073,8 @@ __attribute__ ((format (printf, 1, 2))) ExprId Jump(ExprId dest, const ILSourceLocation& loc = ILSourceLocation()); ExprId Return(const std::vector& sources, const ILSourceLocation& loc = ILSourceLocation()); ExprId NoReturn(const ILSourceLocation& loc = ILSourceLocation()); - ExprId Goto(size_t target, const ILSourceLocation& loc = ILSourceLocation()); - ExprId Label(size_t target, const ILSourceLocation& loc = ILSourceLocation()); + ExprId Goto(uint64_t target, const ILSourceLocation& loc = ILSourceLocation()); + ExprId Label(uint64_t target, const ILSourceLocation& loc = ILSourceLocation()); ExprId VarDeclare(const Variable& var, const ILSourceLocation& loc = ILSourceLocation()); ExprId VarInit(size_t size, const Variable& dest, ExprId src, const ILSourceLocation& loc = ILSourceLocation()); @@ -4280,6 +4283,9 @@ __attribute__ ((format (printf, 1, 2))) void VisitAllExprs(const std::function& func); Ref CreateFunctionGraph(DisassemblySettings* settings = nullptr); + + size_t GetExprIndexForLabel(uint64_t label); + std::set GetUsesForLabel(uint64_t label); }; class FunctionRecognizer -- cgit v1.3.1