Change the current directory as the user browses the directory tree.
[wine.git] / debugger / dbgmain.c
blobeb0a5b631b5ccab309f27be65ebe5a0d0744415e
1 /*
2 * File dbgmain.c - main wrapper for internal debugger test bed.
4 * Copyright (C) 1997, Eric Youngdale.
5 */
6 #include <signal.h>
7 #include <X11/Xlib.h>
8 #include "config.h"
9 #include "windows.h"
10 #include "toolhelp.h"
11 #include "debugger.h"
12 #include "win.h"
14 ldt_copy_entry ldt_copy[LDT_SIZE];
15 unsigned char ldt_flags_copy[LDT_SIZE];
17 Display * display;
19 int
20 XUngrabServer( Display * d )
22 return(0);
25 int
26 XFlush(Display * d )
28 return(0);
31 HTASK16 GetCurrentTask(void)
33 exit(0);
36 HMODULE16 GetExePtr(HANDLE16 h)
38 exit(0);
41 int PROFILE_GetWineIniString( const char *section, const char *key_name,
42 const char *def, char *buffer, int len )
44 exit(0);
48 void CLASS_DumpClass( struct tagCLASS *class )
50 exit(0);
53 void MODULE_DumpModule( HMODULE16 hmodule )
55 exit(0);
58 void QUEUE_DumpQueue( HQUEUE16 hQueue )
60 exit(0);
63 void WIN_DumpWindow( HWND hwnd )
65 exit(0);
69 void CLASS_WalkClasses(void)
71 exit(0);
74 void MODULE_WalkModules(void)
76 exit(0);
79 void QUEUE_WalkQueues(void)
81 exit(0);
84 void WIN_WalkWindows( HWND hwnd, int indent )
86 exit(0);
89 NE_MODULE *NE_GetPtr( HMODULE16 hModule )
91 exit(0);
94 FARPROC16 NE_GetEntryPoint( HMODULE16 hModule, WORD ordinal )
96 exit(0);
99 void LDT_Print( int start, int length )
101 exit(0);
104 LPVOID GlobalLock16(HGLOBAL16 h)
106 exit(0);
109 BOOL16 ModuleFirst16(MODULEENTRY *lpModule)
111 return 0;
114 BOOL16 ModuleNext16(MODULEENTRY *lpModule)
116 return 0;
119 BOOL16 IsBadReadPtr16(SEGPTR s,UINT16 o)
121 exit(0);
124 BOOL IsBadReadPtr(LPCVOID s,UINT o)
126 exit(0);
129 struct qwert
131 unsigned flag1:1;
132 unsigned flag3:3;
133 signed remain:11;
134 unsigned whatsup:17;
135 } vvv;
137 int xyzzy(const char * qwe, int ijk)
139 return strlen(qwe) + ijk;
142 unsigned int * xxx;
143 unsigned int * yyy;
145 int xxx3[10];
147 char vdv[100];
149 struct deferred_debug_info
151 struct deferred_debug_info * next;
152 char * load_addr;
153 char * module_name;
154 char * dbg_info;
155 int dbg_size;
156 PIMAGE_DEBUG_DIRECTORY dbgdir;
157 struct pe_data * pe;
158 PIMAGE_SECTION_HEADER sectp;
159 int nsect;
160 short int dbg_index;
161 char loaded;
164 struct CodeViewDebug
166 char cv_nbtype[8];
167 unsigned int cv_timestamp;
168 char cv_unknown[4];
169 char cv_name[1];
172 test_pdbstuff(void)
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(&sects, 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;
189 deefer.nsect = 10;
191 DEBUG_InitTypes();
192 DEBUG_ProcessPDBFile(&deefer, "../dumpexe.pdb");
196 main(int argc, char * argv[])
198 SIGCONTEXT reg;
200 strcpy(vdv, "This is a test");
201 memset(&vvv, 0xff, sizeof(vvv));
202 vvv.whatsup = 0;
203 vvv.flag3 = 0;
204 vvv.remain = 0x401;
205 argv0 = argv[0];
206 xxx = (unsigned int*) &vvv;
207 yyy = xxx + 5;
208 xxx3[5] = 7;
210 test_pdbstuff();
212 memset(&reg, 0, sizeof(reg));
213 wine_debug(SIGSEGV, &reg);
214 return 0;