summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCoreDump/Reader.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-01-15 20:49:32 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-15 23:26:47 +0100
commit0187fd4fdd7c9272265d24abe9a37debfb864dee (patch)
tree4f03dad87ba402374bca65a1d58a07b6527f6292 /Userland/Libraries/LibCoreDump/Reader.h
parent1ccc2e6482aa9567039c8bc8b9df35f9275c4947 (diff)
downloadserenity-0187fd4fdd7c9272265d24abe9a37debfb864dee.zip
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.
Diffstat (limited to 'Userland/Libraries/LibCoreDump/Reader.h')
-rw-r--r--Userland/Libraries/LibCoreDump/Reader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCoreDump/Reader.h b/Userland/Libraries/LibCoreDump/Reader.h
index 15a7f38198..7fd3aaf715 100644
--- a/Userland/Libraries/LibCoreDump/Reader.h
+++ b/Userland/Libraries/LibCoreDump/Reader.h
@@ -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>);