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

LibCoreDump: Expose arguments and environment

We can pull those from the coredump's ProcessInfo JSON, do some basic
sanity checks and expose them as ready-to-use Vector<String>s.
This commit is contained in:
Linus Groh 2021-01-15 20:49:32 +01:00 committed by Andreas Kling
parent 1ccc2e6482
commit 0187fd4fdd
2 changed files with 32 additions and 2 deletions

View file

@ -65,7 +65,9 @@ public:
int process_pid() const;
u8 process_termination_signal() const;
String process_executable_path() const;
const HashMap<String, String> metadata() const;
Vector<String> process_arguments() const;
Vector<String> process_environment() const;
HashMap<String, String> metadata() const;
private:
Reader(NonnullRefPtr<MappedFile>);