File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ struct machoFile {
6060
6161 /** The functions mapped to their object file. */
6262 vector_pairFuncFile_t functions ;
63+ /** The start addresses of the contained functions. */
6364 vector_uint64_t functionStarts ;
6465};
6566
@@ -99,6 +100,15 @@ static inline struct machoFile* machoFileOrNull(struct binaryFile * self) {
99100 */
100101bool machoFile_addr2String (struct binaryFile * self , void * address , struct callstack_frame * frame );
101102
103+ /**
104+ * Tries to fill the given function info structure with the information for the
105+ * function of the given name.
106+ *
107+ * @param self the Mach-O file abstraction structure
108+ * @param functionName the name of the desired function
109+ * @param info the info structure to be filled
110+ * @return whether the function was found
111+ */
102112bool machoFile_getFunctionInfo (struct machoFile * self , const char * functionName , struct functionInfo * info );
103113
104114/**
You can’t perform that action at this time.
0 commit comments