Added utility function to get correct signal number from remote platform.
authorChaoren Lin <chaorenl@google.com>
Tue, 2 Jun 2015 16:46:28 +0000 (16:46 +0000)
committerChaoren Lin <chaorenl@google.com>
Tue, 2 Jun 2015 16:46:28 +0000 (16:46 +0000)
commitf59d050968b91ced03d786a7e8ab77c0bba91f24
tree82748c4b19815bb085e90979cd9d24e8ea7ca28d
parent7d76a13bf3e8da7887fb1a6e5fcc7eaf4e2af957
Added utility function to get correct signal number from remote platform.

Summary:
This change adds a utility that uses the `kill -l` command to get the
correct signal number. Falls back to using `SBUnixSignals`, and finally
`signal.SIG<signal>` if all else fails.

Reviewers: tberghammer, clayborg, ovyalov

Reviewed By: clayborg, ovyalov

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D10171

llvm-svn: 238850
lldb/test/lldbutil.py