summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-11 23:17:24 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-11 23:17:24 +0200
commit48f9bef75d6b0936c704e852223991e209ec8319 (patch)
tree876fba83ba8f265edb16704b8c261112270150d4 /src/citra_qt/debugger
parentMerge pull request #1143 from lioncash/vcore-hdr (diff)
parentcitra_qt: Reorganize headers (diff)
downloadyuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar.gz
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar.bz2
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar.lz
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar.xz
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.tar.zst
yuzu-48f9bef75d6b0936c704e852223991e209ec8319.zip
Diffstat (limited to 'src/citra_qt/debugger')
-rw-r--r--src/citra_qt/debugger/callstack.cpp6
-rw-r--r--src/citra_qt/debugger/disassembler.cpp16
-rw-r--r--src/citra_qt/debugger/graphics.cpp4
-rw-r--r--src/citra_qt/debugger/graphics_breakpoint_observer.cpp2
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints.cpp8
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints.h1
-rw-r--r--src/citra_qt/debugger/graphics_cmdlists.cpp16
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp9
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.h4
-rw-r--r--src/citra_qt/debugger/graphics_tracing.cpp11
-rw-r--r--src/citra_qt/debugger/graphics_tracing.h2
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.cpp3
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.h2
-rw-r--r--src/citra_qt/debugger/profiler.cpp5
-rw-r--r--src/citra_qt/debugger/ramview.cpp3
-rw-r--r--src/citra_qt/debugger/registers.cpp5
-rw-r--r--src/citra_qt/debugger/registers.h2
17 files changed, 43 insertions, 56 deletions
diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cpp
index e97e81b65..d45eed179 100644
--- a/src/citra_qt/debugger/callstack.cpp
+++ b/src/citra_qt/debugger/callstack.cpp
@@ -4,14 +4,14 @@
#include <QStandardItemModel>
+#include "citra_qt/debugger/callstack.h"
+
#include "common/common_types.h"
#include "common/symbols.h"
-#include "callstack.h"
-
#include "core/core.h"
-#include "core/arm/arm_interface.h"
#include "core/memory.h"
+#include "core/arm/arm_interface.h"
#include "core/arm/disassembler/arm_disasm.h"
CallstackWidget::CallstackWidget(QWidget* parent): QDockWidget(parent)
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp
index f23d823e8..d4f72809d 100644
--- a/src/citra_qt/debugger/disassembler.cpp
+++ b/src/citra_qt/debugger/disassembler.cpp
@@ -4,18 +4,16 @@
#include <QShortcut>
-#include "disassembler.h"
+#include "citra_qt/bootmanager.h"
+#include "citra_qt/hotkeys.h"
+#include "citra_qt/debugger/disassembler.h"
+#include "citra_qt/util/util.h"
-#include "../bootmanager.h"
-#include "../hotkeys.h"
-
-#include "../util/util.h"
-
-#include "core/memory.h"
-
-#include "core/core.h"
#include "common/break_points.h"
#include "common/symbols.h"
+
+#include "core/core.h"
+#include "core/memory.h"
#include "core/arm/arm_interface.h"
#include "core/arm/disassembler/arm_disasm.h"
diff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics.cpp
index 7d15028f0..8008f914c 100644
--- a/src/citra_qt/debugger/graphics.cpp
+++ b/src/citra_qt/debugger/graphics.cpp
@@ -2,11 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include "graphics.h"
#include <QListView>
-#include <QVBoxLayout>
-#include <QDebug>
+#include "citra_qt/debugger/graphics.h"
#include "citra_qt/util/util.h"
extern GraphicsDebugger g_debugger;
diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
index 10ac1ebad..f134eef63 100644
--- a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
+++ b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
@@ -4,7 +4,7 @@
#include <QMetaType>
-#include "graphics_breakpoint_observer.h"
+#include "citra_qt/debugger/graphics_breakpoint_observer.h"
BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context,
const QString& title, QWidget* parent)
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp
index 5202c168c..819ec7707 100644
--- a/src/citra_qt/debugger/graphics_breakpoints.cpp
+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp
@@ -2,16 +2,16 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <QLabel>
#include <QMetaType>
#include <QPushButton>
#include <QTreeView>
#include <QVBoxLayout>
-#include <QLabel>
-#include "common/assert.h"
+#include "citra_qt/debugger/graphics_breakpoints.h"
+#include "citra_qt/debugger/graphics_breakpoints_p.h"
-#include "graphics_breakpoints.h"
-#include "graphics_breakpoints_p.h"
+#include "common/assert.h"
BreakPointModel::BreakPointModel(std::shared_ptr<Pica::DebugContext> debug_context, QObject* parent)
: QAbstractListModel(parent), context_weak(debug_context),
diff --git a/src/citra_qt/debugger/graphics_breakpoints.h b/src/citra_qt/debugger/graphics_breakpoints.h
index d900729da..2371b0e39 100644
--- a/src/citra_qt/debugger/graphics_breakpoints.h
+++ b/src/citra_qt/debugger/graphics_breakpoints.h
@@ -6,7 +6,6 @@
#include <memory>
-#include <QAbstractListModel>
#include <QDockWidget>
#include "video_core/debug_utils/debug_utils.h"
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp
index fa32d24b5..ab97c8d2d 100644
--- a/src/citra_qt/debugger/graphics_cmdlists.cpp
+++ b/src/citra_qt/debugger/graphics_cmdlists.cpp
@@ -4,26 +4,24 @@
#include <QApplication>
#include <QClipboard>
+#include <QComboBox>
+#include <QHeaderView>
#include <QLabel>
#include <QListView>
#include <QMainWindow>
#include <QPushButton>
-#include <QVBoxLayout>
-#include <QTreeView>
-#include <QHeaderView>
#include <QSpinBox>
-#include <QComboBox>
+#include <QTreeView>
+#include <QVBoxLayout>
+#include "citra_qt/debugger/graphics_cmdlists.h"
+#include "citra_qt/util/spinbox.h"
#include "citra_qt/util/util.h"
#include "common/vector_math.h"
-#include "video_core/debug_utils/debug_utils.h"
#include "video_core/pica.h"
-
-#include "graphics_cmdlists.h"
-
-#include "util/spinbox.h"
+#include "video_core/debug_utils/debug_utils.h"
QImage LoadTexture(u8* src, const Pica::DebugUtils::TextureInfo& info) {
QImage decoded_image(info.width, info.height, QImage::Format_ARGB32);
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index 39eefbf75..80b32eaff 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -9,18 +9,17 @@
#include <QPushButton>
#include <QSpinBox>
+#include "citra_qt/debugger/graphics_framebuffer.h"
+#include "citra_qt/util/spinbox.h"
+
#include "common/color.h"
-#include "core/hw/gpu.h"
#include "core/memory.h"
+#include "core/hw/gpu.h"
#include "video_core/pica.h"
#include "video_core/utils.h"
-#include "graphics_framebuffer.h"
-
-#include "util/spinbox.h"
-
GraphicsFramebufferWidget::GraphicsFramebufferWidget(std::shared_ptr<Pica::DebugContext> debug_context,
QWidget* parent)
: BreakPointObserverDock(debug_context, tr("Pica Framebuffer"), parent),
diff --git a/src/citra_qt/debugger/graphics_framebuffer.h b/src/citra_qt/debugger/graphics_framebuffer.h
index e9eae679f..5cd96f2e9 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.h
+++ b/src/citra_qt/debugger/graphics_framebuffer.h
@@ -4,9 +4,7 @@
#pragma once
-#include <QDockWidget>
-
-#include "graphics_breakpoint_observer.h"
+#include "citra_qt/debugger/graphics_breakpoint_observer.h"
class QComboBox;
class QLabel;
diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cpp
index f80cb7493..b0bc782df 100644
--- a/src/citra_qt/debugger/graphics_tracing.cpp
+++ b/src/citra_qt/debugger/graphics_tracing.cpp
@@ -4,26 +4,25 @@
#include <memory>
+#include <boost/range/algorithm/copy.hpp>
+
#include <QBoxLayout>
#include <QComboBox>
#include <QFileDialog>
-#include <QLabel>
#include <QMessageBox>
#include <QPushButton>
-#include <QSpinBox>
-#include <boost/range/algorithm/copy.hpp>
+#include "citra_qt/debugger/graphics_tracing.h"
#include "common/common_types.h"
#include "core/hw/gpu.h"
#include "core/hw/lcd.h"
-#include "video_core/pica.h"
-
#include "nihstro/float24.h"
-#include "graphics_tracing.h"
+#include "video_core/pica.h"
+
GraphicsTracingWidget::GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context,
QWidget* parent)
diff --git a/src/citra_qt/debugger/graphics_tracing.h b/src/citra_qt/debugger/graphics_tracing.h
index 2a0e4819b..753dfa914 100644
--- a/src/citra_qt/debugger/graphics_tracing.h
+++ b/src/citra_qt/debugger/graphics_tracing.h
@@ -4,7 +4,7 @@
#pragma once
-#include "graphics_breakpoint_observer.h"
+#include "citra_qt/debugger/graphics_breakpoint_observer.h"
class EmuThread;
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp
index d48b3294b..f915d2bab 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp
@@ -16,12 +16,11 @@
#include <QSpinBox>
#include <QTreeView>
+#include "citra_qt/debugger/graphics_vertex_shader.h"
#include "citra_qt/util/util.h"
#include "video_core/shader/shader.h"
-#include "graphics_vertex_shader.h"
-
using nihstro::OpCode;
using nihstro::Instruction;
using nihstro::SourceRegister;
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h
index 0bf1652fc..7f06f496a 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.h
+++ b/src/citra_qt/debugger/graphics_vertex_shader.h
@@ -6,7 +6,7 @@
#include <QAbstractTableModel>
-#include "graphics_breakpoint_observer.h"
+#include "citra_qt/debugger/graphics_breakpoint_observer.h"
#include "nihstro/parser_shbin.h"
diff --git a/src/citra_qt/debugger/profiler.cpp b/src/citra_qt/debugger/profiler.cpp
index 5261d4836..043f20659 100644
--- a/src/citra_qt/debugger/profiler.cpp
+++ b/src/citra_qt/debugger/profiler.cpp
@@ -6,12 +6,11 @@
#include <QPainter>
#include <QString>
-#include "profiler.h"
-
+#include "citra_qt/debugger/profiler.h"
#include "citra_qt/util/util.h"
-#include "common/profiler_reporting.h"
#include "common/microprofile.h"
+#include "common/profiler_reporting.h"
// Include the implementation of the UI in this file. This isn't in microprofile.cpp because the
// non-Qt frontends don't need it (and don't implement the UI drawing hooks either).
diff --git a/src/citra_qt/debugger/ramview.cpp b/src/citra_qt/debugger/ramview.cpp
index b6ebc7fc4..02347e83a 100644
--- a/src/citra_qt/debugger/ramview.cpp
+++ b/src/citra_qt/debugger/ramview.cpp
@@ -2,8 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include "ramview.h"
-
+#include "citra_qt/debugger/ramview.h"
GRamView::GRamView(QWidget* parent) : QHexEdit(parent)
{
diff --git a/src/citra_qt/debugger/registers.cpp b/src/citra_qt/debugger/registers.cpp
index 97384d5e8..6100d67c5 100644
--- a/src/citra_qt/debugger/registers.cpp
+++ b/src/citra_qt/debugger/registers.cpp
@@ -2,9 +2,10 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include "registers.h"
+#include <QTreeWidgetItem>
-#include "../util/util.h"
+#include "citra_qt/debugger/registers.h"
+#include "citra_qt/util/util.h"
#include "core/core.h"
#include "core/arm/arm_interface.h"
diff --git a/src/citra_qt/debugger/registers.h b/src/citra_qt/debugger/registers.h
index 09b830e80..49dc9a4c0 100644
--- a/src/citra_qt/debugger/registers.h
+++ b/src/citra_qt/debugger/registers.h
@@ -5,9 +5,9 @@
#include "ui_registers.h"
#include <QDockWidget>
-#include <QTreeWidgetItem>
class QTreeWidget;
+class QTreeWidgetItem;
class EmuThread;
class RegistersWidget : public QDockWidget