linux: Remove global variables in crash reporter.
This commit is contained in:
parent
ce6f9f20bf
commit
6134b9ed38
4 changed files with 28 additions and 102 deletions
|
@ -19,17 +19,13 @@ typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage;
|
|||
struct BreakpadInfo {
|
||||
int fd; // File descriptor to the Breakpad dump data.
|
||||
const char* filename; // Path to the Breakpad dump data.
|
||||
#if defined(ADDRESS_SANITIZER)
|
||||
const char* log_filename; // Path to the ASan log file.
|
||||
const char* asan_report_str; // ASan report.
|
||||
unsigned asan_report_length; // Length of |asan_report_length|.
|
||||
#endif
|
||||
const char* distro; // Linux distro string.
|
||||
unsigned distro_length; // Length of |distro|.
|
||||
bool upload; // Whether to upload or save crash dump.
|
||||
uint64_t process_start_time; // Uptime of the crashing process.
|
||||
size_t oom_size; // Amount of memory requested if OOM.
|
||||
uint64_t pid; // PID where applicable.
|
||||
const char* upload_url; // URL to upload the minidump.
|
||||
CrashKeyStorage* crash_keys;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue