| 53 | } |
| 54 | |
| 55 | pid_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 | |
| 69 | bool ProcessSnapshotLinux::InitializeException( |
| 70 | LinuxVMAddress exception_info_address, |