[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] gdb & gcc 4.3.2
Hi,
On Sunday 19 October 2008, Vincent Rivière wrote:
> And gdb supports remote debugging via TCP/IP. I think it would be
> possible to run the programs in ARAnyM, with a graphical debugger like
> ddd running on Linux or Cygwin. I would love it !
> Anyway, I'm not sure it is possible to do that, and if it is, it will
> require a big work...
On the Aranym side you would need the minimal Gdb server thing, on the PC
side a cross-gdb (host x86, target m68k) and a debug version of the binary
running in the Aranym. Then just tell DDD to start the cross-gdb.
It should look something like this:
- Aranym:
# m68k-gdbserver HOST-IP:PORT m68k-binary-stripped
- PC:
$ ddd --debugger 'i386-m68k-gdb 68k-binary-unstripped'
- in DDD Gdb prompt:
(gdb) target remote HOST-IP:PORT
I've used this few times with Scratchbox for debugging ARM binaries and it
works fine. In MiNT case it should be even easier as the MiNT binaries are
statically linked and you don't need to care about dynamic library paths.
The only/real problem is getting i386-m68k cross-gdb (gdbserver itself is
part of Gdb build).
- Eero