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 Japheth Homepage, Germany (South), 02.03.2009, 07:48

> > Because your hook is inreentrant
>
> This would be a criminal BUG because it was supposed to be reentry-safe
> :crying:

Please calm down! "Will your TSR allow the debugger to single step into Int 21 without causing a mess?" was kind of a trick question. Correct answer is "No", but it's half of the truth only, the fully correct answer is "No, and I don't care at all, because it's your crappy debugger which is faulty" :-D

The reason is simple: your code clears IF, which is a hint for any debugger that a critical section is entered which isn't allowed to be interrupted. The problem is that all DEBUGs ignore this signal - they aren't designed to debug "low-level" code.

You can make your code more tolerant by implementing cm's stack frame solution, but it's probably not worth the effort.

---
MS-DOS forever!

 

Complete thread:

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