English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

Thread Tools
Old 16 November 2013, 11:01   #1
Registered User

Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 642
Remote C/C++ debugging?


I came across http://vincent.riviere.free.fr/soft/m68k-atari-mint/

And the interesting bit (for me) is:
Quick HOWTO for remote debugging using Cygwin and ARAnyM:
Let say that your ARAnyM IP address is, and you want to debug an executable named hello using the TCP port 4444. Any unused port between 1024 and 65535 can be used.
Make sure TCP/IP works between Cygwin and ARAnyM (check with ping in both directions).
Compile hello with debug information: m68k-atari-mint-gcc hello.c -o hello -g
Keep the executable with debug information on Cygwin, and put a copy (or stripped copy) into ARAnyM (or better: use HOSTFS).
On ARAnyM, run the command gdbserver :4444 hello
gdbserver will start hello in suspended mode and will wait for incoming connections. No further action will be required on the ARAnyM side (except looking at the program output).
On Cygwin, run the command m68k-atari-mint-gdb hello.
At the (gdb) prompt, type target remote
On both sides, the message "Remote debuggin using..." will be displayed.
On Cygwin, use gdb as usual. Put a breakpoing using b main. Then type cont (instead of run), because the remote process has already been started remotely.
Debugging can be more user-friendly !
Run m68k-atari-mint-gdb with the --tui option to enable full-screen source debugging.

You can even use the graphical debugger ddd for remote debugging MiNT programs.

On Cygwin, install the ddd package.
On ARAnyM, run gdbserver as described above.
On Cygwin, start X-Window with the command startx.
In the xterm window, type ddd --debugger m68k-atari-mint-gdb hello
In the ddd command window, type the target remote... command.
Use ddd as usual !
So...anyone attempted/failed/achieved this or something similar to this on Amiga? What's missing to have this?
alkis is offline  
Old 03 January 2014, 12:17   #2
Total Chaos forever!

Samurai_Crow's Avatar
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 46
Posts: 1,737
The Code PRobe debugger on SAS/C does something similar.
Samurai_Crow is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging and JIT issues copse support.WinUAE 4 01 April 2012 05:50
Serial debugging while booting jman Coders. General 1 25 March 2012 03:02
Remote GDB debugging copse support.WinUAE 6 31 August 2011 01:05
Help debugging a faulty CD32 UberFreak support.Hardware 0 23 October 2009 03:29
Enforcer debugging tool M&F support.WinUAE 0 21 May 2002 22:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 21:18.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.06762 seconds with 13 queries