From 5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 24 Mar 2020 13:44:58 -0400 Subject: gdb: bool-ify follow_fork Change parameters and return value of the various follow_fork functions/methods from int to bool. gdb/ChangeLog: * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. * fbsd-nat.h (class fbsd_nat_target) : Likewise. * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. * inf-ptrace.h (struct inf_ptrace_target) : Likewise. * infrun.c (follow_fork): Likewise. (follow_fork_inferior): Likewise. * linux-nat.c (linux_nat_target::follow_fork): Likewise. * linux-nat.h (class linux_nat_target): Likewise. * remote.c (class remote_target) : Likewise. (remote_target::follow_fork): Likewise. * target-delegates.c: Re-generate. * target.c (default_follow_fork): Likewise. (target_follow_fork): Likewise. * target.h (struct target_ops) : Likewise. (target_follow_fork): Likewise. --- gdb/inf-ptrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/inf-ptrace.h') diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index dea82d0..05c1277 100644 --- a/gdb/inf-ptrace.h +++ b/gdb/inf-ptrace.h @@ -44,7 +44,7 @@ struct inf_ptrace_target : public inf_child_target void create_inferior (const char *, const std::string &, char **, int) override; #ifdef PT_GET_PROCESS_STATE - int follow_fork (int, int) override; + bool follow_fork (bool, bool) override; int insert_fork_catchpoint (int) override; -- cgit v1.1