serenity/Ports/nesalizer/patches/0002-Disable-backtracing.patch
EWouters 81a2f09a80 Ports: Return nesalizer to upstream
This makes https://github.com/SerenityPorts/nesalizer obsolete.

The patch that hardcoded the SDL2 location is removed. The the patches
to the `Makefile` are quashed. A new install function is added.
2022-05-25 22:55:59 +01:00

42 lines
1.1 KiB
Diff

From 34b8a26412d6e0880516e881c20ec336e6a450b7 Mon Sep 17 00:00:00 2001
From: Dan MacDonald <allcoms@gmail.com>
Date: Sun, 8 Dec 2019 17:25:35 +0000
Subject: [PATCH 2/2] Disable backtracing
---
src/common.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/common.cpp b/src/common.cpp
index 33df846..4dd9e9c 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -1,6 +1,6 @@
#include "common.h"
-#include <execinfo.h>
+// #include <execinfo.h>
#include <signal.h>
//
@@ -96,7 +96,7 @@ void errno_fail(int errno_val, char const *format, ...) {
static void fatal_signal_handler(int sig) {
// Use non-async-signal-safe functions. Likely to work in practice.
- static void *backtrace_buffer[100];
+ /*static void *backtrace_buffer[100];
static char addr2line_cmd_buf[100];
fprintf(stderr, "caught fatal signal '%s'. Backtrace:\n\n", strsignal(sig));
@@ -123,7 +123,7 @@ static void fatal_signal_handler(int sig) {
fputs("failed to write address to addr2line\n", stderr);
abort();
}
-
+ */
abort();
}
--
2.36.1