Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change the layout direction to horizontal in the GDB TUI mode?

Tags:

gdb

The default layout direction for the GDB TUI is up down e.g. src-win at top, asm-win at middle, cmd-win at bottom. Is there a way to change the direction in a horizontal style e.g. src-win at left, asm-win at middle, cmd-win at right?

like image 414
isamateur Avatar asked Oct 28 '25 16:10

isamateur


2 Answers

tui new-layout example {-horizontal src 1 asm 1} 2 status 0 cmd 1

https://sourceware.org/gdb/onlinedocs/gdb/TUI-Commands.html

like image 176
eurijk Avatar answered Oct 30 '25 15:10

eurijk


yes, follow by above answers:

when you are in gdb, just input above cmds:

(gdb)tui new-layout example {-horizontal src 1 asm 1} 2 status 0 cmd 1

then tui will create a layout name called example, then you can:

(gdb) tui # to enter tui mode
(gdb) layout example # to load the layout you just create
like image 38
Allen Walker Avatar answered Oct 30 '25 14:10

Allen Walker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!