[PATCH] D50564: Add support for SEH unwinding on Windows.

Charles Davis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 10 15:25:17 PDT 2018


cdavis5x added inline comments.


================
Comment at: src/Unwind-seh.cpp:53
+
+/// Exception cleanup routine used by \c __libunwind_frame_consolidate to
+/// regain control after handling an SEH exception.
----------------
mstorsjo wrote:
> I don't see any `__libunwind_frame_consolidate` anywhere, is this comment outdated?
Why yes it is.


================
Comment at: src/UnwindLevel1.c:35
 
+#if !_LIBUNWIND_SUPPORT_SEH_UNWIND
+
----------------
mstorsjo wrote:
> This probably works, but isn't `#if !defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)` more of the common form?
I think I wrote this before the change to make that so took place, and I forgot to update this. Good catch.


================
Comment at: src/libunwind_ext.h:73
+  #endif
+extern int _unw_init_seh(unw_cursor_t *cursor, CONTEXT *ctx);
+extern DISPATCHER_CONTEXT *_unw_seh_get_disp_ctx(unw_cursor_t *cursor);
----------------
mstorsjo wrote:
> These are all both defined and called from Unwind-seh.cpp, so couldn't they just be static functions within there?
Probably. Done.


Repository:
  rUNW libunwind

https://reviews.llvm.org/D50564





More information about the cfe-commits mailing list