diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-03-10 15:17:36 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-03-10 16:30:11 +0000 |
commit | 85c0ca2f1ada534f831b43d4872a29eb4e787a28 (patch) | |
tree | af9524c6e23afbd6e3460c952cf91cf7926eb076 /psi | |
parent | 7a32356e7968565c88dd9a5a4d7552a589ee51f9 (diff) | |
download | ghostpdl-85c0ca2f1ada534f831b43d4872a29eb4e787a28.tar.gz |
Update -Z! output to include error returns.
This makes it easier to see which exact interpreter function
is throwing an error.
Diffstat (limited to 'psi')
-rw-r--r-- | psi/interp.c | 4 |
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, |