Skip to content

Commit

Permalink
Expand tabs in .gdbinit
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 31, 2023
1 parent 9f42649 commit a57270a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .gdbinit
Expand Up @@ -104,8 +104,8 @@ define rp
(($rsflags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
set print address off
output *(char *)(($rsflags & RUBY_FL_USER1) ? \
((struct RString*)$regsrc)->as.heap.ptr : \
((struct RString*)$regsrc)->as.ary) @ $len
((struct RString*)$regsrc)->as.heap.ptr : \
((struct RString*)$regsrc)->as.ary) @ $len
set print address on
printf " len:%ld ", $len
if $flags & RUBY_FL_USER6
Expand All @@ -126,26 +126,26 @@ define rp
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
printf "(embed) "
if ($len == 0)
printf "{(empty)} "
printf "{(empty)} "
else
print/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
printf " "
print/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
printf " "
end
else
set $len = ((struct RArray*)($arg0))->as.heap.len
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
if ($flags & RUBY_FL_USER2)
printf "(shared) shared="
output/x ((struct RArray*)($arg0))->as.heap.aux.shared_root
printf " "
printf "(shared) shared="
output/x ((struct RArray*)($arg0))->as.heap.aux.shared_root
printf " "
else
printf "(ownership) capa=%ld ", ((struct RArray*)($arg0))->as.heap.aux.capa
printf "(ownership) capa=%ld ", ((struct RArray*)($arg0))->as.heap.aux.capa
end
if ($len == 0)
printf "{(empty)} "
printf "{(empty)} "
else
print/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
printf " "
print/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
printf " "
end
end
print (struct RArray *)($arg0)
Expand Down Expand Up @@ -445,8 +445,8 @@ define output_string
(($flags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
if $len > 0
output *(char *)(($flags & RUBY_FL_USER1) ? \
((struct RString*)($arg0))->as.heap.ptr : \
((struct RString*)($arg0))->as.ary) @ $len
((struct RString*)($arg0))->as.heap.ptr : \
((struct RString*)($arg0))->as.ary) @ $len
else
output ""
end
Expand All @@ -459,8 +459,8 @@ define print_string
(($flags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
if $len > 0
printf "%s", *(char *)(($flags & RUBY_FL_USER1) ? \
((struct RString*)($arg0))->as.heap.ptr : \
((struct RString*)($arg0))->as.ary) @ $len
((struct RString*)($arg0))->as.heap.ptr : \
((struct RString*)($arg0))->as.ary) @ $len
end
end

Expand Down Expand Up @@ -868,22 +868,22 @@ define rb_numtable_entry
set $rb_numtable_p = $rb_numtable_tbl->as.packed.bins
while $rb_numtable_p && $rb_numtable_p < $rb_numtable_tbl->as.packed.bins+$rb_numtable_tbl->num_entries
if $rb_numtable_p.k == $rb_numtable_id
set $rb_numtable_key = $rb_numtable_p.k
set $rb_numtable_rec = $rb_numtable_p.v
set $rb_numtable_p = 0
set $rb_numtable_key = $rb_numtable_p.k
set $rb_numtable_rec = $rb_numtable_p.v
set $rb_numtable_p = 0
else
set $rb_numtable_p = $rb_numtable_p + 1
set $rb_numtable_p = $rb_numtable_p + 1
end
end
else
set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[st_numhash($rb_numtable_id) % $rb_numtable_tbl->num_bins]
while $rb_numtable_p
if $rb_numtable_p->key == $rb_numtable_id
set $rb_numtable_key = $rb_numtable_p->key
set $rb_numtable_rec = $rb_numtable_p->record
set $rb_numtable_p = 0
set $rb_numtable_key = $rb_numtable_p->key
set $rb_numtable_rec = $rb_numtable_p->record
set $rb_numtable_p = 0
else
set $rb_numtable_p = $rb_numtable_p->next
set $rb_numtable_p = $rb_numtable_p->next
end
end
end
Expand Down Expand Up @@ -961,7 +961,7 @@ define iseq
set $operand_size = ((INSN*)($arg0))->operand_size
set $operands = ((INSN*)($arg0))->operands
while $i < $operand_size
rp $operands[$i++]
rp $operands[$i++]
end
end
end
Expand Down

0 comments on commit a57270a

Please sign in to comment.