summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-11-25 16:31:23 +0000
committerEd Maste <emaste@freebsd.org>2013-11-25 16:31:23 +0000
commit502f9020a7fc8ca9a1f6b7626acdc118964af806 (patch)
tree43bf5ea4a1aa44075afc18a0ec8f12981a27c343 /lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
parentdb962e2c4562e521de97c81e5244b87bfc476fc8 (diff)
downloadbcm5719-llvm-502f9020a7fc8ca9a1f6b7626acdc118964af806.tar.gz
bcm5719-llvm-502f9020a7fc8ca9a1f6b7626acdc118964af806.zip
PT_CONTINUE and PT_STEP are process-scope on FreeBSD
Although ptrace() can be passed a PID or TID for PT_CONTINUE and PT_STEP, the kernel operates on all threads in the process in both cases. (See the FOREACH_THREAD_IN_PROC in FreeBSD's sys_process.c:kern_ptrace.) Make this clear by using the PID from the ProcessMonitor instance. llvm-svn: 195656
Diffstat (limited to 'lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h')
-rw-r--r--lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
index 4a9b4837044..44219c4eb9e 100644
--- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
+++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
@@ -175,15 +175,15 @@ public:
bool
GetEventMessage(lldb::tid_t tid, unsigned long *message);
- /// Resumes the given thread. If @p signo is anything but
- /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the thread.
+ /// Resumes the process. If @p signo is anything but
+ /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the process.
bool
- Resume(lldb::tid_t tid, uint32_t signo);
+ Resume(lldb::tid_t unused, uint32_t signo);
- /// Single steps the given thread. If @p signo is anything but
- /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the thread.
+ /// Single steps the process. If @p signo is anything but
+ /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the process.
bool
- SingleStep(lldb::tid_t tid, uint32_t signo);
+ SingleStep(lldb::tid_t unused, uint32_t signo);
/// Sends the inferior process a PTRACE_KILL signal. The inferior will
/// still exists and can be interrogated. Once resumed it will exit as
OpenPOWER on IntegriCloud