Skip to content

Commit ba2c73c

Browse files
committed
Removing backtrace logging
1 parent 3029a62 commit ba2c73c

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

Modules/main.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
#include "pycore_pymem.h"
77
#include "pycore_pystate.h"
88

9-
#ifdef __faasm
10-
#include <faasm/host_interface.h>
11-
#endif
12-
139
#ifdef __FreeBSD__
1410
# include <fenv.h> /* fedisableexcept() */
1511
#endif
@@ -115,10 +111,6 @@ stdin_is_interactive(const PyConfig *config)
115111
static int
116112
pymain_err_print(int *exitcode_p)
117113
{
118-
#ifdef __faasm
119-
__faasm_backtrace(0);
120-
#endif
121-
122114
int exitcode;
123115
if (_Py_HandleSystemExit(&exitcode)) {
124116
*exitcode_p = exitcode;

Objects/unicodeobject.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5353
#include <windows.h>
5454
#endif
5555

56-
#ifdef __wasm__
57-
#include <faasm/host_interface.h>
58-
#endif
59-
6056
/* Uncomment to display statistics on interned strings at exit when
6157
using Valgrind or Insecure++. */
6258
/* #define INTERNED_STATS 1 */
@@ -4942,9 +4938,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size,
49424938
endinpos = end - starts;
49434939
break;
49444940
case 1:
4945-
#ifdef __wasm__
4946-
__faasm_backtrace(0);
4947-
#endif
49484941
errmsg = "invalid start byte";
49494942
startinpos = s - starts;
49504943
endinpos = startinpos + 1;
@@ -4959,9 +4952,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size,
49594952
/* fall through */
49604953
case 3:
49614954
case 4:
4962-
#ifdef __wasm__
4963-
__faasm_backtrace(0);
4964-
#endif
49654955
errmsg = "invalid continuation byte";
49664956
startinpos = s - starts;
49674957
endinpos = startinpos + ch - 1;
@@ -5134,16 +5124,10 @@ _Py_DecodeUTF8Ex(const char *s, Py_ssize_t size, wchar_t **wstr, size_t *wlen,
51345124
*reason = "unexpected end of data";
51355125
break;
51365126
case 1:
5137-
#ifdef __wasm__
5138-
__faasm_backtrace(0);
5139-
#endif
51405127
*reason = "invalid start byte";
51415128
break;
51425129
/* 2, 3, 4 */
51435130
default:
5144-
#ifdef __wasm__
5145-
__faasm_backtrace(0);
5146-
#endif
51475131
*reason = "invalid continuation byte";
51485132
break;
51495133
}

0 commit comments

Comments
 (0)