OLD | NEW |
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 Loading... |
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 |
OLD | NEW |