interop.h 761 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <library/cpp/yt/backtrace/cursors/frame_pointer/frame_pointer_cursor.h>
  3. #include <contrib/libs/libunwind/include/libunwind.h>
  4. #include <util/system/context.h>
  5. #include <optional>
  6. namespace NYT::NBacktrace {
  7. ////////////////////////////////////////////////////////////////////////////////
  8. TFramePointerCursorContext FramePointerCursorContextFromUcontext(const ucontext_t& ucontext);
  9. std::optional<unw_context_t> TrySynthesizeLibunwindContextFromMachineContext(
  10. const TContMachineContext& machineContext);
  11. TFramePointerCursorContext FramePointerCursorContextFromLibunwindCursor(
  12. const unw_cursor_t& uwCursor);
  13. ////////////////////////////////////////////////////////////////////////////////
  14. } // namespace NYT::NBacktrace