diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-03-24 13:44:58 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-03-24 13:45:21 -0400 |
commit | 5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39 (patch) | |
tree | 75106f1f578d4e7a4d21019d7ae517d1c5d6c5bb /gdb/fbsd-nat.c | |
parent | e11cd7c491e4ec0cdd080c6dd45e62789a893606 (diff) | |
download | gdb-5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39.zip gdb-5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39.tar.gz gdb-5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39.tar.bz2 |
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) <follow_fork>: Likewise.
* inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
* inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: 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) <follow_fork>: 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) <follow_fork>: Likewise.
(target_follow_fork): Likewise.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 0e4afb2..1d189a2 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1548,8 +1548,8 @@ fbsd_nat_target::supports_stopped_by_sw_breakpoint () /* Target hook for follow_fork. On entry and at return inferior_ptid is the ptid of the followed inferior. */ -int -fbsd_nat_target::follow_fork (int follow_child, int detach_fork) +bool +fbsd_nat_target::follow_fork (bool follow_child, bool detach_fork) { if (!follow_child && detach_fork) { @@ -1592,7 +1592,7 @@ fbsd_nat_target::follow_fork (int follow_child, int detach_fork) #endif } - return 0; + return false; } int |