linux-user: provide frame information in x86-64 safe_syscall
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jun 2016 18:56:54 +0000 (19:56 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 8 Jun 2016 07:13:45 +0000 (10:13 +0300)
commit9e024732f53b368abdd578e1795bf3d2779ea88a
treeaa25d253d5e503ebd13a489e9cb33b38da299d78
parent90c0f080fe6fdd8b18691e6e38c853c8a996ad92
linux-user: provide frame information in x86-64 safe_syscall

Use cfi directives in the x86-64 safe_syscall to allow gdb to get
backtraces right from within it. (In particular this will be
quite a common situation if the user interrupts QEMU while it's
in a blocked safe-syscall: at the point of the syscall insn RBP
is in use for something else, and so gdb can't find the frame then
without assistance.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/host/x86_64/safe-syscall.inc.S