mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 22:15:17 -04:00
creport: Pretty-print addresses whenever possible.
This commit is contained in:
parent
5993614c2e
commit
a811b447ce
6 changed files with 38 additions and 12 deletions
|
@ -16,8 +16,12 @@ class CodeList {
|
|||
static const size_t max_code_count = 0x10;
|
||||
u32 code_count = 0;
|
||||
CodeInfo code_infos[max_code_count];
|
||||
|
||||
/* For pretty-printing. */
|
||||
char address_str_buf[0x280];
|
||||
public:
|
||||
void ReadCodeRegionsFromProcess(Handle debug_handle, u64 pc, u64 lr);
|
||||
const char *GetFormattedAddressString(u64 address);
|
||||
void SaveToFile(FILE *f_report);
|
||||
private:
|
||||
bool TryFindCodeRegion(Handle debug_handle, u64 guess, u64 *address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue