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 | the mess (Announce)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 01.03.2009, 10:40

> > your TSR handle allow the debugger to single step into Int 21 without
> causing a mess
>
> There is no mess at all ... just a tiny problem that the IRET
> supposed to jump back into the app jumps into garbage instead

This is the whole mess.

> and I have no idea why :confused:

Because your hook is inreentrant and JDEBUG ;-) uses Int21 as long as the InDOS flag is not set. The traced Int21 call then probably returns into DEBUG (I think DEBUG last calls Int21.40 [write LF after Int21.0A], or Int21.50 [set PSP to debuggee's if the SDA is not used]). The solution is to set up a reentrant stack frame to get the flags, and set up your own "InUI21DEB" flag. If that is set when entering the handler, completely skip to where you chain to the old handler.

---
l

 

Complete thread:

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