-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[crashpad]:添加,等待vcpkg修复linux下编译[#38322](microsoft/vcpkg#38322);
[automic queue]:移除;
- Loading branch information
Showing
32 changed files
with
282 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_executable(Breakpad main.cc breakpad.cc breakpad.hpp) | ||
target_link_libraries(Breakpad PRIVATE unofficial::breakpad::libbreakpad | ||
unofficial::breakpad::libbreakpad_client) | ||
add_executable(breakpad_test main.cc breakpad.cc breakpad.hpp) | ||
target_link_libraries( | ||
breakpad_test PRIVATE unofficial::breakpad::libbreakpad | ||
unofficial::breakpad::libbreakpad_client) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
#include "breakpad.hpp" | ||
|
||
auto main(int argc, char *argv[]) -> int | ||
#include <filesystem> | ||
|
||
void crash() | ||
{ | ||
Breakpad breakpad("./"); | ||
int *p = nullptr; | ||
*p = 1; | ||
} | ||
|
||
auto main(int argc, char *argv[]) -> int | ||
{ | ||
auto dumpPath = std::filesystem::current_path() / "breakpad"; | ||
if (!std::filesystem::exists(dumpPath)) { | ||
std::filesystem::create_directory(dumpPath); | ||
} | ||
|
||
Breakpad breakpad(dumpPath.string()); | ||
|
||
crash(); | ||
|
||
return 0; | ||
} |
Oops, something went wrong.