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

Unified Diff: experimental/windows_debugger/debugger/core/debug_breakpoint.h

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/debug_breakpoint.h
diff --git a/experimental/windows_debugger/debugger/core/debug_breakpoint.h b/experimental/windows_debugger/debugger/core/debug_breakpoint.h
deleted file mode 100644
index 7cc4adf697126d4f7ad679c033cfc63ba7b00f1d..0000000000000000000000000000000000000000
--- a/experimental/windows_debugger/debugger/core/debug_breakpoint.h
+++ /dev/null
@@ -1,58 +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.
-#ifndef DEBUGGER_CORE_DEBUG_BREAKPOINT_H_
-#define DEBUGGER_CORE_DEBUG_BREAKPOINT_H_
-
-namespace debug {
-class IDebuggeeProcess;
-
-/// This class represents a physical breakpoint.
-
-/// Breakpoint is identified by flat address in debuggee process.
-/// Breakpoint is implemented by writing 'int 3' (0xCC) in the specified
-/// location in debuggee memory.
-///
-/// Class diagram (and more) is here:
-/// https://docs.google.com/a/google.com/document/d/1lTN-IYqDd_oy9XQg9-zlNc_vbg-qyr4q2MKNEjhSA84/edit?hl=en&authkey=CJyJlOgF#
-class Breakpoint {
- public:
- Breakpoint();
- Breakpoint(void* address, IDebuggeeProcess* process);
- ~Breakpoint() {}
-
- void* address() const;
- unsigned char original_code_byte() const;
-
- /// @return true iff |Init| operation succeeded.
- bool is_valid() const;
-
- /// Copies original byte at breakpoint address into original_code_byte_.
- /// Writes a breakpoint instruction code (0xCC) in memory position
- /// specified by breakpoint address.
- /// Should be called once.
- /// @return true if read and write succeeded.
- bool Init();
-
- /// Writes a breakpoint instruction code (0xCC) in memory position
- /// specified by breakpoint address.
- /// @return true if write succeeded.
- bool WriteBreakpointCode();
-
- /// Writes an original code in memory position specified
- /// by breakpoint address.
- /// @return true if write succeeded.
- bool RecoverCodeAtBreakpoint();
-
- private:
- void* address_;
- unsigned char original_code_byte_;
- bool is_valid_;
- IDebuggeeProcess* process_;
-
- Breakpoint(const Breakpoint&); // DISALLOW_COPY_AND_ASSIGN
- void operator=(const Breakpoint&);
-};
-} // namespace debug
-#endif // DEBUGGER_CORE_DEBUG_BREAKPOINT_H_
-

Powered by Google App Engine
This is Rietveld 408576698