Skip to content

Commit

Permalink
refactor: increment unhandled_events count in handlers when receiving…
Browse files Browse the repository at this point in the history
… a fatal err
  • Loading branch information
fractalwrench committed Mar 19, 2019
1 parent 4150181 commit 2e1c86c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ndk/src/main/jni/handlers/cpp_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void bsg_handle_cpp_terminate() {

bsg_global_env->handling_crash = true;
bsg_populate_report_as(bsg_global_env);
bsg_global_env->next_report.unhandled_events++;
bsg_global_env->next_report.exception.frame_count = bsg_unwind_stack(
bsg_global_env->unwind_style,
bsg_global_env->next_report.exception.stacktrace, NULL, NULL);
Expand Down
1 change: 1 addition & 0 deletions ndk/src/main/jni/handlers/signal_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ void bsg_handle_signal(int signum, siginfo_t *info,

bsg_global_env->handling_crash = true;
bsg_populate_report_as(bsg_global_env);
bsg_global_env->next_report.unhandled_events++;
bsg_global_env->next_report.exception.frame_count = bsg_unwind_stack(
bsg_global_env->signal_unwind_style,
bsg_global_env->next_report.exception.stacktrace, info, user_context);
Expand Down

0 comments on commit 2e1c86c

Please sign in to comment.