aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-06 16:49:43 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-06 16:49:43 +0000
commitf865ee35b75718f7b0a1c75f7cf9167bb40c6f0c (patch)
tree70f71c836e49f8a7e359a63251fca352b335a54b /gdb/linux-nat.h
parent76b83c514f6b202659c8b600b20fe0e107f83f6f (diff)
downloadgdb-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.h')
-rw-r--r--gdb/linux-nat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index d87f0cf..52549da 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -197,8 +197,10 @@ void linux_nat_set_prepare_to_resume (struct target_ops *,
to another. */
void linux_nat_switch_fork (ptid_t new_ptid);
-/* Return the saved siginfo associated with PTID. */
-siginfo_t *linux_nat_get_siginfo (ptid_t ptid);
+/* Store the saved siginfo associated with PTID in *SIGINFO.
+ Return 1 if it was retrieved successfully, 0 otherwise (*SIGINFO is
+ uninitialized in such case). */
+int linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo);
/* Set alternative SIGTRAP-like events recognizer. */
void linux_nat_set_status_is_event (struct target_ops *t,