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

Side by Side Diff: src/trusted/gdb_rsp/target.h

Issue 10441152: Debug stub: suspend/resume threads on Linux Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/trusted/debug_stub/posix/thread_impl.cc ('k') | src/trusted/gdb_rsp/target.cc » ('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 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
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
OLDNEW
« no previous file with comments | « src/trusted/debug_stub/posix/thread_impl.cc ('k') | src/trusted/gdb_rsp/target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698