Cannot leave tui mode with Ctrl-X A nor see program output in tui mode

前端 未结 4 1245
再見小時候
再見小時候 2020-12-17 10:14

Problem A:

  1. I start gdb in command line with \"gdb test\"
  2. I press ctrl-x,ctrl-a before I do anything else
  3. Then I set break po
4条回答
  •  没有蜡笔的小新
    2020-12-17 10:55

    ~/.inputrc was the culprit in GDB 7.7 because of:

    set editing-mode vi
    set keymap vi
    

    If I remove those lines it works.

    This seems to be mentioned at in the following bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=15163

    I have requested a workaround at https://sourceware.org/ml/gdb/2015-06/msg00009.html and Andrew Burgess replied that he had just submitted a well received patch to add:

    tui enable
    tui disable
    

    so in future versions we should have commands as an alternative to the shortcuts.

    But then I saw the light and moved from TUI to GDB Dashboard: https://github.com/cyrus-and/gdb-dashboard which is simply more powerful and less buggy. See also: How to highlight and color gdb output during interactive debugging?

提交回复
热议问题