Hi !
This is my simple modification for lazarus.
All changes are in file "GDBMIDebugger.pp"
This allow remote debug my application from windows.
My remote system is TEGRA II "Linux For Tegra"
I compile and debug drom XP
How Remote Debug
1) target> gdbserver host:2345 ./my_application
2) lazarus> Tools-options-Debuger ,
I selected GDB from toolchain, in my case "arm-linux-gnueabihf-gdb.exe"
3) lazarus> Tools-options-Debuger
Debugger_Remote = TRUE
Debugger_Remote_Host = 'TARGET_HOSTNAME'
Debugger_Remote_Port = '2345'
At this momenty don't work PAUSE i BREAK execution