1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00

UserspaceEmulator: Capture backtraces of malloc/free events

This lets us show backtraces for each leaked mallocation in the leak
report at the end. :^)
This commit is contained in:
Andreas Kling 2020-07-16 17:14:58 +02:00
parent f6584bfc36
commit 441918be7e
4 changed files with 32 additions and 14 deletions

View file

@ -46,6 +46,8 @@ public:
bool load_elf();
void dump_backtrace();
void dump_backtrace(const Vector<FlatPtr>&);
Vector<FlatPtr> raw_backtrace();
int exec();
u32 virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3);