| 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 | 7 |
| 8 // This module provides interfaces for accessing the debugging state of | 8 // This module provides interfaces for accessing the debugging state of |
| 9 // the target. The target can use either the thread that took the | 9 // the target. The target can use either the thread that took the |
| 10 // exception or run in it's own thread. To respond to the host, the | 10 // exception or run in it's own thread. To respond to the host, the |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 ThreadMap_t threads_; | 140 ThreadMap_t threads_; |
| 141 ThreadMap_t::const_iterator threadItr_; | 141 ThreadMap_t::const_iterator threadItr_; |
| 142 BreakMap_t breakMap_; | 142 BreakMap_t breakMap_; |
| 143 | 143 |
| 144 | 144 |
| 145 PropertyMap_t properties_; | 145 PropertyMap_t properties_; |
| 146 | 146 |
| 147 uint8_t *ctx_; // Context Scratchpad | 147 uint8_t *ctx_; // Context Scratchpad |
| 148 | 148 |
| 149 bool stepping_over_breakpoint_; |
| 150 |
| 149 // The current signal and signaling thread data is protected by | 151 // The current signal and signaling thread data is protected by |
| 150 // the mutex, and can only be owned by one thread at a time. | 152 // the mutex, and can only be owned by one thread at a time. |
| 151 // These values should only be written via the "Signal" member, | 153 // These values should only be written via the "Signal" member, |
| 152 // which will ensure that a new signal does not overwrite a | 154 // which will ensure that a new signal does not overwrite a |
| 153 // previous signal. | 155 // previous signal. |
| 154 volatile int8_t cur_signal_; | 156 volatile int8_t cur_signal_; |
| 155 volatile uint32_t sig_thread_; | 157 volatile uint32_t sig_thread_; |
| 156 | 158 |
| 157 uint32_t run_thread_; // Which thread to issue step commands on | 159 uint32_t run_thread_; // Which thread to issue step commands on |
| 158 uint32_t reg_thread_; // Which thread to issue context (reg) commands on | 160 uint32_t reg_thread_; // Which thread to issue context (reg) commands on |
| 159 uint64_t mem_base_; | 161 uint64_t mem_base_; |
| 160 }; | 162 }; |
| 161 | 163 |
| 162 | 164 |
| 163 } // namespace gdb_rsp | 165 } // namespace gdb_rsp |
| 164 | 166 |
| 165 #endif // SRC_TRUSTED_GDB_RSP_TARGET_H_ | 167 #endif // SRC_TRUSTED_GDB_RSP_TARGET_H_ |
| 166 | 168 |
| OLD | NEW |