Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make the gdb tui window bigger

Tags:

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?

like image 327
Abruzzo Forte e Gentile Avatar asked May 28 '13 13:05

Abruzzo Forte e Gentile


People also ask

How do I scroll up in GDB?

When in GDB mode, the user is in command mode or scroll mode. When in command mode, the user is typing in commands to interact with GDB. When in scroll mode, the user can scroll through the GDB output. You can enter scroll mode by typing page up and quit scroll mode by typing q , i or enter .

How do I list breakpoints in GDB?

You can see these breakpoints with the GDB maintenance command `maint info breakpoints' . Using the same format as `info breakpoints' , display both the breakpoints you've set explicitly, and those GDB is using for internal purposes. Internal breakpoints are shown with negative breakpoint numbers.


1 Answers

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)

like image 174
dbrank0 Avatar answered Oct 05 '22 16:10

dbrank0