2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
15 ldt_copy_entry ldt_copy
[LDT_SIZE
];
16 unsigned char ldt_flags_copy
[LDT_SIZE
];
21 XUngrabServer( Display
* d
)
32 HTASK16
GetCurrentTask(void)
37 HMODULE16
GetExePtr(HANDLE16 h
)
42 int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
43 const char *def
, char *buffer
, int len
)
49 void CLASS_DumpClass( struct tagCLASS
*class )
54 void MODULE_DumpModule( HMODULE16 hmodule
)
59 void QUEUE_DumpQueue( HQUEUE16 hQueue
)
64 void WIN_DumpWindow( HWND hwnd
)
70 void CLASS_WalkClasses(void)
75 void MODULE_WalkModules(void)
80 void QUEUE_WalkQueues(void)
85 void WIN_WalkWindows( HWND hwnd
, int indent
)
90 NE_MODULE
*NE_GetPtr( HMODULE16 hModule
)
95 FARPROC16
NE_GetEntryPoint( HMODULE16 hModule
, WORD ordinal
)
100 void LDT_Print( int start
, int length
)
105 LPVOID
GlobalLock16(HGLOBAL16 h
)
110 BOOL16
ModuleFirst16(MODULEENTRY
*lpModule
)
115 BOOL16
ModuleNext16(MODULEENTRY
*lpModule
)
120 BOOL16
IsBadReadPtr16(SEGPTR s
,UINT16 o
)
125 BOOL
IsBadReadPtr(LPCVOID s
,UINT o
)
138 int xyzzy(const char * qwe
, int ijk
)
140 return strlen(qwe
) + ijk
;
150 struct deferred_debug_info
152 struct deferred_debug_info
* next
;
157 PIMAGE_DEBUG_DIRECTORY dbgdir
;
159 PIMAGE_SECTION_HEADER sectp
;
168 unsigned int cv_timestamp
;
175 struct deferred_debug_info deefer
;
176 IMAGE_DEBUG_DIRECTORY dinfo
;
177 struct CodeViewDebug cdebug
;
178 IMAGE_SECTION_HEADER sects
[10];
180 memset(&deefer
, 0, sizeof(deefer
));
181 memset(&dinfo
, 0, sizeof(dinfo
));
182 memset(&cdebug
, 0, sizeof(cdebug
));
183 memset(§s
, 0, sizeof(sects
));
185 deefer
.dbg_info
= (char *) &cdebug
;
186 dinfo
.TimeStamp
= 812932395;
187 cdebug
.cv_timestamp
= 833392137 /* 841951397 */;
188 deefer
.dbgdir
= &dinfo
;
189 deefer
.sectp
= sects
;
193 DEBUG_ProcessPDBFile(&deefer
, "../dumpexe.pdb");
197 main(int argc
, char * argv
[])
201 strcpy(vdv
, "This is a test");
202 memset(&vvv
, 0xff, sizeof(vvv
));
207 xxx
= (unsigned int*) &vvv
;
213 memset(®
, 0, sizeof(reg
));
214 wine_debug(SIGSEGV
, ®
);