| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 | 6 |
| 7 // This module provides interfaces for accessing the debugging state of | 7 // This module provides interfaces for accessing the debugging state of |
| 8 // the target. The target can use either the thread that took the | 8 // the target. The target can use either the thread that took the |
| 9 // exception or run in it's own thread. To respond to the host, the | 9 // exception or run in its own thread. To respond to the host, the |
| 10 // application must call the run function with a valid Transport | 10 // application must call the run function with a valid Transport |
| 11 // which will then be polled for commands. The target will return | 11 // which will then be polled for commands. The target will return |
| 12 // from Run when the host disconnects, or requests a continue. | 12 // from Run when the host disconnects, or requests a continue. |
| 13 // | 13 // |
| 14 // The object is protected by a mutex, so that it is legal to track or | 14 // The object is protected by a mutex, so that it is legal to track or |
| 15 // ignore threads as an exception takes place. | 15 // ignore threads as an exception takes place. |
| 16 // | 16 // |
| 17 // The Run function expects that all threads of interest are stopped | 17 // The Run function expects that all threads of interest are stopped |
| 18 // with the Step flag cleared before Run is called. It is expected that | 18 // with the Step flag cleared before Run is called. It is expected that |
| 19 // and that all threads are updated with thier modified contexts and | 19 // and that all threads are updated with thier modified contexts and |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 uint32_t run_thread_; // Which thread to issue step commands on | 150 uint32_t run_thread_; // Which thread to issue step commands on |
| 151 uint32_t reg_thread_; // Which thread to issue context (reg) commands on | 151 uint32_t reg_thread_; // Which thread to issue context (reg) commands on |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 | 154 |
| 155 } // namespace gdb_rsp | 155 } // namespace gdb_rsp |
| 156 | 156 |
| 157 #endif // NATIVE_CLIENT_GDB_RSP_TARGET_H_ | 157 #endif // NATIVE_CLIENT_GDB_RSP_TARGET_H_ |
| 158 | 158 |
| OLD | NEW |