/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/include/wx/msw/debughlp.h
ViewVC logotype

Diff of /trunk/3rdparty/wxWidgets/include/wx/msw/debughlp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 140  public: Line 140  public:
140      typedef DWORD (WINAPI *SymGetOptions_t)();      typedef DWORD (WINAPI *SymGetOptions_t)();
141      typedef DWORD (WINAPI *SymSetOptions_t)(DWORD);      typedef DWORD (WINAPI *SymSetOptions_t)(DWORD);
142      typedef BOOL (WINAPI *SymInitialize_t)(HANDLE, LPSTR, BOOL);      typedef BOOL (WINAPI *SymInitialize_t)(HANDLE, LPSTR, BOOL);
143            typedef BOOL (WINAPI *SymRefreshModuleList_t)(HANDLE);
144      typedef BOOL (WINAPI *StackWalk_t)(DWORD, HANDLE, HANDLE, LPSTACKFRAME,      typedef BOOL (WINAPI *StackWalk_t)(DWORD, HANDLE, HANDLE, LPSTACKFRAME,
145                                         LPVOID, PREAD_PROCESS_MEMORY_ROUTINE,                                         LPVOID, PREAD_PROCESS_MEMORY_ROUTINE,
146                                         PFUNCTION_TABLE_ACCESS_ROUTINE,                                         PFUNCTION_TABLE_ACCESS_ROUTINE,
# Line 184  public: Line 185  public:
185    
186      wxDO_FOR_ALL_SYM_FUNCS(wxDECLARE_SYM_FUNCTION);      wxDO_FOR_ALL_SYM_FUNCS(wxDECLARE_SYM_FUNCTION);
187    
     #undef wxDECLARE_SYM_FUNCTION  
   
188      // load all functions from DLL, return true if ok      // load all functions from DLL, return true if ok
189      static bool Init();      static bool Init();
190    
191            // *PCSX2* Should be called before performing a stack trace, as apps may load/unload plugins during
192            // program execution.
193        static bool RefreshModuleList(HANDLE hProcess);
194    
195      // return the string with the error message explaining why Init() failed      // return the string with the error message explaining why Init() failed
196      static const wxString& GetErrorMessage();      static const wxString& GetErrorMessage();
197    
# Line 202  public: Line 205  public:
205      static wxString GetSymbolName(PSYMBOL_INFO pSymInfo);      static wxString GetSymbolName(PSYMBOL_INFO pSymInfo);
206    
207  private:  private:
208            // Declared separately since it requires an especially new version of WinDbgHlp
209            // (v6.5 or later).
210            wxDECLARE_SYM_FUNCTION(SymRefreshModuleList);
211            
212            static bool DoInit();
213            
214            static bool BindFunctions(const wxDynamicLibrary& dllDbgHelp);
215    
216      // dereference the given symbol, i.e. return symbol which is not a      // dereference the given symbol, i.e. return symbol which is not a
217      // pointer/reference any more      // pointer/reference any more
218      //      //
# Line 222  private: Line 233  private:
233                              unsigned level = 0);                              unsigned level = 0);
234  };  };
235    
236    #undef wxDECLARE_SYM_FUNCTION
237    
238  #endif // wxUSE_DBGHELP  #endif // wxUSE_DBGHELP
239    
240  #endif // _WX_MSW_DEBUGHLPH_H_  #endif // _WX_MSW_DEBUGHLPH_H_

Legend:
Removed from v.31  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22