3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-28 03:15:50 +00:00

Merge pull request #32 from alaindargelas/stacktrace

Stacktrace
This commit is contained in:
Akash Levy 2024-12-05 14:45:50 -08:00 committed by GitHub
commit 737213fc43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

3
.gitmodules vendored
View file

@ -11,3 +11,6 @@
[submodule "cxxopts"]
path = libs/cxxopts
url = https://github.com/jarro2783/cxxopts
[submodule "libs/backward-cpp"]
path = libs/backward-cpp
url = git@github.com:bombela/backward-cpp.git

View file

@ -64,7 +64,7 @@ SANITIZER =
# SANITIZER = cfi
# Prefer using ENABLE_DEBUG over setting these
OPT_LEVEL := -O3
OPT_LEVEL := -O3 -g
GCC_LTO :=
CLANG_LTO := -flto=thin
@ -156,6 +156,10 @@ else
LINKFLAGS += -rdynamic
ifneq ($(OS), OpenBSD)
LIBS += -lrt
LIBS += -lbfd # SILIMATE: support for backward-cpp
CXXFLAGS += -DBACKWARD_HAS_BFD # SILIMATE: support for backward-cpp
endif
endif

View file

@ -20,6 +20,8 @@
#include "kernel/yosys.h"
#include "kernel/celltypes.h"
#include "libs/backward-cpp/backward.hpp"
#ifdef YOSYS_ENABLE_READLINE
# include <readline/readline.h>
# include <readline/history.h>
@ -548,7 +550,7 @@ void yosys_setup()
if(already_setup)
return;
already_setup = true;
backward::SignalHandling* sh = new backward::SignalHandling;
#ifdef WITH_PYTHON
// With Python 3.12, calling PyImport_AppendInittab on an already
// initialized platform fails (such as when libyosys is imported

1
libs/backward-cpp Submodule

@ -0,0 +1 @@
Subproject commit 51f0700452cf71c57d43c2d028277b24cde32502