[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] How program CWD can change during appl_init() call?



Vincent Rivière, 08.01.2013 16:37:37:

On 08/01/2013 16:15, Eero Tamminen wrote:
Any comments on how one can debug what happens inside
OS during OS call or what data could get overwritten
inside OS?

I had similar problem when debugging the abominable XaAES bug in ob_fix_shortcuts(). I added traces in XaAES itself to see if the bug had already happened, or not. Then narrow the traces to determine the location of the bug more precisely.

Another approach is to put some kind of breakpoint in the code (infinite loops, etc.) and examine the memory with an external debugger. Ideally a "data breakpoint" tool would be perfect.

Good luck.

He could as well try it with a current build. The bug you found is in XaAES 0.999 too I think.

To which directory does it change? Is it anything reasonable? In general starting GEM-apps from a toswin-shell is not supported very well.

--
Helmut Karlowski