mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
Kernel: Store coredump metadata properties as KStrings
This patch also replaces the HashMap previously used to store coredump properties with a plain AK::Array.
This commit is contained in:
parent
95669fa861
commit
33adc3a42d
6 changed files with 55 additions and 24 deletions
|
@ -291,8 +291,9 @@ ByteBuffer CoreDump::create_notes_metadata_data() const
|
|||
StringBuilder builder;
|
||||
{
|
||||
JsonObjectSerializer metadata_obj { builder };
|
||||
for (auto& it : m_process->coredump_metadata())
|
||||
metadata_obj.add(it.key, it.value);
|
||||
m_process->for_each_coredump_property([&](auto& key, auto& value) {
|
||||
metadata_obj.add(key.view(), value.view());
|
||||
});
|
||||
}
|
||||
builder.append(0);
|
||||
metadata_data.append(builder.string_view().characters_without_null_termination(), builder.length());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue