[llvm-dev] seh / landing pads

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 30 08:33:39 PDT 2016


On Thu, Sep 29, 2016 at 10:57 PM, Carlo Kok <ck at remobjects.com> wrote:
>
> x86_32 Windows uses a less sophisticated unwind mechanism involving a
>> linked list maintained in TLS at fs:00. Sometimes people use SEH to
>> refer to this and related structures.
>>
>
> But the landingpad stuff on x86_32 won't use fs:00 will it? Can I still
> use it to catch access violations and other internal exception types?


True, it won't. Clang and GCC typically use DWARF unwind info on
i686-windows-gnu.

I think you can use SetUnhandledExceptionFilter
or AddVectoredExceptionHandler to install a global exception handler for
AVs and traps that calls into the usual _Unwind* EH machinery.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160930/aa588fad/attachment.html>


More information about the llvm-dev mailing list