aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r--gdb/inf-child.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index 7b2f2a2..8e5ebfa 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -200,10 +200,10 @@ inf_child_target::post_startup_inferior (ptid_t ptid)
operation by a debugger. */
}
-int
+bool
inf_child_target::can_run ()
{
- return 1;
+ return true;
}
bool
@@ -226,31 +226,31 @@ inf_child_target::pid_to_exec_file (int pid)
return NULL;
}
-int
+bool
inf_child_target::has_all_memory ()
{
return default_child_has_all_memory ();
}
-int
+bool
inf_child_target::has_memory ()
{
return default_child_has_memory ();
}
-int
+bool
inf_child_target::has_stack ()
{
return default_child_has_stack ();
}
-int
+bool
inf_child_target::has_registers ()
{
return default_child_has_registers ();
}
-int
+bool
inf_child_target::has_execution (ptid_t ptid)
{
return default_child_has_execution (ptid);
@@ -404,19 +404,19 @@ inf_child_target::fileio_readlink (struct inferior *inf, const char *filename,
#endif
}
-int
-inf_child_target::use_agent (int use)
+bool
+inf_child_target::use_agent (bool use)
{
if (agent_loaded_p ())
{
::use_agent = use;
- return 1;
+ return true;
}
else
- return 0;
+ return false;
}
-int
+bool
inf_child_target::can_use_agent ()
{
return agent_loaded_p ();