English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. C/C++ (https://eab.abime.net/forumdisplay.php?f=118)
-   -   m68k-amigaos-gdb (https://eab.abime.net/showthread.php?t=93055)

bebbo 17 June 2018 20:01

m68k-amigaos-gdb
 
Feel free to read more at https://franke.ms/amiga/gdb8.wiki

and give it a shot!

I updated my web page and added
  • a first bgdbserver executable for the Amiga
  • some info how to build m68k-amigaos-gdb
  • a very short description howto use it


:agree

Marlon_ 17 June 2018 20:02

Woohoo! :D

ovale 18 June 2018 22:37

Great!

lantus360 19 June 2018 23:49

been using it today with stepping. it seems to work well !

for those using WinUAE just remember to enable bsdsocket.library otherwise you will HALT (obvious i know but took me ages to figure out why my debug server wouldn't start :)

gregthecanuck 20 June 2018 02:34

Awesome!! Stefan I just sent you a (small, sorry) PayPal donation for your work on gdb. Hopefully you can buy yourself a nice beer or something. :)

Cheers!
Greg

bebbo 20 June 2018 13:13

Quote:

Originally Posted by gregthecanuck (Post 1249368)
Awesome!! Stefan I just sent you a (small, sorry) PayPal donation for your work on gdb. Hopefully you can buy yourself a nice beer or something. :)

Cheers!
Greg

Thank you Greg, I will toast to you!

wawa 20 June 2018 14:27

bgdbinit seems to be working under aros 68k, perhaps it can be useful. im just not sure how to approach m68k-amigaos-gdb.
lets assume ill build it within my vm linux environment im building software with, i will not be able to access winuae with it. on the other hand to use it under windows one would have a windows or at least cygwin version. is there a solution for that?

perhaps i might try to access fs-uae, im running within linux vm while initially testing, not sure what port.

kamelito 21 June 2018 13:36

Great!

bebbo 01 July 2018 14:25

A small step for me, a giant leap for Amiga fellows:

Today it worked for the first time to remotely debug an Amiga application from Eclipse.

See attached screenshot.

alkis 02 July 2018 17:41

Nice work. Works from terminal for me. I am trying to make Clion work with it. Stepping works (F8), it can't understand the variables though. (No variables in context)

bebbo 02 July 2018 18:25

Quote:

Originally Posted by alkis (Post 1251778)
Nice work. Works from terminal for me. I am trying to make Clion work with it. Stepping works (F8), it can't understand the variables though. (No variables in context)

Code:

inf arg
inf loc

are both working. Are you using bgdbserver 0.2?

alkis 02 July 2018 23:49

Everything works from terminal. I can see variables and all.

It must be some idiosyncrasy of Clion.
(Btw, I was using bgdbserver 0.1, switched to 0.2 still the same issue on clion. )

gregthecanuck 04 July 2018 03:59

Quote:

Originally Posted by bebbo (Post 1251506)
A small step for me, a giant leap for Amiga fellows:

Today it worked for the first time to remotely debug an Amiga application from Eclipse.

See attached screenshot.



And the angels sang with joy... :)


Very exciting! How anybody can develop in C without a decent debugger is unbelievable.

pants 04 July 2018 05:19

Quote:

Originally Posted by gregthecanuck (Post 1252121)
Very exciting! How anybody can develop in C without a decent debugger is unbelievable.


Me: "Boss, can we not just *buy* a debugger vs writing our own dev tools for each new platform?"
Boss: "Sure, if you buy it with your own money and use it in your own time. I don't pay you to write bugs."

back-on-topic: awesome work bebbo :)

arti 11 August 2018 16:58

How about gprof?
Aprof is good but doesn't work with bigger applications.

NovaCoder 15 August 2018 02:55

Quote:

Originally Posted by bebbo (Post 1251506)
A small step for me, a giant leap for Amiga fellows:

Today it worked for the first time to remotely debug an Amiga application from Eclipse.

See attached screenshot.

Great work!

I always had to debug my code with print statements....it was so painful :sad

A memory bug in ScummVM took me weeks to track down!

jotd 15 August 2018 09:44

more generally great work creating a cross compiler suite which doesn't require this crap cygwin.

tolkien 13 September 2018 23:46

Hello!!
Im using GCC from Bebbo and works really good but I have problems with GDB in windows 10.
Each time I try it I have the next error : ‘The application was unable to start correctly (0xc000007b)'
Im using a compiled version from https://github.com/SteveMoody73/amiga-gcc/releases
Any idea?
Im really happy with Bebbo's work anyway!

bebbo 17 September 2018 10:41

Quote:

Originally Posted by tolkien (Post 1268777)
Hello!!
Im using GCC from Bebbo and works really good but I have problems with GDB in windows 10.
Each time I try it I have the next error : ‘The application was unable to start correctly (0xc000007b)'
Im using a compiled version from https://github.com/SteveMoody73/amiga-gcc/releases
Any idea?
Im really happy with Bebbo's work anyway!

If you are desperate try this one https://franke.ms/download/setup-amiga-gcc.exe

tolkien 17 September 2018 13:31

will try this night. And thanks so much for this good work mate!!


All times are GMT +2. The time now is 19:49.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.05156 seconds with 10 queries