[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 04/12] linux-user: Log failing executable in EXCP_DUMP()
From: |
Helge Deller |
Subject: |
[PATCH v2 04/12] linux-user: Log failing executable in EXCP_DUMP() |
Date: |
Sun, 11 Sep 2022 20:18:22 +0200 |
Enhance the EXCP_DUMP() macro to print out the failing program too.
During debugging it's sometimes hard to track down the actual failing
program if you are e.g. building a whole debian package.
Signed-off-by: Helge Deller <deller@gmx.de>
---
linux-user/cpu_loop-common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/linux-user/cpu_loop-common.h b/linux-user/cpu_loop-common.h
index dc0042e4de..36ff5b14f2 100644
--- a/linux-user/cpu_loop-common.h
+++ b/linux-user/cpu_loop-common.h
@@ -27,9 +27,11 @@
do { \
CPUState *cs = env_cpu(env); \
fprintf(stderr, fmt , ## __VA_ARGS__); \
+ fprintf(stderr, "Failing executable: %s\n", exec_path); \
cpu_dump_state(cs, stderr, 0); \
if (qemu_log_separate()) { \
qemu_log(fmt, ## __VA_ARGS__); \
+ qemu_log("Failing executable: %s\n", exec_path); \
log_cpu_state(cs, 0); \
} \
} while (0)
--
2.37.2
- [PATCH v2 05/12] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info, (continued)
- [PATCH v2 05/12] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info, Helge Deller, 2022/09/11
- [PATCH v2 11/12] linux-user: Add close_range() syscall, Helge Deller, 2022/09/11
- [PATCH v2 09/12] linux-user: Add strace for clock_nanosleep(), Helge Deller, 2022/09/11
- [PATCH v2 02/12] linux-user: Add missing clock_gettime64() syscall strace, Helge Deller, 2022/09/11
- [PATCH v2 10/12] linux-user: Show timespec on strace for futex(), Helge Deller, 2022/09/11
- [PATCH v2 12/12] linux-user: Add parameters of getrandom() syscall for strace, Helge Deller, 2022/09/11
- [PATCH v2 01/12] linux-user: Add missing signals in strace output, Helge Deller, 2022/09/11
- [PATCH v2 07/12] linux-user: Fix strace of chmod() if mode == 0, Helge Deller, 2022/09/11
- [PATCH v2 08/12] linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch, Helge Deller, 2022/09/11
- [PATCH v2 03/12] linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscalls, Helge Deller, 2022/09/11
- [PATCH v2 04/12] linux-user: Log failing executable in EXCP_DUMP(),
Helge Deller <=