Backtrace formatting cleanup

This commit is contained in:
Scott Lahteine
2018-04-04 20:23:41 -05:00
parent 902c885782
commit 4b25543633
2 changed files with 79 additions and 80 deletions

View File

@@ -46,7 +46,7 @@ void UnwInvalidateRegisterFile(RegData *regFile) {
do {
regFile[t].o = REG_VAL_INVALID;
t++;
} while(t < 13);
} while (t < 13);
}
@@ -107,7 +107,7 @@ bool UnwReportRetAddr(UnwState * const state, uint32_t addr) {
// Scan backwards until we find the function name
uint32_t v;
while(state->cb->readW(pf-4,&v)) {
while (state->cb->readW(pf-4,&v)) {
// Check if name descriptor is valid
if ((v & 0xFFFFFF00) == 0xFF000000 && (v & 0xFF) > 1) {
@@ -118,7 +118,7 @@ bool UnwReportRetAddr(UnwState * const state, uint32_t addr) {
}
// Go backwards to the previous word
pf -= 4;;
pf -= 4;
}
}