...
I'm not very familiar with this topic, but it seems that Thaddy is right
Not long ago, I also ran Lazarus on my smartphone for fun (Termux -> PRoot -> Debian Linux AArch64 -> VNC -> FPCUpDeluxe -> FPC + Lazarus) and when I launched it, I had to specify the path to the gdb executable file, and communication with gdb already exists in Lazarus using the protocol that Thaddy mentioned. If I'm not mistaken
GDBServer is, as far as I understand, for remote debugging