summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-10-09 22:47:12 +0900
committerGitHub <[email protected]>2019-10-09 22:47:12 +0900
commit20aab8a10bc5e4b38b1e3d15a68e347b10db1e2e (patch)
tree145ad74ba9044da03590644f1660460cf8a8592e /mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
parent7624e2342690930ca1aed2f6a45140b3ee605d46 (diff)
parent7f6e8e8ddc6b6f33e22c02c3b78280cb74db4725 (diff)
downloadmruby-20aab8a10bc5e4b38b1e3d15a68e347b10db1e2e.tar.gz
mruby-20aab8a10bc5e4b38b1e3d15a68e347b10db1e2e.zip
Merge pull request #4763 from shuujii/mrdb-Fix-that-print-command-raises-FrozenError
Fix that `print` command raises `FrozenError` in `mrdb`; ref 1f5a7f2f
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
index cdd7b6fa6..e8702f4df 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
@@ -74,7 +74,7 @@ mrb_debug_eval(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size_t
*exc = mrb_obj_is_kind_of(mrb, v, mrb->eException_class);
}
- s = mrb_funcall(mrb, v, "inspect", 0);
+ s = mrb_inspect(mrb, v);
/* enable code_fetch_hook */
mrb->code_fetch_hook = tmp;