Fri Mar 8 19:07:18 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [configure.in] Quote '[' and ']' in the test program for the strength-reduce bug. This should work much better... * [files/file.c] Augmented DOS_FILE structure. Most internal functions now return a DOS_FILE* instead of a Unix handle. Added a local file array to replace the PDB list upon startup, to allow using file I/O functions before the first task is created. Added FILE_SetDateTime() and FILE_Sync() functions. * [loader/module.c] Use the DOS file I/O functions in MODULE_LoadExeHeader(). * [objects/bitblt.c] Use visible region instead of GC clip region to clip source area. This fixes the card drawing bug in freecell. * [objects/region.c] Fixed CombineRgn() to allow src and dest regions to be the same. Fri Mar 8 16:32:23 1996 Frans van Dorsselaer <dorssel@rulhm1.leidenuniv.nl> * [controls/EDIT.TODO] Updated so it reflects the current status. * [controls/edit.c] Implemented internal EDIT_WordBreakProc(). Implemented ES_READONLY. Implemented WM_LBUTTONDBLCLK to select whole words. Fixed a lot of types in the function definitions. Wed Mar 6 19:55:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu> * [debugger/info.c] Added "walk window" command to walk window list. * [windows/mdi.c] Added proper(?) WM_MDISETMENU message handling. Wed Mar 6 09:27:12 1996 Martin von Loewis <loewis@informatik.hu-berlin.de> * [if1632/callback.c][if1632/relay32.c] RELAY32_CallWindowProcConvStruct: new function. * [win32/struct32.c][win32/Makefile.in][win32/param.c][win32/user32.c] struct32.c: new file. Moved all structure conversions into that file PARAM32_POINT32to16,MSG16to32,USER32_RECT32to16: renamed to STRUCT32_POINT32to16, ... WIN32_POINT,WIN32_MSG,WIN32_RECT,WIN32_PAINTSTRUCT: renamed to POINT32, ... New conversion functions for NCCALCSIZE_PARAMS, WINDOWPOS, CREATESTRUCT. * [include/windows.h][misc/exec.c] WINHELP, MULTIKEYHELP, HELPWININFO: new structures WinHelp: Reimplemented. Thanks to Peter Balch (100710.2566@compuserve.com) for his valuable research. * [win32/winprocs.c] WIN32_CallWindowProcTo16: new function, call in USER32_DefWindowProcA,... Mon Mar 4 23:22:40 1996 Jim Peterson <jspeter@birch.ee.vt.edu> * [include/wintypes.h] Added "#define __export". * [objects/bitblt.c] Put in a few hacks to make bitblt-ing work when upside-down and/or mirrored. BITBLT_StretchImage should really be checked over thoroughly. * [programs/progman/main.c] Added "#include <resource.h>" for definition of HAVE_WINE_CONSTRUCTOR. * [rc/parser.h] [rc/parser.l] [rc/parser.y] [rc/winerc.c] Eliminated shift/reduce conflict in style definition. Added crude error message support: "stdin:%d: parse error before '%s'". Implemented string table support to the best of my ability (it works with LoadString() calls). * [windows/nonclient.c] Fixed bug in NC_DoSizeMove() that made system menu pop up when title bar of non-iconized window was clicked (checked for iconization). Mon Mar 04 20:55:19 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [if1632/lzexpand.spec] [if1632/relay.c] [include/lzexpand.h][misc/lzexpand.c] LZEXPAND.DLL added. Sun Mar 03 18:10:22 1996 Albrecht Kleine <kleine@ak.sax.de> * [windows/win.c] Prevent usage of invalid HWNDs in WIN_EnumChildWin(), this prevents too early termination of EnumChildWindows().
116 lines
3.9 KiB
C
116 lines
3.9 KiB
C
/*
|
|
* Debugger definitions
|
|
*
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef DEBUGGER_H
|
|
#define DEBUGGER_H
|
|
|
|
#include "ldt.h"
|
|
#include "registers.h"
|
|
#include "wine.h"
|
|
|
|
#define STEP_FLAG 0x100 /* single step flag */
|
|
|
|
typedef struct
|
|
{
|
|
DWORD seg; /* 0xffffffff means current default segment (cs or ds) */
|
|
DWORD off;
|
|
} DBG_ADDR;
|
|
|
|
#define DBG_FIX_ADDR_SEG(addr,default) \
|
|
{ if ((addr)->seg == 0xffffffff) (addr)->seg = (default); \
|
|
if (((addr)->seg == WINE_CODE_SELECTOR) || \
|
|
(addr)->seg == WINE_DATA_SELECTOR) (addr)->seg = 0; }
|
|
|
|
#define DBG_ADDR_TO_LIN(addr) \
|
|
((addr)->seg ? (char *)PTR_SEG_OFF_TO_LIN((addr)->seg,(addr)->off) \
|
|
: (char *)(addr)->off)
|
|
|
|
#define DBG_CHECK_READ_PTR(addr,len) \
|
|
(!DEBUG_IsBadReadPtr((addr),(len)) || \
|
|
(fprintf(stderr,"*** Invalid address "), \
|
|
DEBUG_PrintAddress((addr),dbg_mode), \
|
|
fprintf(stderr,"\n"),0))
|
|
|
|
#define DBG_CHECK_WRITE_PTR(addr,len) \
|
|
(!DEBUG_IsBadWritePtr((addr),(len)) || \
|
|
(fprintf(stderr,"*** Invalid address "), \
|
|
DEBUG_PrintAddress(addr,dbg_mode), \
|
|
fprintf(stderr,"\n"),0))
|
|
|
|
enum debug_regs
|
|
{
|
|
REG_EAX, REG_EBX, REG_ECX, REG_EDX, REG_ESI,
|
|
REG_EDI, REG_EBP, REG_EFL, REG_EIP, REG_ESP,
|
|
REG_AX, REG_BX, REG_CX, REG_DX, REG_SI,
|
|
REG_DI, REG_BP, REG_FL, REG_IP, REG_SP,
|
|
REG_CS, REG_DS, REG_ES, REG_SS
|
|
};
|
|
|
|
|
|
enum exec_mode
|
|
{
|
|
EXEC_CONT, /* Continuous execution */
|
|
EXEC_STEP_OVER, /* Stepping over a call */
|
|
EXEC_STEP_INSTR /* Single-stepping an instruction */
|
|
};
|
|
|
|
extern struct sigcontext_struct *DEBUG_context; /* debugger/registers.c */
|
|
extern unsigned int dbg_mode;
|
|
|
|
/* debugger/break.c */
|
|
extern void DEBUG_SetBreakpoints( BOOL set );
|
|
extern int DEBUG_FindBreakpoint( const DBG_ADDR *addr );
|
|
extern void DEBUG_AddBreakpoint( const DBG_ADDR *addr );
|
|
extern void DEBUG_DelBreakpoint( int num );
|
|
extern void DEBUG_EnableBreakpoint( int num, BOOL enable );
|
|
extern void DEBUG_InfoBreakpoints(void);
|
|
extern BOOL DEBUG_HandleTrap( struct sigcontext_struct *context );
|
|
extern BOOL DEBUG_ShouldContinue( struct sigcontext_struct *context,
|
|
enum exec_mode mode );
|
|
extern void DEBUG_RestartExecution( struct sigcontext_struct *context,
|
|
enum exec_mode mode, int instr_len );
|
|
|
|
/* debugger/db_disasm.c */
|
|
extern void DEBUG_Disasm( DBG_ADDR *addr );
|
|
|
|
/* debugger/hash.c */
|
|
extern void DEBUG_AddSymbol( const char *name, const DBG_ADDR *addr );
|
|
extern BOOL DEBUG_GetSymbolValue( const char * name, DBG_ADDR *addr );
|
|
extern BOOL DEBUG_SetSymbolValue( const char * name, const DBG_ADDR *addr );
|
|
extern const char * DEBUG_FindNearestSymbol( const DBG_ADDR *addr );
|
|
extern void DEBUG_ReadSymbolTable( const char * filename );
|
|
extern void DEBUG_LoadEntryPoints(void);
|
|
|
|
/* debugger/info.c */
|
|
extern void DEBUG_Print( const DBG_ADDR *addr, int count, char format );
|
|
extern void DEBUG_PrintAddress( const DBG_ADDR *addr, int addrlen );
|
|
extern void DEBUG_Help(void);
|
|
extern void DEBUG_List( DBG_ADDR *addr, int count );
|
|
extern void DEBUG_InitWalk(void);
|
|
extern void DEBUG_WndWalk( HWND );
|
|
extern void DEBUG_WndDump( HWND );
|
|
extern void DEBUG_QueueDump( HQUEUE );
|
|
|
|
/* debugger/memory.c */
|
|
extern BOOL DEBUG_IsBadReadPtr( const DBG_ADDR *address, int size );
|
|
extern BOOL DEBUG_IsBadWritePtr( const DBG_ADDR *address, int size );
|
|
extern int DEBUG_ReadMemory( const DBG_ADDR *address );
|
|
extern void DEBUG_WriteMemory( const DBG_ADDR *address, int value );
|
|
extern void DEBUG_ExamineMemory( const DBG_ADDR *addr, int count, char format);
|
|
|
|
/* debugger/registers.c */
|
|
extern void DEBUG_SetRegister( enum debug_regs reg, int val );
|
|
extern int DEBUG_GetRegister( enum debug_regs reg );
|
|
extern void DEBUG_InfoRegisters(void);
|
|
|
|
/* debugger/stack.c */
|
|
extern void DEBUG_InfoStack(void);
|
|
extern void DEBUG_BackTrace(void);
|
|
|
|
/* debugger/dbg.y */
|
|
extern void wine_debug( int signal, struct sigcontext_struct * regs );
|
|
|
|
#endif /* DEBUGGER_H */
|