[fpc-devel] Is target mips-embedded possible / planned?

Michael Schnell mschnell at lumino.de
Wed May 22 09:26:57 CEST 2013


On 05/15/2013 12:11 PM, Michael Ring wrote:
> If you find the time to find out how to actually start up & use their 
> gdbserver I will be more than happy to integrate it into lazarus, 
> right now I take what I can get and that seems to be openocd.


I don't think the term "gdbserver" is correct here (in a traditional way).

An IDE (such as DDD, Eclipse, Lazarus, ...) is supposed to access the 
"normal" gdb via the normal line interface (pipe), while gdbserver (aka 
the "gdb stub") is supposed to be accessed via the gdb (main) program 
itself via a dedicated gdb-internal pipe.


That  is why there are two ways to make Lazarus do remote (and 
potentially cross-arch) debugging:

(A) Use gdb (compiled for the PC arch, maybe with respect to the target 
arch in order to allow disassembling etc) on the development PC and have 
it access gdbserver (compiled for the target arch) on the remote machine 
e.g. via a TCP/IP socket pipe.

(B) Have Lazarus via ssh start and access the command line of the normal 
gdb main program on the remote machine compiled for the target arch.

-Michael





More information about the fpc-devel mailing list