mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
target-arm: Fix GDB breakpoint handling
GDB breakpoints have higher priority so they have to be checked first. Should GDB breakpoint match, just return from the debug exception handler. Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
81669b8b81
commit
e63a2d4d9e
@ -897,6 +897,12 @@ void arm_debug_excp_handler(CPUState *cs)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
uint64_t pc = is_a64(env) ? env->pc : env->regs[15];
|
||||
|
||||
if (cpu_breakpoint_test(cs, pc, BP_GDB)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (check_breakpoints(cpu)) {
|
||||
bool same_el = (arm_debug_target_el(env) == arm_current_el(env));
|
||||
if (extended_addresses_enabled(env)) {
|
||||
|
Loading…
Reference in New Issue
Block a user