Skip to content

Commit 7fbf890

Browse files
Merge pull request google#41 from getsentry/chore/update_2025_06_13
chore: upstream update 2025-06-13
2 parents ecff426 + 62abdcf commit 7fbf890

File tree

289 files changed

+4502
-3044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+4502
-3044
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/processor/testdata/*.out text eol=lf

DEPS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ deps = {
3636
# Testing libraries and utilities.
3737
"src/src/testing":
3838
"https://github.com/google/googletest.git" +
39-
"@release-1.11.0",
39+
"@v1.16.0",
4040

4141
# Protobuf.
4242
"src/src/third_party/protobuf/protobuf":
@@ -46,7 +46,7 @@ deps = {
4646
# Linux syscall support.
4747
"src/src/third_party/lss":
4848
"https://chromium.googlesource.com/linux-syscall-support/" +
49-
"@9719c1e1e676814c456b55f5f070eabad6709d31",
49+
"@ed31caa60f20a4f6569883b2d752ef7522de51e0",
5050
}
5151

5252
hooks = [

Makefile.in

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,11 +2691,13 @@ src_tools_linux_dump_syms_dump_syms_SOURCES = \
26912691
src/tools/linux/dump_syms/dump_syms.cc
26922692

26932693
src_tools_linux_dump_syms_dump_syms_CXXFLAGS = \
2694-
$(RUSTC_DEMANGLE_CFLAGS)
2694+
$(RUSTC_DEMANGLE_CFLAGS) \
2695+
$(ZSTD_CFLAGS)
26952696

26962697
src_tools_linux_dump_syms_dump_syms_LDADD = \
26972698
$(RUSTC_DEMANGLE_LIBS) \
2698-
-lz -lzstd
2699+
$(ZSTD_CFLAGS) \
2700+
-lz
26992701

27002702
src_tools_linux_md2core_minidump_2_core_SOURCES = \
27012703
src/common/linux/memory_mapped_file.cc \
@@ -2822,13 +2824,15 @@ src_common_dumper_unittest_SOURCES = \
28222824
src_common_dumper_unittest_CPPFLAGS = \
28232825
$(AM_CPPFLAGS) $(TEST_CFLAGS) \
28242826
$(RUSTC_DEMANGLE_CFLAGS) \
2825-
$(PTHREAD_CFLAGS)
2827+
$(PTHREAD_CFLAGS) \
2828+
$(ZSTD_CFLAGS)
28262829

28272830
src_common_dumper_unittest_LDADD = \
28282831
$(TEST_LIBS) \
28292832
$(RUSTC_DEMANGLE_LIBS) \
28302833
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
2831-
-lz -lzstd
2834+
$(ZSTD_LIBS) \
2835+
-lz
28322836

28332837
src_common_mac_macho_reader_unittest_SOURCES = \
28342838
src/common/dwarf_cfi_to_module.cc \

OWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ [email protected]
1111
1212
1313
14+
15+
# Allow autoroller to update our DEPS file automatically.
16+
per-file DEPS=*

android/sample_app/jni/test_breakpad.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor,
4141
}
4242

4343
void Crash() {
44-
volatile int* a = reinterpret_cast<volatile int*>(NULL);
44+
volatile int* a = static_cast<volatile int*>(nullptr);
4545
*a = 1;
4646
}
4747

4848
} // namespace
4949

5050
int main(int argc, char* argv[]) {
5151
google_breakpad::MinidumpDescriptor descriptor(".");
52-
google_breakpad::ExceptionHandler eh(descriptor, NULL, DumpCallback,
53-
NULL, true, -1);
52+
google_breakpad::ExceptionHandler eh(descriptor, nullptr, DumpCallback,
53+
nullptr, true, -1);
5454
Crash();
5555
return 0;
5656
}

configure

Lines changed: 101 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ ANDROID_HOST_TRUE
675675
LINUX_HOST_FALSE
676676
LINUX_HOST_TRUE
677677
WARN_CXXFLAGS
678-
HAVE_CXX17
678+
HAVE_CXX20
679679
HAVE_MEMFD_CREATE_FALSE
680680
HAVE_MEMFD_CREATE_TRUE
681681
HAVE_GETCONTEXT_FALSE
@@ -7594,17 +7594,17 @@ fi
75947594

75957595

75967596

7597-
ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
7597+
ax_cxx_compile_alternatives="20" ax_cxx_compile_cxx20_required=true
75987598
ac_ext=cpp
75997599
ac_cpp='$CXXCPP $CPPFLAGS'
76007600
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
76017601
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
76027602
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
76037603
ac_success=no
76047604

7605-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
7606-
printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
7607-
if test ${ax_cv_cxx_compile_cxx17+y}
7605+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features by default" >&5
7606+
printf %s "checking whether $CXX supports C++20 features by default... " >&6; }
7607+
if test ${ax_cv_cxx_compile_cxx20+y}
76087608
then :
76097609
printf %s "(cached) " >&6
76107610
else $as_nop
@@ -8400,27 +8400,53 @@ namespace cxx17
84008400
84018401
84028402
8403+
8404+
#ifndef __cplusplus
8405+
8406+
#error "This is not a C++ compiler"
8407+
8408+
#elif __cplusplus < 202002L && !defined _MSC_VER
8409+
8410+
#error "This is not a C++20 compiler"
8411+
8412+
#else
8413+
8414+
#include <version>
8415+
8416+
namespace cxx20
8417+
{
8418+
8419+
// As C++20 supports feature test macros in the standard, there is no
8420+
// immediate need to actually test for feature availability on the
8421+
// Autoconf side.
8422+
8423+
} // namespace cxx20
8424+
8425+
#endif // __cplusplus < 202002L && !defined _MSC_VER
8426+
8427+
8428+
84038429
_ACEOF
84048430
if ac_fn_cxx_try_compile "$LINENO"
84058431
then :
8406-
ax_cv_cxx_compile_cxx17=yes
8432+
ax_cv_cxx_compile_cxx20=yes
84078433
else $as_nop
8408-
ax_cv_cxx_compile_cxx17=no
8434+
ax_cv_cxx_compile_cxx20=no
84098435
fi
84108436
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84118437
fi
8412-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
8413-
printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
8414-
if test x$ax_cv_cxx_compile_cxx17 = xyes; then
8438+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx20" >&5
8439+
printf "%s\n" "$ax_cv_cxx_compile_cxx20" >&6; }
8440+
if test x$ax_cv_cxx_compile_cxx20 = xyes; then
84158441
ac_success=yes
84168442
fi
84178443

84188444
if test x$ac_success = xno; then
84198445
for alternative in ${ax_cxx_compile_alternatives}; do
84208446
switch="-std=gnu++${alternative}"
8421-
cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
8422-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
8423-
printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
8447+
cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh`
8448+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5
8449+
printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; }
84248450
if eval test \${$cachevar+y}
84258451
then :
84268452
printf %s "(cached) " >&6
@@ -9219,6 +9245,32 @@ namespace cxx17
92199245
92209246
92219247
9248+
9249+
#ifndef __cplusplus
9250+
9251+
#error "This is not a C++ compiler"
9252+
9253+
#elif __cplusplus < 202002L && !defined _MSC_VER
9254+
9255+
#error "This is not a C++20 compiler"
9256+
9257+
#else
9258+
9259+
#include <version>
9260+
9261+
namespace cxx20
9262+
{
9263+
9264+
// As C++20 supports feature test macros in the standard, there is no
9265+
// immediate need to actually test for feature availability on the
9266+
// Autoconf side.
9267+
9268+
} // namespace cxx20
9269+
9270+
#endif // __cplusplus < 202002L && !defined _MSC_VER
9271+
9272+
9273+
92229274
_ACEOF
92239275
if ac_fn_cxx_try_compile "$LINENO"
92249276
then :
@@ -9246,9 +9298,9 @@ printf "%s\n" "$ac_res" >&6; }
92469298
if test x$ac_success = xno; then
92479299
for alternative in ${ax_cxx_compile_alternatives}; do
92489300
for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
9249-
cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
9250-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
9251-
printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
9301+
cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh`
9302+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5
9303+
printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; }
92529304
if eval test \${$cachevar+y}
92539305
then :
92549306
printf %s "(cached) " >&6
@@ -10047,6 +10099,32 @@ namespace cxx17
1004710099
1004810100
1004910101
10102+
10103+
#ifndef __cplusplus
10104+
10105+
#error "This is not a C++ compiler"
10106+
10107+
#elif __cplusplus < 202002L && !defined _MSC_VER
10108+
10109+
#error "This is not a C++20 compiler"
10110+
10111+
#else
10112+
10113+
#include <version>
10114+
10115+
namespace cxx20
10116+
{
10117+
10118+
// As C++20 supports feature test macros in the standard, there is no
10119+
// immediate need to actually test for feature availability on the
10120+
// Autoconf side.
10121+
10122+
} // namespace cxx20
10123+
10124+
#endif // __cplusplus < 202002L && !defined _MSC_VER
10125+
10126+
10127+
1005010128
_ACEOF
1005110129
if ac_fn_cxx_try_compile "$LINENO"
1005210130
then :
@@ -10080,19 +10158,19 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1008010158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1008110159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1008210160

10083-
if test x$ax_cxx_compile_cxx17_required = xtrue; then
10161+
if test x$ax_cxx_compile_cxx20_required = xtrue; then
1008410162
if test x$ac_success = xno; then
10085-
as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
10163+
as_fn_error $? "*** A compiler with support for C++20 language features is required." "$LINENO" 5
1008610164
fi
1008710165
fi
1008810166
if test x$ac_success = xno; then
10089-
HAVE_CXX17=0
10090-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
10091-
printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
10167+
HAVE_CXX20=0
10168+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5
10169+
printf "%s\n" "$as_me: No compiler with C++20 support was found" >&6;}
1009210170
else
10093-
HAVE_CXX17=1
10171+
HAVE_CXX20=1
1009410172

10095-
printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
10173+
printf "%s\n" "#define HAVE_CXX20 1" >>confdefs.h
1009610174

1009710175
fi
1009810176

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ AC_CHECK_FUNCS([arc4random getcontext getrandom memfd_create])
6666
AM_CONDITIONAL([HAVE_GETCONTEXT], [test "x$ac_cv_func_getcontext" = xyes])
6767
AM_CONDITIONAL([HAVE_MEMFD_CREATE], [test "x$ac_cv_func_memfd_create" = xyes])
6868

69-
AX_CXX_COMPILE_STDCXX(17, , mandatory)
69+
AX_CXX_COMPILE_STDCXX(20, , mandatory)
7070

7171
dnl Test supported warning flags.
7272
WARN_CXXFLAGS=

default.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@
77
sync-c='true'
88
sync-j='8' />
99

10-
<remote name='github'
11-
fetch='https://github.com/'
12-
review='' />
13-
1410
<remote name='chromium'
1511
fetch='https://chromium.googlesource.com/'
1612
review='https://chromium-review.googlesource.com' />
1713

14+
<remote name='github'
15+
fetch='https://github.com/'
16+
review='' />
17+
1818
<project path='src'
1919
name='breakpad/breakpad'
2020
revision='refs/heads/main'
2121
remote='chromium' />
2222

2323
<project path='src/src/testing'
2424
name='google/googletest.git'
25-
revision='refs/tags/release-1.11.0'
25+
revision='refs/tags/v1.16.0'
2626
remote='github' />
2727

28-
<project path='src/src/third_party/lss'
29-
name='linux-syscall-support/'
30-
revision='9719c1e1e676814c456b55f5f070eabad6709d31'
31-
remote='chromium' />
32-
3328
<project path='src/src/third_party/protobuf/protobuf'
3429
name='google/protobuf.git'
3530
revision='cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac'
3631
remote='github' />
3732

33+
<project path='src/src/third_party/lss'
34+
name='linux-syscall-support/'
35+
revision='ed31caa60f20a4f6569883b2d752ef7522de51e0'
36+
remote='chromium' />
37+
3838
</manifest>

src/client/ios/exception_handler_no_mach.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@
3030
#include <config.h> // Must come first
3131
#endif
3232

33+
#include <assert.h>
3334
#include <signal.h>
3435
#include <TargetConditionals.h>
3536

37+
#include <memory>
38+
3639
#include "client/mac/handler/minidump_generator.h"
3740
#include "client/ios/exception_handler_no_mach.h"
3841

@@ -65,7 +68,7 @@ const int kExceptionSignals[] = {
6568
};
6669
const int kNumHandledSignals =
6770
sizeof(kExceptionSignals) / sizeof(kExceptionSignals[0]);
68-
struct scoped_ptr<struct sigaction> old_handlers[kNumHandledSignals];
71+
struct std::unique_ptr<struct sigaction> old_handlers[kNumHandledSignals];
6972

7073
static union {
7174
#if USE_PROTECTED_ALLOCATIONS

src/client/ios/exception_handler_no_mach.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <string>
3636

3737
#include "client/mac/handler/ucontext_compat.h"
38-
#include "common/scoped_ptr.h"
3938

4039
namespace google_breakpad {
4140

0 commit comments

Comments
 (0)