22

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?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Abruzzo Forte e Gentile
  • 14,423
  • 28
  • 99
  • 173

1 Answers1

29

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)

Abruzzo Forte e Gentile
  • 14,423
  • 28
  • 99
  • 173
dbrank0
  • 9,026
  • 2
  • 37
  • 55
  • 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). – Abruzzo Forte e Gentile May 29 '13 at 08:39
  • 5
    in newer `gdb` it might be `src` with non-capital letters -- `help winheight` should list the accepted window names – sdaau Nov 27 '15 at 00:20
  • 9
    `winheight ` will tab-complete names of currently-shown windows. – Peter Cordes Mar 14 '17 at 07:00