[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/13] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug in
From: |
Helge Deller |
Subject: |
[PATCH 06/13] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info |
Date: |
Fri, 26 Aug 2022 16:18:46 +0200 |
Enhance the hppa linux-user cpu_loop() to show more debugging info
on hard errors.
Signed-off-by: Helge Deller <deller@gmx.de>
---
linux-user/hppa/cpu_loop.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.c
index 64263c3dc4..1ef3b46191 100644
--- a/linux-user/hppa/cpu_loop.c
+++ b/linux-user/hppa/cpu_loop.c
@@ -147,12 +147,15 @@ void cpu_loop(CPUHPPAState *env)
force_sig_fault(TARGET_SIGSEGV, TARGET_SEGV_MAPERR, env->iaoq_f);
break;
case EXCP_ILL:
+ EXCP_DUMP(env, "qemu: got CPU exception 0x%x - aborting\n",
trapnr);
force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPN, env->iaoq_f);
break;
case EXCP_PRIV_OPR:
+ EXCP_DUMP(env, "qemu: got CPU exception 0x%x - aborting\n",
trapnr);
force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->iaoq_f);
break;
case EXCP_PRIV_REG:
+ EXCP_DUMP(env, "qemu: got CPU exception 0x%x - aborting\n",
trapnr);
force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVREG, env->iaoq_f);
break;
case EXCP_OVERFLOW:
@@ -171,7 +174,8 @@ void cpu_loop(CPUHPPAState *env)
/* just indicate that signals should be handled asap */
break;
default:
- g_assert_not_reached();
+ EXCP_DUMP(env, "qemu: unhandled CPU exception 0x%x - aborting\n",
trapnr);
+ abort();
}
process_pending_signals(env);
}
--
2.37.1
- Re: [PATCH 01/13] linux-user: Add missing signals in strace output, (continued)
- [PATCH 11/13] linux-user: Show timespec on strace for futex(), Helge Deller, 2022/08/26
- [PATCH 08/13] linux-user: Fix strace of chmod() if mode == 0, Helge Deller, 2022/08/26
- [PATCH 12/13] linux-user: Add close_range() syscall, Helge Deller, 2022/08/26
- [PATCH 02/13] linux-user: Add missing clock_gettime64() syscall strace, Helge Deller, 2022/08/26
- [PATCH 04/13] linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscalls, Helge Deller, 2022/08/26
- [PATCH 07/13] linux-user/hppa: Dump IIR on register dump, Helge Deller, 2022/08/26
- [PATCH 05/13] linux-user: Log failing executable in EXCP_DUMP(), Helge Deller, 2022/08/26
- [PATCH 09/13] linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch, Helge Deller, 2022/08/26
- [PATCH 13/13] linux-user: Add parameters of getrandom() syscall for strace, Helge Deller, 2022/08/26
- [PATCH 06/13] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info,
Helge Deller <=