Coding standards
This commit is contained in:
@@ -33,13 +33,11 @@ static int HasUnwindTableInfo(void) {
|
||||
}
|
||||
|
||||
UnwResult UnwindStart(UnwindFrame* frame, const UnwindCallbacks *cb, void *data) {
|
||||
|
||||
if (HasUnwindTableInfo()) {
|
||||
|
||||
/* We have unwind information tables */
|
||||
return UnwindByTableStart(frame, cb, data);
|
||||
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
|
||||
/* We don't have unwind information tables */
|
||||
UnwState state;
|
||||
@@ -48,12 +46,7 @@ UnwResult UnwindStart(UnwindFrame* frame, const UnwindCallbacks *cb, void *data)
|
||||
UnwInitState(&state, cb, data, frame->pc, frame->sp);
|
||||
|
||||
/* Check the Thumb bit */
|
||||
if(frame->pc & 0x1) {
|
||||
return UnwStartThumb(&state);
|
||||
}
|
||||
else {
|
||||
return UnwStartArm(&state);
|
||||
}
|
||||
return (frame->pc & 0x1) ? UnwStartThumb(&state) : UnwStartArm(&state);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user