1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

debug.c: more enums

* debug.c (ruby_dummy_gdb_enums): add enums for RObject, RModule,
  RString, RArray.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-06-01 04:43:03 +00:00
parent d0e7329df3
commit be701dc57f
3 changed files with 8 additions and 18 deletions

View file

@ -22,20 +22,6 @@ def lldb_init(debugger):
name = member.GetName()
value = member.GetValueAsUnsigned()
g[name] = value
global ROBJECT_EMBED_LEN_MAX, ROBJECT_EMBED
ROBJECT_EMBED_LEN_MAX = 3
ROBJECT_EMBED = RUBY_FL_USER1
global RMODULE_IS_OVERLAID, RMODULE_IS_REFINEMENT, RMODULE_INCLUDED_INTO_REFINEMENT
RMODULE_IS_OVERLAID = RUBY_FL_USER2
RMODULE_IS_REFINEMENT = RUBY_FL_USER3
RMODULE_INCLUDED_INTO_REFINEMENT = RUBY_FL_USER4
global RSTRING_NOEMBED, RSTRING_EMBED_LEN_MASK, RSTRING_EMBED_LEN_SHIFT, RSTRING_EMBED_LEN_MAX, RSTRING_FSTR
RSTRING_NOEMBED = RUBY_FL_USER1
RSTRING_EMBED_LEN_MASK = (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|
RUBY_FL_USER5|RUBY_FL_USER6)
RSTRING_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+2)
RSTRING_EMBED_LEN_MAX = (SIZEOF_VALUE*3)-1
RSTRING_FSTR = RUBY_FL_USER17
def fixnum_p(x):
return x & RUBY_FIXNUM_FLAG != 0