MCPcopy Create free account
hub / github.com/chromium/crashpad / FindThreadWithStackAddress

Method FindThreadWithStackAddress

snapshot/linux/process_snapshot_linux.cc:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55pid_t ProcessSnapshotLinux::FindThreadWithStackAddress(
56 VMAddress stack_address) {
57 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
58
59 for (const auto& thread : process_reader_.Threads()) {
60 if (stack_address >= thread.stack_region_address &&
61 stack_address <
62 thread.stack_region_address + thread.stack_region_size) {
63 return thread.tid;
64 }
65 }
66 return -1;
67}
68
69bool ProcessSnapshotLinux::InitializeException(
70 LinuxVMAddress exception_info_address,

Callers 2

HandleExceptionMethod · 0.80
CaptureSnapshotFunction · 0.80

Calls 1

ThreadsMethod · 0.45

Tested by 1

HandleExceptionMethod · 0.64