diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-02-02 14:02:36 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-02-02 15:16:09 -0500 |
commit | 3b83b265f11965582d4b9b439eff8a501792ab68 (patch) | |
tree | 0fb9f50f4dfc98f8c165920c20954d5369f1078e /yjit/bindgen | |
parent | 5b34839b0f9d164552f8da41b6ced2db1d2af3be (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7232
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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") |