mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
Kernel: Store process arguments and environment in coredumps
Currently they're only pushed onto the stack but not easily accessible from the Process class, so this adds a Vector<String> for both.
This commit is contained in:
parent
7668e968af
commit
1ccc2e6482
4 changed files with 14 additions and 0 deletions
|
@ -400,6 +400,9 @@ public:
|
|||
Custody* executable() { return m_executable.ptr(); }
|
||||
const Custody* executable() const { return m_executable.ptr(); }
|
||||
|
||||
const Vector<String>& arguments() const { return m_arguments; };
|
||||
const Vector<String>& environment() const { return m_environment; };
|
||||
|
||||
int number_of_open_file_descriptors() const;
|
||||
int max_open_file_descriptors() const
|
||||
{
|
||||
|
@ -614,6 +617,9 @@ private:
|
|||
RefPtr<Custody> m_root_directory;
|
||||
RefPtr<Custody> m_root_directory_relative_to_global_root;
|
||||
|
||||
Vector<String> m_arguments;
|
||||
Vector<String> m_environment;
|
||||
|
||||
RefPtr<TTY> m_tty;
|
||||
|
||||
Region* find_region_from_range(const Range&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue