How to make the gdb tui window bigger
Asked Answered
J

1

23

I am debugging my application by using gdb in tui mode.

When I start my debugging session the main windows is split in 2 equal-sized parts.

  • the window with the source code (upper side)
  • the window where I can call gdb commands (lower side)

The 2 windows are the same exact size.

Is there any way or key combination to make the source code window bigger than the other ones? Anything to make it larger?

Jamin answered 28/5, 2013 at 13:7 Comment(2)
Did you consider using the M-x gdb mode of emacs ? Then such things are simpler (under emacs).Diddle
Hi Basile.I 'd prefer to sort it via any GDB command to be used from GDB console. Thanks anyway for the suggestion.Jamin
S
30

See gdb manual for TUI commands.

You basically need to issue something like: winheight SRC + 5 (to increase of some columns) or winheight SRC 20 (to set absolute value)

Selfdrive answered 28/5, 2013 at 15:18 Comment(3)
Hi Dbranko. it works. I first get the names of the windows by calling 'info win' and then I increase/decrease the size of number of columns I want (if that number is allowed by gdb..sometimes I get invalid height).Jamin
in newer gdb it might be src with non-capital letters -- help winheight should list the accepted window namesGloboid
winheight <tab> will tab-complete names of currently-shown windows.Graeme

© 2022 - 2024 — McMap. All rights reserved.