This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 2/4]#3 Fix lost siginfo_t for inferior calls
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Fri, 24 Sep 2010 17:40:09 +0100
- Subject: Re: [patch 2/4]#3 Fix lost siginfo_t for inferior calls
- References: <20100921224935.GC20130@host1.dyn.jankratochvil.net>
On Tuesday 21 September 2010 23:49:35, Jan Kratochvil wrote:
> gdb/
> 2010-09-20 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> 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.
Okay, thanks.
--
Pedro Alves