summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-03-10 15:17:36 +0000
committerChris Liddell <chris.liddell@artifex.com>2023-03-13 09:08:11 +0000
commit8628f1a294e9c74856885dbd2d2a4f23a94b4202 (patch)
tree1240bdb6dc11347a957d75a5f8db88ed9e6c53c4
parent11b4bc66d72edc52f5d0aabcc2bbb331c38f4cf9 (diff)
downloadghostpdl-8628f1a294e9c74856885dbd2d2a4f23a94b4202.tar.gz
Update -Z! output to include error returns.
This makes it easier to see which exact interpreter function is throwing an error.
-rw-r--r--psi/interp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/psi/interp.c b/psi/interp.c
index b577f129c..513e667da 100644
--- a/psi/interp.c
+++ b/psi/interp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2023 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -102,6 +102,8 @@ do_call_operator_verbose(op_proc_t op_proc, i_ctx_t *i_ctx_p)
op_get_name_string(op_proc));
#endif
code = do_call_operator(op_proc, i_ctx_p);
+ if (code < 0)
+ if_debug1m('!', imemory, "[!] error: %d\n", code);
#if defined(SHOW_STACK_DEPTHS)
if_debug2m('!', imemory, "[!][es=%d os=%d]\n",
esp-i_ctx_p->exec_stack.stack.bot,