2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
20 ldt_copy_entry ldt_copy
[LDT_SIZE
];
21 unsigned char ldt_flags_copy
[LDT_SIZE
];
26 XUngrabServer( Display
* d
)
37 HTASK16
GetCurrentTask()
42 HMODULE16
GetExePtr(HANDLE16 h
)
47 int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
48 const char *def
, char *buffer
, int len
)
54 void CLASS_DumpClass( struct tagCLASS
*class )
59 void MODULE_DumpModule( HMODULE16 hmodule
)
64 void QUEUE_DumpQueue( HQUEUE16 hQueue
)
69 void WIN_DumpWindow( HWND hwnd
)
75 void CLASS_WalkClasses()
80 void MODULE_WalkModules()
85 void QUEUE_WalkQueues()
90 void WIN_WalkWindows( HWND hwnd
, int indent
)
95 NE_MODULE
*NE_GetPtr( HMODULE16 hModule
)
100 FARPROC16
NE_GetEntryPoint( HMODULE16 hModule
, WORD ordinal
)
105 void LDT_Print( int start
, int length
)
110 LPVOID
GlobalLock16(HGLOBAL16 h
)
115 BOOL16
ModuleFirst16(MODULEENTRY
*lpModule
)
120 BOOL16
ModuleNext16(MODULEENTRY
*lpModule
)
125 BOOL16
IsBadReadPtr16(SEGPTR s
,UINT16 o
)
130 BOOL
IsBadReadPtr(LPCVOID s
,UINT o
)
143 int xyzzy(const char * qwe
, int ijk
)
145 return strlen(qwe
) + ijk
;
155 struct deferred_debug_info
157 struct deferred_debug_info
* next
;
162 PIMAGE_DEBUG_DIRECTORY dbgdir
;
164 PIMAGE_SECTION_HEADER sectp
;
173 unsigned int cv_timestamp
;
180 struct deferred_debug_info deefer
;
181 IMAGE_DEBUG_DIRECTORY dinfo
;
182 struct CodeViewDebug cdebug
;
183 IMAGE_SECTION_HEADER sects
[10];
185 memset(&deefer
, 0, sizeof(deefer
));
186 memset(&dinfo
, 0, sizeof(dinfo
));
187 memset(&cdebug
, 0, sizeof(cdebug
));
188 memset(§s
, 0, sizeof(sects
));
190 deefer
.dbg_info
= (char *) &cdebug
;
191 dinfo
.TimeStamp
= 812932395;
192 cdebug
.cv_timestamp
= 833392137 /* 841951397 */;
193 deefer
.dbgdir
= &dinfo
;
194 deefer
.sectp
= sects
;
198 DEBUG_ProcessPDBFile(&deefer
, "../dumpexe.pdb");
202 main(int argc
, char * argv
[])
204 extern char * DEBUG_argv0
;
207 strcpy(vdv
, "This is a test");
208 memset(&vvv
, 0xff, sizeof(vvv
));
212 DEBUG_argv0
= argv
[0];
213 xxx
= (unsigned int*) &vvv
;
219 memset(®
, 0, sizeof(reg
));
220 wine_debug(SIGSEGV
, ®
);