summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-05 14:39:03 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-05 14:47:31 +0900
commitedb80dfe3e6086fb9d5d905a40cdd6ec61a2e1ee (patch)
tree356517e8c333b449e6200481d0a21a961d5c1399 /debug.c
parentc88afd532895a8527f7c9fffb2c635805d01f626 (diff)
add additional CF info for CI env
Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter that an interpreter is running on CI environment. With this option, `rb_bug()` shows more information includes method entry information, local variables information for each control frame.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index e4ad163ad1..a54be27152 100644
--- a/debug.c
+++ b/debug.c
@@ -147,6 +147,7 @@ extern int ruby_w32_rtc_error;
UINT ruby_w32_codepage[2];
#endif
extern int ruby_rgengc_debug;
+extern int ruby_on_ci;
int
ruby_env_debug_option(const char *str, int len, void *arg)
@@ -192,6 +193,7 @@ ruby_env_debug_option(const char *str, int len, void *arg)
SET_WHEN("gc_stress", *ruby_initial_gc_stress_ptr, Qtrue);
SET_WHEN("core", ruby_enable_coredump, 1);
+ SET_WHEN("ci", ruby_on_ci, 1);
if (NAME_MATCH_VALUE("rgengc")) {
if (!len) ruby_rgengc_debug = 1;
else SET_UINT_LIST("rgengc", &ruby_rgengc_debug, 1);