ruby-changes:62813
From: Aaron <ko1@a...>
Date: Thu, 3 Sep 2020 08:45:45 +0900 (JST)
Subject: [ruby-changes:62813] 933035d303 (master): support T_MATCH in lldb
https://git.ruby-lang.org/ruby.git/commit/?id=933035d303 From 933035d303a154f9b8afea84b99ef99fba21c032 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Wed, 2 Sep 2020 16:42:14 -0700 Subject: support T_MATCH in lldb diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index b7d8711..fe5b98e 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -237,6 +237,10 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L237 tRTypedData = target.FindFirstType("struct RMoved").GetPointerType() val = val.Cast(tRTypedData) append_command_output(debugger, "p *(struct RMoved *) %0#x" % val.GetValueAsUnsigned(), result) + elif flType == RUBY_T_MATCH: + tRTypedData = target.FindFirstType("struct RMatch").GetPointerType() + val = val.Cast(tRTypedData) + append_command_output(debugger, "p *(struct RMatch *) %0#x" % val.GetValueAsUnsigned(), result) elif flType == RUBY_T_IMEMO: # I'm not sure how to get IMEMO_MASK out of lldb. It's not in globals() imemo_type = (flags >> RUBY_FL_USHIFT) & 0x0F # IMEMO_MASK -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/