2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
17 ldt_copy_entry ldt_copy
[LDT_SIZE
];
18 unsigned char ldt_flags_copy
[LDT_SIZE
];
23 XUngrabServer( Display
* d
)
34 HTASK16
GetCurrentTask(void)
39 HMODULE16
GetExePtr(HANDLE16 h
)
44 int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
45 const char *def
, char *buffer
, int len
)
51 void CLASS_DumpClass( struct tagCLASS
*class )
56 void MODULE_DumpModule( HMODULE16 hmodule
)
61 void QUEUE_DumpQueue( HQUEUE16 hQueue
)
66 void WIN_DumpWindow( HWND hwnd
)
72 void CLASS_WalkClasses(void)
77 void MODULE_WalkModules(void)
82 void QUEUE_WalkQueues(void)
87 void WIN_WalkWindows( HWND hwnd
, int indent
)
92 NE_MODULE
*NE_GetPtr( HMODULE16 hModule
)
97 FARPROC16
NE_GetEntryPoint( HMODULE16 hModule
, WORD ordinal
)
102 void LDT_Print( int start
, int length
)
107 LPVOID
GlobalLock16(HGLOBAL16 h
)
112 BOOL16
ModuleFirst16(MODULEENTRY
*lpModule
)
117 BOOL16
ModuleNext16(MODULEENTRY
*lpModule
)
122 BOOL16
IsBadReadPtr16(SEGPTR s
,UINT16 o
)
127 BOOL
IsBadReadPtr(LPCVOID s
,UINT o
)
140 int xyzzy(const char * qwe
, int ijk
)
142 return strlen(qwe
) + ijk
;
152 struct deferred_debug_info
154 struct deferred_debug_info
* next
;
159 PIMAGE_DEBUG_DIRECTORY dbgdir
;
161 PIMAGE_SECTION_HEADER sectp
;
170 unsigned int cv_timestamp
;
177 struct deferred_debug_info deefer
;
178 IMAGE_DEBUG_DIRECTORY dinfo
;
179 struct CodeViewDebug cdebug
;
180 IMAGE_SECTION_HEADER sects
[10];
182 memset(&deefer
, 0, sizeof(deefer
));
183 memset(&dinfo
, 0, sizeof(dinfo
));
184 memset(&cdebug
, 0, sizeof(cdebug
));
185 memset(§s
, 0, sizeof(sects
));
187 deefer
.dbg_info
= (char *) &cdebug
;
188 dinfo
.TimeStamp
= 812932395;
189 cdebug
.cv_timestamp
= 833392137 /* 841951397 */;
190 deefer
.dbgdir
= &dinfo
;
191 deefer
.sectp
= sects
;
195 DEBUG_ProcessPDBFile(&deefer
, "../dumpexe.pdb");
199 main(int argc
, char * argv
[])
203 strcpy(vdv
, "This is a test");
204 memset(&vvv
, 0xff, sizeof(vvv
));
209 xxx
= (unsigned int*) &vvv
;
215 memset(®
, 0, sizeof(reg
));
216 wine_debug(SIGSEGV
, ®
);