diff options
author | chrisvj <chrisvanderjagt@gmail.com> | 2015-01-04 00:51:14 +0100 |
---|---|---|
committer | chrisvj <chrisvanderjagt@gmail.com> | 2015-01-06 13:51:54 +0100 |
commit | b0a14cfe7f0075d0758371276b7f6384856aa6ff (patch) | |
tree | 1c7c0f0f9c707138a0a7f37583c0ef31cd94bec3 /src/citra_qt/debugger/disassembler.hxx | |
parent | Merge pull request #419 from linkmauve/no-x86-specifics (diff) | |
download | yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar.gz yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar.bz2 yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar.lz yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar.xz yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.tar.zst yuzu-b0a14cfe7f0075d0758371276b7f6384856aa6ff.zip |
Diffstat (limited to 'src/citra_qt/debugger/disassembler.hxx')
-rw-r--r-- | src/citra_qt/debugger/disassembler.hxx | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/citra_qt/debugger/disassembler.hxx b/src/citra_qt/debugger/disassembler.hxx deleted file mode 100644 index 6d3cef108..000000000 --- a/src/citra_qt/debugger/disassembler.hxx +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2014 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include <QAbstractItemModel> -#include <QDockWidget> -#include "ui_disassembler.h" - -#include "common/common.h" -#include "common/break_points.h" - -class QAction; -class EmuThread; - -class DisassemblerModel : public QAbstractItemModel -{ - Q_OBJECT - -public: - DisassemblerModel(QObject* parent); - - QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; - QModelIndex parent(const QModelIndex& child) const override; - int columnCount(const QModelIndex& parent = QModelIndex()) const override; - int rowCount(const QModelIndex& parent = QModelIndex()) const override; - QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; - - QModelIndex IndexFromAbsoluteAddress(unsigned int address) const; - const BreakPoints& GetBreakPoints() const; - -public slots: - void ParseFromAddress(unsigned int address); - void OnSelectionChanged(const QModelIndex&); - void OnSetOrUnsetBreakpoint(); - void SetNextInstruction(unsigned int address); - -private: - unsigned int base_address; - unsigned int code_size; - unsigned int program_counter; - - QModelIndex selection; - - // TODO: Make BreakPoints less crappy (i.e. const-correct) so that this needn't be mutable. - mutable BreakPoints breakpoints; -}; - -class DisassemblerWidget : public QDockWidget -{ - Q_OBJECT - -public: - DisassemblerWidget(QWidget* parent, EmuThread& emu_thread); - - void Init(); - -public slots: - void OnContinue(); - void OnStep(); - void OnStepInto(); - void OnPause(); - void OnToggleStartStop(); - - void OnCPUStepped(); - -private: - // returns -1 if no row is selected - int SelectedRow(); - - Ui::DockWidget disasm_ui; - - DisassemblerModel* model; - - u32 base_addr; - - EmuThread& emu_thread; -}; |