/* Returns true if the LWP had stopped for a watchpoint. */
-int
+bool
linux_nat_target::stopped_by_watchpoint ()
{
struct lwp_info *lp = find_lwp_pid (inferior_ptid);
return lp->stop_reason == TARGET_STOPPED_BY_WATCHPOINT;
}
-int
+bool
linux_nat_target::stopped_data_address (CORE_ADDR *addr_p)
{
struct lwp_info *lp = find_lwp_pid (inferior_ptid);
/* Returns true if the LWP had stopped for a software breakpoint. */
-int
+bool
linux_nat_target::stopped_by_sw_breakpoint ()
{
struct lwp_info *lp = find_lwp_pid (inferior_ptid);
/* Implement the supports_stopped_by_sw_breakpoint method. */
-int
+bool
linux_nat_target::supports_stopped_by_sw_breakpoint ()
{
return USE_SIGTRAP_SIGINFO;
/* Returns true if the LWP had stopped for a hardware
breakpoint/watchpoint. */
-int
+bool
linux_nat_target::stopped_by_hw_breakpoint ()
{
struct lwp_info *lp = find_lwp_pid (inferior_ptid);
/* Implement the supports_stopped_by_hw_breakpoint method. */
-int
+bool
linux_nat_target::supports_stopped_by_hw_breakpoint ()
{
return USE_SIGTRAP_SIGINFO;
offset, len, xfered_len);
}
-int
+bool
linux_nat_target::thread_alive (ptid_t ptid)
{
/* As long as a PTID is in lwp list, consider it alive. */
/* target_is_async_p implementation. */
-int
+bool
linux_nat_target::is_async_p ()
{
return linux_is_async_p ();
/* target_can_async_p implementation. */
-int
+bool
linux_nat_target::can_async_p ()
{
/* We're always async, unless the user explicitly prevented it with the
return target_async_permitted;
}
-int
+bool
linux_nat_target::supports_non_stop ()
{
return 1;
/* to_always_non_stop_p implementation. */
-int
+bool
linux_nat_target::always_non_stop_p ()
{
return 1;
int linux_multi_process = 1;
-int
+bool
linux_nat_target::supports_multi_process ()
{
return linux_multi_process;
}
-int
+bool
linux_nat_target::supports_disable_randomization ()
{
#ifdef HAVE_PERSONALITY
/* Implementation of to_filesystem_is_local. */
-int
+bool
linux_nat_target::filesystem_is_local ()
{
struct inferior *inf = current_inferior ();
if (inf->fake_pid_p || inf->pid == 0)
- return 1;
+ return true;
return linux_ns_same (inf->pid, LINUX_NS_MNT);
}