1 #pragma once 2 3 /* 4 * Copyright (C) 2012 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 #include <memory> 20 #include <string> 21 #include <vector> 22 23 #include <unwindstack/Regs.h> 24 25 struct ThreadInfo { 26 std::unique_ptr<unwindstack::Regs> registers; 27 long tagged_addr_ctrl = -1; 28 29 pid_t uid; 30 31 pid_t tid; 32 std::string thread_name; 33 34 pid_t pid; 35 36 std::vector<std::string> command_line; 37 std::string selinux_label; 38 39 int signo = 0; 40 siginfo_t* siginfo = nullptr; 41 }; 42 43 // This struct is written into a pipe from inside the crashing process. 44 struct ProcessInfo { 45 uintptr_t abort_msg_address = 0; 46 uintptr_t fdsan_table_address = 0; 47 uintptr_t gwp_asan_state = 0; 48 uintptr_t gwp_asan_metadata = 0; 49 uintptr_t scudo_stack_depot = 0; 50 uintptr_t scudo_region_info = 0; 51 uintptr_t scudo_ring_buffer = 0; 52 53 bool has_fault_address = false; 54 uintptr_t untagged_fault_address = 0; 55 uintptr_t maybe_tagged_fault_address = 0; 56 }; 57