Searched refs:JDWP (Results 1 - 24 of 24) sorted by relevance

/art/runtime/
H A Ddebugger.h18 * Dalvik-specific side of debugger support. (The JDWP code is intended to
58 DebugInvokeReq(uint32_t invoke_request_id, JDWP::ObjectId invoke_thread_id,
64 options(invoke_options), reply(JDWP::expandBufAlloc()) {
68 JDWP::expandBufFree(reply);
73 const JDWP::ObjectId thread_id;
83 JDWP::ExpandBuf* const reply;
95 SingleStepControl(JDWP::JdwpStepSize step_size, JDWP::JdwpStepDepth step_depth,
101 JDWP::JdwpStepSize GetStepSize() const {
105 JDWP
[all...]
H A Ddebugger.cc161 // going to be called right after us. To avoid sending JDWP events twice for this location,
169 // sending JDWP events twice for this location, we report the event(s) in MethodExited.
211 // JDWP events in the same packet: METHOD_ENTRY, METHOD_EXIT, BREAKPOINT and/or SINGLE_STEP.
284 // JDWP is allowed unless the Zygote forbids it.
290 // JDWP options for debugging. Only valid if IsJdwpConfigured() is true.
291 static JDWP::JdwpOptions gJdwpOptions;
293 // Runtime JDWP state.
294 static JDWP::JdwpState* gJdwpState = nullptr;
363 static mirror::Array* DecodeNonNullArray(JDWP::RefTypeId id, JDWP
[all...]
H A Druntime_options.def46 RUNTIME_OPTIONS_KEY (JDWP::JdwpOptions, JdwpOptions)
H A Dparsed_options.cc92 .WithType<JDWP::JdwpOptions>()
/art/runtime/jdwp/
H A Dobject_registry.h49 JDWP::ObjectId id;
67 JDWP::ObjectId Add(ObjPtr<mirror::Object> o)
71 JDWP::RefTypeId AddRefType(ObjPtr<mirror::Class> c)
76 JDWP::ObjectId Add(Handle<T> obj_h)
80 JDWP::RefTypeId AddRefType(Handle<mirror::Class> c_h)
84 template<typename T> T Get(JDWP::ObjectId id, JDWP::JdwpError* error)
87 *error = JDWP::ERR_NONE;
95 void DisableCollection(JDWP::ObjectId id)
98 void EnableCollection(JDWP
[all...]
H A Dobject_registry.cc45 JDWP::RefTypeId ObjectRegistry::AddRefType(ObjPtr<mirror::Class> c) {
49 JDWP::RefTypeId ObjectRegistry::AddRefType(Handle<mirror::Class> c_h) {
53 JDWP::ObjectId ObjectRegistry::Add(ObjPtr<mirror::Object> o) {
64 JDWP::ObjectId ObjectRegistry::Add(Handle<T> obj_h) {
75 JDWP::ObjectId ObjectRegistry::Add(Handle<mirror::Object> obj_h);
80 JDWP::ObjectId ObjectRegistry::Add(Handle<mirror::Throwable> obj_h);
83 JDWP::ObjectId ObjectRegistry::InternalAdd(Handle<T> obj_h) {
153 // 2. JDWP thread takes mutator lock exclusively after suspending all
155 // 3. GC thread waits for shared mutator lock which is held by JDWP
157 // 4. JDWP threa
[all...]
H A Djdwp_expand_buf.h29 namespace JDWP { namespace in namespace:art
66 } // namespace JDWP
H A Djdwp_event.h28 namespace JDWP { namespace in namespace:art
109 } // namespace JDWP
H A Djdwp_priv.h17 * JDWP internal interfaces.
30 * JDWP constants.
41 static constexpr const char kMagicHandshake[] = "JDWP-Handshake";
63 namespace JDWP { namespace in namespace:art
119 // Are we waiting for the JDWP handshake?
123 } // namespace JDWP
H A Djdwp_handler.cc41 namespace JDWP { namespace in namespace:art
118 JDWP::JdwpError error = Dbg::PrepareInvokeMethod(request->GetId(), thread_id, object_id,
121 if (error == JDWP::ERR_NONE) {
135 // JDWP version numbers, major and minor.
164 JDWP::JdwpTypeTag type_tag;
166 JDWP::JdwpError status = Dbg::GetClassInfo(ids[i], &type_tag, &class_status, nullptr);
183 * to be suspended, and that violates some JDWP expectations.
357 std::vector<JDWP::RefTypeId> classes;
364 JDWP::JdwpTypeTag type_tag;
367 JDWP
[all...]
H A Djdwp_event.cc48 Event posting can happen from any thread. The JDWP thread will not usually
49 post anything but VM start/death, but if a JDWP request causes a class
50 to be loaded, the ClassPrepare event will come from the JDWP thread.
73 JDWP thread:
94 holding the event token is very bad, because it prevents the JDWP thread
105 namespace JDWP { namespace in namespace:art
159 // listen to in order to properly report the given JDWP event to the debugger.
622 * SP_ALL - suspend everybody except JDWP support thread
624 void JdwpState::SuspendByPolicy(JdwpSuspendPolicy suspend_policy, JDWP::ObjectId thread_self_id) {
638 LOG(INFO) << "NOTE: SuspendByPolicy not suspending JDWP threa
[all...]
H A Djdwp_bits.h29 namespace JDWP { namespace in namespace:art
129 } // namespace JDWP
H A Djdwp_constants.h17 * These come out of the JDWP documentation.
26 namespace JDWP { namespace in namespace:art
130 EK_VM_DISCONNECTED = 100, // "Never sent across JDWP".
245 } // namespace JDWP
H A Djdwp_expand_buf.cc18 * primitive values, e.g. JDWP replies.
32 namespace JDWP { namespace in namespace:art
186 } // namespace JDWP
H A Djdwp_request.cc27 namespace JDWP { namespace in namespace:art
184 } // namespace JDWP
H A Djdwp.h49 namespace JDWP { namespace in namespace:art
83 * Holds a JDWP "location".
122 * State for JDWP functions.
147 * Returns the Thread* for the JDWP daemon thread.
158 // Acquires/releases the JDWP synchronization token for the debugger
165 // Acquires/releases the JDWP synchronization token for the event thread
183 * JDWP support thread) to be suspended.
194 * single-stepping, and method entry/exit. (JDWP requires that these four
307 void SuspendByPolicy(JdwpSuspendPolicy suspend_policy, JDWP::ObjectId thread_self_id)
337 * The thread wanting "exclusive" access to the JDWP worl
[all...]
H A Djdwp_main.cc34 namespace JDWP { namespace in namespace:art
117 // Only called from the JDWP thread.
123 VLOG(jdwp) << "+++ closing JDWP connection on fd " << clientSock;
163 VLOG(jdwp) << "Not sending JDWP packet: no debugger attached!";
175 PLOG(ERROR) << StringPrintf("Failed to send JDWP packet %c%c%c%c to debugger (%zd of %zu)",
187 VLOG(jdwp) << "Not sending JDWP packet: no debugger attached!";
194 PLOG(ERROR) << StringPrintf("Failed to send JDWP packet to debugger (%zd of %zu)",
217 thread_start_lock_("JDWP thread start lock", kJdwpStartLock),
218 thread_start_cond_("JDWP thread start condition variable", thread_start_lock_),
225 attach_lock_("JDWP attac
[all...]
H A Djdwp_adb.cc34 * The JDWP <-> ADB transport protocol is explained in detail
37 * 1/ when the JDWP thread starts, it tries to connect to a Unix
46 * a given JDWP debugger, that can be used to read the usual
47 * JDWP-handshake, etc...
63 namespace JDWP { namespace in namespace:art
151 * runs in the main thread, before the JDWP thread starts, so it shouldn't
210 * JDWP thread.
286 PLOG(ERROR) << "Weird, can't send JDWP process pid to ADB";
491 } // namespace JDWP
H A Djdwp_socket.cc36 namespace JDWP { namespace in namespace:art
42 * JDWP network state.
89 LOG(ERROR) << "JDWP net startup failed (req port=" << options->port << ")";
97 LOG(INFO) << "JDWP will wait for debugger on port " << port;
99 LOG(INFO) << "JDWP will " << (options->server ? "listen" : "connect") << " on port " << port;
106 * Initialize JDWP stuff.
169 * Shut down JDWP listener. Don't free state.
171 * This may be called from a non-JDWP thread as part of shutting the
172 * JDWP thread down.
199 * packets until the previous transmissions have been acked. JDWP doe
[all...]
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc121 JDWP::Append4BE(bytes, t->GetThreadId());
122 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState()));
123 JDWP::Append4BE(bytes, t->GetTid());
124 JDWP::Append4BE(bytes, utime);
125 JDWP::Append4BE(bytes, stime);
126 JDWP::Append1BE(bytes, t->IsDaemon());
139 JDWP::Append1BE(bytes, kThstHeaderLen);
140 JDWP::Append1BE(bytes, kThstBytesPerEntry);
141 JDWP::Append2BE(bytes, thread_count);
/art/cmdline/
H A Dcmdline_parser_test.cc373 JDWP::JdwpOptions opt = JDWP::JdwpOptions();
374 opt.transport = JDWP::JdwpTransportType::kJdwpTransportSocket;
387 JDWP::JdwpOptions opt = JDWP::JdwpOptions();
388 opt.transport = JDWP::JdwpTransportType::kJdwpTransportSocket;
H A Dcmdline_types.h64 struct CmdlineType<JDWP::JdwpOptions> : CmdlineTypeParser<JDWP::JdwpOptions> {
66 * Handle one of the JDWP name/value pairs.
68 * JDWP options are:
96 JDWP::JdwpOptions jdwp_options;
102 "Can't parse JDWP option '" + jdwp_option + "' in '" + options + "'");
109 // We fail to parse this JDWP option.
114 if (jdwp_options.transport == JDWP::kJdwpTransportUnknown) {
115 return Result::Failure(s + "Must specify JDWP transport: " + options);
118 return Result::Failure(s + "Must specify JDWP hos
[all...]
/art/runtime/hprof/
H A Dhprof.cc415 NetStateEndianOutput(JDWP::JdwpNetStateBase* net_state, size_t reserved_size)
431 JDWP::JdwpNetStateBase* net_state_;
811 JDWP::JdwpState* state = Dbg::GetJdwpState();
813 JDWP::JdwpNetStateBase* net_state = state->netState;
/art/runtime/openjdkjvmti/
H A Dti_redefine.cc1183 art::JDWP::JdwpState* state = art::Dbg::GetJdwpState();

Completed in 212 milliseconds