Skip to content

Commit 5cdf952

Browse files
committed
Further documented the Mach-O file abstraction structure
1 parent 1a46f2a commit 5cdf952

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/parser/file/macho/machoFile.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/
100101
bool 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+
*/
102112
bool machoFile_getFunctionInfo(struct machoFile* self, const char* functionName, struct functionInfo* info);
103113

104114
/**

0 commit comments

Comments
 (0)