Bug in the terminal description of tw100

FreeMiNT related questions are answered here.

Moderators: simonsunnyboy, Mug UK, Zorro 2, mikro, ThorstenOtto, Moderator Team

Post Reply
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2736
Joined: Sun Aug 03, 2014 5:54 pm

Bug in the terminal description of tw100

Post by ThorstenOtto »

As recently discovered while testing a new version of gdb, there is a problem in the description of the TW100 emulation that toswin2 uses. The result is that the cursor is sometimes moved to the middle of the window (if it is larger than 25 lines). If you encounter similar issues in curses-based programs, a possible fix is to use

Code: Select all

$ infocmp tw100 | sed 's/ll=\\E\[24H, //' | tic -
This will remove the 'll' (move to lower-left) entry from the description.

Eventually, depending on access rights, the result will be written to $HOME/.terminfo/t/tw100 instead of the system-wide /usr/share/terminfo/t/tw100
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13404
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Bug in the terminal description of tw100

Post by wongck »

sorry off topic.... OH! gdb with TUI I am guessing :D
So will it work with the old school a.out or the new elf only?
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2736
Joined: Sun Aug 03, 2014 5:54 pm

Re: Bug in the terminal description of tw100

Post by ThorstenOtto »

With the new elf only (and yes, in --tui mode, not perfect, but nicer than just a commandline). gdb does not support the stabs debug info anymore that is used in a.out, and a.out cannot use dwarf2 because that requires named sections. I also think that a lot of things simply cannot be accurately described in stabs. That also means currently for vincents gcc-13 only.
mikro
Hardware Guru
Hardware Guru
Posts: 3708
Joined: Sat Sep 10, 2005 11:11 am
Location: Kosice, Slovakia
Contact:

Re: Bug in the terminal description of tw100

Post by mikro »

Which package needs to be updated 'upstream' ? Is it ncurses which contains /usr/share/terminfo/t/tw100 ?
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2736
Joined: Sun Aug 03, 2014 5:54 pm

Re: Bug in the terminal description of tw100

Post by ThorstenOtto »

Yes, ncurses is the package where the terminfo database comes from (on my system the actual package is named terminfo, but it is built from ncurses sources)
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13404
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Bug in the terminal description of tw100

Post by wongck »

well... I'm still on the older format.
In any case.... Great work !!
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
User avatar
saulot
Captain Atari
Captain Atari
Posts: 373
Joined: Sat Sep 18, 2004 9:09 pm
Location: Warszawa
Contact:

Re: Bug in the terminal description of tw100

Post by saulot »

@ThorstenOtto: Do you mean that gcc-13 elf version supports / emits dwarfX(2 or newer?) and stabs?
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2736
Joined: Sun Aug 03, 2014 5:54 pm

Re: Bug in the terminal description of tw100

Post by ThorstenOtto »

No, you cannot mix that. dwarf2 is elf only, and stabs is a.out only. gdb does not support a.out anymore, one of the main reasons why we could not update it for our platform for years.

But i don't want to pass over Vincent here, who did the major work for that stuff, and certainly will make an announcement when it is time to do so. Some things still have to be figured out.
User avatar
saulot
Captain Atari
Captain Atari
Posts: 373
Joined: Sat Sep 18, 2004 9:09 pm
Location: Warszawa
Contact:

Re: Bug in the terminal description of tw100

Post by saulot »

Thanks, I understand this a.out situation. Just thought that if both dwarf/stabs are debugging format, so they could be emitted separately and I thought that they are somewhat independent of executable / library output format. Anyway great news, I'm certainly intersted in further developments of it. One question is dwarf2 good enough, shouldn't be better to use newer standard like dwarf5/6? (I haven't looked into differences though, maybe there are some other reasons for not doing that, v6 is still under development). But I guess I will wait for Vincent...
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2736
Joined: Sun Aug 03, 2014 5:54 pm

Re: Bug in the terminal description of tw100

Post by ThorstenOtto »

dwarf2 is only the *default* format being used (as on almost all supported targets). You can always use --gdwarf-5 or whatever you need, and is supported by gcc/binutils.
PeterS
Atari Super Hero
Atari Super Hero
Posts: 734
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Bug in the terminal description of tw100

Post by PeterS »

It might be a good time to announce the mint elf work.
Post Reply

Return to “FreeMiNT support”