debugger: Formatting;
This commit is contained in:
+33
-31
@@ -2,51 +2,53 @@
|
||||
#ifndef MAINFRAME_H
|
||||
#define MAINFRAME_H
|
||||
|
||||
#include "tabber.hpp"
|
||||
#include "debugger.hpp"
|
||||
#include "sourcefile.hpp"
|
||||
#include "debugtree.hpp"
|
||||
#include "sourcefile.hpp"
|
||||
#include "tabber.hpp"
|
||||
|
||||
class MainFrame : public CFrameWnd,public Debugger{
|
||||
class MainFrame : public CFrameWnd, public Debugger {
|
||||
Tabber tabber;
|
||||
Tabber tabber2;
|
||||
CToolBar toolBar;
|
||||
SourceFile debug_log;
|
||||
ConstsTree consts_tree;
|
||||
GlobalsTree globals_tree;
|
||||
LocalsTree locals_tree;
|
||||
map<const char*, int> file_tabs;
|
||||
map<const char*, SourceFile*> files;
|
||||
|
||||
Tabber tabber;
|
||||
Tabber tabber2;
|
||||
CToolBar toolBar;
|
||||
SourceFile debug_log;
|
||||
ConstsTree consts_tree;
|
||||
GlobalsTree globals_tree;
|
||||
LocalsTree locals_tree;
|
||||
map<const char*,int> file_tabs;
|
||||
map<const char*,SourceFile*> files;
|
||||
int state, step_level, cur_pos;
|
||||
const char* cur_file;
|
||||
|
||||
int state,step_level,cur_pos;
|
||||
const char *cur_file;
|
||||
bool shouldRun() const
|
||||
{
|
||||
return step_level < locals_tree.size();
|
||||
}
|
||||
|
||||
bool shouldRun()const{ return step_level<locals_tree.size(); }
|
||||
|
||||
public:
|
||||
public:
|
||||
MainFrame();
|
||||
~MainFrame();
|
||||
|
||||
void debugRun();
|
||||
void debugStop();
|
||||
void debugStmt( int srcpos,const char *file );
|
||||
void debugEnter( void *frame,void *env,const char *func );
|
||||
void debugStmt(int srcpos, const char* file);
|
||||
void debugEnter(void* frame, void* env, const char* func);
|
||||
void debugLeave();
|
||||
void debugLog( const char *msg );
|
||||
void debugMsg( const char *msg,bool serious );
|
||||
void debugSys( void *msg );
|
||||
void debugLog(const char* msg);
|
||||
void debugMsg(const char* msg, bool serious);
|
||||
void debugSys(void* msg);
|
||||
|
||||
void showCurStmt();
|
||||
void setState( int n );
|
||||
void setRuntime( void *mod,void *env );
|
||||
SourceFile *sourceFile(const char*file);
|
||||
void showCurStmt();
|
||||
void setState(int n);
|
||||
void setRuntime(void* mod, void* env);
|
||||
SourceFile* sourceFile(const char* file);
|
||||
|
||||
DECLARE_DYNAMIC( MainFrame )
|
||||
DECLARE_DYNAMIC(MainFrame)
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
|
||||
afx_msg void OnSize( UINT type,int w,int h );
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
afx_msg void OnSize(UINT type, int w, int h);
|
||||
afx_msg void OnClose();
|
||||
|
||||
afx_msg void cmdStop();
|
||||
@@ -56,9 +58,9 @@ public:
|
||||
afx_msg void cmdStepOut();
|
||||
afx_msg void cmdEnd();
|
||||
|
||||
afx_msg void updateCmdUI( CCmdUI *ui );
|
||||
afx_msg void updateCmdUI(CCmdUI* ui);
|
||||
|
||||
afx_msg void OnWindowPosChanging( WINDOWPOS *pos );
|
||||
afx_msg void OnWindowPosChanging(WINDOWPOS* pos);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user