mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 19:41:45 +02:00
880f7871d9
These aren't used to modify the data they point to, so make that explicit. Also while we're at it, add const to any nearby variables that can be made so.
73 lines
1.5 KiB
C++
73 lines
1.5 KiB
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QDockWidget>
|
|
#include <QString>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "DolphinQt2/Debugger/CodeViewWidget.h"
|
|
|
|
class QCloseEvent;
|
|
class QLineEdit;
|
|
class QSplitter;
|
|
class QListWidget;
|
|
class QTableWidget;
|
|
struct Symbol;
|
|
|
|
class CodeWidget : public QDockWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CodeWidget(QWidget* parent = nullptr);
|
|
~CodeWidget();
|
|
|
|
void Step();
|
|
void StepOver();
|
|
void StepOut();
|
|
void Skip();
|
|
void ShowPC();
|
|
void SetPC();
|
|
|
|
void ToggleBreakpoint();
|
|
void AddBreakpoint();
|
|
void SetAddress(u32 address, CodeViewWidget::SetAddressUpdate update);
|
|
|
|
void Update();
|
|
void UpdateSymbols();
|
|
signals:
|
|
void BreakpointsChanged();
|
|
void RequestPPCComparison(u32 addr);
|
|
|
|
private:
|
|
void CreateWidgets();
|
|
void ConnectWidgets();
|
|
void UpdateCallstack();
|
|
void UpdateFunctionCalls(const Symbol* symbol);
|
|
void UpdateFunctionCallers(const Symbol* symbol);
|
|
|
|
void OnSearchAddress();
|
|
void OnSearchSymbols();
|
|
void OnSelectSymbol();
|
|
void OnSelectCallstack();
|
|
void OnSelectFunctionCallers();
|
|
void OnSelectFunctionCalls();
|
|
|
|
void closeEvent(QCloseEvent*) override;
|
|
|
|
QLineEdit* m_search_address;
|
|
QLineEdit* m_search_symbols;
|
|
|
|
QListWidget* m_callstack_list;
|
|
QListWidget* m_symbols_list;
|
|
QListWidget* m_function_calls_list;
|
|
QListWidget* m_function_callers_list;
|
|
CodeViewWidget* m_code_view;
|
|
QSplitter* m_box_splitter;
|
|
QSplitter* m_code_splitter;
|
|
|
|
QString m_symbol_filter;
|
|
};
|