freebsd-dev/contrib/llvm/tools
Ed Maste b08e22797d lldb: map TRAP_CAP to a trace trap
In the absense of a more specific handler for TRAP_CAP (generated by
ENOTCAPABLE or ECAPMODE while in capability mode) treat it as a trace
trap.

Example usage (testing the bug in PR219173):

% proccontrol -m trapcap lldb usr.bin/hexdump/obj/hexdump -- -Cv -s 1 /bin/ls
...
(lldb) run
Process 12980 launching
Process 12980 launched: '.../usr.bin/hexdump/obj/hexdump' (x86_64)
Process 12980 stopped
* thread #1, stop reason = trace
    frame #0: 0x0000004b80c65f1a libc.so.7`__sys_lseek + 10
...

In the future we should have LLDB control the trapcap procctl itself
(as it does with ASLR), as well as report a specific stop reason.
This change eliminates an assertion failure from LLDB for now.
2017-05-25 16:41:07 +00:00
..
bugpoint Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
clang Update clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release. 2017-03-10 19:02:41 +00:00
llc Merge llvm, clang, lld and lldb trunk r291274, and resolve conflicts. 2017-01-06 20:24:06 +00:00
lld lld: hack version and help output for compatibility with libtool 2017-03-27 16:01:16 +00:00
lldb lldb: map TRAP_CAP to a trace trap 2017-05-25 16:41:07 +00:00
lli Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-ar Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-as Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-bcanalyzer Merge llvm, clang, lld and lldb trunk r291012, and resolve conflicts. 2017-01-04 22:19:42 +00:00
llvm-cov Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-cxxdump Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-cxxfilt Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-24 19:56:22 +00:00
llvm-diff Update llvm to release_39 branch r276489, and resolve conflicts. 2016-08-16 21:02:59 +00:00
llvm-dis Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-dwarfdump Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-extract Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-link Merge llvm, clang, lld and lldb trunk r291012, and resolve conflicts. 2017-01-04 22:19:42 +00:00
llvm-lto Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-lto2 Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-mc Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-modextract Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-nm Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-objdump Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-05 19:57:41 +00:00
llvm-pdbdump Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
llvm-profdata Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-readobj Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
llvm-rtdyld Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-stress Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-symbolizer Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
llvm-xray Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-28 21:18:23 +00:00
opt Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00