This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type.
- From: John Baldwin <jhb at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Jul 2016 12:59:33 -0000
- Subject: [binutils-gdb] Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ee950322ca2c77494b1742f304632f667ed6ce79
commit ee950322ca2c77494b1742f304632f667ed6ce79
Author: John Baldwin <jhb@FreeBSD.org>
Date: Fri Jul 1 10:18:50 2016 -0700
Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type.
'ptid' compiles in C++, but not C.
gdb/ChangeLog:
* fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/fbsd-nat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a2fe153..bf164bc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
+
2016-07-06 Yao Qi <yao.qi@linaro.org>
* arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index fcb7ff5..fa9516e 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -609,7 +609,7 @@ fbsd_is_vfork_done_pending (pid_t pid)
/* Check for a pending vfork done event. If one is found, remove it
from the list and return the PTID. */
-static ptid
+static ptid_t
fbsd_next_vfork_done (void)
{
struct fbsd_fork_info *info;