mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 08:35:26 +00:00
Kernel: By default, don't dump regions when a userspace crash happens
There is the DUMP_REGIONS_ON_CRASH debug macro which re-enables this (old) behavior.
This commit is contained in:
committed by
Andreas Kling
parent
416fa7bd4f
commit
1a7d6508e3
@@ -412,7 +412,9 @@ void Process::crash(int signal, FlatPtr ip, bool out_of_memory)
|
||||
protected_data.termination_signal = signal;
|
||||
});
|
||||
set_should_generate_coredump(!out_of_memory);
|
||||
address_space().with([](auto& space) { space->dump_regions(); });
|
||||
if constexpr (DUMP_REGIONS_ON_CRASH) {
|
||||
address_space().with([](auto& space) { space->dump_regions(); });
|
||||
}
|
||||
VERIFY(is_user_process());
|
||||
die();
|
||||
// We can not return from here, as there is nowhere
|
||||
|
||||
Reference in New Issue
Block a user