mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
27d295ec7e
Changes: - MemoryWindow was cleaned up and gives more feedback on searches. Some bugs were fixed as well: - A complex bug that allowed tearing off tabs and opening multiple copies of a debug panel which lead to segfaults - Another segfault related to right-click menus on code/memory views when those tools were floating in their own window.
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <wx/listctrl.h>
|
|
#include <wx/panel.h>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "UICommon/Disassembler.h"
|
|
|
|
class wxButton;
|
|
class wxListBox;
|
|
class wxTextCtrl;
|
|
|
|
class JitBlockList : public wxListCtrl
|
|
{
|
|
public:
|
|
JitBlockList(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size,
|
|
long style);
|
|
void Init();
|
|
void Repopulate();
|
|
};
|
|
|
|
class CJitWindow : public wxPanel
|
|
{
|
|
public:
|
|
CJitWindow(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL | wxBORDER_NONE,
|
|
const wxString& name = _("JIT Block Viewer"));
|
|
|
|
void ViewAddr(u32 em_address);
|
|
void Repopulate();
|
|
|
|
private:
|
|
void OnRefresh(wxCommandEvent& /*event*/);
|
|
void Compare(u32 em_address);
|
|
|
|
JitBlockList* block_list;
|
|
std::unique_ptr<HostDisassembler> m_disassembler;
|
|
wxButton* button_refresh;
|
|
wxTextCtrl* ppc_box;
|
|
wxTextCtrl* x86_box;
|
|
|
|
void OnHostMessage(wxCommandEvent& event);
|
|
};
|