summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/BreakpointView.cpp
diff options
context:
space:
mode:
authorbushing <bushing@gmail.com>2008-12-08 05:30:24 +0000
committerbushing <bushing@gmail.com>2008-12-08 05:30:24 +0000
commit49cfded60bb5b444d1828190eacc52bbb49a9cb8 (patch)
tree0823218c1f2f6eec307dadbdec18c5632625f052 /Source/Core/DebuggerWX/Src/BreakpointView.cpp
parent901fe7c00fec5e2aaf55d184edbcb6d092345d52 (diff)
set svn:eol-style=native for **.cpp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1442 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/BreakpointView.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/BreakpointView.cpp242
1 files changed, 121 insertions, 121 deletions
diff --git a/Source/Core/DebuggerWX/Src/BreakpointView.cpp b/Source/Core/DebuggerWX/Src/BreakpointView.cpp
index 2f863af897..c3da612491 100644
--- a/Source/Core/DebuggerWX/Src/BreakpointView.cpp
+++ b/Source/Core/DebuggerWX/Src/BreakpointView.cpp
@@ -1,121 +1,121 @@
-// Copyright (C) 2003-2008 Dolphin Project.
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 2.0.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License 2.0 for more details.
-
-// A copy of the GPL 2.0 should have been included with the program.
-// If not, see http://www.gnu.org/licenses/
-
-// Official SVN repository and contact information can be found at
-// http://code.google.com/p/dolphin-emu/
-
-#include "Debugger.h"
-#include "Common.h"
-
-#include "BreakpointView.h"
-#include "Debugger/Debugger_BreakPoints.h"
-#include "Debugger/Debugger_SymbolMap.h"
-#include "PowerPC/SymbolDB.h"
-
-BEGIN_EVENT_TABLE(CBreakPointView, wxListCtrl)
-
-END_EVENT_TABLE()
-
-CBreakPointView::CBreakPointView(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
- : wxListCtrl(parent, id, pos, size, style)
-{
- SetFont(wxFont(9, wxSWISS, wxNORMAL, wxNORMAL, false, wxT("Segoe UI")));
-
- Refresh();
-}
-
-
-void CBreakPointView::Update()
-{
- ClearAll();
-
- InsertColumn(0, wxT("Active"), wxLIST_FORMAT_LEFT, 50);
- InsertColumn(1, wxT("Type"), wxLIST_FORMAT_LEFT, 50);
- InsertColumn(2, wxT("Function"), wxLIST_FORMAT_CENTER, 200);
- InsertColumn(3, wxT("Address"), wxLIST_FORMAT_LEFT, 100);
- InsertColumn(4, wxT("Flags"), wxLIST_FORMAT_CENTER, 100);
-
- char szBuffer[64];
- const CBreakPoints::TBreakPoints& rBreakPoints = CBreakPoints::GetBreakPoints();
- for (size_t i = 0; i < rBreakPoints.size(); i++)
- {
- const TBreakPoint& rBP = rBreakPoints[i];
- if (!rBP.bTemporary)
- {
- wxString temp;
- temp = wxString::FromAscii(rBP.bOn ? "on" : " ");
- int Item = InsertItem(0, temp);
- temp = wxString::FromAscii("BP");
- SetItem(Item, 1, temp);
-
- Symbol *symbol = g_symbolDB.GetSymbolFromAddr(rBP.iAddress);
- if (symbol)
- {
- temp = wxString::FromAscii(g_symbolDB.GetDescription(rBP.iAddress));
- SetItem(Item, 2, temp);
- }
-
- sprintf(szBuffer, "0x%08x", rBP.iAddress);
- temp = wxString::FromAscii(szBuffer);
- SetItem(Item, 3, temp);
-
- SetItemData(Item, rBP.iAddress);
- }
- }
-
- const CBreakPoints::TMemChecks& rMemChecks = CBreakPoints::GetMemChecks();
- for (size_t i = 0; i < rMemChecks.size(); i++)
- {
- const TMemCheck& rMemCheck = rMemChecks[i];
-
- wxString temp;
- temp = wxString::FromAscii(rMemCheck.Break ? "on" : " ");
- int Item = InsertItem(0, temp);
- temp = wxString::FromAscii("MC");
- SetItem(Item, 1, temp);
-
- Symbol *symbol = g_symbolDB.GetSymbolFromAddr(rMemCheck.StartAddress);
- if (symbol)
- {
- temp = wxString::FromAscii(g_symbolDB.GetDescription(rMemCheck.StartAddress));
- SetItem(Item, 2, temp);
- }
-
- sprintf(szBuffer, "0x%08x to 0%08x", rMemCheck.StartAddress, rMemCheck.EndAddress);
- temp = wxString::FromAscii(szBuffer);
- SetItem(Item, 3, temp);
-
- size_t c = 0;
- if (rMemCheck.OnRead) szBuffer[c++] = 'r';
- if (rMemCheck.OnWrite) szBuffer[c++] = 'w';
- szBuffer[c] = 0x00;
- temp = wxString::FromAscii(szBuffer);
- SetItem(Item, 4, temp);
-
- SetItemData(Item, rMemCheck.StartAddress);
- }
-
-
- Refresh();
-}
-
-void CBreakPointView::DeleteCurrentSelection()
-{
- int Item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
- if (Item >= 0)
- {
- u32 Address = (u32)GetItemData(Item);
- CBreakPoints::DeleteElementByAddress(Address);
- }
-}
+// Copyright (C) 2003-2008 Dolphin Project.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 2.0.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License 2.0 for more details.
+
+// A copy of the GPL 2.0 should have been included with the program.
+// If not, see http://www.gnu.org/licenses/
+
+// Official SVN repository and contact information can be found at
+// http://code.google.com/p/dolphin-emu/
+
+#include "Debugger.h"
+#include "Common.h"
+
+#include "BreakpointView.h"
+#include "Debugger/Debugger_BreakPoints.h"
+#include "Debugger/Debugger_SymbolMap.h"
+#include "PowerPC/SymbolDB.h"
+
+BEGIN_EVENT_TABLE(CBreakPointView, wxListCtrl)
+
+END_EVENT_TABLE()
+
+CBreakPointView::CBreakPointView(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
+ : wxListCtrl(parent, id, pos, size, style)
+{
+ SetFont(wxFont(9, wxSWISS, wxNORMAL, wxNORMAL, false, wxT("Segoe UI")));
+
+ Refresh();
+}
+
+
+void CBreakPointView::Update()
+{
+ ClearAll();
+
+ InsertColumn(0, wxT("Active"), wxLIST_FORMAT_LEFT, 50);
+ InsertColumn(1, wxT("Type"), wxLIST_FORMAT_LEFT, 50);
+ InsertColumn(2, wxT("Function"), wxLIST_FORMAT_CENTER, 200);
+ InsertColumn(3, wxT("Address"), wxLIST_FORMAT_LEFT, 100);
+ InsertColumn(4, wxT("Flags"), wxLIST_FORMAT_CENTER, 100);
+
+ char szBuffer[64];
+ const CBreakPoints::TBreakPoints& rBreakPoints = CBreakPoints::GetBreakPoints();
+ for (size_t i = 0; i < rBreakPoints.size(); i++)
+ {
+ const TBreakPoint& rBP = rBreakPoints[i];
+ if (!rBP.bTemporary)
+ {
+ wxString temp;
+ temp = wxString::FromAscii(rBP.bOn ? "on" : " ");
+ int Item = InsertItem(0, temp);
+ temp = wxString::FromAscii("BP");
+ SetItem(Item, 1, temp);
+
+ Symbol *symbol = g_symbolDB.GetSymbolFromAddr(rBP.iAddress);
+ if (symbol)
+ {
+ temp = wxString::FromAscii(g_symbolDB.GetDescription(rBP.iAddress));
+ SetItem(Item, 2, temp);
+ }
+
+ sprintf(szBuffer, "0x%08x", rBP.iAddress);
+ temp = wxString::FromAscii(szBuffer);
+ SetItem(Item, 3, temp);
+
+ SetItemData(Item, rBP.iAddress);
+ }
+ }
+
+ const CBreakPoints::TMemChecks& rMemChecks = CBreakPoints::GetMemChecks();
+ for (size_t i = 0; i < rMemChecks.size(); i++)
+ {
+ const TMemCheck& rMemCheck = rMemChecks[i];
+
+ wxString temp;
+ temp = wxString::FromAscii(rMemCheck.Break ? "on" : " ");
+ int Item = InsertItem(0, temp);
+ temp = wxString::FromAscii("MC");
+ SetItem(Item, 1, temp);
+
+ Symbol *symbol = g_symbolDB.GetSymbolFromAddr(rMemCheck.StartAddress);
+ if (symbol)
+ {
+ temp = wxString::FromAscii(g_symbolDB.GetDescription(rMemCheck.StartAddress));
+ SetItem(Item, 2, temp);
+ }
+
+ sprintf(szBuffer, "0x%08x to 0%08x", rMemCheck.StartAddress, rMemCheck.EndAddress);
+ temp = wxString::FromAscii(szBuffer);
+ SetItem(Item, 3, temp);
+
+ size_t c = 0;
+ if (rMemCheck.OnRead) szBuffer[c++] = 'r';
+ if (rMemCheck.OnWrite) szBuffer[c++] = 'w';
+ szBuffer[c] = 0x00;
+ temp = wxString::FromAscii(szBuffer);
+ SetItem(Item, 4, temp);
+
+ SetItemData(Item, rMemCheck.StartAddress);
+ }
+
+
+ Refresh();
+}
+
+void CBreakPointView::DeleteCurrentSelection()
+{
+ int Item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
+ if (Item >= 0)
+ {
+ u32 Address = (u32)GetItemData(Item);
+ CBreakPoints::DeleteElementByAddress(Address);
+ }
+}