~ppsspp/ppsspp/ppsspp-1.1.1

« back to all changes in this revision

Viewing changes to Qt/Debugger/debugger_disasm.h

  • Committer: Sérgio Benjamim
  • Date: 2015-10-17 01:37:55 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20151017013755-avrlz2pt37kwt43x
PPSSPP 1.1.1 source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DEBUGGER_DISASM_H
 
2
#define DEBUGGER_DISASM_H
 
3
 
 
4
#include "Core/MIPS/MIPSStackWalk.h"
 
5
#include "Core/HLE/sceKernelThread.h"
 
6
#include "Core/Debugger/DebugInterface.h"
 
7
#include "debugger_vfpu.h"
 
8
#include <QDialog>
 
9
#include <QListWidgetItem>
 
10
#include <QTreeWidgetItem>
 
11
#include <vector>
 
12
 
 
13
class MainWindow;
 
14
namespace Ui {
 
15
class Debugger_Disasm;
 
16
}
 
17
 
 
18
class Debugger_Disasm : public QDialog
 
19
{
 
20
        Q_OBJECT
 
21
        
 
22
public:
 
23
        explicit Debugger_Disasm(DebugInterface *_cpu, MainWindow* mainWindow_, QWidget *parent = 0);
 
24
        ~Debugger_Disasm();
 
25
        void SetDebugMode(bool _bDebug);
 
26
 
 
27
        void ShowVFPU();
 
28
        void Go();
 
29
        void Step();
 
30
        void StepOver();
 
31
        void StepHLE();
 
32
        void Stop();
 
33
        void Skip();
 
34
        void GotoPC();
 
35
        void GotoLR();
 
36
        void UpdateDialog();
 
37
        void NotifyMapLoaded();
 
38
        void Update();
 
39
        void ShowMemory(u32 addr);
 
40
        void FillFunctions();
 
41
        void UpdateCallstack();
 
42
        void UpdateBreakpoints();
 
43
        void UpdateThread();
 
44
        void UpdateDisplayList();
 
45
 
 
46
signals:
 
47
        void UpdateCallstack_();
 
48
        void UpdateDisplayList_();
 
49
        void UpdateBreakpoints_();
 
50
        void UpdateThread_();
 
51
 
 
52
public slots:
 
53
        void Goto(u32 addr);
 
54
        void RemoveBreakpoint();
 
55
        void GotoThreadEntryPoint();
 
56
 
 
57
private slots:
 
58
        void UpdateCallstackGUI();
 
59
        void UpdateDisplayListGUI();
 
60
        void UpdateBreakpointsGUI();
 
61
        void UpdateThreadGUI();
 
62
 
 
63
        void on_GotoPc_clicked();
 
64
        void on_Go_clicked();
 
65
        void on_Stop_clicked();
 
66
        void on_StepInto_clicked();
 
67
        void on_StepOver_clicked();
 
68
        void on_Skip_clicked();
 
69
        void on_NextHLE_clicked();
 
70
        void on_GotoLr_clicked();
 
71
        void on_GotoInt_currentIndexChanged(int index);
 
72
        void on_Address_textChanged(const QString &arg1);
 
73
        void on_DisasmView_customContextMenuRequested(const QPoint &pos);
 
74
 
 
75
        void on_RegList_customContextMenuRequested(const QPoint &pos);
 
76
        void on_vfpu_clicked();
 
77
        void on_FuncList_itemClicked(QListWidgetItem *item);
 
78
        void on_breakpointsList_itemClicked(QTreeWidgetItem *item, int column);
 
79
        void on_breakpointsList_customContextMenuRequested(const QPoint &pos);
 
80
        void on_clearAllBP_clicked();
 
81
        void on_threadList_itemClicked(QTreeWidgetItem *item, int column);
 
82
        void on_threadList_customContextMenuRequested(const QPoint &pos);
 
83
 
 
84
        void SetThreadStatusRun();
 
85
        void SetThreadStatusWait();
 
86
        void SetThreadStatusSuspend();
 
87
        void on_displayList_customContextMenuRequested(const QPoint &pos);
 
88
 
 
89
private:
 
90
        void SetThreadStatus(ThreadStatus status);
 
91
 
 
92
        Ui::Debugger_Disasm *ui;
 
93
        DebugInterface* cpu;
 
94
        MainWindow* mainWindow;
 
95
        Debugger_VFPU* vfpudlg;
 
96
        u32 breakpointAddr;
 
97
        QTreeWidgetItem* threadRowSelected;
 
98
        QTreeWidgetItem* displayListRowSelected;
 
99
        std::vector<MIPSStackWalk::StackFrame> stackTraceModel;
 
100
};
 
101
 
 
102
#endif // DEBUGGER_DISASM_H