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

add indent for debug disasm output

This commit is contained in:
Koichi Sasada 2020-05-29 11:23:17 +09:00
parent 6ba2d3e4c6
commit 03d7f3cdb2

View file

@ -8810,7 +8810,7 @@ dump_disasm_list_with_cursor(const LINK_ELEMENT *link, const LINK_ELEMENT *curr,
{
iobj = (INSN *)link;
str = insn_data_to_s_detail(iobj);
printf("%04d %-65s(%4u)\n", pos, StringValueCStr(str), iobj->insn_info.line_no);
printf(" %04d %-65s(%4u)\n", pos, StringValueCStr(str), iobj->insn_info.line_no);
pos += insn_data_length(iobj);
break;
}
@ -8824,13 +8824,13 @@ dump_disasm_list_with_cursor(const LINK_ELEMENT *link, const LINK_ELEMENT *curr,
case ISEQ_ELEMENT_TRACE:
{
TRACE *trace = (TRACE *)link;
printf("trace: %0x\n", trace->event);
printf(" trace: %0x\n", trace->event);
break;
}
case ISEQ_ELEMENT_ADJUST:
{
ADJUST *adjust = (ADJUST *)link;
printf("adjust: [label: %d]\n", adjust->label ? adjust->label->label_no : -1);
printf(" adjust: [label: %d]\n", adjust->label ? adjust->label->label_no : -1);
break;
}
default: