Skip to content

Commit

Permalink
Merge pull request #35 from supervacuus/meta/update-handler
Browse files Browse the repository at this point in the history
 meta: update handler 2023-05-03
  • Loading branch information
Swatinem authored May 4, 2023
2 parents 0878ec1 + 94d6b3e commit 3b8e9be
Show file tree
Hide file tree
Showing 295 changed files with 2,652 additions and 1,084 deletions.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1732,10 +1732,12 @@ EXTRA_DIST = \
src/third_party/curl/typecheck-gcc.h \
src/third_party/curl/types.h \
src/third_party/mac_headers/architecture/byte_order.h \
src/third_party/mac_headers/arm/_types.h \
src/third_party/mac_headers/i386/_types.h \
src/third_party/mac_headers/mach/boolean.h \
src/third_party/mac_headers/mach/arm/boolean.h \
src/third_party/mac_headers/mach/arm/vm_types.h \
src/third_party/mac_headers/mach/i386/boolean.h \
src/third_party/mac_headers/mach/i386/vm_param.h \
src/third_party/mac_headers/mach/i386/vm_types.h \
src/third_party/mac_headers/mach/machine/boolean.h \
src/third_party/mac_headers/mach/machine.h \
Expand Down
4 changes: 3 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3734,10 +3734,12 @@ EXTRA_DIST = \
src/third_party/curl/typecheck-gcc.h \
src/third_party/curl/types.h \
src/third_party/mac_headers/architecture/byte_order.h \
src/third_party/mac_headers/arm/_types.h \
src/third_party/mac_headers/i386/_types.h \
src/third_party/mac_headers/mach/boolean.h \
src/third_party/mac_headers/mach/arm/boolean.h \
src/third_party/mac_headers/mach/arm/vm_types.h \
src/third_party/mac_headers/mach/i386/boolean.h \
src/third_party/mac_headers/mach/i386/vm_param.h \
src/third_party/mac_headers/mach/i386/vm_types.h \
src/third_party/mac_headers/mach/machine/boolean.h \
src/third_party/mac_headers/mach/machine.h \
Expand Down
4 changes: 4 additions & 0 deletions src/client/ios/exception_handler_no_mach.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <signal.h>
#include <TargetConditionals.h>

Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/crash_generation/crash_generation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/crash_generation/crash_generation_client.h"

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/crash_generation/crash_generation_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <assert.h>
#include <dirent.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/dump_writer_common/thread_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/dump_writer_common/thread_info.h"

#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/dump_writer_common/ucontext_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/dump_writer_common/ucontext_reader.h"

#include "common/linux/linux_libc_support.h"
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/handler/exception_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
// alternative malloc. Each function should have comment above it detailing the
// context which it runs in.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/handler/exception_handler.h"

#include <errno.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/handler/exception_handler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <poll.h>
#include <pthread.h>
#include <stdint.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/handler/minidump_descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <stdio.h>

#include "client/linux/handler/minidump_descriptor.h"
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/log/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/log/log.h"

#if defined(__ANDROID__)
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/microdump_writer/microdump_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
// This translation unit generates microdumps into the console (logcat on
// Android). See crbug.com/410294 for more info and design docs.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/microdump_writer/microdump_writer.h"

#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <ctype.h>
#include <sys/syscall.h>
#include <sys/types.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/cpu_set_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/directory_reader_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <set>
#include <string>

Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/line_reader_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/linux_core_dumper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
// linux_core_dumper.cc: Implement google_breakpad::LinuxCoreDumper.
// See linux_core_dumper.h for details.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/minidump_writer/linux_core_dumper.h"

#include <asm/ptrace.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
// linux_core_dumper_unittest.cc:
// Unit tests for google_breakpad::LinuxCoreDumoer.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <string>

#include "breakpad_googletest_includes.h"
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/linux_dumper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
// rules apply as detailed at the top of minidump_writer.h: no libc calls and
// use the alternative allocator.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/minidump_writer/linux_dumper.h"

#include <assert.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
// threads. The first word of each thread's stack is set to the thread
// id.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/linux_ptrace_dumper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
// rules apply as detailed at the top of minidump_writer.h: no libc calls and
// use the alternative allocator.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/minidump_writer/linux_ptrace_dumper.h"

#include <asm/ptrace.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
// This file was renamed from linux_dumper_unittest.cc and modified due
// to LinuxDumper being splitted into two classes.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <errno.h>
#include <fcntl.h>
#include <limits.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/minidump_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
// a canonical instance in the LinuxDumper object. We use the placement
// new form to allocate objects and we don't delete them.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/linux/handler/minidump_descriptor.h"
#include "client/linux/minidump_writer/minidump_writer.h"
#include "client/minidump_file_writer-inl.h"
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/minidump_writer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <fcntl.h>
#include <poll.h>
#include <sys/stat.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
// minidump_writer_unittest_utils.cc:
// Shared routines used by unittests under client/linux/minidump_writer.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <limits.h>
#include <stdlib.h>

Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/minidump_writer/pe_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <string.h>

#include "client/linux/minidump_writer/pe_file.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/linux/sender/google_crash_report_sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "common/linux/google_crashdump_uploader.h"
#include <string>
#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/crash_generation/crash_generation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/mac/crash_generation/crash_generation_client.h"

#include "client/mac/crash_generation/crash_generation_server.h"
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/crash_generation/crash_generation_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/mac/crash_generation/crash_generation_server.h"

#include <pthread.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/handler/breakpad_nlist_64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
* I've modified it to be compatible with 64-bit images.
*/

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "breakpad_nlist_64.h"

#include <CoreFoundation/CoreFoundation.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/handler/dynamic_images.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "client/mac/handler/dynamic_images.h"

extern "C" { // needed to compile on Leopard
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/handler/exception_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <mach/exc.h>
#include <mach/mig.h>
#include <pthread.h>
Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/handler/minidump_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include <algorithm>
#include <cstdio>

Expand Down
4 changes: 4 additions & 0 deletions src/client/mac/handler/protected_memory_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
//
// See the header file for documentation

#ifdef HAVE_CONFIG_H
#include <config.h> // Must come first
#endif

#include "protected_memory_allocator.h"
#include <assert.h>

Expand Down
Loading

0 comments on commit 3b8e9be

Please sign in to comment.