[PATCH] Limit register display len to preserve multiple TUI columns

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Limit register display len to preserve multiple TUI columns

Bogdan Harjoc
When TUI layout is regs+asm+cmd, if a register value can be resolved
to a symbol with a long name, the register window becomes
single-column. That makes it hard to look at registers since you have
to scroll down in the regs window.

I couldn't figure out how to make use of gdb print settings to limit
the display length, so I wrote a patch to get the max-reg-len from the
environment (attached). I could change it to make the max-len a gdb
setting, or guess it somehow if someone suggests how.

Regards,
Bogdan

gdb-8.2-max-reg-len.patch (1K) Download Attachment