gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 24 Sep 2010 18:35:28 +0000 (18:35 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 24 Sep 2010 18:35:28 +0000 (18:35 +0000)
commit1736ad1102dd931b269a5b900f05846442a0566a
treee3131e752934a3c0b54286a6c79537917ea697d7
parent4b5246aacb9c434034c9b0dc83bef1239aa55451
gdb/
Fix lost siginfo_t for inferior calls.
* infrun.c
(struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
(save_inferior_thread_state): New variables regcache, gdbarch and
siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
using REGCACHE.
(restore_inferior_thread_state): New variables regcache and gdbarch.
Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
REGCACHE.  Free also SIGINFO_DATA.

gdb/testsuite/
Fix lost siginfo_t for inferior calls.
* gdb.base/siginfo-infcall.exp: New file.
* gdb.base/siginfo-infcall.c: New file.
gdb/ChangeLog
gdb/infrun.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/siginfo-infcall.c [new file with mode: 0644]
gdb/testsuite/gdb.base/siginfo-infcall.exp [new file with mode: 0644]
This page took 0.047186 seconds and 4 git commands to generate.