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

Kernel: Pass full path of output coredump file to CoreDump

This commit is contained in:
Itamar 2020-11-13 22:38:58 +02:00 committed by Andreas Kling
parent dfdd977a82
commit 39890af833
4 changed files with 15 additions and 11 deletions

View file

@ -27,6 +27,7 @@
#pragma once
#include <AK/LexicalPath.h>
#include <AK/NonnullRefPtr.h>
#include <AK/OwnPtr.h>
#include <Kernel/Forward.h>
@ -38,7 +39,7 @@ class Process;
class CoreDump {
public:
static OwnPtr<CoreDump> create(Process&);
static OwnPtr<CoreDump> create(Process&, const LexicalPath& output_path);
~CoreDump();
void write();
@ -47,7 +48,7 @@ public:
CoreDump(Process&, NonnullRefPtr<FileDescription>&&);
private:
static RefPtr<FileDescription> create_target_file(const Process&);
static RefPtr<FileDescription> create_target_file(const Process&, const LexicalPath& output_path);
void write_elf_header();
void write_program_headers(size_t notes_size);