From 8291bdb162a1389a3563c31642bab3462d8c5e2c Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Thu, 11 Mar 2021 19:18:59 +0200 Subject: [PATCH] Remove d_m3LogStackTrace in favour of d_m3RecordBacktraces --- .github/workflows/tests.yml | 1 - docs/Diagnostics.md | 1 - source/m3_config.h | 4 ---- source/m3_exec.h | 3 --- 4 files changed, 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 002c808..65b0593 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -506,7 +506,6 @@ jobs: -Dd_m3LogCodePages=1 \ -Dd_m3LogExec=1 \ -Dd_m3LogRuntime=1 \ - -Dd_m3LogStackTrace=1 \ -Dd_m3LogNativeStack=1 \ -I../source ../source/*.c ../platforms/app/main.c \ -O3 -g0 -lm \ diff --git a/docs/Diagnostics.md b/docs/Diagnostics.md index a8e76ab..b6730bd 100644 --- a/docs/Diagnostics.md +++ b/docs/Diagnostics.md @@ -12,7 +12,6 @@ To enable various logs, modify the defines in `m3_config.h`. These are only ena # define d_m3LogCodePages 0 // dump metacode pages when released # define d_m3LogExec 0 // low-level interpreter specific logs # define d_m3LogRuntime 0 // higher-level runtime information -# define d_m3LogStackTrace 0 // dump the call stack when traps occur # define d_m3LogNativeStack 0 // track the memory usage of the C-stack ``` diff --git a/source/m3_config.h b/source/m3_config.h index 94c5c12..1f8d021 100644 --- a/source/m3_config.h +++ b/source/m3_config.h @@ -110,10 +110,6 @@ # define d_m3LogRuntime 0 // higher-level runtime information # endif -# ifndef d_m3LogStackTrace -# define d_m3LogStackTrace 0 // dump the call stack when traps occur -# endif - # ifndef d_m3LogNativeStack # define d_m3LogNativeStack 0 // track the memory usage of the C-stack # endif diff --git a/source/m3_exec.h b/source/m3_exec.h index e7d1788..99c893e 100644 --- a/source/m3_exec.h +++ b/source/m3_exec.h @@ -727,9 +727,6 @@ d_m3Op (Entry) SPrintArg (str, 99, _sp, GetSingleRetType(function->funcType)); m3log (exec, " exit < %s %s %s %s", m3_GetFunctionName(function), function->funcType->numRets ? "->" : "", str, r ? (cstr_t)r : ""); -# elif d_m3LogStackTrace - if (r) - printf (" ** %s %p\n", m3_GetFunctionName(function), _sp); # endif if (UNLIKELY(r)) {