mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
.gdbinit: struct RHash::basic is not a pointer
This commit is contained in:
parent
c74b044aab
commit
1f4db23ac1
1 changed files with 3 additions and 3 deletions
6
.gdbinit
6
.gdbinit
|
@ -156,12 +156,12 @@ define rp
|
|||
else
|
||||
if ($flags & RUBY_T_MASK) == RUBY_T_HASH
|
||||
printf "%sT_HASH%s: ", $color_type, $color_end,
|
||||
if (((struct RHash *)($arg0))->basic->flags & RHASH_ST_TABLE_FLAG)
|
||||
if (((struct RHash *)($arg0))->basic.flags & RHASH_ST_TABLE_FLAG)
|
||||
printf "st len=%ld ", ((struct RHash *)($arg0))->as.st->num_entries
|
||||
else
|
||||
printf "li len=%ld bound=%ld ", \
|
||||
((((struct RHash *)($arg0))->basic->flags & RHASH_AR_TABLE_SIZE_MASK) >> RHASH_AR_TABLE_SIZE_SHIFT), \
|
||||
((((struct RHash *)($arg0))->basic->flags & RHASH_AR_TABLE_BOUND_MASK) >> RHASH_AR_TABLE_BOUND_SHIFT)
|
||||
((((struct RHash *)($arg0))->basic.flags & RHASH_AR_TABLE_SIZE_MASK) >> RHASH_AR_TABLE_SIZE_SHIFT), \
|
||||
((((struct RHash *)($arg0))->basic.flags & RHASH_AR_TABLE_BOUND_MASK) >> RHASH_AR_TABLE_BOUND_SHIFT)
|
||||
end
|
||||
print (struct RHash *)($arg0)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue