OK, not sure if this means that it works (think it’s using the internal debugger?)

OK, not sure if this means that it works (think it’s using the internal debugger?)

You can choose if al is right internal or gdb. The screenshot shows non-working debugger I think.
OK, just wanted to check 
EDIT Same error when I switch to system gdb …
We use gdb 8 I think, while Lazarus expects a newer one . The header version in exes has been increased in the meantime. I think laz creates version 4 where gdb 8 expects an older one (2 I think).
So gdb does not recognize the laz builds correctly.
Yeah, there has been some mentioning on that in this thread iirc …
Out of curiosity: Does CudaText in your screenshot use standard font selection dialog, or it is in-home written specially for CudaText?
Not sure there, I know the font and fontsize are set in the source for CudaText.
Small changes related to freepascal in my repository Hakilo
Now you can build fresh Lazarus 2.2 for testing

Just a “heads-up” regarding issues with serial ports. There have been some fixes related to termios calls (tcflush / tcsendbreak) not long ago. See: #17861 (tcflush() is implemented incorrectly) – Haiku.
Might warrant re-testing apps using those calls.
There are still other unresolved issues: #17867 (BSerialPort's WaitForInput() and timeout handling are broken.) – Haiku.
TL;DR;: Until those are fixed, do not rely on read timeouts, use select() and then read().
@rudolfc: Might want to check your inbox here. I’ve sent you a DM about this.