diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-06 16:49:43 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-06 16:49:43 +0000 |
commit | f865ee35b75718f7b0a1c75f7cf9167bb40c6f0c (patch) | |
tree | 70f71c836e49f8a7e359a63251fca352b335a54b /gdb/linux-nat.c | |
parent | 76b83c514f6b202659c8b600b20fe0e107f83f6f (diff) | |
download | gdb-f865ee35b75718f7b0a1c75f7cf9167bb40c6f0c.zip gdb-f865ee35b75718f7b0a1c75f7cf9167bb40c6f0c.tar.gz gdb-f865ee35b75718f7b0a1c75f7cf9167bb40c6f0c.tar.bz2 |
gdb/
Code cleanup for the next patch.
* arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
call for it.
* ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
(ia64_linux_stopped_data_address):
* linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
the return value.
* linux-nat.h (linux_nat_get_siginfo): Likewise.
* ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
call for it.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index b82c248..09ab402 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -5187,15 +5187,18 @@ linux_nat_set_prepare_to_resume (struct target_ops *t, linux_nat_prepare_to_resume = prepare_to_resume; } -/* Return the saved siginfo associated with PTID. */ -siginfo_t * -linux_nat_get_siginfo (ptid_t ptid) +/* See linux-nat.h. */ + +int +linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo) { struct lwp_info *lp = find_lwp_pid (ptid); gdb_assert (lp != NULL); - return &lp->siginfo; + *siginfo = lp->siginfo; + + return 1; } /* Provide a prototype to silence -Wmissing-prototypes. */ |