Skip to content

Commit

Permalink
deps: Update Break/Crashpad to 2022-06-14 (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jun 17, 2022
1 parent b091b76 commit 3e05e16
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## Unreleased

**Features**:

- The crashpad backend now captures thread names. ([#725](https://github.com/getsentry/sentry-native/pull/725))
- The inproc backend now captures the context registers. ([#714](https://github.com/getsentry/sentry-native/pull/714))
- A new set of APIs to get the sentry SDK version at runtime. ([#726](https://github.com/getsentry/sentry-native/pull/726))
- Add more convenient APIs to attach stack traces to exception or thread values. ([#723](https://github.com/getsentry/sentry-native/pull/723))
- Allow disabling the crash reporting backend at runtime. ([#717](https://github.com/getsentry/sentry-native/pull/717))

**Fixes**:

- Improved heuristics flagging sessions as "crashed". ([#719](https://github.com/getsentry/sentry-native/pull/719))

**Internal**:

- Updated Breakpad and Crashpad backends to 2022-06-14. ([#725](https://github.com/getsentry/sentry-native/pull/725))

**Thank you**:

Features, fixes and improvements in this release have been contributed by:

- [@olback](https://github.com/olback)

## 0.4.17

**Fixes**:
Expand Down
15 changes: 10 additions & 5 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ set(BREAKPAD_SOURCES_CLIENT_LINUX
breakpad/src/client/linux/minidump_writer/linux_dumper.cc
breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
breakpad/src/client/linux/minidump_writer/minidump_writer.cc
breakpad/src/client/linux/minidump_writer/pe_file.cc
breakpad/src/client/linux/minidump_writer/pe_file.h
breakpad/src/client/linux/minidump_writer/pe_structs.h
)

set(BREAKPAD_SOURCES_CLIENT_WINDOWS
Expand Down Expand Up @@ -115,19 +118,20 @@ set(BREAKPAD_SOURCES_CLIENT_IOS
breakpad/src/client/mac/handler/ucontext_compat.h
)


add_library(breakpad_client STATIC)
target_sources(breakpad_client PRIVATE ${BREAKPAD_SOURCES_COMMON})

if(LINUX OR ANDROID)
target_sources(breakpad_client PRIVATE ${BREAKPAD_SOURCES_COMMON_LINUX} ${BREAKPAD_SOURCES_CLIENT_LINUX})

if(ANDROID)
target_sources(breakpad_client PRIVATE ${BREAKPAD_SOURCES_COMMON_ANDROID})
target_include_directories(breakpad_client PRIVATE breakpad/src/common/android/include)
endif(ANDROID)

include(CheckFunctionExists)
check_function_exists(getcontext HAVE_GETCONTEXT)

if(HAVE_GETCONTEXT)
target_compile_definitions(breakpad_client PRIVATE HAVE_GETCONTEXT)
else()
Expand All @@ -141,6 +145,7 @@ if(APPLE)
target_sources(breakpad_client PRIVATE
${BREAKPAD_SOURCES_COMMON_APPLE}
${BREAKPAD_SOURCES_CLIENT_APPLE})

if(NOT IOS)
target_sources(breakpad_client PRIVATE
${BREAKPAD_SOURCES_COMMON_MAC}
Expand All @@ -167,8 +172,8 @@ endif()
# which are being resolved correctly when we add the current directory to
# the include directories. A giant hack, yes, but it works
target_include_directories(breakpad_client
PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/breakpad/src/>"
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/breakpad/src/>"
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
)
2 changes: 1 addition & 1 deletion external/crashpad
Submodule crashpad updated 108 files

0 comments on commit 3e05e16

Please sign in to comment.