Merge pull request #11061 from marcelofg55/dump_backtrace

Add a segfault handler to dump the backtrace on Windows, Linux and OS X
This commit is contained in:
Hein-Pieter van Braam 2017-09-13 18:05:31 +02:00 committed by GitHub
commit d6b392825f
23 changed files with 787 additions and 24 deletions

View file

@ -72,6 +72,10 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
screen--;
}
if (OS::get_singleton()->is_disable_crash_handler()) {
args.push_back("--disable-crash-handler");
}
Rect2 screen_rect;
screen_rect.position = OS::get_singleton()->get_screen_position(screen);
screen_rect.size = OS::get_singleton()->get_screen_size(screen);

View file

@ -948,6 +948,10 @@ void ProjectManager::_open_project_confirm() {
args.push_back("--editor");
if (OS::get_singleton()->is_disable_crash_handler()) {
args.push_back("--disable-crash-handler");
}
String exec = OS::get_singleton()->get_executable_path();
OS::ProcessID pid = 0;
@ -999,6 +1003,10 @@ void ProjectManager::_run_project_confirm() {
args.push_back("--path");
args.push_back(path);
if (OS::get_singleton()->is_disable_crash_handler()) {
args.push_back("--disable-crash-handler");
}
String exec = OS::get_singleton()->get_executable_path();
OS::ProcessID pid = 0;