Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Debugger definitions |
| 3 | * |
| 4 | * Copyright 1995 Alexandre Julliard |
| 5 | */ |
| 6 | |
Alexandre Julliard | ca22b33 | 1996-07-12 19:02:39 +0000 | [diff] [blame] | 7 | #ifndef __WINE_DEBUGGER_H |
| 8 | #define __WINE_DEBUGGER_H |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 9 | |
Marcus Meissner | 317af32 | 1999-02-17 13:51:06 +0000 | [diff] [blame] | 10 | #include <sys/types.h> /* u_long ... */ |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 11 | #include <assert.h> |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 12 | #include "windef.h" |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 13 | #include "winbase.h" |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 14 | #include "wine/exception.h" |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 15 | |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 16 | #ifdef __i386__ |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 17 | #define STEP_FLAG 0x00000100 /* single step flag */ |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 18 | #define V86_FLAG 0x00020000 |
| 19 | #endif |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 20 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 21 | #define SYM_FUNC 0x0 |
| 22 | #define SYM_DATA 0x1 |
| 23 | #define SYM_WIN32 0x2 |
| 24 | #define SYM_WINE 0x4 |
| 25 | #define SYM_INVALID 0x8 |
| 26 | #define SYM_TRAMPOLINE 0x10 |
| 27 | #define SYM_STEP_THROUGH 0x20 |
| 28 | |
François Gouget | 241c730 | 1998-10-28 10:47:09 +0000 | [diff] [blame] | 29 | enum debug_type {DT_BASIC, DT_CONST, DT_POINTER, DT_ARRAY, DT_STRUCT, DT_ENUM, DT_TYPEDEF, DT_FUNC, DT_BITFIELD}; |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | /* |
| 33 | * Return values for DEBUG_CheckLinenoStatus. Used to determine |
| 34 | * what to do when the 'step' command is given. |
| 35 | */ |
| 36 | #define FUNC_HAS_NO_LINES (0) |
| 37 | #define NOT_ON_LINENUMBER (1) |
| 38 | #define AT_LINENUMBER (2) |
| 39 | #define FUNC_IS_TRAMPOLINE (3) |
| 40 | |
| 41 | /* |
| 42 | * For constants generated by the parser, we use this datatype |
| 43 | */ |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 44 | extern struct datatype * DEBUG_TypeShortUInt; |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 45 | extern struct datatype * DEBUG_TypeInt; |
| 46 | extern struct datatype * DEBUG_TypeIntConst; |
| 47 | extern struct datatype * DEBUG_TypeUSInt; |
| 48 | extern struct datatype * DEBUG_TypeString; |
| 49 | |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 50 | typedef struct |
| 51 | { |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 52 | DWORD seg; /* 0xffffffff means current default segment (cs or ds) */ |
| 53 | DWORD off; |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 54 | } DBG_ADDR; |
| 55 | |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 56 | typedef struct |
| 57 | { |
| 58 | struct datatype* type; |
| 59 | int cookie; /* DV_??? */ |
Eric Pouech | 71189b5 | 2000-07-25 12:51:56 +0000 | [diff] [blame] | 60 | /* DV_TARGET references an address in debugger's address space, whereas DV_HOST |
| 61 | * references the debuggee address space |
| 62 | */ |
| 63 | # define DV_TARGET 0xF00D |
| 64 | # define DV_HOST 0x50DA |
| 65 | # define DV_INVALID 0x0000 |
| 66 | |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 67 | DBG_ADDR addr; |
| 68 | } DBG_VALUE; |
| 69 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 70 | struct list_id |
| 71 | { |
| 72 | char * sourcefile; |
| 73 | int line; |
| 74 | }; |
| 75 | |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 76 | struct wine_lines { |
| 77 | unsigned long line_number; |
| 78 | DBG_ADDR pc_offset; |
| 79 | }; |
| 80 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 81 | struct symbol_info |
| 82 | { |
| 83 | struct name_hash * sym; |
| 84 | struct list_id list; |
| 85 | }; |
| 86 | |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 87 | typedef struct wine_lines WineLineNo; |
| 88 | |
| 89 | /* |
| 90 | * This structure holds information about stack variables, function |
| 91 | * parameters, and register variables, which are all local to this |
| 92 | * function. |
| 93 | */ |
| 94 | struct wine_locals { |
| 95 | unsigned int regno:8; /* For register symbols */ |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 96 | signed int offset:24; /* offset from esp/ebp to symbol */ |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 97 | unsigned int pc_start; /* For RBRAC/LBRAC */ |
| 98 | unsigned int pc_end; /* For RBRAC/LBRAC */ |
| 99 | char * name; /* Name of symbol */ |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 100 | struct datatype * type; /* Datatype of symbol */ |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | typedef struct wine_locals WineLocals; |
| 104 | |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 105 | enum exec_mode |
| 106 | { |
| 107 | EXEC_CONT, /* Continuous execution */ |
| 108 | EXEC_PASS, /* Continue, passing exception to app */ |
| 109 | EXEC_STEP_OVER, /* Stepping over a call to next source line */ |
| 110 | EXEC_STEP_INSTR, /* Step to next source line, stepping in if needed */ |
| 111 | EXEC_STEPI_OVER, /* Stepping over a call */ |
| 112 | EXEC_STEPI_INSTR, /* Single-stepping an instruction */ |
| 113 | EXEC_FINISH, /* Step until we exit current frame */ |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 114 | EXEC_STEP_OVER_TRAMPOLINE, /* Step over trampoline. Requires that |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 115 | * we dig the real return value off the stack |
| 116 | * and set breakpoint there - not at the |
| 117 | * instr just after the call. |
| 118 | */ |
| 119 | }; |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 120 | |
Eric Pouech | b971745 | 2000-05-05 18:14:34 +0000 | [diff] [blame] | 121 | #define DBG_BREAK 0 |
| 122 | #define DBG_WATCH 1 |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 123 | |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 124 | typedef struct |
| 125 | { |
| 126 | DBG_ADDR addr; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 127 | WORD enabled : 1, |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 128 | type : 1, |
| 129 | is32 : 1, |
| 130 | refcount : 13; |
| 131 | WORD skipcount; |
| 132 | union { |
Eric Pouech | b971745 | 2000-05-05 18:14:34 +0000 | [diff] [blame] | 133 | struct { |
| 134 | BYTE opcode; |
| 135 | BOOL (*func)(void); |
| 136 | } b; |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 137 | struct { |
| 138 | BYTE rw : 1, |
| 139 | len : 2; |
| 140 | BYTE reg; |
| 141 | DWORD oldval; |
| 142 | } w; |
| 143 | } u; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 144 | struct expr * condition; |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 145 | } DBG_BREAKPOINT; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 146 | |
Alexandre Julliard | 954a413 | 2000-09-24 03:15:50 +0000 | [diff] [blame] | 147 | enum dbg_mode |
| 148 | { |
| 149 | MODE_INVALID, MODE_16, MODE_32, MODE_VM86 |
| 150 | }; |
| 151 | |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 152 | typedef struct tagDBG_THREAD { |
| 153 | struct tagDBG_PROCESS* process; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 154 | HANDLE handle; |
| 155 | DWORD tid; |
| 156 | LPVOID start; |
| 157 | LPVOID teb; |
| 158 | int wait_for_first_exception; |
Alexandre Julliard | 954a413 | 2000-09-24 03:15:50 +0000 | [diff] [blame] | 159 | enum dbg_mode dbg_mode; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 160 | enum exec_mode dbg_exec_mode; |
| 161 | int dbg_exec_count; |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 162 | DBG_BREAKPOINT stepOverBP; |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 163 | struct tagDBG_THREAD* next; |
| 164 | struct tagDBG_THREAD* prev; |
| 165 | } DBG_THREAD; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 166 | |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 167 | typedef struct tagDBG_PROCESS { |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 168 | HANDLE handle; |
| 169 | DWORD pid; |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 170 | DBG_THREAD* threads; |
| 171 | int num_threads; |
Eric Pouech | b971745 | 2000-05-05 18:14:34 +0000 | [diff] [blame] | 172 | unsigned continue_on_first_exception; |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 173 | struct tagDBG_MODULE* modules; |
Eric Pouech | b971745 | 2000-05-05 18:14:34 +0000 | [diff] [blame] | 174 | unsigned long dbg_hdr_addr; |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 175 | /* |
| 176 | * This is an index we use to keep track of the debug information |
| 177 | * when we have multiple sources. We use the same database to also |
| 178 | * allow us to do an 'info shared' type of deal, and we use the index |
| 179 | * to eliminate duplicates. |
| 180 | */ |
| 181 | int next_index; |
| 182 | struct tagDBG_PROCESS* next; |
| 183 | struct tagDBG_PROCESS* prev; |
| 184 | } DBG_PROCESS; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 185 | |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 186 | extern DBG_PROCESS* DEBUG_CurrProcess; |
| 187 | extern DBG_THREAD* DEBUG_CurrThread; |
Eric Pouech | f182235 | 2000-05-11 21:43:43 +0000 | [diff] [blame] | 188 | extern DWORD DEBUG_CurrTid; |
| 189 | extern DWORD DEBUG_CurrPid; |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 190 | extern CONTEXT DEBUG_context; |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 191 | |
| 192 | #define DEBUG_READ_MEM(addr, buf, len) \ |
| 193 | (ReadProcessMemory(DEBUG_CurrProcess->handle, (addr), (buf), (len), NULL)) |
| 194 | |
| 195 | #define DEBUG_WRITE_MEM(addr, buf, len) \ |
| 196 | (WriteProcessMemory(DEBUG_CurrProcess->handle, (addr), (buf), (len), NULL)) |
| 197 | |
| 198 | #define DEBUG_READ_MEM_VERBOSE(addr, buf, len) \ |
| 199 | (DEBUG_READ_MEM((addr), (buf), (len)) || (DEBUG_InvalLinAddr( addr ),0)) |
| 200 | |
| 201 | #define DEBUG_WRITE_MEM_VERBOSE(addr, buf, len) \ |
| 202 | (DEBUG_WRITE_MEM((addr), (buf), (len)) || (DEBUG_InvalLinAddr( addr ),0)) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 203 | |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 204 | typedef struct tagDBG_MODULE { |
| 205 | struct tagDBG_MODULE* next; |
| 206 | void* load_addr; |
| 207 | char* module_name; |
| 208 | char status; |
| 209 | char type; |
| 210 | short int dbg_index; |
| 211 | HMODULE handle; |
| 212 | void* extra_info; |
| 213 | } DBG_MODULE; |
| 214 | |
| 215 | /* status field */ |
| 216 | #define DM_STATUS_NEW 0 |
| 217 | #define DM_STATUS_LOADED 1 |
| 218 | #define DM_STATUS_ERROR 2 |
| 219 | |
| 220 | /* type field */ |
| 221 | #define DM_TYPE_UNKNOWN 0 |
| 222 | #define DM_TYPE_ELF 1 |
| 223 | #define DM_TYPE_NE 2 |
| 224 | #define DM_TYPE_PE 3 |
| 225 | |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 226 | typedef struct { |
| 227 | DWORD val; |
| 228 | const char* name; |
| 229 | LPDWORD pval; |
| 230 | struct datatype* type; |
| 231 | } DBG_INTVAR; |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 232 | |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 233 | #define OFFSET_OF(__c,__f) ((int)(((char*)&(((__c*)0)->__f))-((char*)0))) |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 234 | |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 235 | /* from winelib.so */ |
| 236 | extern void DEBUG_ExternalDebugger(void); |
Ulrich Weigand | 1cbf27a | 2000-06-04 01:33:21 +0000 | [diff] [blame] | 237 | |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 238 | /* debugger/break.c */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 239 | extern void DEBUG_SetBreakpoints( BOOL set ); |
Eric Pouech | b971745 | 2000-05-05 18:14:34 +0000 | [diff] [blame] | 240 | extern void DEBUG_AddBreakpoint( const DBG_VALUE *addr, BOOL (*func)(void) ); |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 241 | extern void DEBUG_AddBreakpointFromId( const char *name, int lineno ); |
| 242 | extern void DEBUG_AddBreakpointFromLineno( int lineno ); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 243 | extern void DEBUG_AddWatchpoint( const DBG_VALUE *addr, int is_write ); |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 244 | extern void DEBUG_AddWatchpointFromId( const char *name, int lineno ); |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 245 | extern void DEBUG_DelBreakpoint( int num ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 246 | extern void DEBUG_EnableBreakpoint( int num, BOOL enable ); |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 247 | extern void DEBUG_InfoBreakpoints(void); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 248 | extern BOOL DEBUG_HandleTrap(void); |
James Abbatiello | ebef9a9 | 2000-09-01 01:22:05 +0000 | [diff] [blame] | 249 | extern BOOL DEBUG_ShouldContinue( DBG_ADDR *addr, DWORD code, enum exec_mode mode, int * count ); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 250 | extern void DEBUG_SuspendExecution( void ); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 251 | extern enum exec_mode DEBUG_RestartExecution( enum exec_mode mode, int count ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 252 | extern BOOL DEBUG_IsFctReturn(void); |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 253 | extern int DEBUG_AddBPCondition(int bpnum, struct expr * exp); |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 254 | |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 255 | /* debugger/db_disasm.c */ |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 256 | extern void DEBUG_Disasm( DBG_ADDR *addr, int display ); |
| 257 | |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 258 | /* debugger/dbg.y */ |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 259 | extern BOOL DEBUG_Parser(void); |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 260 | extern void DEBUG_Exit( DWORD ); |
| 261 | |
| 262 | /* debugger/debug.l */ |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 263 | extern void DEBUG_FlushSymbols(void); |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 264 | |
| 265 | /* debugger/display.c */ |
| 266 | extern int DEBUG_DoDisplay(void); |
| 267 | extern int DEBUG_AddDisplay(struct expr * exp, int count, char format); |
| 268 | extern int DEBUG_DoDisplay(void); |
| 269 | extern int DEBUG_DelDisplay(int displaynum); |
| 270 | extern int DEBUG_InfoDisplay(void); |
| 271 | |
| 272 | /* debugger/editline.c */ |
| 273 | extern char * readline(const char *); |
| 274 | extern void add_history(char *); |
| 275 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 276 | /* debugger/expr.c */ |
| 277 | extern void DEBUG_FreeExprMem(void); |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 278 | struct expr * DEBUG_IntVarExpr(const char* name); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 279 | struct expr * DEBUG_SymbolExpr(const char * name); |
| 280 | struct expr * DEBUG_ConstExpr(int val); |
| 281 | struct expr * DEBUG_StringExpr(const char * str); |
| 282 | struct expr * DEBUG_SegAddr(struct expr *, struct expr *); |
| 283 | struct expr * DEBUG_USConstExpr(unsigned int val); |
| 284 | struct expr * DEBUG_BinopExpr(int oper, struct expr *, struct expr *); |
| 285 | struct expr * DEBUG_UnopExpr(int oper, struct expr *); |
| 286 | struct expr * DEBUG_StructPExpr(struct expr *, const char * element); |
| 287 | struct expr * DEBUG_StructExpr(struct expr *, const char * element); |
| 288 | struct expr * DEBUG_ArrayExpr(struct expr *, struct expr * index); |
| 289 | struct expr * DEBUG_CallExpr(const char *, int nargs, ...); |
Alexandre Julliard | 01d6346 | 1997-01-20 19:43:45 +0000 | [diff] [blame] | 290 | struct expr * DEBUG_TypeCastExpr(struct datatype *, struct expr *); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 291 | extern DBG_VALUE DEBUG_EvalExpr(struct expr *); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 292 | extern int DEBUG_DelDisplay(int displaynum); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 293 | extern struct expr * DEBUG_CloneExpr(const struct expr * exp); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 294 | extern int DEBUG_FreeExpr(struct expr * exp); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 295 | extern int DEBUG_DisplayExpr(const struct expr * exp); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 296 | |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 297 | /* debugger/hash.c */ |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 298 | extern struct name_hash * DEBUG_AddSymbol( const char *name, |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 299 | const DBG_VALUE *addr, |
| 300 | const char *sourcefile, |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 301 | int flags); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 302 | extern BOOL DEBUG_GetSymbolValue( const char * name, const int lineno, |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 303 | DBG_VALUE *addr, int ); |
| 304 | extern BOOL DEBUG_SetSymbolValue( const char * name, const DBG_VALUE *addr ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 305 | extern const char * DEBUG_FindNearestSymbol( const DBG_ADDR *addr, int flag, |
| 306 | struct name_hash ** rtn, |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 307 | unsigned int ebp, |
| 308 | struct list_id * source); |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 309 | extern void DEBUG_ReadSymbolTable( const char * filename ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 310 | extern void DEBUG_AddLineNumber( struct name_hash * func, int line_num, |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 311 | unsigned long offset ); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 312 | extern struct wine_locals * |
| 313 | DEBUG_AddLocal( struct name_hash * func, int regno, |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 314 | int offset, |
| 315 | int pc_start, |
| 316 | int pc_end, |
| 317 | char * name); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 318 | extern int DEBUG_CheckLinenoStatus(const DBG_ADDR *addr); |
| 319 | extern void DEBUG_GetFuncInfo(struct list_id * ret, const char * file, |
| 320 | const char * func); |
| 321 | extern int DEBUG_SetSymbolSize(struct name_hash * sym, unsigned int len); |
| 322 | extern int DEBUG_SetSymbolBPOff(struct name_hash * sym, unsigned int len); |
| 323 | extern int DEBUG_GetSymbolAddr(struct name_hash * sym, DBG_ADDR * addr); |
| 324 | extern int DEBUG_cmp_sym(const void * p1, const void * p2); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 325 | extern BOOL DEBUG_GetLineNumberAddr( struct name_hash *, const int lineno, |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 326 | DBG_ADDR *addr, int bp_flag ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 327 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 328 | extern int DEBUG_SetLocalSymbolType(struct wine_locals * sym, |
| 329 | struct datatype * type); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 330 | extern BOOL DEBUG_Normalize(struct name_hash * nh ); |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 331 | |
| 332 | /* debugger/info.c */ |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 333 | extern void DEBUG_PrintBasic( const DBG_VALUE* value, int count, char format ); |
Alexandre Julliard | 954a413 | 2000-09-24 03:15:50 +0000 | [diff] [blame] | 334 | extern struct symbol_info DEBUG_PrintAddress( const DBG_ADDR *addr, enum dbg_mode mode, int flag ); |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 335 | extern void DEBUG_Help(void); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 336 | extern void DEBUG_HelpInfo(void); |
| 337 | extern struct symbol_info DEBUG_PrintAddressAndArgs( const DBG_ADDR *addr, |
Alexandre Julliard | 954a413 | 2000-09-24 03:15:50 +0000 | [diff] [blame] | 338 | enum dbg_mode mode, |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 339 | unsigned int ebp, |
| 340 | int flag ); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 341 | extern void DEBUG_InfoClass(const char* clsName); |
| 342 | extern void DEBUG_WalkClasses(void); |
| 343 | extern void DEBUG_WalkModref(DWORD p); |
| 344 | extern void DEBUG_DumpModule(DWORD mod); |
| 345 | extern void DEBUG_WalkModules(void); |
| 346 | extern void DEBUG_WalkProcess(void); |
Alexandre Julliard | a679541 | 2000-04-16 19:46:35 +0000 | [diff] [blame] | 347 | extern void DEBUG_WalkThreads(void); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 348 | extern void DEBUG_DumpQueue(DWORD q); |
| 349 | extern void DEBUG_WalkQueues(void); |
| 350 | extern void DEBUG_InfoSegments(DWORD s, int v); |
| 351 | extern void DEBUG_InfoVirtual(void); |
| 352 | extern void DEBUG_InfoWindow(HWND hWnd); |
| 353 | extern void DEBUG_WalkWindows(HWND hWnd, int indent); |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 354 | |
| 355 | /* debugger/memory.c */ |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 356 | extern int DEBUG_ReadMemory( const DBG_VALUE* value ); |
| 357 | extern void DEBUG_WriteMemory( const DBG_VALUE* val, int value ); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 358 | extern void DEBUG_ExamineMemory( const DBG_VALUE *addr, int count, char format); |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 359 | extern void DEBUG_InvalAddr( const DBG_ADDR* addr ); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 360 | extern void DEBUG_InvalLinAddr( void* addr ); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 361 | extern DWORD DEBUG_ToLinear( const DBG_ADDR *address ); |
Ulrich Weigand | 1cbf27a | 2000-06-04 01:33:21 +0000 | [diff] [blame] | 362 | extern void DEBUG_GetCurrentAddress( DBG_ADDR * ); |
Eric Pouech | 71189b5 | 2000-07-25 12:51:56 +0000 | [diff] [blame] | 363 | extern BOOL DEBUG_GrabAddress( DBG_VALUE* value, BOOL fromCode ); |
Alexandre Julliard | 954a413 | 2000-09-24 03:15:50 +0000 | [diff] [blame] | 364 | extern enum dbg_mode DEBUG_GetSelectorType( WORD sel ); |
Ulrich Weigand | 1cbf27a | 2000-06-04 01:33:21 +0000 | [diff] [blame] | 365 | #ifdef __i386__ |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 366 | extern void DEBUG_FixAddress( DBG_ADDR *address, DWORD def ); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 367 | extern int DEBUG_IsSelectorSystem( WORD sel ); |
| 368 | #endif |
Alexandre Julliard | 808cb04 | 1995-08-17 17:11:36 +0000 | [diff] [blame] | 369 | |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 370 | /* debugger/module.c */ |
| 371 | extern int DEBUG_LoadEntryPoints( const char * prefix ); |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 372 | extern void DEBUG_LoadModule32( const char* name, HANDLE hFile, DWORD base ); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 373 | extern DBG_MODULE* DEBUG_AddModule(const char* name, int type, |
| 374 | void* mod_addr, HMODULE hmod); |
| 375 | extern DBG_MODULE* DEBUG_FindModuleByName(const char* name, int type); |
| 376 | extern DBG_MODULE* DEBUG_FindModuleByHandle(HANDLE handle, int type); |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 377 | extern DBG_MODULE* DEBUG_GetProcessMainModule(DBG_PROCESS* process); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 378 | extern DBG_MODULE* DEBUG_RegisterPEModule(HMODULE, u_long load_addr, const char* name); |
| 379 | extern DBG_MODULE* DEBUG_RegisterELFModule(u_long load_addr, const char* name); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 380 | extern void DEBUG_InfoShare(void); |
| 381 | |
| 382 | /* debugger/msc.c */ |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 383 | extern int DEBUG_RegisterMSCDebugInfo(DBG_MODULE* module, HANDLE hFile, void* nth, unsigned long nth_ofs); |
| 384 | extern int DEBUG_RegisterStabsDebugInfo(DBG_MODULE* module, HANDLE hFile, void* nth, unsigned long nth_ofs); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 385 | extern void DEBUG_InitCVDataTypes(void); |
Eric Pouech | ac11a68 | 2000-03-26 13:37:39 +0000 | [diff] [blame] | 386 | |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 387 | /* debugger/registers.c */ |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 388 | extern void DEBUG_InfoRegisters(void); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 389 | extern BOOL DEBUG_ValidateRegisters(void); |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 390 | |
Eric Pouech | 71189b5 | 2000-07-25 12:51:56 +0000 | [diff] [blame] | 391 | /* debugger/source.c */ |
| 392 | extern void DEBUG_ShowDir(void); |
| 393 | extern void DEBUG_AddPath(const char * path); |
| 394 | extern void DEBUG_List(struct list_id * line1, struct list_id * line2, |
| 395 | int delta); |
| 396 | extern void DEBUG_NukePath(void); |
| 397 | extern void DEBUG_Disassemble(const DBG_VALUE *, const DBG_VALUE*, int offset); |
| 398 | extern BOOL DEBUG_DisassembleInstruction(DBG_ADDR *addr); |
| 399 | |
Alexandre Julliard | ded3038 | 1995-07-06 17:18:27 +0000 | [diff] [blame] | 400 | /* debugger/stack.c */ |
| 401 | extern void DEBUG_InfoStack(void); |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 402 | extern void DEBUG_BackTrace(BOOL noisy); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 403 | extern int DEBUG_InfoLocals(void); |
| 404 | extern int DEBUG_SetFrame(int newframe); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 405 | extern int DEBUG_GetCurrentFrame(struct name_hash ** name, |
| 406 | unsigned int * eip, |
| 407 | unsigned int * ebp); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 408 | |
| 409 | /* debugger/stabs.c */ |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 410 | extern int DEBUG_ReadExecutableDbgInfo(const char* exe_name); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 411 | extern int DEBUG_ParseStabs(char * addr, unsigned int load_offset, unsigned int staboff, |
| 412 | int stablen, unsigned int strtaboff, int strtablen); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 413 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 414 | /* debugger/types.c */ |
Alexandre Julliard | 01d6346 | 1997-01-20 19:43:45 +0000 | [diff] [blame] | 415 | extern int DEBUG_nchar; |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 416 | extern void DEBUG_InitTypes(void); |
| 417 | extern struct datatype * DEBUG_NewDataType(enum debug_type xtype, |
| 418 | const char * typename); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 419 | extern unsigned int DEBUG_TypeDerefPointer(const DBG_VALUE *value, struct datatype ** newtype); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 420 | extern int DEBUG_AddStructElement(struct datatype * dt, |
| 421 | char * name, struct datatype * type, |
| 422 | int offset, int size); |
| 423 | extern int DEBUG_SetStructSize(struct datatype * dt, int size); |
| 424 | extern int DEBUG_SetPointerType(struct datatype * dt, struct datatype * dt2); |
| 425 | extern int DEBUG_SetArrayParams(struct datatype * dt, int min, int max, |
| 426 | struct datatype * dt2); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 427 | extern void DEBUG_Print( const DBG_VALUE *addr, int count, char format, int level ); |
| 428 | extern unsigned int DEBUG_FindStructElement(DBG_VALUE * addr, |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 429 | const char * ele_name, int * tmpbuf); |
| 430 | extern struct datatype * DEBUG_GetPointerType(struct datatype * dt); |
| 431 | extern int DEBUG_GetObjectSize(struct datatype * dt); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 432 | extern unsigned int DEBUG_ArrayIndex(const DBG_VALUE * addr, DBG_VALUE * result, int index); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 433 | extern struct datatype * DEBUG_FindOrMakePointerType(struct datatype * reftype); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 434 | extern long long int DEBUG_GetExprValue(const DBG_VALUE * addr, char ** format); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 435 | extern int DEBUG_SetBitfieldParams(struct datatype * dt, int offset, |
| 436 | int nbits, struct datatype * dt2); |
| 437 | extern int DEBUG_CopyFieldlist(struct datatype * dt, struct datatype * dt2); |
Alexandre Julliard | 01d6346 | 1997-01-20 19:43:45 +0000 | [diff] [blame] | 438 | extern enum debug_type DEBUG_GetType(struct datatype * dt); |
| 439 | extern struct datatype * DEBUG_TypeCast(enum debug_type, const char *); |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 440 | extern int DEBUG_PrintTypeCast(const struct datatype *); |
| 441 | extern int DEBUG_PrintType( const DBG_VALUE* addr ); |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 442 | |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 443 | /* debugger/winedbg.c */ |
| 444 | #define DBG_CHN_MESG 1 |
| 445 | #define DBG_CHN_ERR 2 |
| 446 | #define DBG_CHN_WARN 4 |
| 447 | #define DBG_CHN_FIXME 8 |
| 448 | #define DBG_CHN_TRACE 16 |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 449 | extern void DEBUG_Output(int chn, const char* buffer, int len); |
Eric Pouech | f182235 | 2000-05-11 21:43:43 +0000 | [diff] [blame] | 450 | #ifdef __GNUC__ |
| 451 | extern int DEBUG_Printf(int chn, const char* format, ...) __attribute__((format (printf,2,3))); |
| 452 | #else |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 453 | extern int DEBUG_Printf(int chn, const char* format, ...); |
Eric Pouech | f182235 | 2000-05-11 21:43:43 +0000 | [diff] [blame] | 454 | #endif |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 455 | extern DBG_INTVAR* DEBUG_GetIntVar(const char*); |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 456 | extern BOOL DEBUG_Attach(DWORD pid, BOOL cofe); |
| 457 | extern void DEBUG_Run(const char* args); |
| 458 | extern int curr_frame; |
Marcus Meissner | 9faa7d7 | 1999-02-13 17:55:17 +0000 | [diff] [blame] | 459 | |
Eric Pouech | 911436b | 2000-06-18 19:30:24 +0000 | [diff] [blame] | 460 | /* Choose your allocator! */ |
Ove Kaaven | dda17c6 | 1999-04-25 12:24:42 +0000 | [diff] [blame] | 461 | #if 1 |
| 462 | /* this one is libc's fast one */ |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 463 | extern void* DEBUG_XMalloc(size_t size); |
| 464 | extern void* DEBUG_XReAlloc(void *ptr, size_t size); |
| 465 | extern char* DEBUG_XStrDup(const char *str); |
| 466 | |
| 467 | #define DBG_alloc(x) DEBUG_XMalloc(x) |
| 468 | #define DBG_realloc(x,y) DEBUG_XReAlloc(x,y) |
| 469 | #define DBG_free(x) free(x) |
| 470 | #define DBG_strdup(x) DEBUG_XStrDup(x) |
Ove Kaaven | dda17c6 | 1999-04-25 12:24:42 +0000 | [diff] [blame] | 471 | #else |
| 472 | /* this one is slow (takes 5 minutes to load the debugger on my machine), |
| 473 | but is pretty crash-proof (can step through malloc() without problems, |
| 474 | malloc() arena (and other heaps) can be totally wasted and it'll still |
| 475 | work, etc... if someone could make optimized routines so it wouldn't |
| 476 | take so long to load, it could be made default) */ |
| 477 | #include "heap.h" |
Dimitrie O. Paun | 7827254 | 2000-04-28 14:43:34 +0000 | [diff] [blame] | 478 | #define DBG_alloc(x) HeapAlloc(dbg_heap,0,x) |
| 479 | #define DBG_realloc(x,y) HeapRealloc(dbg_heap,0,x,y) |
Ove Kaaven | dda17c6 | 1999-04-25 12:24:42 +0000 | [diff] [blame] | 480 | #define DBG_free(x) HeapFree(dbg_heap,0,x) |
| 481 | #define DBG_strdup(x) HEAP_strdupA(dbg_heap,0,x) |
| 482 | #define DBG_need_heap |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 483 | extern HANDLE dbg_heap; |
Ove Kaaven | dda17c6 | 1999-04-25 12:24:42 +0000 | [diff] [blame] | 484 | #endif |
Marcus Meissner | 9faa7d7 | 1999-02-13 17:55:17 +0000 | [diff] [blame] | 485 | |
Eric Pouech | d33bcb6 | 2000-03-15 19:57:20 +0000 | [diff] [blame] | 486 | #define DEBUG_STATUS_OFFSET 0x80003000 |
| 487 | #define DEBUG_STATUS_INTERNAL_ERROR (DEBUG_STATUS_OFFSET+0) |
| 488 | #define DEBUG_STATUS_NO_SYMBOL (DEBUG_STATUS_OFFSET+1) |
| 489 | #define DEBUG_STATUS_DIV_BY_ZERO (DEBUG_STATUS_OFFSET+2) |
| 490 | #define DEBUG_STATUS_BAD_TYPE (DEBUG_STATUS_OFFSET+3) |
Eric Pouech | 527eea9 | 2000-03-08 16:44:54 +0000 | [diff] [blame] | 491 | |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 492 | extern DBG_INTVAR DEBUG_IntVars[]; |
| 493 | |
| 494 | #define DBG_IVARNAME(_var) DEBUG_IV_##_var |
| 495 | #define DBG_IVARSTRUCT(_var) DEBUG_IntVars[DBG_IVARNAME(_var)] |
| 496 | #define DBG_IVAR(_var) (*(DBG_IVARSTRUCT(_var).pval)) |
| 497 | #define INTERNAL_VAR(_var,_val,_ref,_typ) DBG_IVARNAME(_var), |
| 498 | enum debug_int_var { |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 499 | #include "intvar.h" |
Eric Pouech | 04c16b8 | 2000-04-30 12:21:15 +0000 | [diff] [blame] | 500 | DBG_IV_LAST |
| 501 | }; |
Eric Pouech | e5efa0c | 2000-04-13 19:31:58 +0000 | [diff] [blame] | 502 | #undef INTERNAL_VAR |
| 503 | |
Alexandre Julliard | ca22b33 | 1996-07-12 19:02:39 +0000 | [diff] [blame] | 504 | #endif /* __WINE_DEBUGGER_H */ |