mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Kernel: Generate a coredump file when a process crashes
When a process crashes, we generate a coredump file and write it in /tmp/coredumps/. The coredump file is an ELF file of type ET_CORE. It contains a segment for every userspace memory region of the process, and an additional PT_NOTE segment that contains the registers state for each thread, and a additional data about memory regions (e.g their name).
This commit is contained in:
parent
efe4da57df
commit
b4842d33bb
11 changed files with 427 additions and 1 deletions
|
@ -234,6 +234,11 @@ public:
|
|||
__builtin_memcpy(this->data() + old_size, data, data_size);
|
||||
}
|
||||
|
||||
void operator+=(const ByteBuffer& other)
|
||||
{
|
||||
append(other.data(), other.size());
|
||||
}
|
||||
|
||||
void overwrite(size_t offset, const void* data, size_t data_size)
|
||||
{
|
||||
// make sure we're not told to write past the end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue