mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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:
parent
1ccc2e6482
commit
0187fd4fdd
2 changed files with 32 additions and 2 deletions
|
@ -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>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue