Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncurses terminfo path #30

Closed
tpetazzoni opened this issue Feb 20, 2020 · 2 comments
Closed

ncurses terminfo path #30

tpetazzoni opened this issue Feb 20, 2020 · 2 comments

Comments

@tpetazzoni
Copy link
Contributor

The host ncurses in Buildroot forces /usr/share/terminfo as the location for terminfo data. However, Ubuntu installs the terminfo data in /lib/terminfo. Due to this, when running gdb, backspace doesn't work, unless one does export TERMINFO=/lib/terminfo/.

@crass
Copy link

crass commented Feb 15, 2022

I just got bit by this on a Debian 11 system. And the suggestion does indeed work. Another solution I found was to set TERM=vt100 when running gdb. This seems fairly trivial to fix (if anything just have a wrapper script that checks which terminfo path should be set). Two years seems a long time for this to go unfixed. I guess there's not a lot of Debian/Ubuntu GDB buildroot users.

@tpetazzoni
Copy link
Contributor Author

Turns out that this issue somehow resolved itself. I can reproduce it with the 2022.08-1 toolchains, but not the 2023.08-1 and later toolchains. It's not clear to me what fixed it, as "strace" doesn't show gdb searching into /lib/terminfo/. Is it perhaps ncurses having some built-in terminfo files now, as a fallback, or something like this? Anyway, it works now :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants