diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-21 19:57:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-22 08:57:01 +0200 |
commit | 11e02f222d2389c608be9e5a842a6bc60d07dd28 (patch) | |
tree | d1f5fc40cf5fb10502df73e4f0f972a3a360e1de /Userland/Libraries/LibSymbolication/Symbolication.cpp | |
parent | 36e36507d50fd9d36670a855eaeb8f2a58a35131 (diff) | |
download | serenity-11e02f222d2389c608be9e5a842a6bc60d07dd28.zip |
AK: Add a getter to JsonValue to get machine-native addresses
Diffstat (limited to 'Userland/Libraries/LibSymbolication/Symbolication.cpp')
-rw-r--r-- | Userland/Libraries/LibSymbolication/Symbolication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp index a879be3390..40983c1988 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.cpp +++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp @@ -108,7 +108,7 @@ Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid) stack.ensure_capacity(json.value().as_array().size()); for (auto& value : json.value().as_array().values()) { - stack.append(value.to_u32()); + stack.append(value.to_addr()); } } @@ -129,8 +129,8 @@ Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid) for (auto& region_value : json.value().as_array().values()) { auto& region = region_value.as_object(); auto name = region.get("name").to_string(); - auto address = region.get("address").to_u32(); - auto size = region.get("size").to_u32(); + auto address = region.get("address").to_addr(); + auto size = region.get("size").to_addr(); String path; if (name == "/usr/lib/Loader.so") { |