diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-07 16:49:24 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-05-07 17:00:25 +0100 |
commit | 8a82de5884386be4c10f16eb55a94993ac6ea858 (patch) | |
tree | 692aff8cc94682dff2d233f0160ad628ed4b929d /gdb/infcmd.c | |
parent | gdb: remove reference to current inferior in target_stack::unpush (diff) | |
download | binutils-gdb-8a82de5884386be4c10f16eb55a94993ac6ea858.tar.gz binutils-gdb-8a82de5884386be4c10f16eb55a94993ac6ea858.tar.bz2 binutils-gdb-8a82de5884386be4c10f16eb55a94993ac6ea858.zip |
gdb: some int to bool conversion
Change int parameter to bool in remote_notice_new_inferior (remote.c)
and notice_new_inferior (infcmd.c), and update the callers.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* infcmd.c (notice_new_inferior): Change parameter type.
* inferior.h (notice_new_inferior): Change parameter type.
* remote.c (remote_notice_new_inferior): Change parameter type to
bool. Also update type of local variable to bool.
(remote_target::update_thread_list): Change type of local variable
to bool.
(remote_target::process_stop_reply): Pass bool instead of int to
remote_notice_new_inferior.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5d9d79261ef..f0b044d62b9 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2675,7 +2675,7 @@ attach_command (const char *args, int from_tty) as stopped. */ void -notice_new_inferior (thread_info *thr, int leave_running, int from_tty) +notice_new_inferior (thread_info *thr, bool leave_running, int from_tty) { enum attach_post_wait_mode mode = leave_running ? ATTACH_POST_WAIT_RESUME : ATTACH_POST_WAIT_NOTHING; |