blob: 21ab2e476d4832cb8842dcd0fd0b84a2dc6989ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
//========= Copyright Valve Corporation, All rights reserved. ============//
#include <dbghelp.h>
#include <dbgeng.h>
#include "mdmpRipper.h"
#include "vgui_controls/MessageMap.h"
#include "vgui_controls/MenuBar.h"
#include "vgui_controls/Menu.h"
#include "tier1/KeyValues.h"
#include "vgui/ISurface.h"
#include "vgui_controls/Frame.h"
#include "CMiniDumpObject.h"
#include "CDbgOutput.h"
#ifndef MDMODULEPANEL_H
#define MDMODULEPANEL_H
#ifdef _WIN32
#pragma once
#endif
using namespace vgui;
class CMDModulePanel : public vgui::EditablePanel
{
DECLARE_CLASS_SIMPLE( CMDModulePanel, vgui::EditablePanel );
public:
CMDModulePanel( vgui::Panel *pParent, const char *pName );
~CMDModulePanel( );
virtual void OnCommand( const char *pCommand );
virtual void Close();
void OnKeyCodeTyped( KeyCode code );
virtual void Create( const char *filename );
virtual void Create( CUtlVector<CMiniDumpObject *> *ptr );
void UpdateKnownDB( char *type );
void ModuleLookUp();
static DWORD WINAPI StaticAnalyzeThread( LPVOID lParam );
private:
MESSAGE_FUNC_PARAMS( OnCompare, "compare", data );
MESSAGE_FUNC_INT_CHARPTR( OnDbgOutput, "DebugOutput", iMask, pszDebugText );
void LoadKnownModules();
void InitializeDebugEngine( void );
void ReleaseDebugEngine( void );
void AnalyzeDumpFile( const char *pszDumpFile );
DWORD AnalyzeThread( void );
vgui::ListPanel *m_pTokenList;
vgui::RichText *m_pAnalyzeText;
CUtlVector<CMiniDumpObject *> m_MiniDumpList;
CUtlVector<module> m_knownModuleList;
HANDLE m_hThread;
IDebugClient *m_pDbgClient;
IDebugControl *m_pDbgControl;
IDebugSymbols2 *m_pDbgSymbols;
CDbgOutput m_cDbgOutput;
};
#endif // MDMODULEPANEL_H
|