Files
guru/dev-util/lua-language-server/files/lua-language-server-3.16.0-ucontext_t.patch
Brahmajit Das 11bed1c1e2 dev-util/lua-language-server: add 3.16.0
Signed-off-by: Brahmajit Das <listout@listout.xyz>
2025-12-06 06:05:38 +05:30

31 lines
1.1 KiB
Diff

--- a/3rd/bee.lua/bee/crash/unwind_linux.cpp
+++ b/3rd/bee.lua/bee/crash/unwind_linux.cpp
@@ -6,12 +6,8 @@
namespace bee::crash {
void unwind(ucontext_t *ctx, uint16_t skip, unwind_callback func, void *ud) noexcept {
unw_cursor_t cursor;
-#if defined(__aarch64__)
unw_context_t *unw_ctx = (unw_context_t *)ctx;
unw_init_local(&cursor, unw_ctx);
-#else
- unw_init_local(&cursor, ctx);
-#endif
while (unw_step(&cursor) > 0) {
unw_word_t pc;
unw_get_reg(&cursor, UNW_REG_IP, &pc);
--- a/3rd/luamake/bee.lua/bee/crash/unwind_linux.cpp
+++ b/3rd/luamake/bee.lua/bee/crash/unwind_linux.cpp
@@ -6,12 +6,8 @@
namespace bee::crash {
void unwind(ucontext_t *ctx, uint16_t skip, unwind_callback func, void *ud) noexcept {
unw_cursor_t cursor;
-#if defined(__aarch64__)
unw_context_t *unw_ctx = (unw_context_t *)ctx;
unw_init_local(&cursor, unw_ctx);
-#else
- unw_init_local(&cursor, ctx);
-#endif
while (unw_step(&cursor) > 0) {
unw_word_t pc;
unw_get_reg(&cursor, UNW_REG_IP, &pc);