mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
AK: Add a getter to JsonValue to get machine-native addresses
This commit is contained in:
parent
36e36507d5
commit
11e02f222d
3 changed files with 14 additions and 9 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue