forked from mirror/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bd5ccd6108
When the emulation stops with a hard exception it's very useful for debugging purposes to dump the current guest memory layout (for an example see /proc/self/maps) beside the CPU registers. The open_self_maps() function provides such a memory dump, but since it's located in the syscall.c file, various changes (add #includes, make this function externally visible, ...) are needed to be able to call it from the existing EXCP_DUMP() macro. This patch takes another approach by re-defining EXCP_DUMP() to call target_exception_dump(), which is in syscall.c, consolidates the log print functions and allows to add the call to dump the memory layout. Beside a reduced code footprint, this approach keeps the changes across the various callers minimal, and keeps EXCP_DUMP() highlighted as important macro/function. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <Y1bzAWbw07WBKPxw@p100> [lv: remove pc declaration and setting] Signed-off-by: Laurent Vivier <laurent@vivier.eu> |
2 years ago | |
---|---|---|
.. | ||
cpu_loop.c | 2 years ago | |
meson.build | 4 years ago | |
signal.c | 2 years ago | |
sockbits.h | 7 years ago | |
syscall_32.tbl | 3 years ago | |
syscall_nr.h | 4 years ago | |
syscallhdr.sh | 5 years ago | |
target_cpu.h | 4 years ago | |
target_elf.h | 2 years ago | |
target_errno_defs.h | 3 years ago | |
target_fcntl.h | 7 years ago | |
target_mman.h | 2 years ago | |
target_prctl.h | 3 years ago | |
target_resource.h | 3 years ago | |
target_signal.h | 3 years ago | |
target_structs.h | 3 years ago | |
target_syscall.h | 3 years ago | |
termbits.h | 4 years ago |