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

Side by Side Diff: src/trusted/debug_stub/target.cc

Issue 891603002: Removes the name service from the service runtime (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Fixes code review comments Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/public/name_service.h ('k') | src/trusted/reverse_service/reverse_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 12
13 #include "native_client/src/include/build_config.h" 13 #include "native_client/src/include/build_config.h"
14 #include "native_client/src/include/nacl_scoped_ptr.h" 14 #include "native_client/src/include/nacl_scoped_ptr.h"
15 #include "native_client/src/shared/platform/nacl_check.h" 15 #include "native_client/src/shared/platform/nacl_check.h"
16 #include "native_client/src/shared/platform/nacl_exit.h" 16 #include "native_client/src/shared/platform/nacl_exit.h"
17 #include "native_client/src/shared/platform/nacl_log.h" 17 #include "native_client/src/shared/platform/nacl_log.h"
18 #include "native_client/src/trusted/debug_stub/abi.h" 18 #include "native_client/src/trusted/debug_stub/abi.h"
19 #include "native_client/src/trusted/debug_stub/packet.h" 19 #include "native_client/src/trusted/debug_stub/packet.h"
20 #include "native_client/src/trusted/debug_stub/platform.h" 20 #include "native_client/src/trusted/debug_stub/platform.h"
21 #include "native_client/src/trusted/debug_stub/session.h" 21 #include "native_client/src/trusted/debug_stub/session.h"
22 #include "native_client/src/trusted/debug_stub/target.h" 22 #include "native_client/src/trusted/debug_stub/target.h"
23 #include "native_client/src/trusted/debug_stub/thread.h" 23 #include "native_client/src/trusted/debug_stub/thread.h"
24 #include "native_client/src/trusted/debug_stub/util.h" 24 #include "native_client/src/trusted/debug_stub/util.h"
25 #include "native_client/src/trusted/desc/nacl_desc_base.h"
25 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h" 26 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h"
26 #include "native_client/src/trusted/service_runtime/sel_ldr.h" 27 #include "native_client/src/trusted/service_runtime/sel_ldr.h"
27 #include "native_client/src/trusted/service_runtime/thread_suspension.h" 28 #include "native_client/src/trusted/service_runtime/thread_suspension.h"
28 29
29 #if NACL_WINDOWS 30 #if NACL_WINDOWS
30 #define snprintf sprintf_s 31 #define snprintf sprintf_s
31 #endif 32 #endif
32 33
33 using std::string; 34 using std::string;
34 35
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 *signal = thread->GetFaultSignal(); 1115 *signal = thread->GetFaultSignal();
1115 *thread_id = thread->GetId(); 1116 *thread_id = thread->GetId();
1116 thread->UnqueueFaultedThread(); 1117 thread->UnqueueFaultedThread();
1117 return; 1118 return;
1118 } 1119 }
1119 } 1120 }
1120 NaClLog(LOG_FATAL, "UnqueueAnyFaultedThread: No threads queued\n"); 1121 NaClLog(LOG_FATAL, "UnqueueAnyFaultedThread: No threads queued\n");
1121 } 1122 }
1122 1123
1123 } // namespace gdb_rsp 1124 } // namespace gdb_rsp
OLDNEW
« no previous file with comments | « src/public/name_service.h ('k') | src/trusted/reverse_service/reverse_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698