Skip to content

Commit 9073bfd

Browse files
quic-mathberntaylorsimpson
authored andcommitted
Hexagon (linux-user/hexagon): handle breakpoints
This enables LLDB to work with hexagon linux-user mode through the GDB remote protocol. Helped-by: Richard Henderson <[email protected]> Signed-off-by: Matheus Tavares Bernardino <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Taylor Simpson <[email protected]> Message-Id: <c287a129dcbe7d974d8b7608e8672d34a3c91c04.1683214375.git.quic_mathbern@quicinc.com>
1 parent b647652 commit 9073bfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linux-user/hexagon/cpu_loop.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ void cpu_loop(CPUHexagonState *env)
6363
case EXCP_ATOMIC:
6464
cpu_exec_step_atomic(cs);
6565
break;
66+
case EXCP_DEBUG:
67+
force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, 0);
68+
break;
6669
default:
6770
EXCP_DUMP(env, "\nqemu: unhandled CPU exception %#x - aborting\n",
6871
trapnr);

0 commit comments

Comments
 (0)