diff options
| author | fires.gc <fires.gc@gmail.com> | 2008-07-17 21:46:34 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2008-07-17 21:46:34 +0000 |
| commit | 343d1ece115879ea2c8d77abbeadaa8ef3e3de77 (patch) | |
| tree | 58513e74dd60b3076331e6c1f098d6a9a9dc219e /Source/Core/DebuggerWX/src/BreakpointWindow.cpp | |
| parent | 91ccda69efb56fa729c3f4f3209726238f656e29 (diff) | |
debugger improvments
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@25 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/BreakpointWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/src/BreakpointWindow.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/Core/DebuggerWX/src/BreakpointWindow.cpp b/Source/Core/DebuggerWX/src/BreakpointWindow.cpp index fbcf1ad4bd..e752f1bbdb 100644 --- a/Source/Core/DebuggerWX/src/BreakpointWindow.cpp +++ b/Source/Core/DebuggerWX/src/BreakpointWindow.cpp @@ -5,6 +5,7 @@ #include "Debugger.h"
#include "BreakPointWindow.h"
#include "BreakpointView.h"
+#include "CodeWindow.h"
#include "wx/mstream.h"
@@ -21,6 +22,7 @@ BEGIN_EVENT_TABLE(CBreakPointWindow, wxFrame) EVT_MENU(IDM_DELETE, CBreakPointWindow::OnDelete)
EVT_MENU(IDM_ADD_BREAKPOINT, CBreakPointWindow::OnAddBreakPoint)
EVT_MENU(IDM_ADD_MEMORYCHECK, CBreakPointWindow::OnAddMemoryCheck)
+ EVT_LIST_ITEM_ACTIVATED(ID_BPS, CBreakPointWindow::OnActivated)
END_EVENT_TABLE()
@@ -32,9 +34,10 @@ inline wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length) }
-CBreakPointWindow::CBreakPointWindow(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
+CBreakPointWindow::CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
: wxFrame(parent, id, title, position, size, style)
, m_BreakPointListView(NULL)
+ , m_pCodeWindow(_pCodeWindow)
{
InitBitmaps();
@@ -157,4 +160,17 @@ CBreakPointWindow::OnAddMemoryCheck(wxCommandEvent& event) }
+void
+CBreakPointWindow::OnActivated(wxListEvent& event)
+{
+ long Index = event.GetIndex();
+ if (Index >= 0)
+ {
+ u32 Address = (u32)m_BreakPointListView->GetItemData(Index);
+ if (m_pCodeWindow != NULL)
+ {
+ m_pCodeWindow->JumpToAddress(Address);
+ }
+ }
+}
|
