2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
14 ldt_copy_entry ldt_copy
[LDT_SIZE
];
15 unsigned char ldt_flags_copy
[LDT_SIZE
];
20 XUngrabServer( Display
* d
)
31 HTASK16
GetCurrentTask(void)
36 HMODULE16
GetExePtr(HANDLE16 h
)
41 int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
42 const char *def
, char *buffer
, int len
)
48 void CLASS_DumpClass( struct tagCLASS
*class )
53 void MODULE_DumpModule( HMODULE16 hmodule
)
58 void QUEUE_DumpQueue( HQUEUE16 hQueue
)
63 void WIN_DumpWindow( HWND hwnd
)
69 void CLASS_WalkClasses(void)
74 void MODULE_WalkModules(void)
79 void QUEUE_WalkQueues(void)
84 void WIN_WalkWindows( HWND hwnd
, int indent
)
89 NE_MODULE
*NE_GetPtr( HMODULE16 hModule
)
94 FARPROC16
NE_GetEntryPoint( HMODULE16 hModule
, WORD ordinal
)
99 void LDT_Print( int start
, int length
)
104 LPVOID
GlobalLock16(HGLOBAL16 h
)
109 BOOL16
ModuleFirst16(MODULEENTRY
*lpModule
)
114 BOOL16
ModuleNext16(MODULEENTRY
*lpModule
)
119 BOOL16
IsBadReadPtr16(SEGPTR s
,UINT16 o
)
124 BOOL
IsBadReadPtr(LPCVOID s
,UINT o
)
137 int xyzzy(const char * qwe
, int ijk
)
139 return strlen(qwe
) + ijk
;
149 struct deferred_debug_info
151 struct deferred_debug_info
* next
;
156 PIMAGE_DEBUG_DIRECTORY dbgdir
;
158 PIMAGE_SECTION_HEADER sectp
;
167 unsigned int cv_timestamp
;
174 struct deferred_debug_info deefer
;
175 IMAGE_DEBUG_DIRECTORY dinfo
;
176 struct CodeViewDebug cdebug
;
177 IMAGE_SECTION_HEADER sects
[10];
179 memset(&deefer
, 0, sizeof(deefer
));
180 memset(&dinfo
, 0, sizeof(dinfo
));
181 memset(&cdebug
, 0, sizeof(cdebug
));
182 memset(§s
, 0, sizeof(sects
));
184 deefer
.dbg_info
= (char *) &cdebug
;
185 dinfo
.TimeStamp
= 812932395;
186 cdebug
.cv_timestamp
= 833392137 /* 841951397 */;
187 deefer
.dbgdir
= &dinfo
;
188 deefer
.sectp
= sects
;
192 DEBUG_ProcessPDBFile(&deefer
, "../dumpexe.pdb");
196 main(int argc
, char * argv
[])
200 strcpy(vdv
, "This is a test");
201 memset(&vvv
, 0xff, sizeof(vvv
));
206 xxx
= (unsigned int*) &vvv
;
212 memset(®
, 0, sizeof(reg
));
213 wine_debug(SIGSEGV
, ®
);