Permalink
Browse files

forgot RSTRING_LEN, was breaking `ruby objects strings`

  • Loading branch information...
1 parent 1450537 commit 980ae45a0e4290fb2356b860e9537b96229cfe16 @tmm1 committed Apr 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/ruby-gdb.py
View
@@ -563,6 +563,7 @@ def invoke (self, arg, from_tty):
# Common 1.8 macros
macros += """
#define RSTRING_PTR(obj) (RSTRING(obj)->ptr)
+ #define RSTRING_LEN(obj) (RSTRING(obj)->len)
#define CHAR_BIT 8
#define NODE_LSHIFT (FL_USHIFT+8)
#define NODE_LMASK (((long)1<<(sizeof(NODE*)*CHAR_BIT-NODE_LSHIFT))-1)

0 comments on commit 980ae45

Please sign in to comment.