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

Unified Diff: experimental/linux_oop_debugger/deb_helper.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_oop_debugger/deb_helper.cc
diff --git a/experimental/linux_oop_debugger/deb_helper.cc b/experimental/linux_oop_debugger/deb_helper.cc
deleted file mode 100644
index f067e87033e195f901f273240a8475ed71c66fcf..0000000000000000000000000000000000000000
--- a/experimental/linux_oop_debugger/deb_helper.cc
+++ /dev/null
@@ -1,35 +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.
-
-//----------------------debug_helper:end---------------------//
-#include <memory.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <unistd.h>
-namespace debug_helper {
-const int kOutputDebugStringSignal = SIGUSR1;
-const int kOutputDebugStringSize = 4 * 1024;
-void OutputDebugString_sigaction(int signo, siginfo_t* sig_inf, void* data) {}
-bool OutputDebugString_Init() {
- struct sigaction act;
- memset(&act, 0, sizeof(act));
- act.sa_flags = SA_SIGINFO;
- act.sa_sigaction = OutputDebugString_sigaction;
- int res = sigaction(kOutputDebugStringSignal, &act, NULL);
- return (0 == res);
-}
-bool OutputDebugString(const char* str) {
- static char static_buff[kOutputDebugStringSize + 1];
- size_t num = strlen(str) + 1;
- if (num > sizeof(static_buff))
- num = sizeof(static_buff);
- memcpy(static_buff, str, num);
- static_buff[num] = 0;
- sigval val;
- val.sival_ptr = static_buff;
- return (0 == sigqueue(getpid(), kOutputDebugStringSignal, val));
-}
-} // namesdpace debug_helper
-//----------------------debug_helper:end---------------------//
-
« no previous file with comments | « experimental/linux_debug_server/debugger/rsp/rsp_threads_packets.cc ('k') | experimental/linux_oop_debugger/debug_api_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698