[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Current beta problems - solved
On Fri, 27 Aug 1999, Lonny Pursell wrote:
> >I don't see that there is any way MiNT can know whether the program is
> >relying on the values in those registers or not...
>
> I think what kellis was trying to say was this. The kernal could help
> by noting the values of these registers prior to such a call and then
> check the values after the call to see if they have indeed changed. If they
> changed it could issue some debug message depending on the debug level.
> Perhaps saying... "Process blah might be relying on registers blah..."
> Might slow things down perhaps so this test could only be applied if the debug
> level is high enough.
This basically means, warning about every system call that changes any
registers. Aren't there loads that do that? And wouldn't the output of
such a debug version be just a messy version of a simple doc that tells
you which calls change which registers?
Might be easier to adapt the kernel to support some "buggy-programs-mode"
in which it just preserves all register values.. a lot easier than
detecting changes and logging them. :)
Maurits.
+----------------------+-------------------+--------------+
| BassMent Productions | Proud sponsor of: | * P M P * |
+----------------------+---------*------------------------+
| http://www.bassment.demon.nl * http://pmp.atari.org |
\________________________________*________________________/