mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
Kernel: Add sys$set_coredump_metadata() syscall
This can be used by applications to store information (key/value pairs) likely useful for debugging, which will then be embedded in the coredump.
This commit is contained in:
parent
7413a7c509
commit
91332515a6
Notes:
sideshowbarker
2024-07-19 00:22:17 +09:00
Author: https://github.com/linusg
Commit: 91332515a6
Pull-request: https://github.com/SerenityOS/serenity/pull/4661
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
3 changed files with 34 additions and 1 deletions
|
@ -196,7 +196,8 @@ namespace Kernel {
|
|||
S(adjtime) \
|
||||
S(allocate_tls) \
|
||||
S(prctl) \
|
||||
S(mremap)
|
||||
S(mremap) \
|
||||
S(set_coredump_metadata)
|
||||
|
||||
namespace Syscall {
|
||||
|
||||
|
@ -442,6 +443,11 @@ struct SC_ptrace_peek_params {
|
|||
u32* out_data;
|
||||
};
|
||||
|
||||
struct SC_set_coredump_metadata_params {
|
||||
StringArgument key;
|
||||
StringArgument value;
|
||||
};
|
||||
|
||||
void initialize();
|
||||
int sync();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue