mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 22:15:17 -04:00
creport: Complete crash report saving.
This commit is contained in:
parent
d5b303f852
commit
4eadeb021b
7 changed files with 231 additions and 45 deletions
|
@ -2,6 +2,19 @@
|
|||
#include <cstring>
|
||||
|
||||
#include "creport_code_info.hpp"
|
||||
#include "creport_crash_report.hpp"
|
||||
|
||||
void CodeList::SaveToFile(FILE *f_report) {
|
||||
fprintf(f_report, " Number of Code Regions: %u\n", this->code_count);
|
||||
for (unsigned int i = 0; i < this->code_count; i++) {
|
||||
fprintf(f_report, " Code Region %02u:\n", i);
|
||||
fprintf(f_report, " Address: %016lx-%016lx\n", this->code_infos[i].start_address, this->code_infos[i].end_address);
|
||||
if (this->code_infos[i].name[0]) {
|
||||
fprintf(f_report, " Name: %s\n", this->code_infos[i].name);
|
||||
}
|
||||
CrashReport::Memdump(f_report, " Build Id: ", this->code_infos[i].build_id, sizeof(this->code_infos[i].build_id));
|
||||
}
|
||||
}
|
||||
|
||||
void CodeList::ReadCodeRegionsFromProcess(Handle debug_handle, u64 pc, u64 lr) {
|
||||
u64 code_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue