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

Unified Diff: experimental/linux_debug_server/debugger/core/debug_api.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/linux_debug_server/debugger/core/debug_api.h
diff --git a/experimental/linux_debug_server/debugger/core/debug_api.h b/experimental/linux_debug_server/debugger/core/debug_api.h
deleted file mode 100755
index d2331017c55de44221f6584f25ded309432fd3db..0000000000000000000000000000000000000000
--- a/experimental/linux_debug_server/debugger/core/debug_api.h
+++ /dev/null
@@ -1,53 +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_API_H_
-#define DEBUGGER_CORE_DEBUG_API_H_
-#include <sys/ptrace.h>
-#include <sys/types.h>
-#include <sys/user.h>
-#include <string>
-
-#include "debugger/base/debug_blob.h"
-#include "debugger/core/debug_event.h"
-
-namespace debug {
-/// This class is a layer on top of linux ptrace() syscall.
-class DebugAPI {
- public:
- DebugAPI() {}
-
- bool StartProcess(const char* cmd_line, bool trace, pid_t* child_pid_out);
- bool SetupProc(pid_t pid);
-
- bool WaitForDebugEvent(DebugEvent* de);
-
- bool ContinueDebugEvent(pid_t pid, int signo);
- bool SingleStep(pid_t pid);
- bool PostSignal(pid_t pid, int signo);
- bool DebugBreak(pid_t pid);
-
- bool ReadMemory(pid_t pid,
- uint64_t addr,
- void* dest,
- size_t size,
- size_t* readed_bytes_out);
-
- bool WriteMemory(pid_t pid,
- uint64_t addr,
- void* src,
- size_t size,
- size_t* written_bytes_out);
-
- bool ReadThreadContext(pid_t pid, user_regs_struct* context);
- bool WriteThreadContext(pid_t pid, user_regs_struct* context);
-
- bool ReadDebugString(const DebugEvent& de, std::string* string);
-
- private:
- DebugAPI(const DebugAPI&); // DISALLOW_COPY_AND_ASSIGN
- void operator=(const DebugAPI&);
-};
-} // namespace debug
-#endif // DEBUGGER_CORE_DEBUG_API_H_
-

Powered by Google App Engine
This is Rietveld 408576698