gdbtui fails to detect terminal (port from gcc-linaro)

Asked by Karl Palsson

the packaged arm-none-eabi-gdbtui fails to start.

karlp@dragnet:~/tools/gcc-arm-none-eabi-4_6-2012q2/bin$ ./arm-none-eabi-gdbtui
Error opening terminal: xterm.

The symptoms match https://bugs.launchpad.net/linaro-toolchain-binaries/+bug/906661 where the fix has already been applied. As in that case, it's ignoring the system paths, and looking in jenkins daily build path.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

Hi Karl,

Dynamically linking system NCURSES library can fix this issue, but it incurs a new library dependence. User needs to install NCURSES even they don't use gdbtui. We are evaluating this impact. For the time being, you can workaround this issue by exporting TERMINFO before start the gdbtui. The variable TERMINFO should be set to your system path where the terminfo/x/xterm lives. On my Ubuntu 12.04, the command looks like "export TERMINFO=/lib/terminfo".

Can you help with this problem?

Provide an answer of your own, or ask Karl Palsson for more information if necessary.

To post a message you must log in.