mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: use old style relative address generation
Copy this from the old decoder so it's not something to worry about.
This commit is contained in:
@ -93,7 +93,10 @@ sysprof_elf_symbolizer_symbolize (SysprofSymbolizer *symbolizer,
|
||||
g_assert (address < map_end);
|
||||
|
||||
file_offset = sysprof_document_mmap_get_file_offset (map);
|
||||
relative_address = file_offset + (address - map_begin);
|
||||
|
||||
relative_address = address;
|
||||
relative_address -= map_begin;
|
||||
relative_address += file_offset;
|
||||
|
||||
path = sysprof_document_mmap_get_file (map);
|
||||
build_id = sysprof_document_mmap_get_build_id (map);
|
||||
|
||||
Reference in New Issue
Block a user