Details
Details
- Reviewers
ovyalov clayborg - Commits
- rG05763f5752dd: Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.
rLLDB239201: Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.
rL239201: Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.
Diff Detail
Diff Detail
Event Timeline
| test/functionalities/process_group/TestChangeProcessGroup.py | ||
|---|---|---|
| 75 | Since it checks for local /proc directory it's ok to send local SIGKILL. To make it work on any platform we may use sth like self.dbg.GetSelectedPlatform().Kill(int(pid)) instead of if lldb.remote_platform:
lldb.remote_platform.Kill(int(pid))
else:
if os.path.exists("/proc/" + pid):
os.kill(int(pid), lldbutil.get_signal_number('SIGKILL')) | |
| test/lldbtest.py | ||
| 297 | _LocalProcess handles only local processes - signal.SIGHUP should be ok. | |
| 1334 | Fork should be only local. | |
Since it checks for local /proc directory it's ok to send local SIGKILL.
To make it work on any platform we may use sth like
instead of
if lldb.remote_platform: lldb.remote_platform.Kill(int(pid)) else: if os.path.exists("/proc/" + pid): os.kill(int(pid), lldbutil.get_signal_number('SIGKILL'))