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/target-delegates.c | |
parent | e11cd7c491e4ec0cdd080c6dd45e62789a893606 (diff) | |
download | binutils-5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39.zip binutils-5ab2fbf185935f387fd5c1f8b14ba9fe04b41b39.tar.gz binutils-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/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 5c2142b..c28af09 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -56,7 +56,7 @@ struct dummy_target : public target_ops int remove_fork_catchpoint (int arg0) override; int insert_vfork_catchpoint (int arg0) override; int remove_vfork_catchpoint (int arg0) override; - int follow_fork (int arg0, int arg1) override; + bool follow_fork (bool arg0, bool arg1) override; int insert_exec_catchpoint (int arg0) override; int remove_exec_catchpoint (int arg0) override; void follow_exec (struct inferior *arg0, const char *arg1) override; @@ -225,7 +225,7 @@ struct debug_target : public target_ops int remove_fork_catchpoint (int arg0) override; int insert_vfork_catchpoint (int arg0) override; int remove_vfork_catchpoint (int arg0) override; - int follow_fork (int arg0, int arg1) override; + bool follow_fork (bool arg0, bool arg1) override; int insert_exec_catchpoint (int arg0) override; int remove_exec_catchpoint (int arg0) override; void follow_exec (struct inferior *arg0, const char *arg1) override; @@ -1506,30 +1506,30 @@ debug_target::remove_vfork_catchpoint (int arg0) return result; } -int -target_ops::follow_fork (int arg0, int arg1) +bool +target_ops::follow_fork (bool arg0, bool arg1) { return this->beneath ()->follow_fork (arg0, arg1); } -int -dummy_target::follow_fork (int arg0, int arg1) +bool +dummy_target::follow_fork (bool arg0, bool arg1) { return default_follow_fork (this, arg0, arg1); } -int -debug_target::follow_fork (int arg0, int arg1) +bool +debug_target::follow_fork (bool arg0, bool arg1) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->follow_fork (...)\n", this->beneath ()->shortname ()); result = this->beneath ()->follow_fork (arg0, arg1); fprintf_unfiltered (gdb_stdlog, "<- %s->follow_fork (", this->beneath ()->shortname ()); - target_debug_print_int (arg0); + target_debug_print_bool (arg0); fputs_unfiltered (", ", gdb_stdlog); - target_debug_print_int (arg1); + target_debug_print_bool (arg1); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } |