Level load test (#656)

* tweaks for loading VI1

* temp

* clean up
This commit is contained in:
water111
2021-06-30 19:20:31 -04:00
committed by GitHub
parent bf557ff278
commit a81aef889a
16 changed files with 150 additions and 19 deletions
+20
View File
@@ -127,6 +127,26 @@ bool Debugger::attach_and_break() {
return false;
}
std::string Debugger::get_info_about_addr(u32 addr) {
if (addr >= EE_MAIN_MEM_LOW_PROTECT && addr < EE_MAIN_MEM_SIZE) {
auto map_loc = m_memory_map.lookup(addr);
if (map_loc.empty) {
return "Unknown Address";
}
std::string result = fmt::format("Object: {}\n", map_loc.obj_name);
u64 obj_offset = addr - map_loc.start_addr;
FunctionDebugInfo* info = nullptr;
std::string name;
if (get_debug_info_for_object(map_loc.obj_name)
.lookup_function(&info, &name, obj_offset, map_loc.seg_id)) {
result += fmt::format("Name: {}\n", name);
}
return result;
} else {
return "Outside of GOAL memory";
}
}
/*!
* Read the registers, symbol table, and instructions near rip.
* Print out some info about where we are.