From 6293afcb4e10997838f94c38430feba9742bea75 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Wed, 20 Aug 2025 11:51:43 -0400 Subject: Clarify the documentation on how multiple symbols at the same address are handled --- binaryninjaapi.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 589556f1..c7bd2d4c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -6689,7 +6689,8 @@ namespace BinaryNinja { /*! Adds a symbol to the internal list of automatically discovered Symbol objects in a given namespace - \warning If multiple symbols for the same address are defined, only the most recent symbol will ever be used. + \warning If multiple symbols for the same address are defined, the most recently added symbol + with the highest confidence and lowest `BNSymbolType` value will be used. \param sym Symbol to define */ @@ -6697,8 +6698,11 @@ namespace BinaryNinja { /*! Defines an "Auto" symbol, and a Variable/Function alongside it + \warning If multiple symbols for the same address are defined, the most recently added symbol + with the highest confidence and lowest `BNSymbolType` value will be used. + \param platform Platform for the Type being defined - \param sym Symbol being definedd + \param sym Symbol being defined \param type Type being defined \return The defined symbol */ @@ -6712,6 +6716,9 @@ namespace BinaryNinja { /*! Define a user symbol + \warning If multiple symbols for the same address are defined, the most recently added symbol + with the highest confidence and lowest `BNSymbolType` value will be used. + \param sym Symbol to define */ void DefineUserSymbol(Ref sym); -- cgit v1.3.1