1

When gdb runs it sets its initial display size to that of the hosting terminal, ie so as to paginate after a screenful and to wrap lines on the right edge. After resizing the terminal I can manually reset these values, e.g.:

set width 140
set height 80

but this "read numbers in one place, type them into another" begs for automation. I had hoped that out-of-range values (set width -1) or commands like "refresh" would trigger a reset but I've yet to find anything.

If there is no in-built support then I (wildly) guess a python script could do this?

[EDIT: using GNU gdb (GDB) 7.6.1-ubuntu on Mint(Mate) 16, no interesting customisations]

2
  • What OS are you on? Is this a custom gdb build or a downloaded one? Is your TERM environment variable set properly? Commented Mar 26, 2014 at 15:52
  • Sorry, that was neglectful of me! Mint(Mate) 16, standard gdb for the env (7.6.1-ubuntu), and TERM is just "xterm" (and I don't have any oddities with linewraps, etc, that might suggest it's generally confused) Commented Mar 26, 2014 at 15:55

1 Answer 1

1

It's just a gdb bug. Please file it in gdb bugzilla, though beware that the TUI is under-maintained.

Sign up to request clarification or add additional context in comments.

2 Comments

Oops, I see now that you didn't mention the TUI. Still a bug; but this increases your chances of a fix :-)
Thanks for the speedy confirmation - raised as bug 16762

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.