1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-17 02:41:00 +00:00
serenity/Userland/DevTools
Daniel Bertalan ac1cac286b Profiler: Fix disassembling objects with a non-zero .text vaddr
Previously, we assumed that the `.text` segment was loaded at vaddr 0 in
shared object, which is not the case with `-z separate-code` enabled.
Because we didn't do the right calculations to translate an address from
a performance event into its value within the ELF file, Profiler would
try to disassemble out-of-bounds memory locations, leading to a crash.

This commit also changes `LibraryMetadata` to apply to a loaded library
as a whole, not just to one of its segments (like .text or .data). This
lets us simplify the interface, as we no longer have to worry about
`text_base`.

Fixes #10628
2021-10-25 12:14:26 +02:00
..
HackStudio LibJS: Rename PropertyName to PropertyKey 2021-10-24 17:18:07 +02:00
Inspector Everywhere: Replace Model::update() with Model::invalidate() 2021-08-06 19:14:31 +02:00
Playground Playground: Ask to save file contents on quit action 2021-09-12 16:30:25 +02:00
Profiler Profiler: Fix disassembling objects with a non-zero .text vaddr 2021-10-25 12:14:26 +02:00
UserspaceEmulator UE: Properly align stack for signal handlers 2021-10-24 21:54:51 +02:00
CMakeLists.txt HackStudio: Enable building HackStudio on x86_64 2021-08-02 00:57:06 +02:00