From 3b83b265f11965582d4b9b439eff8a501792ab68 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 2 Feb 2023 14:02:36 -0500 Subject: YJIT: Crash with rb_bug() when panicking Helps with getting good bug reports in the wild. Intended to be backported to the 3.2.x series. --- yjit/bindgen/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yjit/bindgen') diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 35b09e1abc..8d29d42bf7 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -88,6 +88,9 @@ fn main() { // This function prints info about a value and is useful for debugging .allowlist_function("rb_obj_info_dump") + // For crashing + .allowlist_function("rb_bug") + // From shape.h .allowlist_function("rb_shape_get_shape_id") .allowlist_function("rb_shape_get_shape_by_id") -- cgit v1.2.1