Good! Now I can use the debugger! Even with codeblocks. This GCC version has a minor problem with paths (my default project path have spaces and letter Ñ so perhaps is that the problem) but I can solve it creating the project in another folder.
Im going to try it harder. Thanks so much!!! |
Quote:
|
Quote:
Code:
m68k-amigaos-gcc hello.c -I "d:\temp\x Ñ\include" |
Hi Bebbo!
Can you try to create a directory named for example "test ñ", create a project there and compile? I can´t! It´s not really a problem cos I can create a dir with another name. The only problem is that the path to my desktop have "space and ñ" in its name hehehehe |
Quote:
Code:
d:\temp\x Ñ\Ña Ñi Ñu ÑoÑoÑo\test ñ>m68k-amigaos-gcc hello.c -I .. |
Don't worry Bebbo. I was trying with CodeBlocks and perhaps is its fault.
I will try with other ide cos codeblocks doesnt handle very well the debugger part. any ide suggestion mates? |
I just uploaded my current snaphsot and its available here:
https://franke.ms/download/bgdbserver_6.zip |
This update fixes the issue I posted in the other thread with bgdbserver not finding my executable!
Thanks |
Here is a little experiment in python
https://drive.google.com/file/d/17gR...ew?usp=sharing Get it and from within gdb, type 'source al.py' Now when you debug and you come across an amiga lib function call (jsr -nnn(a6)), if you type in gdb 'al' (short for amiga library) then it will tell you what function that is. |
You may now contribute to bgdbserver: https://github.com/bebbo/bgdbserver
|
Hi bebbo,
That's a great work you did! I'm trying to get the m68k-amigaos-gdb binary for osx. It's not in your binary release, so I've tried to build it and got this error: Code:
checking for the correct version of mpc.h... no Code:
brew info mpc |
Quote:
that's the wrong mpc... ... gcc is building on osx (see here: https://travis-ci.org/bebbo/amiga-gcc, windows is here: https://travis-ci.org/bebbo/amiga-gcc-travis-windows) but osx is without gdb - gdb does not build so easily. My best guess: make gcc work (somehow) instead of `what's provided´ And if you solve this, create a pull request on github or share that knowlegde in another way. |
ok thanks, maybe a cross compilation will do the trick.
I try it and will get back to you when it works. |
When opening my helloword in vscode this line:
Code:
DOSBase = OpenLibrary("dos.library", 0); It builds with the makefile so I think there is a define or a gcc option that I should add to my config. Do you know which one? |
Quote:
try Code:
#define _NO_INLINE |
It worked! thanks!
|
I just updloaded bgdbserver 1.1 to aminet (should be there tomorrow), and for the hasty ones: https://franke.ms/download/bgdbserver.lha
what's new? version 1.1 supports breaking into a running program. Try CTRL+C in gdb. |
I am able to run program on winuae in bgdbserver from eclipse but on eclipse i get :
"Could not start gdbserver on the remote host. See console output for more details." I run WinUAE in admin mode. |
Quote:
Did you follow all steps decribed here: https://franke.ms/amiga/gdb8.wiki? My first guess: You did not install the patched eclipse plugin. |
I am using Bebbo's GCC using c++ and it works great for me (Thanks Bebbo! :)).
Now, my problem is to find an easy to way to debug code, other than printf or obscure memory breakpoints on winuae :). So maybe you guys, can give some options and let me know if I am doing something wrong. I used the bgdbserver and it works fine, but as an Amiga program when I disable system, the server running on the amiga goes away too (maybe I am missing something here?). Then I saw that now FS-UAE and Winuae have some modifications to support gdb, my understanding is this method would be better and more integrated into the emulator, but unfortunately it doesn't seem to work on c++ or with bebbo gcc tools. I tried adapting the vscode of the 'https://github.com/BartmanAbyss/vscode-amiga-debug/releases' but I couldn't make it work, not an expert on GDB XD. I would really appreciate any help on this, thanks! |
All times are GMT +2. The time now is 01:10. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.