Expand tabs in .gdbinit
This commit is contained in:
parent
9f426491ca
commit
a57270a848
50
.gdbinit
50
.gdbinit
@ -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)
|
(($rsflags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
|
||||||
set print address off
|
set print address off
|
||||||
output *(char *)(($rsflags & RUBY_FL_USER1) ? \
|
output *(char *)(($rsflags & RUBY_FL_USER1) ? \
|
||||||
((struct RString*)$regsrc)->as.heap.ptr : \
|
((struct RString*)$regsrc)->as.heap.ptr : \
|
||||||
((struct RString*)$regsrc)->as.ary) @ $len
|
((struct RString*)$regsrc)->as.ary) @ $len
|
||||||
set print address on
|
set print address on
|
||||||
printf " len:%ld ", $len
|
printf " len:%ld ", $len
|
||||||
if $flags & RUBY_FL_USER6
|
if $flags & RUBY_FL_USER6
|
||||||
@ -126,26 +126,26 @@ define rp
|
|||||||
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
|
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
|
||||||
printf "(embed) "
|
printf "(embed) "
|
||||||
if ($len == 0)
|
if ($len == 0)
|
||||||
printf "{(empty)} "
|
printf "{(empty)} "
|
||||||
else
|
else
|
||||||
print/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
|
print/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
|
||||||
printf " "
|
printf " "
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
set $len = ((struct RArray*)($arg0))->as.heap.len
|
set $len = ((struct RArray*)($arg0))->as.heap.len
|
||||||
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
|
printf "%sT_ARRAY%s: len=%ld ", $color_type, $color_end, $len
|
||||||
if ($flags & RUBY_FL_USER2)
|
if ($flags & RUBY_FL_USER2)
|
||||||
printf "(shared) shared="
|
printf "(shared) shared="
|
||||||
output/x ((struct RArray*)($arg0))->as.heap.aux.shared_root
|
output/x ((struct RArray*)($arg0))->as.heap.aux.shared_root
|
||||||
printf " "
|
printf " "
|
||||||
else
|
else
|
||||||
printf "(ownership) capa=%ld ", ((struct RArray*)($arg0))->as.heap.aux.capa
|
printf "(ownership) capa=%ld ", ((struct RArray*)($arg0))->as.heap.aux.capa
|
||||||
end
|
end
|
||||||
if ($len == 0)
|
if ($len == 0)
|
||||||
printf "{(empty)} "
|
printf "{(empty)} "
|
||||||
else
|
else
|
||||||
print/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
|
print/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
|
||||||
printf " "
|
printf " "
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print (struct RArray *)($arg0)
|
print (struct RArray *)($arg0)
|
||||||
@ -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)
|
(($flags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
|
||||||
if $len > 0
|
if $len > 0
|
||||||
output *(char *)(($flags & RUBY_FL_USER1) ? \
|
output *(char *)(($flags & RUBY_FL_USER1) ? \
|
||||||
((struct RString*)($arg0))->as.heap.ptr : \
|
((struct RString*)($arg0))->as.heap.ptr : \
|
||||||
((struct RString*)($arg0))->as.ary) @ $len
|
((struct RString*)($arg0))->as.ary) @ $len
|
||||||
else
|
else
|
||||||
output ""
|
output ""
|
||||||
end
|
end
|
||||||
@ -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)
|
(($flags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
|
||||||
if $len > 0
|
if $len > 0
|
||||||
printf "%s", *(char *)(($flags & RUBY_FL_USER1) ? \
|
printf "%s", *(char *)(($flags & RUBY_FL_USER1) ? \
|
||||||
((struct RString*)($arg0))->as.heap.ptr : \
|
((struct RString*)($arg0))->as.heap.ptr : \
|
||||||
((struct RString*)($arg0))->as.ary) @ $len
|
((struct RString*)($arg0))->as.ary) @ $len
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -868,22 +868,22 @@ define rb_numtable_entry
|
|||||||
set $rb_numtable_p = $rb_numtable_tbl->as.packed.bins
|
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
|
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
|
if $rb_numtable_p.k == $rb_numtable_id
|
||||||
set $rb_numtable_key = $rb_numtable_p.k
|
set $rb_numtable_key = $rb_numtable_p.k
|
||||||
set $rb_numtable_rec = $rb_numtable_p.v
|
set $rb_numtable_rec = $rb_numtable_p.v
|
||||||
set $rb_numtable_p = 0
|
set $rb_numtable_p = 0
|
||||||
else
|
else
|
||||||
set $rb_numtable_p = $rb_numtable_p + 1
|
set $rb_numtable_p = $rb_numtable_p + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[st_numhash($rb_numtable_id) % $rb_numtable_tbl->num_bins]
|
set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[st_numhash($rb_numtable_id) % $rb_numtable_tbl->num_bins]
|
||||||
while $rb_numtable_p
|
while $rb_numtable_p
|
||||||
if $rb_numtable_p->key == $rb_numtable_id
|
if $rb_numtable_p->key == $rb_numtable_id
|
||||||
set $rb_numtable_key = $rb_numtable_p->key
|
set $rb_numtable_key = $rb_numtable_p->key
|
||||||
set $rb_numtable_rec = $rb_numtable_p->record
|
set $rb_numtable_rec = $rb_numtable_p->record
|
||||||
set $rb_numtable_p = 0
|
set $rb_numtable_p = 0
|
||||||
else
|
else
|
||||||
set $rb_numtable_p = $rb_numtable_p->next
|
set $rb_numtable_p = $rb_numtable_p->next
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -961,7 +961,7 @@ define iseq
|
|||||||
set $operand_size = ((INSN*)($arg0))->operand_size
|
set $operand_size = ((INSN*)($arg0))->operand_size
|
||||||
set $operands = ((INSN*)($arg0))->operands
|
set $operands = ((INSN*)($arg0))->operands
|
||||||
while $i < $operand_size
|
while $i < $operand_size
|
||||||
rp $operands[$i++]
|
rp $operands[$i++]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user