aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-23 06:12:36 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-23 18:22:47 +0100
commite7e5ee5d770a33b11106e4833279f7cc4c0d394e (patch)
treea7f26073c49af5d51400e257c67e76e3af06bc9e /src
parent136fd429913a1d1ee818744f3a4a124ae7953170 (diff)
downloadghdl-e7e5ee5d770a33b11106e4833279f7cc4c0d394e.tar.gz
ghdl-e7e5ee5d770a33b11106e4833279f7cc4c0d394e.tar.bz2
ghdl-e7e5ee5d770a33b11106e4833279f7cc4c0d394e.zip
grt: also distinguish overflow from null access on linux x86-64
Fix #232
Diffstat (limited to 'src')
-rw-r--r--src/grt/config/jumps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grt/config/jumps.c b/src/grt/config/jumps.c
index 019b42eee..6afc9d570 100644
--- a/src/grt/config/jumps.c
+++ b/src/grt/config/jumps.c
@@ -147,7 +147,7 @@ grt_sigsegv_handler (int signo, siginfo_t *info, void *ptr)
get_bt_from_ucontext (ptr, &bt);
-#if defined (__linux__) && defined (__i386__)
+#if defined (__linux__) && (defined (__i386__) || defined (__x86_64__))
if (signo == SIGSEGV)
{
ucontext_t *uctxt = (ucontext_t *)ptr;