Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2873)

Unified Diff: experimental/windows_debugger/debugger/core/debuggee_process_mock.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/windows_debugger/debugger/core/debuggee_process_mock.cc
diff --git a/experimental/windows_debugger/debugger/core/debuggee_process_mock.cc b/experimental/windows_debugger/debugger/core/debuggee_process_mock.cc
deleted file mode 100644
index f2eb3171f0315e8a4fe9014465ae51b153129716..0000000000000000000000000000000000000000
--- a/experimental/windows_debugger/debugger/core/debuggee_process_mock.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#include "debugger/core/debuggee_process_mock.h"
-
-namespace debug {
-DebuggeeProcessMock::DebuggeeProcessMock(DebugAPI* debug_api)
- : debug_api_(debug_api),
- nexe_mem_base_(NULL),
- nexe_entry_point_(NULL) {
- memset(buff_, kFillChar, sizeof(buff_));
-}
-
-bool DebuggeeProcessMock::ReadMemory(const void* addr,
- size_t size,
- void* destination) {
- intptr_t offset = reinterpret_cast<int>(addr);
- if ((offset < sizeof(buff_)) &&
- ((offset + size) <= sizeof(buff_))) {
- memcpy(destination, &buff_[offset], size);
- return true;
- }
- return false;
-}
-
-bool DebuggeeProcessMock::WriteMemory(const void* addr,
- size_t size,
- const void* source) {
- intptr_t offset = reinterpret_cast<int>(addr);
- if ((offset < sizeof(buff_)) &&
- ((offset + size) <= sizeof(buff_))) {
- memcpy(&buff_[offset], source, size);
- return true;
- }
- return false;
-}
-} // namespace debug
-

Powered by Google App Engine
This is Rietveld 408576698