llvm-project
92d9e0da - [lldb] Improved formatting of 'register read' command. (#188049)

Commit
19 days ago
[lldb] Improved formatting of 'register read' command. (#188049) Made alignment of 'register read' command's output to be dynamic to the register's name lengths -> `=` signs of different registers align when printed as sets, also aligned when picked in some custom ordering. No alignment between separate sets is included (i.e, each set is aligned to itself only). Sample change: ``` Micro-architectural Registers: r_pc = 0x0000108c main.xexe`main + 20 at main.c:5:5 instr_trace_r_init_print = 0x00 wb_csr_file_r_mstatus = 0x00000000 wb_csr_file_r_mie = 0x00000000 ``` This example is changed into: ``` Micro-architectural Registers: r_pc = 0x0000108c main.xexe`main + 20 at main.c:5:5 instr_trace_r_init_print = 0x00 wb_csr_file_r_mstatus = 0x00000000 wb_csr_file_r_mie = 0x00000000 ``` --------- Co-authored-by: Aleksandr Levin <alexander.levin03@mail.ru>
Author
Parents
Loading