summaryrefslogtreecommitdiff
path: root/gdbserver/linux-low.cc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-02-23 10:56:56 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-02-23 10:56:56 -0500
commit1a48f0027d52f507da1817406279c1b81a6fa262 (patch)
tree70b47730720f7d232ca5dcfb9a9d971e2028b826 /gdbserver/linux-low.cc
parent897608ed56a73739aa675011c2104565b68fc8bb (diff)
downloadbinutils-gdb-1a48f0027d52f507da1817406279c1b81a6fa262.tar.gz
gdbserver: linux-low: make linux_process_target::filter_event return void
Same as the previous patch, but for GDBserver. The return value of this method is never used, change it to return void. gdbserver/ChangeLog: * linux-low.cc (linux_process_target::filter_event): Return void. * linux-low.h (class linux_process_target) <filter_event>: Return void. Change-Id: I79e5dc04d9b21b9f01c6d675fa463d1b1a703b3a
Diffstat (limited to 'gdbserver/linux-low.cc')
-rw-r--r--gdbserver/linux-low.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
index cc19581c53d..0baac013129 100644
--- a/gdbserver/linux-low.cc
+++ b/gdbserver/linux-low.cc
@@ -2243,7 +2243,7 @@ linux_low_ptrace_options (int attached)
return options;
}
-lwp_info *
+void
linux_process_target::filter_event (int lwpid, int wstat)
{
client_state &cs = get_client_state ();
@@ -2292,10 +2292,10 @@ linux_process_target::filter_event (int lwpid, int wstat)
if (child == NULL && WIFSTOPPED (wstat))
{
add_to_pid_list (&stopped_pids, lwpid, wstat);
- return NULL;
+ return;
}
else if (child == NULL)
- return NULL;
+ return;
thread = get_lwp_thread (child);
@@ -2325,12 +2325,12 @@ linux_process_target::filter_event (int lwpid, int wstat)
report this one right now. Leave the status pending for
the next time we're able to report it. */
mark_lwp_dead (child, wstat);
- return child;
+ return;
}
else
{
delete_lwp (child);
- return NULL;
+ return;
}
}
@@ -2358,7 +2358,7 @@ linux_process_target::filter_event (int lwpid, int wstat)
the first instruction. */
child->status_pending_p = 1;
child->status_pending = wstat;
- return child;
+ return;
}
}
}
@@ -2397,7 +2397,7 @@ linux_process_target::filter_event (int lwpid, int wstat)
{
/* The event has been handled, so just return without
reporting it. */
- return NULL;
+ return;
}
}
@@ -2433,7 +2433,7 @@ linux_process_target::filter_event (int lwpid, int wstat)
debug_printf ("LLW: SIGSTOP caught for %s "
"while stopping threads.\n",
target_pid_to_str (ptid_of (thread)));
- return NULL;
+ return;
}
else
{
@@ -2444,13 +2444,13 @@ linux_process_target::filter_event (int lwpid, int wstat)
target_pid_to_str (ptid_of (thread)));
resume_one_lwp (child, child->stepping, 0, NULL);
- return NULL;
+ return;
}
}
child->status_pending_p = 1;
child->status_pending = wstat;
- return child;
+ return;
}
bool