[Lldb-commits] [PATCH] D35223: Report inferior SIGSEGV/SIGILL/SIGBUS/SIGFPE as a signal instead of an exception on freebsd

Karnajit Wangkhem via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 10 14:18:49 PDT 2017


karnajitw created this revision.
Herald added a subscriber: emaste.

This is the freebsd equivalent of https://reviews.llvm.org/rL238549.

The fix serves 2 purpose

1. LLDB should handle inferior process signals SIGSEGV/SIGILL/SIGBUS/SIGFPE the way it is suppose to be handled. Prior to this fix these signals will neither create a coredump, nor exit from the debugger or work for signal handling scenario.
2. eInvalidCrashReason need not report "unknown crash reason" if we have a valid si_signo


Repository:
  rL LLVM

https://reviews.llvm.org/D35223

Files:
  FreeBSD/FreeBSDThread.cpp
  FreeBSD/POSIXStopInfo.cpp
  FreeBSD/POSIXStopInfo.h
  FreeBSD/ProcessMonitor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35223.105914.patch
Type: text/x-patch
Size: 4569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170710/73203e1a/attachment.bin>


More information about the lldb-commits mailing list