File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ bool elfFile_parse(struct elfFile* self) {
346346 * @param address the address to be translated
347347 * @return the optionally available debug information
348348 */
349- static inline optional_debugInfo_t elfFile_getDebugInfo (struct elfFile * self , void * address ) {
349+ static inline optional_debugInfo_t elfFile_getDebugInfo (struct elfFile * self , const void * address ) {
350350 optional_debugInfo_t toReturn = { .has_value = false };
351351
352352 const uint64_t translated = (uintptr_t ) address - self -> _ .relocationOffset ;
@@ -427,7 +427,7 @@ vector_pair_ptr_t elfFile_getTLSRegions(struct elfFile* self) {
427427 return (vector_pair_ptr_t ) vector_initializer ;
428428}
429429
430- bool elfFile_addr2String (struct elfFile * self , void * address , struct callstack_frame * frame ) {
430+ bool elfFile_addr2String (struct elfFile * self , const void * address , struct callstack_frame * frame ) {
431431 if (!BINARY_FILE_SUPER (self , maybeParse )) {
432432 return false;
433433 }
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ bool elfFile_parse(struct elfFile* self);
8686 * @param frame the callstack frame object to store the information in
8787 * @return whether the callstack frame object was filled successfully
8888 */
89- bool elfFile_addr2String (struct elfFile * self , void * address , struct callstack_frame * frame );
89+ bool elfFile_addr2String (struct elfFile * self , const void * address , struct callstack_frame * frame );
9090
9191/**
9292 * Loads the function information for the function of the given name.
You can’t perform that action at this time.
0 commit comments