Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type.
Commit Message
'ptid' compiles in C++, but not C.
gdb/ChangeLog:
* fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
---
gdb/ChangeLog | 4 ++++
gdb/fbsd-nat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
Comments
On Fri, Jul 1, 2016 at 6:21 PM, John Baldwin <jhb@freebsd.org> wrote:
> 'ptid' compiles in C++, but not C.
>
> gdb/ChangeLog:
> * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
Patch is OK. It is an obvious change.
@@ -1,5 +1,9 @@
2016-07-01 John Baldwin <jhb@FreeBSD.org>
+ * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
* fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
(struct fbsd_fork_info): ... this.
(struct fbsd_fork_info) <child>: Rename to ...
@@ -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;