@@ -29,67 +29,61 @@ vtables.
Upstream-Status: Submitted [https://github.com/google/breakpad]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
- src/processor/basic_source_line_resolver.cc | 5 +++++
- src/processor/fast_source_line_resolver.cc | 5 +++++
- src/processor/module_factory.h | 8 ++------
- 3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/processor/basic_source_line_resolver.cc b/src/processor/basic_source_line_resolver.cc
-index 1111111..2222222 100644
+index 2d527a5..5305b04 100644
--- a/src/processor/basic_source_line_resolver.cc
+++ b/src/processor/basic_source_line_resolver.cc
-@@ -108,6 +108,11 @@ static const char* kWhitespace = " \r\n";
+@@ -109,6 +109,11 @@ static const char* kWhitespace = " \r\n";
static const int kMaxErrorsPrinted = 5;
static const int kMaxErrorsBeforeBailing = 100;
-
+
+BasicSourceLineResolver::Module* BasicModuleFactory::CreateModule(
-+ const string& name) const {
++ const std::string& name) const {
+ return new BasicSourceLineResolver::Module(name);
+}
+
BasicSourceLineResolver::BasicSourceLineResolver() :
SourceLineResolverBase(new BasicModuleFactory) { }
-
+
diff --git a/src/processor/fast_source_line_resolver.cc b/src/processor/fast_source_line_resolver.cc
-index 1111111..2222222 100644
+index 4506cd7..28676b5 100644
--- a/src/processor/fast_source_line_resolver.cc
+++ b/src/processor/fast_source_line_resolver.cc
@@ -60,6 +60,11 @@ using std::unique_ptr;
-
+
namespace google_breakpad {
-
+
+FastSourceLineResolver::Module* FastModuleFactory::CreateModule(
-+ const string& name) const {
++ const std::string& name) const {
+ return new FastSourceLineResolver::Module(name);
+}
+
FastSourceLineResolver::FastSourceLineResolver()
: SourceLineResolverBase(new FastModuleFactory) { }
-
+
diff --git a/src/processor/module_factory.h b/src/processor/module_factory.h
-index 1111111..2222222 100644
+index 215b8d4..1a491d1 100644
--- a/src/processor/module_factory.h
+++ b/src/processor/module_factory.h
@@ -52,18 +52,14 @@ class BasicModuleFactory : public ModuleFactory {
public:
virtual ~BasicModuleFactory() { }
virtual BasicSourceLineResolver::Module* CreateModule(
-- const string& name) const {
+- const std::string& name) const {
- return new BasicSourceLineResolver::Module(name);
- }
-+ const string& name) const;
++ const std::string& name) const;
};
-
+
class FastModuleFactory : public ModuleFactory {
public:
virtual ~FastModuleFactory() { }
virtual FastSourceLineResolver::Module* CreateModule(
-- const string& name) const {
+- const std::string& name) const {
- return new FastSourceLineResolver::Module(name);
- }
-+ const string& name) const;
++ const std::string& name) const;
};
-
+
} // namespace google_breakpad
---
-2.49.0
@@ -7,11 +7,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
- src/common/stabs_reader.cc | 1 -
- src/common/stabs_reader.h | 12 +++++++++++-
- src/common/stabs_reader_unittest.cc | 1 -
- 3 files changed, 11 insertions(+), 3 deletions(-)
+diff --git a/configure.ac b/configure.ac
+index 0258c11..0be1026 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -61,7 +61,7 @@ fi
+
+ AC_SYS_LARGEFILE
+ AX_PTHREAD
+-AC_CHECK_HEADERS([a.out.h sys/mman.h sys/random.h])
++AC_CHECK_HEADERS([a.out.h stab.h sys/mman.h sys/random.h])
+ AC_CHECK_FUNCS([arc4random getcontext getrandom memfd_create])
+ AM_CONDITIONAL([HAVE_GETCONTEXT], [test "x$ac_cv_func_getcontext" = xyes])
+ AM_CONDITIONAL([HAVE_MEMFD_CREATE], [test "x$ac_cv_func_memfd_create" = xyes])
+diff --git a/src/common/stabs_reader.cc b/src/common/stabs_reader.cc
+index f1bbbea..7e79436 100644
--- a/src/common/stabs_reader.cc
+++ b/src/common/stabs_reader.cc
@@ -38,7 +38,9 @@
@@ -21,9 +32,11 @@ Upstream-Status: Pending
+#ifdef HAVE_STAB_H
#include <stab.h>
+#endif
- #include <string.h>
-
- #include <string>
+ #ifdef __APPLE__
+ #include <mach-o/nlist.h>
+ #endif
+diff --git a/src/common/stabs_reader.h b/src/common/stabs_reader.h
+index c8b297b..3a52d38 100644
--- a/src/common/stabs_reader.h
+++ b/src/common/stabs_reader.h
@@ -54,6 +54,30 @@
@@ -57,6 +70,8 @@ Upstream-Status: Pending
#include <string>
#include <vector>
+diff --git a/src/common/stabs_reader_unittest.cc b/src/common/stabs_reader_unittest.cc
+index 35953df..3c53d9b 100644
--- a/src/common/stabs_reader_unittest.cc
+++ b/src/common/stabs_reader_unittest.cc
@@ -36,7 +36,9 @@
@@ -66,17 +81,6 @@ Upstream-Status: Pending
+#ifdef HAVE_STAB_H
#include <stab.h>
+#endif
- #include <stdarg.h>
- #include <stdlib.h>
- #include <string.h>
---- a/configure.ac
-+++ b/configure.ac
-@@ -61,7 +61,7 @@ fi
-
- AC_SYS_LARGEFILE
- AX_PTHREAD
--AC_CHECK_HEADERS([a.out.h sys/mman.h sys/random.h])
-+AC_CHECK_HEADERS([a.out.h stab.h sys/mman.h sys/random.h])
- AC_CHECK_FUNCS([arc4random getcontext getrandom memfd_create])
- AM_CONDITIONAL([HAVE_GETCONTEXT], [test "x$ac_cv_func_getcontext" = xyes])
- AM_CONDITIONAL([HAVE_MEMFD_CREATE], [test "x$ac_cv_func_memfd_create" = xyes])
+ #ifdef __APPLE__
+ #include <mach-o/nlist.h>
+ #endif
similarity index 89%
rename from meta-oe/recipes-devtools/breakpad/breakpad_2024.02.16.bb
rename to meta-oe/recipes-devtools/breakpad/breakpad_2026.07.24.bb
@@ -6,7 +6,7 @@ SUMMARY = "An open-source multi-platform crash reporting system"
DESCRIPTION = "Breakpad is a library and tool suite that allows you to distribute an application to users with compiler-provided debugging information removed, record crashes in compact \"minidump\" files, send them back to your server, and produce C and C++ stack traces from these minidumps. "
HOMEPAGE = "https://code.google.com/p/google-breakpad/"
LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=07aeb530115539d62cacf9942fa60cac"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=97b64ca2663586bce794ede173c0aa04"
SECTION = "libs"
inherit autotools
@@ -18,20 +18,19 @@ BBCLASSEXTEND = "native"
PE = "2"
-SRCREV_FORMAT = "breakpad_gtest_protobuf_lss"
+SRCREV_FORMAT = "breakpad_gtest_lss"
-SRCREV_breakpad = "f80f2888031b0570783011476a5e862fb7d848a1"
-#v1.11.0
-SRCREV_gtest = "e2239ee6043f73722e7aa812a459f54a28552929"
-SRCREV_protobuf = "cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac"
-SRCREV_lss = "9719c1e1e676814c456b55f5f070eabad6709d31"
+# Submodules listed in .gitmodules, at the revisions breakpad pins
+SRCREV_breakpad = "69e9aada412e81575a95d0d94f4592fe1b8dfc15"
+# v1.16.0
+SRCREV_gtest = "6910c9d9165801d8827d628cb72eb7ea9dd538c5"
+SRCREV_lss = "29164a80da4d41134950d76d55199ea33fbb9613"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
SRC_URI = "git://github.com/google/breakpad;name=breakpad;branch=main;protocol=https;tag=v${PV} \
- git://github.com/google/googletest.git;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/testing/gtest;name=gtest;branch=main;protocol=https \
- git://github.com/protocolbuffers/protobuf.git;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/protobuf/protobuf;name=protobuf;branch=main;protocol=https \
- git://chromium.googlesource.com/linux-syscall-support;protocol=https;branch=main;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/lss;name=lss \
+ git://github.com/google/googletest.git;name=gtest;branch=v1.16.x;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/testing \
+ git://chromium.googlesource.com/linux-syscall-support;name=lss;branch=main;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/lss \
file://0001-include-sys-reg.h-to-get-__WORDSIZE-on-musl-libc.patch \
file://0003-Fix-conflict-between-musl-libc-dirent.h-and-lss.patch \
file://0001-Turn-off-sign-compare-for-musl-libc.patch \
@@ -76,7 +75,6 @@ do_install:append() {
install -d ${D}${includedir}/breakpad/common
install -m 0644 ${S}/src/common/memory_allocator.h ${D}${includedir}/breakpad/common/memory_allocator.h
install -m 0644 ${S}/src/common/scoped_ptr.h ${D}${includedir}/breakpad/common/scoped_ptr.h
- install -m 0644 ${S}/src/common/using_std_string.h ${D}${includedir}/breakpad/common/using_std_string.h
install -d ${D}${includedir}/breakpad/google_breakpad/common
install -m 0644 ${S}/src/google_breakpad/common/breakpad_types.h ${D}${includedir}/breakpad/google_breakpad/common/breakpad_types.h
Two years of changes (112 commits), among them: - DWARF: DWARF 5 nested Objective-C declarations, vendor-defined content descriptions skipped, a stack buffer overflow fixed for split DWARF and better error messages. - minidump_stackwalk can dump stack pointers from the raw stack and print a single thread by index, and prints the crash argument again. - Linux: padding segments are skipped when merging mappings, a RISC-V gp fix in breakpad_getcontext, and misaligned-pointer and integer overflow fixes. - C++23 and C++ module build fixes; std::string is spelled out everywhere and common/using_std_string.h is gone, so stop installing it. Upstream replaced its DEPS file with git submodules and dropped the unused protobuf dependency. Drop the protobuf SRC_URI entry and move the googletest and lss entries to the submodule paths and revisions breakpad records: googletest v1.16.0 (6910c9d91658, on the v1.16.x branch) in src/testing and linux-syscall-support 29164a80da4d in src/third_party/lss. Refresh 0003-Dont-include-stab.h.patch (the includes gained an __APPLE__ block) and 0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch (the out-of-line definitions use std::string). Built for glibc (target and native) and musl. License-Update: LICENSE drops the libdisasm section and adds notices for src/common/md5.cc (public domain), the macOS mach headers and the autotools-generated files; the code stays BSD-3-Clause. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...ove-CreateModule-out-of-line-to-fix-.patch | 40 +++++++--------- .../breakpad/0003-Dont-include-stab.h.patch | 46 ++++++++++--------- ...d_2024.02.16.bb => breakpad_2026.07.24.bb} | 20 ++++---- 3 files changed, 51 insertions(+), 55 deletions(-) rename meta-oe/recipes-devtools/breakpad/{breakpad_2024.02.16.bb => breakpad_2026.07.24.bb} (89%)