1998-11-14 19:33:34 +01:00
|
|
|
/*
|
|
|
|
* DOS interrupt 41h handler -- Windows Kernel Debugger
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
1998-11-14 19:33:34 +01:00
|
|
|
* Check debugsys.inc from the DDK for docu.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright 1998 Ulrich Weigand
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-11-14 19:33:34 +01:00
|
|
|
*/
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include <stdio.h>
|
2003-11-15 01:13:20 +01:00
|
|
|
#include "dosexe.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2000-02-10 23:15:21 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(int);
|
1998-11-14 19:33:34 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
2002-11-13 00:29:48 +01:00
|
|
|
* DOSVM_Int41Handler (WINEDOS16.165)
|
1998-11-14 19:33:34 +01:00
|
|
|
*
|
|
|
|
*/
|
2002-11-13 00:29:48 +01:00
|
|
|
void WINAPI DOSVM_Int41Handler( CONTEXT86 *context )
|
1998-11-14 19:33:34 +01:00
|
|
|
{
|
|
|
|
if ( ISV86(context) )
|
|
|
|
{
|
|
|
|
/* Real-mode debugger services */
|
|
|
|
switch ( AX_reg(context) )
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
INT_BARF( context, 0x41 );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Protected-mode debugger services */
|
|
|
|
switch ( AX_reg(context) )
|
|
|
|
{
|
1998-12-07 11:48:09 +01:00
|
|
|
case 0x4f:
|
1998-11-14 19:33:34 +01:00
|
|
|
case 0x50:
|
|
|
|
case 0x150:
|
|
|
|
case 0x51:
|
|
|
|
case 0x52:
|
|
|
|
case 0x152:
|
|
|
|
case 0x59:
|
|
|
|
case 0x5a:
|
|
|
|
case 0x5b:
|
|
|
|
case 0x5c:
|
|
|
|
case 0x5d:
|
|
|
|
/* Notifies the debugger of a lot of stuff. We simply ignore it
|
|
|
|
for now, but some of the info might actually be useful ... */
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
INT_BARF( context, 0x41 );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|