aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 0c58b85..bbbc02f 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -123,20 +123,20 @@ struct gdbsim_target final
void interrupt () override;
- int thread_alive (ptid_t ptid) override;
+ bool thread_alive (ptid_t ptid) override;
const char *pid_to_str (ptid_t) override;
- int has_all_memory () override;
- int has_memory () override;
+ bool has_all_memory () override;
+ bool has_memory () override;
- int has_stack () override
+ bool has_stack () override
{ return default_child_has_stack (); }
- int has_registers () override
+ bool has_registers () override
{ return default_child_has_registers (); }
- int has_execution (ptid_t ptid) override
+ bool has_execution (ptid_t ptid) override
{ return default_child_has_execution (ptid); }
};
@@ -1288,20 +1288,20 @@ sim_command_completer (struct cmd_list_element *ignore,
/* Check to see if a thread is still alive. */
-int
+bool
gdbsim_target::thread_alive (ptid_t ptid)
{
struct sim_inferior_data *sim_data
= get_sim_inferior_data_by_ptid (ptid, SIM_INSTANCE_NOT_NEEDED);
if (sim_data == NULL)
- return 0;
+ return false;
if (ptid_equal (ptid, sim_data->remote_sim_ptid))
/* The simulators' task is always alive. */
- return 1;
+ return true;
- return 0;
+ return false;
}
/* Convert a thread ID to a string. Returns the string in a static
@@ -1315,28 +1315,28 @@ gdbsim_target::pid_to_str (ptid_t ptid)
/* Simulator memory may be accessed after the program has been loaded. */
-int
+bool
gdbsim_target::has_all_memory ()
{
struct sim_inferior_data *sim_data
= get_sim_inferior_data (current_inferior (), SIM_INSTANCE_NOT_NEEDED);
if (!sim_data->program_loaded)
- return 0;
+ return false;
- return 1;
+ return true;
}
-int
+bool
gdbsim_target::has_memory ()
{
struct sim_inferior_data *sim_data
= get_sim_inferior_data (current_inferior (), SIM_INSTANCE_NOT_NEEDED);
if (!sim_data->program_loaded)
- return 0;
+ return false;
- return 1;
+ return true;
}
void