English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 30 September 2019, 23:39   #101
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by hooverphonique View Post
Btw, I think there's a rogue "emulator" line in launch.json line 9.
Yep, useless.


Quote:
Originally Posted by hooverphonique View Post
I made a couple of pull requests for some fixes to gencop.s btw
Thanks !
prb28 is offline  
Old 19 October 2019, 04:35   #102
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
I finally got around to try this, and it is very impressive, thank you for doing all this work.
I ran into one issue - not sure if this is just me: using the sample workspace, I can place/remove breakpoints before launching, I can step over and into just fine. However once I hit the first breakpoint, I can’t place or remove any breakpoints - if I do, the emulation in fs-uae will hang. This is on Windows 10.
Hannibal is offline  
Old 19 October 2019, 17:56   #103
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Hannibal View Post
I finally got around to try this, and it is very impressive, thank you for doing all this work.
Thanks.


Quote:
Originally Posted by Hannibal View Post
I can’t place or remove any breakpoints - if I do, the emulation in fs-uae will hang. This is on Windows 10.
Maybe something new in windows 10 or vscode...
I'll try it later this weekend.
prb28 is offline  
Old 19 October 2019, 19:40   #104
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Hannibal View Post
I ran into one issue - not sure if this is just me: using the sample workspace, I can place/remove breakpoints before launching, I can step over and into just fine. However once I hit the first breakpoint, I can’t place or remove any breakpoints - if I do, the emulation in fs-uae will hang. This is on Windows 10.
Same behavior on my windows 10.
I've added an issue to github: https://github.com/prb28/vscode-amig...mbly/issues/96



Thanks for reporting... now it's time for debugging
prb28 is offline  
Old 20 October 2019, 04:11   #105
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
Yay, it is not just a bug on my machine :-)

Now for me to figure out how I can configure my code to work with it
Hannibal is offline  
Old 20 October 2019, 18:51   #106
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
I don't know if something has changed on 0.18 but my breakpoints are no longer working. If I download the example workspace and build/run within VSCode then it works ok. But if I compile outside of VSCode and then debug it stops on entry fine (and can single step). But any breakpoints I've set are ignored and if I hover over them in vscode it says "Debug information not resolved retrieved"

This is on Win10.

Edit: Here's an example, just create a batch file in the root of your example gencop workspace and run it to compile. Then run the debug from vscode and see if it stops and and/or gives the debug not resolved message above.

Code:
set ObjDir=Build
set OutDir=fs-uae\hd0

set BuildParam=-m68000 -Fhunk -linedebug
set LinkParam=-bamigahunk -Bstatic

bin\vasmm68k_mot.exe %BuildParam% -o %ObjDir%\gencop.o gencop.s
bin\vlink.exe %LinkParam% -o %OutDir%\gencop %ObjDir%\gencop.o
Edit: If I download the 0.17 example bundle/bin files and roll vscode back to 0.17 the above works. Hmm. Maybe something changed in file path/debug info code and it's no longer able to resolve paths?

Last edited by Antiriad_UK; 20 October 2019 at 19:23.
Antiriad_UK is offline  
Old 20 October 2019, 20:51   #107
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Antiriad_UK View Post
I don't know if something has changed on 0.18 but my breakpoints are no longer working.
Maybe the integration of the new version of vasm is in cause...
Thanks for the bat, I'll try it as soon as I can add a new breakpoint with the extension !



Quote:
Originally Posted by Antiriad_UK View Post
If I download the 0.17 example bundle/bin files and roll vscode back to 0.17 the above works. Hmm. Maybe something changed in file path/debug info code and it's no longer able to resolve paths?
Going back to 0.17 is a good solution (sorry about that).
There is the new vasm/vlink and a resolution of the upper case files in debug that can mess with the breakpoint resolution, and maybe the last version of vscode has some new behavior.

Yes there is something with the breakpoints in 0.18 on windows (works on osx my dev platform). I'm still digging...
prb28 is offline  
Old 21 October 2019, 00:09   #108
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
@Antiriad_UK and @Hannibal

Could you please try this fix ?

https://github.com/prb28/vscode-amig...indows_x64.zip

It was a bug in my fs-uae modification in release mode. The -O2 optimization of GCC added some strange behavior on my poorly coded C code.

Sorry for the trouble.
prb28 is offline  
Old 21 October 2019, 00:21   #109
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Antiriad_UK View Post
Maybe something changed in file path/debug info code and it's no longer able to resolve paths?
This is not fixed... it's not the same bug, I've added a github issue : https://github.com/prb28/vscode-amig...mbly/issues/97
prb28 is offline  
Old 21 October 2019, 00:25   #110
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
Yeah just tested, it was the same. Sorry!
Antiriad_UK is offline  
Old 21 October 2019, 00:45   #111
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Antiriad_UK View Post
Yeah just tested, it was the same. Sorry!
Not a solution... but a workaround, add to your launch.json configuration :
Code:
"sourceFileMap": {
    "C:": "c:"
}
As you can see my path to the upper case debug files has some flows...
I'll fix that in next release.
prb28 is offline  
Old 21 October 2019, 18:42   #112
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
0.18.1 is out with new binaries for windows and osx.

@Antiriad_UK: you issue should be fixed now!
Thanks for testing!
prb28 is offline  
Old 21 October 2019, 19:21   #113
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
Quote:
Originally Posted by prb28 View Post
0.18.1 is out with new binaries for windows and osx.

@Antiriad_UK: you issue should be fixed now!
Thanks for testing!
Thanks. I'll try tomorrow morning and let you know.
Antiriad_UK is offline  
Old 21 October 2019, 19:50   #114
Spec-Chum
Registered User
 
Join Date: Dec 2016
Location: England
Posts: 87
Quote:
Originally Posted by prb28 View Post
0.18.1 is out with new binaries for windows and osx.
Will these help with https://github.com/prb28/vscode-amiga-gcc-example as well?

Be cool to have a debugging IDE for bebbo's GCC.
Spec-Chum is offline  
Old 21 October 2019, 21:44   #115
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Spec-Chum View Post
Will these help with https://github.com/prb28/vscode-amiga-gcc-example as well?

Be cool to have a debugging IDE for bebbo's GCC.
I've just tried it and it seems to work, my explanations are really too sparse.


It uses another way to build and debug. It's the C/C++ extension that does the most part of the work and gdbserver is connected to a gdb instance in your host system.



I can try to help you to make it work (pm me if you want).
prb28 is offline  
Old 21 October 2019, 21:44   #116
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
I tried 0.18.1, but I still saw the same problem. Is there anything else I have to do other than let VS.Code install the update, and then restarting VS.Code? Do I need to restart my PC? clean and recompile? download a new example repo?
Hannibal is offline  
Old 21 October 2019, 21:47   #117
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by Hannibal View Post
I tried 0.18.1, but I still saw the same problem.
Yes you need to get the new bin directory: https://github.com/prb28/vscode-amig...indows_x64.zip


For you bug the fix in the fs-uae binary executable.
prb28 is offline  
Old 22 October 2019, 08:03   #118
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
after updating the bin files it works perfectly, thank you for fixing it so quickly
Hannibal is offline  
Old 22 October 2019, 10:00   #119
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
I have noticed 2 issues in 0.18 (windows 10) with the debug configuration using the example workspace:
1) The output binary (fs-uae\hd0\gencop) is not updated when pressing start, so it fires up an old version - when using the run configuration it's ok.
2) When starting, the emulator runs "twice" before returning to the ide (i.e. after clicking lmb to exit gencop, it reboots and runs gencop, and I have to click lbm again). Maybe it's related to 1)?.

I will try 0.18.1 and see if it helps.

Edit: I still have these 2 issues with 0.18.1 of the extension and the binaries. I've added debug output and fs-uae log.
Attached Files
File Type: zip log+output.zip (14.0 KB, 78 views)

Last edited by hooverphonique; 22 October 2019 at 10:19.
hooverphonique is offline  
Old 22 October 2019, 10:22   #120
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Quote:
Originally Posted by hooverphonique View Post
1) The output binary (fs-uae\hd0\gencop) is not updated when pressing start, so it fires up an old version - when using the run configuration it's ok.
This is due to the launch.json configuration, please modify the debug configuration :
Code:
"buildWorkspace":true
I certainly modified it by mistake. I'll fix that.
Quote:
Originally Posted by hooverphonique View Post
2) When starting, the emulator runs "twice" before returning to the ide (i.e. after clicking lmb to exit gencop, it reboots and runs gencop, and I have to click lbm again). Maybe it's related to 1)?
This is due to the difference between the debug and release launch.
In Run mode there is no injection so the binary is launched by the Startup-Sequence.In the fs-uae Debug mode the binary is injected in fs-uae at initialization before the Startup-Sequence started. So when it's done the normal amiga emulation start with a startup-sequence and re-runs the gencop binary.
If you don't want it in debug, remove the gencop line in Startup-Sequence file and keep UAEquit call (to have a gentle exit).
prb28 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
assembly code to test for assign (2.0+) jotd Coders. System 2 27 December 2017 23:16
very basic C/ASM/Visual Studio hand holding Sephnroth Coders. C/C++ 2 08 March 2016 20:15
Amiga Audio/Visual KhneFr request.Other 6 03 January 2015 10:25
Profiling WinUAE with Visual Studio 2013 mark_k support.WinUAE 3 14 January 2014 20:26
amiga visual editor thinlega request.Apps 1 22 January 2003 15:48

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 12:33.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11314 seconds with 16 queries