diff options
| author | 2014-04-18 18:30:53 -0400 | |
|---|---|---|
| committer | 2014-04-18 18:34:23 -0400 | |
| commit | e5f09b8be65c06927164428b5d400024e2388dbc (patch) | |
| tree | 0f0fd4035bcc88c0de5a47a7d3c64b4f67453897 /src/citra_qt/callstack.cpp | |
| parent | Merge branch 'hle-interface' (diff) | |
| download | yuzu-e5f09b8be65c06927164428b5d400024e2388dbc.tar.gz yuzu-e5f09b8be65c06927164428b5d400024e2388dbc.tar.xz yuzu-e5f09b8be65c06927164428b5d400024e2388dbc.zip | |
UI/debugger changes
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/callstack.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/citra_qt/callstack.cpp b/src/citra_qt/callstack.cpp deleted file mode 100644 index 2d62cb0d0..000000000 --- a/src/citra_qt/callstack.cpp +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | #include <QStandardItemModel> | ||
| 2 | #include "callstack.hxx" | ||
| 3 | |||
| 4 | //#include "debugger/debugger.h" | ||
| 5 | |||
| 6 | GCallstackView::GCallstackView(QWidget* parent): QDockWidget(parent) | ||
| 7 | { | ||
| 8 | ui.setupUi(this); | ||
| 9 | |||
| 10 | callstack_model = new QStandardItemModel(this); | ||
| 11 | callstack_model->setColumnCount(3); | ||
| 12 | callstack_model->setHeaderData(0, Qt::Horizontal, "Depth"); | ||
| 13 | callstack_model->setHeaderData(1, Qt::Horizontal, "Address"); | ||
| 14 | callstack_model->setHeaderData(2, Qt::Horizontal, "Function Name"); | ||
| 15 | ui.treeView->setModel(callstack_model); | ||
| 16 | |||
| 17 | // TODO: Make single clicking a callstack entry jump to the corresponding disassembly position | ||
| 18 | } | ||
| 19 | |||
| 20 | void GCallstackView::OnCPUStepped() | ||
| 21 | { | ||
| 22 | /* | ||
| 23 | Debugger::Callstack callstack; | ||
| 24 | Debugger::GetCallstack(callstack); | ||
| 25 | callstack_model->setRowCount(callstack.size()); | ||
| 26 | |||
| 27 | for (int i = 0; i < callstack.size(); ++i) | ||
| 28 | for (Debugger::CallstackIterator it = callstack.begin(); it != callstack.end(); ++it) | ||
| 29 | { | ||
| 30 | Debugger::CallstackEntry entry = callstack[i]; | ||
| 31 | callstack_model->setItem(i, 0, new QStandardItem(QString("%1").arg(i+1))); | ||
| 32 | callstack_model->setItem(i, 1, new QStandardItem(QString("0x%1").arg(entry.addr, 8, 16, QLatin1Char('0')))); | ||
| 33 | callstack_model->setItem(i, 2, new QStandardItem(QString::fromStdString(entry.name))); | ||
| 34 | } | ||
| 35 | */ | ||
| 36 | } \ No newline at end of file | ||