English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 09 December 2020, 22:42   #1
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,835
Stack im sync how to?

Say you’re debugging a program that is messing around with the stack that is leading to a software failure. Is there’s a tool that trace each time a register is pushed into the stack and retrieved from the stack (or many) to be able to track down such bug? I’m not sure I’m clear...
kamelito is offline  
Old 10 December 2020, 08:50   #2
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,307
No. If the number of register pops is not identical to the number of register pushes, you would typically crash by running into a return address that isn't one. But at that point, it is already too late. If the "return address" is invalid, the MuGA will give you a hit. WIth a stack traceback, you have a chance that you know at least parts of the call-path.
Thomas Richter is offline  
Old 10 December 2020, 20:07   #3
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,835
Thanks I’ll try Muga.
kamelito is offline  
Old 11 December 2020, 21:52   #4
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,835
Ok I found the issue, there was a movem to the stack but the minus before (sp) was missing
I didn’t understand why the program crashed randomly, in fact it was working by chance because the version number of intuition, graphics and diskont library were not set !!!

Last edited by kamelito; 11 December 2020 at 23:17.
kamelito 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
G-sync / Freesync support (adaptive sync) demolition support.WinUAE 32 01 July 2019 10:57
SimpleMail 0.43 not sync xboxown support.Apps 1 23 October 2017 01:58
Stack available mritter0 Coders. General 4 03 August 2014 18:31
Stack Up Galaxy request.Old Rare Games 5 08 September 2004 03:06
V-sync Problem bigly support.WinUAE 6 12 September 2002 17:17

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 02:51.

Top

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