English Amiga Board


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

 
 
Thread Tools
Old 19 April 2021, 00:13   #1
colourspace
Registered User
 
colourspace's Avatar
 
Join Date: Apr 2020
Location: CHICAGO / USA
Posts: 32
Debugging "forked" processes

hello, i'm learning amiga asm and one of the best ways for me to learn is to step through existing code with a debugger. a number of source examples i've run into seem to "fork" themselves with _LVOCreateProc and then exit. in doing so, the debugger also exits (tried with monam and asmpro).


are there any tricks to continue execution or attach to the new process? i've had some luck with barfly's debugger attaching to an arbitrary process, but it ends up with a raw disassembly which makes it very difficult to setup breakpoints
colourspace is offline  
Old 19 April 2021, 11:29   #2
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
By putting a breakpoint at the start of the code I guess.
http://amigadev.elowar.com/read/ADCD.../node028E.html
kamelito is offline  
Old 19 April 2021, 12:05   #3
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Normally the technique is just about making the program self-detaching.
I would skip or remove the code that does the process creation and exits.
meynaf is offline  
Old 19 April 2021, 23:01   #4
colourspace
Registered User
 
colourspace's Avatar
 
Join Date: Apr 2020
Location: CHICAGO / USA
Posts: 32
Quote:
Originally Posted by meynaf View Post
Normally the technique is just about making the program self-detaching.

thanks for the tip-- this is definitely the case in the code examples i've looked at
colourspace 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
"Diabolik" & "Dylan Dog" & "Tex" & "Time Runners" series DamienD request.Old Rare Games 20 21 July 2022 16:58
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" DemosongIHunter request.Music 45 23 May 2022 20:07
"Screech!! v2.41" & "Screech!! [AGA] v2.51" - "HD install" --> "ADFs" DamienD request.Old Rare Games 45 15 June 2020 12:42
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 00:06
CD32 Image-Name-Bug: "...(bla)[!].zip" -> "...(bla)[" / "...[test].zip" -> "...[tes" cfTrio support.WinUAE 8 18 December 2012 16:31

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 22:47.

Top

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