2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
18 ldt_copy_entry ldt_copy
[LDT_SIZE
];
19 unsigned char ldt_flags_copy
[LDT_SIZE
];
24 XUngrabServer( Display
* d
)
35 HTASK16
GetCurrentTask(void)
40 HMODULE16
GetExePtr(HANDLE16 h
)
45 int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
46 const char *def
, char *buffer
, int len
)
52 void CLASS_DumpClass( struct tagCLASS
*class )
57 void MODULE_DumpModule( HMODULE16 hmodule
)
62 void QUEUE_DumpQueue( HQUEUE16 hQueue
)
67 void WIN_DumpWindow( HWND hwnd
)
73 void CLASS_WalkClasses(void)
78 void MODULE_WalkModules(void)
83 void QUEUE_WalkQueues(void)
88 void WIN_WalkWindows( HWND hwnd
, int indent
)
93 NE_MODULE
*NE_GetPtr( HMODULE16 hModule
)
98 FARPROC16
NE_GetEntryPoint( HMODULE16 hModule
, WORD ordinal
)
103 void LDT_Print( int start
, int length
)
108 LPVOID
GlobalLock16(HGLOBAL16 h
)
113 BOOL16
ModuleFirst16(MODULEENTRY
*lpModule
)
118 BOOL16
ModuleNext16(MODULEENTRY
*lpModule
)
123 BOOL16
IsBadReadPtr16(SEGPTR s
,UINT16 o
)
128 BOOL
IsBadReadPtr(LPCVOID s
,UINT o
)
141 int xyzzy(const char * qwe
, int ijk
)
143 return strlen(qwe
) + ijk
;
153 struct deferred_debug_info
155 struct deferred_debug_info
* next
;
160 PIMAGE_DEBUG_DIRECTORY dbgdir
;
162 PIMAGE_SECTION_HEADER sectp
;
171 unsigned int cv_timestamp
;
178 struct deferred_debug_info deefer
;
179 IMAGE_DEBUG_DIRECTORY dinfo
;
180 struct CodeViewDebug cdebug
;
181 IMAGE_SECTION_HEADER sects
[10];
183 memset(&deefer
, 0, sizeof(deefer
));
184 memset(&dinfo
, 0, sizeof(dinfo
));
185 memset(&cdebug
, 0, sizeof(cdebug
));
186 memset(§s
, 0, sizeof(sects
));
188 deefer
.dbg_info
= (char *) &cdebug
;
189 dinfo
.TimeStamp
= 812932395;
190 cdebug
.cv_timestamp
= 833392137 /* 841951397 */;
191 deefer
.dbgdir
= &dinfo
;
192 deefer
.sectp
= sects
;
196 DEBUG_ProcessPDBFile(&deefer
, "../dumpexe.pdb");
200 main(int argc
, char * argv
[])
204 strcpy(vdv
, "This is a test");
205 memset(&vvv
, 0xff, sizeof(vvv
));
210 xxx
= (unsigned int*) &vvv
;
216 memset(®
, 0, sizeof(reg
));
217 wine_debug(SIGSEGV
, ®
);