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

Unified Diff: experimental/linux_debug_server/debugger/core/debuggee_thread.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/linux_debug_server/debugger/core/debuggee_thread.cc
diff --git a/experimental/linux_debug_server/debugger/core/debuggee_thread.cc b/experimental/linux_debug_server/debugger/core/debuggee_thread.cc
deleted file mode 100755
index 37463f7c2b21186291a647e674de0818748b70a3..0000000000000000000000000000000000000000
--- a/experimental/linux_debug_server/debugger/core/debuggee_thread.cc
+++ /dev/null
@@ -1,39 +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_thread.h"
-#include "debugger/core/debug_api.h"
-#include <signal.h>
-
-namespace debug {
-DebuggeeThread::DebuggeeThread(int id, DebugAPI* debug_api)
- : id_(id),
- state_(RUNNING),
- debug_api_(debug_api) {
-}
-
-DebugAPI& DebuggeeThread::debug_api() {
- return *debug_api_;
-}
-
-bool DebuggeeThread::Continue() {
- if (RUNNING == state_)
- return false;
-
- int signal_to_pass = last_debug_event_.signal_no_;
- if (SIGTRAP == signal_to_pass) // TODO: shall we pass 0 for SIGSTOP too?
- signal_to_pass = 0;
-
- bool res = debug_api().ContinueDebugEvent(id_, signal_to_pass);
- if (res)
- state_ = RUNNING;
- return res;
-}
-
-void DebuggeeThread::OnDebugEvent(const DebugEvent& debug_event) {
- last_debug_event_ = debug_event;
- state_ = debug_event.process_state_;
-}
-
-} // namespace debug
-

Powered by Google App Engine
This is Rietveld 408576698