File: avoid-have-backtrace

package info (click to toggle)
ghdl 5.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,000 kB
  • sloc: ada: 309,826; vhdl: 209,727; ansic: 31,072; python: 19,213; sh: 14,214; cpp: 2,345; makefile: 1,542; pascal: 585; asm: 45; exp: 40; fortran: 33
file content (24 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Disable use of backtrace(3)
 The use of backtrace(3) causes segfaults in grt_save_backtrace() for some
 reason. Some tests in the testsuite are affected by this, causing the testsuite
 to fail. Disable the detection in src/grt/config/jumps.c for now.
Author: Andreas Bombe <aeb@debian.org>
Forwarded: not-needed
Last-Update: 2024-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/grt/config/jumps.c
+++ b/src/grt/config/jumps.c
@@ -27,10 +27,12 @@
 #include <signal.h>
 #include <fcntl.h>
 
+#if 0
 #if ( (defined (__linux__) && defined (__GLIBC__) ) || defined (__APPLE__) ) && !defined (__ANDROID__)
 #define HAVE_BACKTRACE 1
 #include <sys/ucontext.h>
 #endif
+#endif
 
 #ifdef HAVE_BACKTRACE
 #include <execinfo.h>