/art/runtime/ |
H A D | debugger.h | 18 * Dalvik-specific side of debugger support. (The JDWP code is intended to 55 DebugInvokeReq(uint32_t invoke_request_id, JDWP::ObjectId invoke_thread_id, 61 options(invoke_options), reply(JDWP::expandBufAlloc()) { 65 JDWP::expandBufFree(reply); 70 const JDWP::ObjectId thread_id; 80 JDWP::ExpandBuf* const reply; 92 SingleStepControl(JDWP::JdwpStepSize step_size, JDWP::JdwpStepDepth step_depth, 98 JDWP::JdwpStepSize GetStepSize() const { 102 JDWP [all...] |
H A D | debugger.cc | 151 // going to be called right after us. To avoid sending JDWP events twice for this location, 159 // sending JDWP events twice for this location, we report the event(s) in MethodExited. 201 // JDWP events in the same packet: METHOD_ENTRY, METHOD_EXIT, BREAKPOINT and/or SINGLE_STEP. 274 // JDWP is allowed unless the Zygote forbids it. 280 // JDWP options for debugging. Only valid if IsJdwpConfigured() is true. 281 static JDWP::JdwpOptions gJdwpOptions; 283 // Runtime JDWP state. 284 static JDWP::JdwpState* gJdwpState = nullptr; 350 static mirror::Array* DecodeNonNullArray(JDWP::RefTypeId id, JDWP [all...] |
H A D | runtime_options.def | 46 RUNTIME_OPTIONS_KEY (JDWP::JdwpOptions, JdwpOptions)
|
H A D | parsed_options.cc | 91 .WithType<JDWP::JdwpOptions>()
|
/art/runtime/jdwp/ |
H A D | object_registry.h | 48 JDWP::ObjectId id; 65 JDWP::ObjectId Add(mirror::Object* o) 69 JDWP::RefTypeId AddRefType(mirror::Class* c) 74 JDWP::ObjectId Add(Handle<T> obj_h) 78 JDWP::RefTypeId AddRefType(Handle<mirror::Class> c_h) 82 template<typename T> T Get(JDWP::ObjectId id, JDWP::JdwpError* error) 85 *error = JDWP::ERR_NONE; 93 void DisableCollection(JDWP::ObjectId id) 96 void EnableCollection(JDWP [all...] |
H A D | object_registry.cc | 38 JDWP::RefTypeId ObjectRegistry::AddRefType(mirror::Class* c) { 42 JDWP::RefTypeId ObjectRegistry::AddRefType(Handle<mirror::Class> c_h) { 46 JDWP::ObjectId ObjectRegistry::Add(mirror::Object* o) { 57 JDWP::ObjectId ObjectRegistry::Add(Handle<T> obj_h) { 68 JDWP::ObjectId ObjectRegistry::Add(Handle<mirror::Object> obj_h); 73 JDWP::ObjectId ObjectRegistry::Add(Handle<mirror::Throwable> obj_h); 76 JDWP::ObjectId ObjectRegistry::InternalAdd(Handle<T> obj_h) { 144 // 2. JDWP thread takes mutator lock exclusively after suspending all 146 // 3. GC thread waits for shared mutator lock which is held by JDWP 148 // 4. JDWP threa [all...] |
H A D | jdwp_expand_buf.h | 29 namespace JDWP { namespace in namespace:art 66 } // namespace JDWP
|
H A D | jdwp_event.h | 28 namespace JDWP { namespace in namespace:art 109 } // namespace JDWP
|
H A D | jdwp_event.cc | 47 Event posting can happen from any thread. The JDWP thread will not usually 48 post anything but VM start/death, but if a JDWP request causes a class 49 to be loaded, the ClassPrepare event will come from the JDWP thread. 72 JDWP thread: 93 holding the event token is very bad, because it prevents the JDWP thread 104 namespace JDWP { namespace in namespace:art 156 // listen to in order to properly report the given JDWP event to the debugger. 582 * SP_ALL - suspend everybody except JDWP support thread 584 void JdwpState::SuspendByPolicy(JdwpSuspendPolicy suspend_policy, JDWP::ObjectId thread_self_id) { 598 LOG(INFO) << "NOTE: SuspendByPolicy not suspending JDWP threa [all...] |
H A D | jdwp_priv.h | 17 * 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 D | jdwp_handler.cc | 40 namespace JDWP { namespace in namespace:art 115 JDWP::JdwpError error = Dbg::PrepareInvokeMethod(request->GetId(), thread_id, object_id, 118 if (error == JDWP::ERR_NONE) { 132 // JDWP version numbers, major and minor. 161 JDWP::JdwpTypeTag type_tag; 163 JDWP::JdwpError status = Dbg::GetClassInfo(ids[i], &type_tag, &class_status, nullptr); 180 * to be suspended, and that violates some JDWP expectations. 354 std::vector<JDWP::RefTypeId> classes; 361 JDWP::JdwpTypeTag type_tag; 364 JDWP [all...] |
H A D | jdwp_bits.h | 29 namespace JDWP { namespace in namespace:art 120 } // namespace JDWP
|
H A D | jdwp_constants.h | 17 * 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 D | jdwp_expand_buf.cc | 18 * primitive values, e.g. JDWP replies. 32 namespace JDWP { namespace in namespace:art 186 } // namespace JDWP
|
H A D | jdwp_request.cc | 26 namespace JDWP { namespace in namespace:art 183 } // namespace JDWP
|
H A D | jdwp.h | 48 namespace JDWP { namespace in namespace:art 82 * Holds a JDWP "location". 121 * State for JDWP functions. 146 * Returns the Thread* for the JDWP daemon thread. 157 // Acquires/releases the JDWP synchronization token for the debugger 164 // Acquires/releases the JDWP synchronization token for the event thread 182 * JDWP support thread) to be suspended. 193 * single-stepping, and method entry/exit. (JDWP requires that these four 302 void SuspendByPolicy(JdwpSuspendPolicy suspend_policy, JDWP::ObjectId thread_self_id) 332 * The thread wanting "exclusive" access to the JDWP worl [all...] |
H A D | jdwp_main.cc | 32 namespace JDWP { namespace in namespace:art 113 // Only called from the JDWP thread. 119 VLOG(jdwp) << "+++ closing JDWP connection on fd " << clientSock; 159 VLOG(jdwp) << "Not sending JDWP packet: no debugger attached!"; 171 PLOG(ERROR) << StringPrintf("Failed to send JDWP packet %c%c%c%c to debugger (%zd of %zu)", 183 VLOG(jdwp) << "Not sending JDWP packet: no debugger attached!"; 190 PLOG(ERROR) << StringPrintf("Failed to send JDWP packet to debugger (%zd of %zu)", 213 thread_start_lock_("JDWP thread start lock", kJdwpStartLock), 214 thread_start_cond_("JDWP thread start condition variable", thread_start_lock_), 221 attach_lock_("JDWP attac [all...] |
H A D | jdwp_adb.cc | 32 * The JDWP <-> ADB transport protocol is explained in detail 35 * 1/ when the JDWP thread starts, it tries to connect to a Unix 44 * a given JDWP debugger, that can be used to read the usual 45 * JDWP-handshake, etc... 53 namespace JDWP { namespace in namespace:art 120 * runs in the main thread, before the JDWP thread starts, so it shouldn't 178 * JDWP thread. 243 PLOG(ERROR) << "Weird, can't send JDWP process pid to ADB"; 443 } // namespace JDWP
|
H A D | jdwp_socket.cc | 35 namespace JDWP { namespace in namespace:art 41 * JDWP network state. 88 LOG(ERROR) << "JDWP net startup failed (req port=" << options->port << ")"; 96 LOG(INFO) << "JDWP will wait for debugger on port " << port; 98 LOG(INFO) << "JDWP will " << (options->server ? "listen" : "connect") << " on port " << port; 105 * Initialize JDWP stuff. 166 * Shut down JDWP listener. Don't free state. 168 * This may be called from a non-JDWP thread as part of shutting the 169 * JDWP thread down. 196 * packets until the previous transmissions have been acked. JDWP doe [all...] |
/art/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 122 JDWP::Append4BE(bytes, t->GetThreadId()); 123 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); 124 JDWP::Append4BE(bytes, t->GetTid()); 125 JDWP::Append4BE(bytes, utime); 126 JDWP::Append4BE(bytes, stime); 127 JDWP::Append1BE(bytes, t->IsDaemon()); 140 JDWP::Append1BE(bytes, kThstHeaderLen); 141 JDWP::Append1BE(bytes, kThstBytesPerEntry); 142 JDWP::Append2BE(bytes, thread_count);
|
/art/cmdline/ |
H A D | cmdline_parser_test.cc | 369 JDWP::JdwpOptions opt = JDWP::JdwpOptions(); 370 opt.transport = JDWP::JdwpTransportType::kJdwpTransportSocket; 383 JDWP::JdwpOptions opt = JDWP::JdwpOptions(); 384 opt.transport = JDWP::JdwpTransportType::kJdwpTransportSocket;
|
H A D | cmdline_types.h | 60 struct CmdlineType<JDWP::JdwpOptions> : CmdlineTypeParser<JDWP::JdwpOptions> { 62 * Handle one of the JDWP name/value pairs. 64 * JDWP options are: 92 JDWP::JdwpOptions jdwp_options; 98 "Can't parse JDWP option '" + jdwp_option + "' in '" + options + "'"); 105 // We fail to parse this JDWP option. 110 if (jdwp_options.transport == JDWP::kJdwpTransportUnknown) { 111 return Result::Failure(s + "Must specify JDWP transport: " + options); 114 return Result::Failure(s + "Must specify JDWP hos [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 396 NetStateEndianOutput(JDWP::JdwpNetStateBase* net_state, size_t reserved_size) 412 JDWP::JdwpNetStateBase* net_state_; 790 JDWP::JdwpState* state = Dbg::GetJdwpState(); 792 JDWP::JdwpNetStateBase* net_state = state->netState;
|
/art/test/ |
H A D | Android.run-test.mk | 362 # very hard to write here, as (for a complete test) JDWP must be set up.
|