diff options
Diffstat (limited to 'src/citra_qt/debugger/disassembler.h')
| -rw-r--r-- | src/citra_qt/debugger/disassembler.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.h deleted file mode 100644 index a6e59515c..000000000 --- a/src/citra_qt/debugger/disassembler.h +++ /dev/null | |||
| @@ -1,76 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <QAbstractListModel> | ||
| 8 | #include <QDockWidget> | ||
| 9 | #include "common/break_points.h" | ||
| 10 | #include "common/common_types.h" | ||
| 11 | #include "ui_disassembler.h" | ||
| 12 | |||
| 13 | class QAction; | ||
| 14 | class EmuThread; | ||
| 15 | |||
| 16 | class DisassemblerModel : public QAbstractListModel { | ||
| 17 | Q_OBJECT | ||
| 18 | |||
| 19 | public: | ||
| 20 | explicit DisassemblerModel(QObject* parent); | ||
| 21 | |||
| 22 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | ||
| 23 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
| 24 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
| 25 | |||
| 26 | QModelIndex IndexFromAbsoluteAddress(unsigned int address) const; | ||
| 27 | const BreakPoints& GetBreakPoints() const; | ||
| 28 | |||
| 29 | public slots: | ||
| 30 | void ParseFromAddress(unsigned int address); | ||
| 31 | void OnSelectionChanged(const QModelIndex&); | ||
| 32 | void OnSetOrUnsetBreakpoint(); | ||
| 33 | void SetNextInstruction(unsigned int address); | ||
| 34 | |||
| 35 | private: | ||
| 36 | unsigned int base_address; | ||
| 37 | unsigned int code_size; | ||
| 38 | unsigned int program_counter; | ||
| 39 | |||
| 40 | QModelIndex selection; | ||
| 41 | BreakPoints breakpoints; | ||
| 42 | }; | ||
| 43 | |||
| 44 | class DisassemblerWidget : public QDockWidget { | ||
| 45 | Q_OBJECT | ||
| 46 | |||
| 47 | public: | ||
| 48 | DisassemblerWidget(QWidget* parent, EmuThread* emu_thread); | ||
| 49 | |||
| 50 | void Init(); | ||
| 51 | |||
| 52 | public slots: | ||
| 53 | void OnContinue(); | ||
| 54 | void OnStep(); | ||
| 55 | void OnStepInto(); | ||
| 56 | void OnPause(); | ||
| 57 | void OnToggleStartStop(); | ||
| 58 | |||
| 59 | void OnDebugModeEntered(); | ||
| 60 | void OnDebugModeLeft(); | ||
| 61 | |||
| 62 | void OnEmulationStarting(EmuThread* emu_thread); | ||
| 63 | void OnEmulationStopping(); | ||
| 64 | |||
| 65 | private: | ||
| 66 | // returns -1 if no row is selected | ||
| 67 | int SelectedRow(); | ||
| 68 | |||
| 69 | Ui::DockWidget disasm_ui; | ||
| 70 | |||
| 71 | DisassemblerModel* model; | ||
| 72 | |||
| 73 | u32 base_addr; | ||
| 74 | |||
| 75 | EmuThread* emu_thread; | ||
| 76 | }; | ||