| 93 | } |
| 94 | |
| 95 | std::string CrashReporter::GetBacktrace() |
| 96 | { |
| 97 | std::ifstream f(backtracePath_, std::ios::in | std::ios::binary); |
| 98 | if (!f.good()) return {}; |
| 99 | std::string bt; |
| 100 | f.seekg(0, std::ios::end); |
| 101 | auto btSize = f.tellg(); |
| 102 | bt.resize(btSize); |
| 103 | f.seekg(0, std::ios::beg); |
| 104 | f.read(bt.data(), btSize); |
| 105 | return bt; |
| 106 | } |
| 107 | |
| 108 | bool CrashReporter::ShowUploadConfirmationDialog() |
| 109 | { |