Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

UI21DEB deBUGGER released | inreentrant mess (Announce)

posted by DOS386, 01.03.2009, 13:59

Thanks. BTW, since the release up to now I found cca 72'537'637'325'994 bugs in UI21DEB, so NO, it's not (yet) state of the art :crying:

> Because your hook is inreentrant

This would be a criminal BUG because it was supposed to be reentry-safe :crying:

> and JDEBUG ;-) uses Int21 as long as the InDOS flag is not set.
> The traced Int21 call then probably returns into DEBUG

As long as I don't know exactly what magic/mess JDEBUG does on the INT and IRET instructions :confused:

> The solution is to set up a reentrant stack frame to get the flags

maybe true ... still, no idea why this should be better :confused:

> and set up your own "InUI21DEB" flag.

But I already have a reentrancy counter !!!

> If that is set when entering the handler, completely
> skip to where you chain to the old handler.

So skip the "hacks" ... but what does this change ? Or do I have JMP to original INT $21 instead of CALL'ing it to avoid the "mess" on return ?

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

 

Complete thread:

Back to the forum
Board view  Mix view
21998 Postings in 2024 Threads, 395 registered users, 150 users online (0 registered, 150 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum