mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user: Add missing signals in strace output
Some of the guest signal numbers are currently not converted to their representative names in the strace output, e.g. SIGVTALRM. This patch introduces a smart way to generate and keep in sync the host-to-guest and guest-to-host signal conversion tables for usage in the qemu signal and strace code. This ensures that any signals will now show up in both tables. There is no functional change in this patch - with the exception that yet missing signal names now show up in the strace code too. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220918194555.83535-2-deller@gmx.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
65d4830dac
commit
7b72aa1d81
3 changed files with 60 additions and 53 deletions
|
@ -118,4 +118,50 @@ static inline void finish_sigsuspend_mask(int ret)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(SIGSTKFLT) && defined(TARGET_SIGSTKFLT)
|
||||
#define MAKE_SIG_ENTRY_SIGSTKFLT MAKE_SIG_ENTRY(SIGSTKFLT)
|
||||
#else
|
||||
#define MAKE_SIG_ENTRY_SIGSTKFLT
|
||||
#endif
|
||||
|
||||
#if defined(SIGIOT) && defined(TARGET_SIGIOT)
|
||||
#define MAKE_SIG_ENTRY_SIGIOT MAKE_SIG_ENTRY(SIGIOT)
|
||||
#else
|
||||
#define MAKE_SIG_ENTRY_SIGIOT
|
||||
#endif
|
||||
|
||||
#define MAKE_SIGNAL_LIST \
|
||||
MAKE_SIG_ENTRY(SIGHUP) \
|
||||
MAKE_SIG_ENTRY(SIGINT) \
|
||||
MAKE_SIG_ENTRY(SIGQUIT) \
|
||||
MAKE_SIG_ENTRY(SIGILL) \
|
||||
MAKE_SIG_ENTRY(SIGTRAP) \
|
||||
MAKE_SIG_ENTRY(SIGABRT) \
|
||||
MAKE_SIG_ENTRY(SIGBUS) \
|
||||
MAKE_SIG_ENTRY(SIGFPE) \
|
||||
MAKE_SIG_ENTRY(SIGKILL) \
|
||||
MAKE_SIG_ENTRY(SIGUSR1) \
|
||||
MAKE_SIG_ENTRY(SIGSEGV) \
|
||||
MAKE_SIG_ENTRY(SIGUSR2) \
|
||||
MAKE_SIG_ENTRY(SIGPIPE) \
|
||||
MAKE_SIG_ENTRY(SIGALRM) \
|
||||
MAKE_SIG_ENTRY(SIGTERM) \
|
||||
MAKE_SIG_ENTRY(SIGCHLD) \
|
||||
MAKE_SIG_ENTRY(SIGCONT) \
|
||||
MAKE_SIG_ENTRY(SIGSTOP) \
|
||||
MAKE_SIG_ENTRY(SIGTSTP) \
|
||||
MAKE_SIG_ENTRY(SIGTTIN) \
|
||||
MAKE_SIG_ENTRY(SIGTTOU) \
|
||||
MAKE_SIG_ENTRY(SIGURG) \
|
||||
MAKE_SIG_ENTRY(SIGXCPU) \
|
||||
MAKE_SIG_ENTRY(SIGXFSZ) \
|
||||
MAKE_SIG_ENTRY(SIGVTALRM) \
|
||||
MAKE_SIG_ENTRY(SIGPROF) \
|
||||
MAKE_SIG_ENTRY(SIGWINCH) \
|
||||
MAKE_SIG_ENTRY(SIGIO) \
|
||||
MAKE_SIG_ENTRY(SIGPWR) \
|
||||
MAKE_SIG_ENTRY(SIGSYS) \
|
||||
MAKE_SIG_ENTRY_SIGSTKFLT \
|
||||
MAKE_SIG_ENTRY_SIGIOT
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue