|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
🐧 Linux system utilities and backtrace symbol resolution More...
Go to the source code of this file.
Functions | |
| int | get_binary_file_address_offsets (const void *addr, platform_binary_match_t *matches, int max_matches) |
| Get binary that contains address on Linux via /proc/self/maps. | |
🐧 Linux system utilities and backtrace symbol resolution
Definition in file linux/system.c.
| int get_binary_file_address_offsets | ( | const void * | addr, |
| platform_binary_match_t * | matches, | ||
| int | max_matches | ||
| ) |
Get binary that contains address on Linux via /proc/self/maps.
Scans /proc/self/maps to find which loaded binary (exe or .so) contains the given runtime address. Returns the file offset within that binary, which is passed to llvm-symbolizer for symbol resolution.
| addr | Runtime address from backtrace |
| matches | Output array for matches (path, offset, is_project_lib) |
| max_matches | Maximum number of matches to store |
Definition at line 26 of file linux/system.c.
References PLATFORM_MAX_PATH_LENGTH.