mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 20:59:17 +00:00
Update sentry-native sdk to latest
There's a crash fix in sentry itself due to threading race
This commit is contained in:
parent
4d811ba975
commit
0f13ab8065
thirdparty/sentry-native
CHANGELOG.mdCMakeLists.txtCONTRIBUTING.mdREADME.md
examples
external
breakpad
.github/workflows
.gitignoreDEPSLICENSEMakefile.amMakefile.inandroid
autotools
configureconfigure.acdefault.xmlm4
src
breakpad_googletest_includes.hminidump_file_writer-inl.hminidump_file_writer.ccminidump_file_writer.hminidump_file_writer_unittest.ccconfig.h.in
build
client
apple/Framework
ios
Breakpad.hBreakpad.mmBreakpadController.hBreakpadController.mmexception_handler_no_mach.ccexception_handler_no_mach.h
handler
linux
crash_generation
client_info.hcrash_generation_client.cccrash_generation_client.hcrash_generation_server.cccrash_generation_server.h
dump_writer_common
handler
exception_handler.ccexception_handler.hexception_handler_unittest.ccmicrodump_extra_info.hminidump_descriptor.ccminidump_descriptor.h
log
microdump_writer
minidump_writer
cpu_set.hcpu_set_unittest.ccdirectory_reader.hdirectory_reader_unittest.ccline_reader.hline_reader_unittest.cclinux_core_dumper.cclinux_core_dumper.hlinux_core_dumper_unittest.cclinux_dumper.cclinux_dumper.hlinux_dumper_unittest_helper.cclinux_ptrace_dumper.cclinux_ptrace_dumper.hlinux_ptrace_dumper_unittest.ccminidump_writer.ccminidump_writer.hminidump_writer_unittest.ccminidump_writer_unittest_utils.ccminidump_writer_unittest_utils.hpe_file.ccpe_file.hpe_structs.hproc_cpuinfo_reader.hproc_cpuinfo_reader_unittest.cc
sender
mac
Framework
crash_generation
ConfigFile.hConfigFile.mmInspector.hInspector.mmInspectorMain.mmclient_info.hcrash_generation_client.cccrash_generation_client.hcrash_generation_server.cccrash_generation_server.h
handler
breakpad_nlist_64.hdynamic_images.ccdynamic_images.hexception_handler.ccexception_handler.hmach_vm_compat.hminidump_generator.ccminidump_generator.hprotected_memory_allocator.ccprotected_memory_allocator.h
testcases
DynamicImagesTests.ccDynamicImagesTests.hbreakpad_nlist_test.ccbreakpad_nlist_test.hdwarftests.hdwarftests.mm
ucontext_compat.hsender
testapp
tests
solaris/handler
exception_handler.ccexception_handler.hexception_handler_test.ccminidump_generator.ccminidump_generator.hminidump_test.ccsolaris_lwp.ccsolaris_lwp.h
windows
breakpad_client.gyp
common
crash_generation
client_info.ccclient_info.hcrash_generation.gypcrash_generation_client.cccrash_generation_client.hcrash_generation_server.cccrash_generation_server.hminidump_generator.ccminidump_generator.h
handler
sender
tests/crash_generation_app
abstract_class.ccabstract_class.hcrash_generation_app.cccrash_generation_app.gypcrash_generation_app.hresource.h
unittests
common
android/include
basictypes.hbyte_cursor.hbyte_cursor_unittest.cccommon.gypdwarf
bytereader-inl.hbytereader.ccbytereader.hbytereader_unittest.cccfi_assembler.cccfi_assembler.hdwarf2diehandler.ccdwarf2diehandler.hdwarf2diehandler_unittest.ccdwarf2enums.hdwarf2reader.ccdwarf2reader.hdwarf2reader_cfi_unittest.ccdwarf2reader_die_unittest.ccdwarf2reader_lineinfo_unittest.ccdwarf2reader_splitfunctions_unittest.ccdwarf2reader_test_common.helf_reader.ccelf_reader.hfunctioninfo.ccfunctioninfo.hline_state_machine.htypes.h
dwarf_cfi_to_module.ccdwarf_cfi_to_module.hdwarf_cfi_to_module_unittest.ccdwarf_cu_to_module.ccdwarf_cu_to_module.hdwarf_cu_to_module_unittest.ccdwarf_line_to_module.ccdwarf_line_to_module.hdwarf_line_to_module_unittest.ccdwarf_range_list_handler.ccdwarf_range_list_handler.hlanguage.cclanguage.hlinux
breakpad_getcontext.Sbreakpad_getcontext.hbreakpad_getcontext_unittest.cccrc32.cccrc32.hdump_symbols.ccdump_symbols.hdump_symbols_unittest.cceintr_wrapper.helf_core_dump.ccelf_core_dump.helf_core_dump_unittest.ccelf_gnu_compat.helf_symbols_to_module.ccelf_symbols_to_module.helf_symbols_to_module_unittest.ccelfutils-inl.helfutils.ccelfutils.hfile_id.ccfile_id.hfile_id_unittest.ccgoogle_crashdump_uploader.ccgoogle_crashdump_uploader.hgoogle_crashdump_uploader_test.ccguid_creator.ccguid_creator.hhttp_upload.cchttp_upload.hignore_ret.hlibcurl_wrapper.cclibcurl_wrapper.hlinux_libc_support.cclinux_libc_support.hlinux_libc_support_unittest.ccmemory_mapped_file.ccmemory_mapped_file.hmemory_mapped_file_unittest.ccsafe_readlink.ccsafe_readlink.hsafe_readlink_unittest.ccsymbol_collector_client.ccsymbol_collector_client.hsymbol_upload.ccsymbol_upload.hsynth_elf.hsynth_elf_unittest.cc
long_string_dictionary.cclong_string_dictionary.hlong_string_dictionary_unittest.cctests
ucontext_constants.hmac
Breakpad.xcconfigBreakpadDebug.xcconfigBreakpadRelease.xcconfigGTMDefines.hGTMLogger.hGTMLogger.mHTTPGetRequest.hHTTPGetRequest.mHTTPMultipartUpload.hHTTPMultipartUpload.mHTTPPutRequest.hHTTPPutRequest.mHTTPRequest.hHTTPRequest.mHTTPSimplePostRequest.hHTTPSimplePostRequest.mMachIPC.hMachIPC.mmSymbolCollectorClient.hSymbolCollectorClient.march_utilities.ccarch_utilities.hbootstrap_compat.ccbootstrap_compat.hbyteswap.hdump_syms.ccdump_syms.hencoding_util.hencoding_util.mfile_id.ccfile_id.hlaunch_reporter.cclaunch_reporter.hmacho_id.ccmacho_id.hmacho_reader.ccmacho_reader.hmacho_reader_unittest.ccmacho_utilities.ccmacho_utilities.hmacho_walker.ccmacho_walker.hminidump_upload.mscoped_task_suspend-inl.hstring_utilities.ccstring_utilities.hsuper_fat_arch.h
macros.hmd5.hmemory_allocator.hmemory_allocator_unittest.ccmemory_range.hmemory_range_unittest.ccminidump_type_helper.hmodule.ccmodule.hmodule_unittest.ccpath_helper.ccpath_helper.hsafe_math.hsafe_math_unittest.ccscoped_ptr.hsimple_string_dictionary.ccsimple_string_dictionary.hsimple_string_dictionary_unittest.ccsolaris
stabs_reader.ccstabs_reader.hstabs_reader_unittest.ccstabs_to_module.ccstabs_to_module.hstabs_to_module_unittest.ccstdio_wrapper.hstring_conversion.ccstring_conversion.hstring_conversion_unittest.ccstring_view.hsymbol_data.htest_assembler.cctest_assembler.htest_assembler_unittest.cctests
unordered.husing_std_string.hwindows
common_windows.gypdia_util.ccdia_util.hguid_string.ccguid_string.hhttp_upload.cchttp_upload.hmodule_info.homap.ccomap.homap_internal.homap_unittest.ccpdb_source_line_writer.ccpdb_source_line_writer.hpe_source_line_writer.ccpe_source_line_writer.hpe_util.ccpe_util.hstring_utils-inl.hstring_utils.ccsym_upload_v2_protocol.ccsym_upload_v2_protocol.hsymbol_collector_client.ccsymbol_collector_client.h
google_breakpad
common
breakpad_types.hminidump_cpu_amd64.hminidump_cpu_arm.hminidump_cpu_arm64.hminidump_cpu_mips.hminidump_cpu_ppc.hminidump_cpu_ppc64.hminidump_cpu_riscv.hminidump_cpu_sparc.hminidump_cpu_x86.hminidump_exception_fuchsia.hminidump_exception_linux.hminidump_exception_mac.hminidump_exception_ps3.hminidump_exception_solaris.hminidump_exception_win32.hminidump_format.hminidump_size.h
processor
basic_source_line_resolver.hcall_stack.hcode_module.hcode_modules.hdump_context.hdump_object.hexception_record.hexploitability.hfast_source_line_resolver.hmemory_region.hmicrodump.hmicrodump_processor.hminidump.hminidump_processor.hproc_maps_linux.hprocess_result.hprocess_state.hsource_line_resolver_base.hsource_line_resolver_interface.hstack_frame.hstack_frame_cpu.hstack_frame_symbolizer.hstackwalker.hsymbol_supplier.hsystem_info.h
third_party
crashpad
.clang-format.gitattributes.gitignore.gn.style.yapf.vpython.vpython3AUTHORSBUILD.gnCMakeLists.txtDEPSREADME.md
build
BUILD.gnBUILDCONFIG.gncrashpad_buildconfig.gnicrashpad_fuzzer_test.gniinstall_linux_sysroot.py
ios
convert_gn_xcodeproj.pysetup_ios_gn.configsetup_ios_gn.pyxcodescheme-testable.templatexcodescheme.template
run_tests.pytest.gniclient
BUILD.gnannotation.ccannotation.hannotation_list.ccannotation_list.hannotation_list_test.ccannotation_test.ccclient_argv_handling.ccclient_argv_handling.hcrash_report_database.cccrash_report_database.hcrash_report_database_generic.cccrash_report_database_mac.mmcrash_report_database_test.cccrash_report_database_win.cccrashpad_client.hcrashpad_client_fuchsia.cccrashpad_client_ios.cccrashpad_client_ios_test.mmcrashpad_client_linux.cccrashpad_client_linux_test.cccrashpad_client_mac.cccrashpad_client_win.cccrashpad_client_win_test.cccrashpad_info.cccrashpad_info.hcrashpad_info_note.S
codereview.settingsios_handler
exception_processor.hexception_processor.mmexception_processor_test.mmin_process_handler.ccin_process_handler.hin_process_handler_test.ccin_process_intermediate_dump_handler.ccin_process_intermediate_dump_handler.hin_process_intermediate_dump_handler_test.ccprune_intermediate_dumps_and_crash_reports_thread.ccprune_intermediate_dumps_and_crash_reports_thread.h
prune_crash_reports.ccprune_crash_reports.hprune_crash_reports_test.ccpthread_create_linux.ccsettings.ccsettings.hsettings_test.ccsimple_address_range_bag.hsimple_address_range_bag_test.ccsimple_string_dictionary.hsimple_string_dictionary_test.ccsimulate_crash.hsimulate_crash_ios.hsimulate_crash_linux.hsimulate_crash_mac.ccsimulate_crash_mac.hsimulate_crash_mac_test.ccsimulate_crash_win.hupload_behavior_ios.hcompat
BUILD.gn
android
ios/mach
linux
mac
non_mac
non_win
win
doc
appengine/src/crashpad-home
developing.mdios_overview_design.mdman.mdoverview_design.mdstatus.mdsupport
handler
BUILD.gnCMakeLists.txtcrash_report_upload_thread.cccrash_report_upload_thread.hcrashpad_handler.mdcrashpad_handler_main.cccrashpad_handler_test.cccrashpad_handler_test_extended_handler.cchandler_main.cchandler_main.h
linux
capture_snapshot.cccapture_snapshot.hcrash_report_exception_handler.cccrash_report_exception_handler.hcros_crash_report_exception_handler.cccros_crash_report_exception_handler.hexception_handler_server.ccexception_handler_server.hexception_handler_server_test.cchandler_trampoline.cc
mac
crash_report_exception_handler.cccrash_report_exception_handler.hexception_handler_server.ccexception_handler_server.hfile_limit_annotation.ccfile_limit_annotation.h
main.ccminidump_to_upload_parameters.ccminidump_to_upload_parameters.hminidump_to_upload_parameters_test.ccprune_crash_reports_thread.ccprune_crash_reports_thread.huser_stream_data_source.ccuser_stream_data_source.hwin
.gitattributescrash_other_program.cccrash_report_exception_handler.cccrash_report_exception_handler.hcrashy_signal.cccrashy_test_program.cccrashy_test_z7_loader.ccfake_handler_that_crashes_at_startup.ccfastfail_test_program.cchanging_program.ccloader_lock_dll.ccself_destroying_test_program.cc
wer
BUILD.gncrashpad_wer.cccrashpad_wer.defcrashpad_wer.hcrashpad_wer.vercrashpad_wer_main.cccrashpad_wer_module_unittest.cc
z7_test.cppinfra/config
minidump
BUILD.gnminidump_annotation_writer.ccminidump_annotation_writer.hminidump_annotation_writer_test.ccminidump_byte_array_writer.ccminidump_byte_array_writer.hminidump_byte_array_writer_test.ccminidump_context.hminidump_context_writer.ccminidump_context_writer.hminidump_context_writer_test.ccminidump_crashpad_info_writer.ccminidump_crashpad_info_writer.hminidump_crashpad_info_writer_test.ccminidump_exception_writer.ccminidump_exception_writer.hminidump_exception_writer_test.ccminidump_extensions.ccminidump_extensions.hminidump_file_writer.ccminidump_file_writer.hminidump_file_writer_test.ccminidump_handle_writer.ccminidump_handle_writer.hminidump_handle_writer_test.ccminidump_memory_info_writer.ccminidump_memory_info_writer.hminidump_memory_info_writer_test.ccminidump_memory_writer.ccminidump_memory_writer.hminidump_memory_writer_test.ccminidump_misc_info_writer.ccminidump_misc_info_writer.hminidump_misc_info_writer_test.ccminidump_module_crashpad_info_writer.ccminidump_module_crashpad_info_writer.hminidump_module_crashpad_info_writer_test.ccminidump_module_writer.ccminidump_module_writer.hminidump_module_writer_test.ccminidump_rva_list_writer.ccminidump_rva_list_writer.hminidump_rva_list_writer_test.ccminidump_simple_string_dictionary_writer.ccminidump_simple_string_dictionary_writer.hminidump_simple_string_dictionary_writer_test.ccminidump_stream_writer.ccminidump_stream_writer.hminidump_string_writer.ccminidump_string_writer.hminidump_string_writer_test.ccminidump_system_info_writer.ccminidump_system_info_writer.hminidump_system_info_writer_test.ccminidump_thread_id_map.ccminidump_thread_id_map.hminidump_thread_id_map_test.ccminidump_thread_name_list_writer.ccminidump_thread_name_list_writer.hminidump_thread_name_list_writer_test.ccminidump_thread_writer.ccminidump_thread_writer.hminidump_thread_writer_test.ccminidump_unloaded_module_writer.ccminidump_unloaded_module_writer.hminidump_unloaded_module_writer_test.ccminidump_user_extension_stream_data_source.ccminidump_user_extension_stream_data_source.hminidump_user_stream_writer.ccminidump_user_stream_writer.hminidump_user_stream_writer_test.ccminidump_writable.ccminidump_writable.hminidump_writable_test.ccminidump_writer_util.ccminidump_writer_util.h
navbar.mdpackage.htest
minidump_byte_array_writer_test_util.ccminidump_byte_array_writer_test_util.hminidump_context_test_util.ccminidump_context_test_util.hminidump_file_writer_test_util.ccminidump_file_writer_test_util.hminidump_memory_writer_test_util.ccminidump_memory_writer_test_util.hminidump_rva_list_test_util.ccminidump_rva_list_test_util.hminidump_string_writer_test_util.ccminidump_string_writer_test_util.hminidump_user_extension_stream_util.ccminidump_user_extension_stream_util.hminidump_writable_test_util.ccminidump_writable_test_util.h
snapshot
BUILD.gnannotation_snapshot.ccannotation_snapshot.hcapture_memory.cccapture_memory.hcpu_architecture.hcpu_context.cccpu_context.hcpu_context_test.cccrashpad_info_client_options.cccrashpad_info_client_options.hcrashpad_info_client_options_test.cccrashpad_info_client_options_test_module.cccrashpad_info_size_test_module.cccrashpad_info_size_test_note.S
crashpad_types
crashpad_info_reader.cccrashpad_info_reader.hcrashpad_info_reader_test.ccimage_annotation_reader.ccimage_annotation_reader.himage_annotation_reader_test.cc
elf
elf_dynamic_array_reader.ccelf_dynamic_array_reader.helf_image_reader.ccelf_image_reader.helf_image_reader_fuzzer.cc
exception_snapshot.helf_image_reader_fuzzer_corpus
elf_image_reader_test.ccelf_image_reader_test_note.Self_symbol_table_reader.ccelf_symbol_table_reader.hmodule_snapshot_elf.ccmodule_snapshot_elf.htest_exported_symbols.symfuchsia
cpu_context_fuchsia.cccpu_context_fuchsia.hexception_snapshot_fuchsia.ccexception_snapshot_fuchsia.hmemory_map_fuchsia.ccmemory_map_fuchsia.hmemory_map_region_snapshot_fuchsia.ccmemory_map_region_snapshot_fuchsia.hprocess_reader_fuchsia.ccprocess_reader_fuchsia.hprocess_reader_fuchsia_test.ccprocess_snapshot_fuchsia.ccprocess_snapshot_fuchsia.hprocess_snapshot_fuchsia_test.ccsystem_snapshot_fuchsia.ccsystem_snapshot_fuchsia.hthread_snapshot_fuchsia.ccthread_snapshot_fuchsia.h
handle_snapshot.cchandle_snapshot.hhash_types_test.ccios
exception_snapshot_ios_intermediate_dump.ccexception_snapshot_ios_intermediate_dump.hintermediate_dump_reader_util.ccintermediate_dump_reader_util.hmemory_snapshot_ios_intermediate_dump.ccmemory_snapshot_ios_intermediate_dump.hmemory_snapshot_ios_intermediate_dump_test.ccmodule_snapshot_ios_intermediate_dump.ccmodule_snapshot_ios_intermediate_dump.hprocess_snapshot_ios_intermediate_dump.ccprocess_snapshot_ios_intermediate_dump.hprocess_snapshot_ios_intermediate_dump_test.ccsystem_snapshot_ios_intermediate_dump.ccsystem_snapshot_ios_intermediate_dump.hthread_snapshot_ios_intermediate_dump.ccthread_snapshot_ios_intermediate_dump.h
linux
capture_memory_delegate_linux.cccapture_memory_delegate_linux.hcpu_context_linux.cccpu_context_linux.hdebug_rendezvous.ccdebug_rendezvous.hdebug_rendezvous_test.ccexception_snapshot_linux.ccexception_snapshot_linux.hexception_snapshot_linux_test.ccprocess_reader_linux.ccprocess_reader_linux.hprocess_reader_linux_test.ccprocess_snapshot_linux.ccprocess_snapshot_linux.hsignal_context.hsystem_snapshot_linux.ccsystem_snapshot_linux.hsystem_snapshot_linux_test.cctest_modules.cctest_modules.hthread_snapshot_linux.ccthread_snapshot_linux.h
mac
cpu_context_mac.cccpu_context_mac.hcpu_context_mac_test.ccexception_snapshot_mac.ccexception_snapshot_mac.hmach_o_image_annotations_reader.ccmach_o_image_annotations_reader.hmach_o_image_annotations_reader_test.ccmach_o_image_annotations_reader_test_module_crashy_initializer.ccmach_o_image_annotations_reader_test_no_op.ccmach_o_image_reader.ccmach_o_image_reader.hmach_o_image_reader_test.ccmach_o_image_segment_reader.ccmach_o_image_segment_reader.hmach_o_image_segment_reader_test.ccmach_o_image_symbol_table_reader.ccmach_o_image_symbol_table_reader.hmodule_snapshot_mac.ccmodule_snapshot_mac.hprocess_reader_mac.ccprocess_reader_mac.hprocess_reader_mac_test.ccprocess_snapshot_mac.ccprocess_snapshot_mac.hprocess_types.ccprocess_types.h
memory_map_region_snapshot.hmemory_snapshot.ccmemory_snapshot.hmemory_snapshot_generic.hmemory_snapshot_test.ccprocess_types
all.proctypeannotation.proctypecrashpad_info.proctypecrashreporterclient.proctypecustom.ccdyld_images.proctypeflavors.hinternal.hloader.proctypenlist.proctypetraits.h
process_types_test.ccsystem_snapshot_mac.ccsystem_snapshot_mac.hsystem_snapshot_mac_test.ccthread_snapshot_mac.ccthread_snapshot_mac.hminidump
exception_snapshot_minidump.ccexception_snapshot_minidump.hmemory_snapshot_minidump.ccmemory_snapshot_minidump.hminidump_annotation_reader.ccminidump_annotation_reader.hminidump_context_converter.ccminidump_context_converter.hminidump_simple_string_dictionary_reader.ccminidump_simple_string_dictionary_reader.hminidump_stream.hminidump_string_list_reader.ccminidump_string_list_reader.hminidump_string_reader.ccminidump_string_reader.hmodule_snapshot_minidump.ccmodule_snapshot_minidump.hprocess_snapshot_minidump.ccprocess_snapshot_minidump.hprocess_snapshot_minidump_test.ccsystem_snapshot_minidump.ccsystem_snapshot_minidump.hthread_snapshot_minidump.ccthread_snapshot_minidump.h
module_snapshot.hposix
process_snapshot.hsanitized
memory_snapshot_sanitized.ccmemory_snapshot_sanitized.hmodule_snapshot_sanitized.ccmodule_snapshot_sanitized.hprocess_snapshot_sanitized.ccprocess_snapshot_sanitized.hprocess_snapshot_sanitized_test.ccsanitization_information.ccsanitization_information.hsanitization_information_test.ccthread_snapshot_sanitized.ccthread_snapshot_sanitized.h
snapshot_constants.hsystem_snapshot.htest
test_cpu_context.cctest_cpu_context.htest_exception_snapshot.cctest_exception_snapshot.htest_memory_map_region_snapshot.cctest_memory_map_region_snapshot.htest_memory_snapshot.cctest_memory_snapshot.htest_module_snapshot.cctest_module_snapshot.htest_process_snapshot.cctest_process_snapshot.htest_system_snapshot.cctest_system_snapshot.htest_thread_snapshot.cctest_thread_snapshot.h
thread_snapshot.hunloaded_module_snapshot.ccunloaded_module_snapshot.hwin
capture_memory_delegate_win.cccapture_memory_delegate_win.hcpu_context_win.cccpu_context_win.hcpu_context_win_test.cccrashpad_snapshot_test_annotations.cccrashpad_snapshot_test_crashing_child.cccrashpad_snapshot_test_dump_without_crashing.cccrashpad_snapshot_test_extra_memory_ranges.cccrashpad_snapshot_test_image_reader.cccrashpad_snapshot_test_image_reader_module.ccend_to_end_test.pyexception_snapshot_win.ccexception_snapshot_win.hexception_snapshot_win_test.ccextra_memory_ranges_test.ccmemory_map_region_snapshot_win.ccmemory_map_region_snapshot_win.hmodule_snapshot_win.ccmodule_snapshot_win.hmodule_snapshot_win_test.ccpe_image_annotations_reader.ccpe_image_annotations_reader.hpe_image_reader.ccpe_image_reader.hpe_image_reader_test.ccpe_image_resource_reader.ccpe_image_resource_reader.hprocess_reader_win.ccprocess_reader_win.hprocess_reader_win_test.ccprocess_snapshot_win.ccprocess_snapshot_win.hprocess_snapshot_win_test.ccprocess_subrange_reader.ccprocess_subrange_reader.hsystem_snapshot_win.ccsystem_snapshot_win.hsystem_snapshot_win_test.ccthread_snapshot_win.ccthread_snapshot_win.h
x86
test
BUILD.gnerrors.ccerrors.hfile.ccfile.hfilesystem.ccfilesystem.hfuchsia_crashpad_tests.cmlfuchsia_crashpad_tests.cmxgtest_death.hgtest_main.cchex_string.cchex_string.hhex_string_test.cc
ios
BUILD.gncptest_google_test_runner.mmcptest_google_test_runner_delegate.hcrash_type_xctest.mmgoogle_test_setup.hgoogle_test_setup.mm
host
linux
mac
dyld.ccdyld.hexception_swallower.ccexception_swallower.hmach_errors.ccmach_errors.hmach_multiprocess.ccmach_multiprocess.hmach_multiprocess_test.cc
main_arguments.ccmain_arguments.hmain_arguments_test.ccmultiprocess.hmultiprocess_exec.ccmultiprocess_exec.hmultiprocess_exec_fuchsia.ccmultiprocess_exec_posix.ccmultiprocess_exec_test.ccmultiprocess_exec_test_child.ccmultiprocess_exec_win.ccmultiprocess_posix.ccmultiprocess_posix_test.ccprocess_type.ccprocess_type.hscoped_guarded_page.hscoped_guarded_page_posix.ccscoped_guarded_page_test.ccscoped_guarded_page_win.ccscoped_module_handle.ccscoped_module_handle.hscoped_set_thread_name.hscoped_set_thread_name_fuchsia.ccscoped_set_thread_name_posix.ccscoped_set_thread_name_win.ccscoped_temp_dir.ccscoped_temp_dir.hscoped_temp_dir_posix.ccscoped_temp_dir_test.ccscoped_temp_dir_win.cctest_paths.cctest_paths.htest_paths_test.cctest_paths_test_data_root.txtwin
third_party
cpp-httplib
edo
fuchsia
getopt
googletest
lss
mini_chromium
BUILD.gn
mini_chromium
.gitattributes.gitignore.style.yapfAUTHORSBUILD.gnLICENSEREADME.md
base
BUILD.gnatomicops.hatomicops_internals_atomicword_compat.hatomicops_internals_portable.hauto_reset.hbit_cast.hcheck.hcheck_op.hcompiler_specific.hcxx17_backports.h
debug
files
format_macros.hfuchsia
logging.cclogging.hmac
close_nocancel.ccfoundation_util.hfoundation_util.mmmach_logging.ccmach_logging.hscoped_cftyperef.hscoped_ioobject.hscoped_launch_data.hscoped_mach_port.ccscoped_mach_port.hscoped_mach_vm.ccscoped_mach_vm.hscoped_nsautorelease_pool.hscoped_nsautorelease_pool.mmscoped_nsobject.hscoped_typeref.h
memory
metrics
notreached.hnumerics
checked_math.hchecked_math_impl.hclamped_math.hclamped_math_impl.hsafe_conversions.hsafe_conversions_arm_impl.hsafe_conversions_impl.hsafe_math.hsafe_math_arm_impl.hsafe_math_clang_gcc_impl.hsafe_math_shared_impl.h
posix
process
rand_util.ccrand_util.hscoped_clear_last_error.hscoped_clear_last_error_win.ccscoped_generic.hstrings
string_number_conversions.ccstring_number_conversions.hstring_piece.hstring_util.ccstring_util.hstring_util_posix.hstring_util_win.ccstring_util_win.hstringprintf.ccstringprintf.hsys_string_conversions.hsys_string_conversions_mac.mmutf_string_conversion_utils.ccutf_string_conversion_utils.hutf_string_conversions.ccutf_string_conversions.h
synchronization
condition_variable.hcondition_variable_posix.cclock.cclock.hlock_impl.hlock_impl_posix.cclock_impl_win.cc
sys_byteorder.htemplate_util.hthreading
build
BUILD.gnbuild_config.hbuildflag.hbuildflag_header.gnicompiler.gni
codereview.settingsconfig
find_mac_sdk.pyios
BUILD.gncodesign.pyfind_signing_identity.pyios_sdk.gniplist_util.pyrules.gnisdk_info.pystrip_arm64e.py
platform.gnisysroot.gniwin_helper.pywrite_buildflag_header.pyninja
xnu
zlib
tools
BUILD.gnbase94_encoder.ccbase94_encoder.mdcrashpad_database_util.cccrashpad_database_util.mdcrashpad_http_upload.cccrashpad_http_upload.mdgenerate_dump.ccgenerate_dump.md
mac
catch_exception_tool.cccatch_exception_tool.mdexception_port_tool.ccexception_port_tool.mdon_demand_service_tool.mdon_demand_service_tool.mm
run_with_crashpad.ccrun_with_crashpad.mdtool_support.cctool_support.hutil
BUILD.gnCMakeLists.txt
file
delimited_file_reader.ccdelimited_file_reader.hdelimited_file_reader_test.ccdirectory_reader.hdirectory_reader_posix.ccdirectory_reader_test.ccdirectory_reader_win.ccfile_helper.ccfile_helper.hfile_io.ccfile_io.hfile_io_posix.ccfile_io_test.ccfile_io_win.ccfile_reader.ccfile_reader.hfile_reader_test.ccfile_seeker.ccfile_seeker.hfile_writer.ccfile_writer.hfilesystem.hfilesystem_posix.ccfilesystem_test.ccfilesystem_win.ccoutput_stream_file_writer.ccoutput_stream_file_writer.hscoped_remove_file.ccscoped_remove_file.hstring_file.ccstring_file.hstring_file_test.cc
fuchsia
ios
ios_intermediate_dump_data.ccios_intermediate_dump_data.hios_intermediate_dump_format.hios_intermediate_dump_interface.ccios_intermediate_dump_interface.hios_intermediate_dump_list.ccios_intermediate_dump_list.hios_intermediate_dump_map.ccios_intermediate_dump_map.hios_intermediate_dump_object.ccios_intermediate_dump_object.hios_intermediate_dump_reader.ccios_intermediate_dump_reader.hios_intermediate_dump_reader_test.ccios_intermediate_dump_writer.ccios_intermediate_dump_writer.hios_intermediate_dump_writer_test.ccios_system_data_collector.hios_system_data_collector.mmraw_logging.ccraw_logging.hscoped_background_task.mmscoped_vm_read.ccscoped_vm_read.hscoped_vm_read_test.cc
linux
address_types.hauxiliary_vector.ccauxiliary_vector.hauxiliary_vector_test.ccchecked_linux_address_range.hdirect_ptrace_connection.ccdirect_ptrace_connection.hexception_handler_client.ccexception_handler_client.hexception_handler_protocol.ccexception_handler_protocol.hexception_information.hinitial_signal_dispositions.ccinitial_signal_dispositions.hmemory_map.ccmemory_map.hmemory_map_test.ccproc_stat_reader.ccproc_stat_reader.hproc_stat_reader_test.ccproc_task_reader.ccproc_task_reader.hproc_task_reader_test.ccptrace_broker.ccptrace_broker.hptrace_broker_test.ccptrace_client.ccptrace_client.hptrace_connection.hptracer.ccptracer.hptracer_test.ccscoped_pr_set_dumpable.ccscoped_pr_set_dumpable.hscoped_pr_set_ptracer.ccscoped_pr_set_ptracer.hscoped_ptrace_attach.ccscoped_ptrace_attach.hscoped_ptrace_attach_test.ccsocket.ccsocket.hsocket_test.ccthread_info.ccthread_info.htraits.h
mac
checked_mach_address_range.hchecked_mach_address_range_test.cclaunchd.hlaunchd.mmlaunchd_test.mmmac_util.ccmac_util.hmac_util_test.mmservice_management.ccservice_management.hservice_management_test.mmsysctl.ccsysctl.hsysctl_test.ccxattr.ccxattr.hxattr_test.cc
mach
bootstrap.ccbootstrap.hbootstrap_test.ccchild_port.defschild_port_handshake.ccchild_port_handshake.hchild_port_handshake_test.ccchild_port_server.ccchild_port_server.hchild_port_server_test.ccchild_port_types.hcomposite_mach_message_server.cccomposite_mach_message_server.hcomposite_mach_message_server_test.ccexc_client_variants.ccexc_client_variants.hexc_client_variants_test.ccexc_server_variants.ccexc_server_variants.hexc_server_variants_test.ccexception_behaviors.ccexception_behaviors.hexception_behaviors_test.ccexception_ports.ccexception_ports.hexception_ports_test.ccexception_types.ccexception_types.hexception_types_test.ccmach_extensions.ccmach_extensions.hmach_extensions_test.ccmach_message.ccmach_message.hmach_message_server.ccmach_message_server.hmach_message_server_test.ccmach_message_test.ccmig.pymig_fix.pymig_gen.pynotify_server.ccnotify_server.hnotify_server_test.ccscoped_task_suspend.ccscoped_task_suspend.hscoped_task_suspend_test.ccsymbolic_constants_mach.ccsymbolic_constants_mach.hsymbolic_constants_mach_test.cctask_for_pid.cctask_for_pid.h
misc
address_sanitizer.haddress_types.harm64_pac_bti.Sarraysize.harraysize_test.ccas_underlying_type.hcapture_context.hcapture_context_fuchsia.Scapture_context_linux.Scapture_context_mac.Scapture_context_test.cccapture_context_test_util.hcapture_context_test_util_fuchsia.cccapture_context_test_util_linux.cccapture_context_test_util_mac.cccapture_context_test_util_win.cccapture_context_win.asmcapture_context_win_arm64.asmclock.hclock_mac.ccclock_posix.ccclock_test.ccclock_win.ccelf_note_types.hfrom_pointer_cast.hfrom_pointer_cast_test.ccimplicit_cast.hinitialization_state.hinitialization_state_dcheck.ccinitialization_state_dcheck.hinitialization_state_dcheck_test.ccinitialization_state_test.cclexing.cclexing.hmemory_sanitizer.hmetrics.ccmetrics.hno_cfi_icall.hno_cfi_icall_test.ccpaths.hpaths_fuchsia.ccpaths_linux.ccpaths_mac.ccpaths_test.ccpaths_win.ccpdb_structures.ccpdb_structures.hrandom_string.ccrandom_string.hrandom_string_test.ccrange_set.ccrange_set.hrange_set_test.ccreinterpret_bytes.ccreinterpret_bytes.hreinterpret_bytes_test.ccscoped_forbid_return.ccscoped_forbid_return.hscoped_forbid_return_test.ccsymbolic_constants_common.htime.cctime.htime_linux.cctime_test.cctime_win.cctri_state.huuid.ccuuid.huuid_test.cczlib.cczlib.h
net
generate_test_server_key.pyhttp_body.cchttp_body.hhttp_body_gzip.cchttp_body_gzip.hhttp_body_gzip_test.cchttp_body_test.cchttp_body_test_util.cchttp_body_test_util.hhttp_headers.hhttp_multipart_builder.cchttp_multipart_builder.hhttp_multipart_builder_test.cchttp_transport.cchttp_transport.hhttp_transport_libcurl.cchttp_transport_mac.mmhttp_transport_socket.cchttp_transport_test.cchttp_transport_test_server.cchttp_transport_win.cctls.gniurl.ccurl.hurl_test.cc
numeric
checked_address_range.ccchecked_address_range.hchecked_address_range_test.ccchecked_range.hchecked_range_test.ccchecked_vm_address_range.hin_range_cast.hin_range_cast_test.ccint128.hint128_test.ccsafe_assignment.h
posix
close_multiple.ccclose_multiple.hclose_stdio.ccclose_stdio.hdouble_fork_and_exec.ccdrop_privileges.ccdrop_privileges.hprocess_info.hprocess_info_linux.ccprocess_info_mac.ccprocess_info_test.ccscoped_dir.ccscoped_dir.hscoped_mmap.ccscoped_mmap.hscoped_mmap_test.ccsignals.ccsignals.hsignals_test.ccspawn_subprocess.ccspawn_subprocess.hsymbolic_constants_posix.ccsymbolic_constants_posix.hsymbolic_constants_posix_test.cc
process
process_id.hprocess_memory.ccprocess_memory.hprocess_memory_fuchsia.ccprocess_memory_fuchsia.hprocess_memory_linux.ccprocess_memory_linux.hprocess_memory_mac.ccprocess_memory_mac.hprocess_memory_mac_test.ccprocess_memory_native.hprocess_memory_range.ccprocess_memory_range.hprocess_memory_range_test.ccprocess_memory_sanitized.ccprocess_memory_sanitized.hprocess_memory_sanitized_test.ccprocess_memory_test.ccprocess_memory_win.ccprocess_memory_win.h
stdlib
aligned_allocator.ccaligned_allocator.haligned_allocator_test.ccmap_insert.hmap_insert_test.ccobjc.hstring_number_conversion.ccstring_number_conversion.hstring_number_conversion_test.ccstrlcpy.ccstrlcpy.hstrlcpy_test.ccstrnlen.ccstrnlen.hstrnlen_test.ccthread_safe_vector.hthread_safe_vector_test.cc
stream
base94_output_stream.ccbase94_output_stream.hbase94_output_stream_test.ccfile_encoder.ccfile_encoder.hfile_encoder_test.ccfile_output_stream.ccfile_output_stream.hlog_output_stream.cclog_output_stream.hlog_output_stream_test.ccoutput_stream_interface.htest_output_stream.cctest_output_stream.hzlib_output_stream.cczlib_output_stream.hzlib_output_stream_test.cc
string
synchronization
thread
stoppable.hthread.ccthread.hthread_log_messages.ccthread_log_messages.hthread_log_messages_test.ccthread_posix.ccthread_test.ccthread_win.ccworker_thread.ccworker_thread.hworker_thread_test.cc
win
address_types.hchecked_win_address_range.hcommand_line.cccommand_line.hcommand_line_test.cccontext_wrappers.hcritical_section_with_debug_info.cccritical_section_with_debug_info.hcritical_section_with_debug_info_test.ccexception_codes.hexception_handler_server.ccexception_handler_server.hexception_handler_server_test.ccget_function.ccget_function.hget_function_test.ccget_module_information.ccget_module_information.hhandle.cchandle.hhandle_test.ccinitial_client_data.ccinitial_client_data.hinitial_client_data_test.ccloader_lock.ccloader_lock.hloader_lock_test.ccloader_lock_test_dll.ccmodule_version.ccmodule_version.hnt_internals.ccnt_internals.hntstatus_logging.ccntstatus_logging.hprocess_info.ccprocess_info.hprocess_info_test.ccprocess_info_test_child.ccprocess_structs.hregistration_protocol_win.ccregistration_protocol_win.hregistration_protocol_win_structs.hregistration_protocol_win_test.ccsafe_terminate_process.asmsafe_terminate_process.hsafe_terminate_process_broken.ccsafe_terminate_process_test.ccsafe_terminate_process_test_child.ccscoped_handle.ccscoped_handle.hscoped_local_alloc.ccscoped_local_alloc.hscoped_process_suspend.ccscoped_process_suspend.hscoped_process_suspend_test.ccscoped_registry_key.hscoped_set_event.ccscoped_set_event.hsession_end_watcher.ccsession_end_watcher.hsession_end_watcher_test.cctermination_codes.htraits.hxp_compat.h
libunwindstack-ndk
ArmExidx.cppArmExidx.hCheck.hDexFile.cppDexFile.hDexFiles.cppDwarfCfa.cppDwarfCfa.hDwarfDebugFrame.hDwarfEhFrame.hDwarfEhFrameWithHdr.hDwarfEncoding.hDwarfOp.cppDwarfOp.hDwarfSection.cppElf.cppElfInterface.cppElfInterfaceArm.cppElfInterfaceArm.hGlobal.cppGlobalDebugImpl.hJitDebug.cppLocalUnwinder.cppLogAndroid.cppLogStdout.cppMapInfo.cppMaps.cppMemory.cppMemoryBuffer.hMemoryCache.hMemoryFileAtOffset.hMemoryLocal.hMemoryMte.cppMemoryOffline.hMemoryOfflineBuffer.hMemoryRange.hMemoryRemote.hREADME.mdRegs.cppRegsArm64.cppRegsInfo.hSymbols.cppSymbols.hThreadEntry.cppThreadEntry.hThreadUnwinder.cppUnwinder.cpp
cmake
include
GlobalDebugInterface.h
unwindstack
AndroidUnwinder.hArch.hDexFiles.hDwarfError.hDwarfLocation.hDwarfMemory.hDwarfSection.hDwarfStructs.hElf.hElfInterface.hError.hGlobal.hJitDebug.hLocalUnwinder.hLog.hMachineArm.hMachineArm64.hMachineX86.hMachineX86_64.hMapInfo.hMaps.hMemory.hRegs.hRegsArm.hRegsArm64.hRegsGetLocal.hRegsX86.hRegsX86_64.hSharedString.hUcontextArm.hUcontextArm64.hUcontextX86.hUcontextX86_64.hUnwinder.hUserArm.hUserArm64.hUserX86.hUserX86_64.h
include
src
backends
modulefinder
path
sentry_core.csentry_database.csentry_sync.csentry_tracing.csentry_tracing.htransports
tests
90
thirdparty/sentry-native/CHANGELOG.md
vendored
90
thirdparty/sentry-native/CHANGELOG.md
vendored
@ -1,30 +1,81 @@
|
||||
# Changelog
|
||||
|
||||
## 0.5.4
|
||||
|
||||
**Fixes**:
|
||||
|
||||
- Better error messages in `sentry_transport_curl`. ([#777](https://github.com/getsentry/sentry-native/pull/777))
|
||||
- Increased curl headers buffer size to 512 (in `sentry_transport_curl`). ([#784](https://github.com/getsentry/sentry-native/pull/784))
|
||||
- Fix sporadic crash on Windows due to race condition when initializing background-worker thread-id. ([#785](https://github.com/getsentry/sentry-native/pull/785))
|
||||
- Open the database file-lock on "UNIX" with `O_RDRW` ([#791](https://github.com/getsentry/sentry-native/pull/791))
|
||||
|
||||
**Internal**:
|
||||
|
||||
- Updated Breakpad and Crashpad backends to 2022-12-12. ([#778](https://github.com/getsentry/sentry-native/pull/778))
|
||||
|
||||
**Thank you**:
|
||||
|
||||
Features, fixes and improvements in this release have been contributed by:
|
||||
|
||||
- [@cnicolaescu](https://github.com/cnicolaescu)
|
||||
|
||||
## 0.5.3
|
||||
|
||||
**Fixes**:
|
||||
|
||||
- Linux module-finder now also searches for code-id in ".note" ELF sections ([#775](https://github.com/getsentry/sentry-native/pull/775))
|
||||
|
||||
**Internal**:
|
||||
|
||||
- CI: updated github actions to upgrade deprecated node runners. ([#767](https://github.com/getsentry/sentry-native/pull/767))
|
||||
- CI: upgraded Ubuntu to 20.04 for "old gcc" (v7) job due to deprecation. ([#768](https://github.com/getsentry/sentry-native/pull/768))
|
||||
|
||||
## 0.5.2
|
||||
|
||||
**Fixes**:
|
||||
|
||||
- Fix build when CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION is undefined. ([crashpad#73](https://github.com/getsentry/crashpad/pull/73))
|
||||
|
||||
**Internal**:
|
||||
|
||||
- Updated Breakpad and Crashpad backends to 2022-10-17. ([#765](https://github.com/getsentry/sentry-native/pull/765))
|
||||
|
||||
**Thank you**:
|
||||
|
||||
Features, fixes and improvements in this release have been contributed by:
|
||||
|
||||
- [@AenBleidd](https://github.com/AenBleidd)
|
||||
|
||||
## 0.5.1
|
||||
|
||||
**Features**:
|
||||
|
||||
- Crashpad on Windows now supports `fast-fail` crashes via a registered Windows Error Reporting (WER) module. ([#735](https://github.com/getsentry/sentry-native/pull/735))
|
||||
|
||||
**Fixes**:
|
||||
|
||||
- Fix "flush" implementation of winhttp transport. ([#763](https://github.com/getsentry/sentry-native/pull/763))
|
||||
|
||||
**Internal**:
|
||||
|
||||
- Updated libunwindstack-ndk submodule to 2022-09-16. ([#759](https://github.com/getsentry/sentry-native/pull/759))
|
||||
- Updated Breakpad and Crashpad backends to 2022-09-14. ([#735](https://github.com/getsentry/sentry-native/pull/735))
|
||||
- Be more defensive around transactions ([#757](https://github.com/getsentry/sentry-native/pull/757))
|
||||
- Added a CI timeout for the Android simulator start. ([#764](https://github.com/getsentry/sentry-native/pull/764))
|
||||
|
||||
## 0.5.0
|
||||
|
||||
**Features**
|
||||
**Features**:
|
||||
|
||||
- Provide `on_crash()` callback to allow clients to act on detected crashes.
|
||||
Users often inquired about distinguishing between crashes and "normal" events in the `before_send()` hook.
|
||||
`on_crash()` can be considered a replacement for `before_send()` for crash events, where the goal is to use
|
||||
`before_send()` only for normal events, while `on_crash()` is only invoked for crashes. This change is backward
|
||||
compatible for current users of `before_send()` and allows gradual migration to `on_crash()`
|
||||
([see the docs for details](https://docs.sentry.io/platforms/native/configuration/filtering/)).
|
||||
([#724](https://github.com/getsentry/sentry-native/pull/724),
|
||||
[#734](https://github.com/getsentry/sentry-native/pull/734))
|
||||
Users often inquired about distinguishing between crashes and "normal" events in the `before_send()` hook. `on_crash()` can be considered a replacement for `before_send()` for crash events, where the goal is to use `before_send()` only for normal events, while `on_crash()` is only invoked for crashes. This change is backward compatible for current users of `before_send()` and allows gradual migration to `on_crash()` ([see the docs for details](https://docs.sentry.io/platforms/native/configuration/filtering/)). ([#724](https://github.com/getsentry/sentry-native/pull/724), [#734](https://github.com/getsentry/sentry-native/pull/734))
|
||||
|
||||
**Fixes**
|
||||
**Fixes**:
|
||||
|
||||
- Make Windows ModuleFinder more resilient to missing Debug Info
|
||||
([#732](https://github.com/getsentry/sentry-native/pull/732))
|
||||
- Aligned pre-send event processing in `sentry_capture_event()` with the
|
||||
[cross-SDK session filter order](https://develop.sentry.dev/sdk/sessions/#filter-order)
|
||||
([#729](https://github.com/getsentry/sentry-native/pull/729))
|
||||
- Align the default value initialization for the `environment` payload attribute with the
|
||||
[developer documentation](https://develop.sentry.dev/sdk/event-payloads/#optional-attribute)
|
||||
([#739](https://github.com/getsentry/sentry-native/pull/739))
|
||||
- Iterate all debug directory entries when parsing PE modules for a valid CodeView record
|
||||
([#740](https://github.com/getsentry/sentry-native/pull/740))
|
||||
- Make Windows ModuleFinder more resilient to missing Debug Info ([#732](https://github.com/getsentry/sentry-native/pull/732))
|
||||
- Aligned pre-send event processing in `sentry_capture_event()` with the [cross-SDK session filter order](https://develop.sentry.dev/sdk/sessions/#filter-order) ([#729](https://github.com/getsentry/sentry-native/pull/729))
|
||||
- Align the default value initialization for the `environment` payload attribute with the [developer documentation](https://develop.sentry.dev/sdk/event-payloads/#optional-attribute) ([#739](https://github.com/getsentry/sentry-native/pull/739))
|
||||
- Iterate all debug directory entries when parsing PE modules for a valid CodeView record ([#740](https://github.com/getsentry/sentry-native/pull/740))
|
||||
|
||||
**Thank you**:
|
||||
|
||||
@ -608,6 +659,7 @@ See [#220](https://github.com/getsentry/sentry-native/issues/220) for details.
|
||||
This function now takes a pointer to the new `sentry_transport_t` type.
|
||||
Migrating from the old API can be done by wrapping with
|
||||
`sentry_new_function_transport`, like this:
|
||||
|
||||
```c
|
||||
sentry_options_set_transport(
|
||||
options, sentry_new_function_transport(send_envelope_func, &closure_data));
|
||||
|
20
thirdparty/sentry-native/CMakeLists.txt
vendored
20
thirdparty/sentry-native/CMakeLists.txt
vendored
@ -436,6 +436,9 @@ if(SENTRY_BACKEND_CRASHPAD)
|
||||
set(CRASHPAD_ENABLE_INSTALL ON CACHE BOOL "Enable crashpad installation" FORCE)
|
||||
endif()
|
||||
add_subdirectory(external/crashpad crashpad_build)
|
||||
if(CRASHPAD_WER_ENABLED)
|
||||
add_compile_definitions(CRASHPAD_WER_ENABLED)
|
||||
endif()
|
||||
|
||||
# set static runtime if enabled
|
||||
if(SENTRY_BUILD_RUNTIMESTATIC AND MSVC)
|
||||
@ -448,6 +451,9 @@ if(SENTRY_BACKEND_CRASHPAD)
|
||||
set_property(TARGET crashpad_snapshot PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
set_property(TARGET crashpad_tools PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
set_property(TARGET crashpad_util PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
if(CRASHPAD_WER_ENABLED)
|
||||
set_property(TARGET crashpad_wer PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
set_property(TARGET crashpad_zlib PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
set_property(TARGET mini_chromium PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
@ -464,6 +470,9 @@ if(SENTRY_BACKEND_CRASHPAD)
|
||||
set_target_properties(crashpad_util PROPERTIES FOLDER ${SENTRY_FOLDER})
|
||||
set_target_properties(crashpad_zlib PROPERTIES FOLDER ${SENTRY_FOLDER})
|
||||
set_target_properties(mini_chromium PROPERTIES FOLDER ${SENTRY_FOLDER})
|
||||
if(CRASHPAD_WER_ENABLED)
|
||||
set_target_properties(crashpad_wer PROPERTIES FOLDER ${SENTRY_FOLDER})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(sentry PRIVATE
|
||||
@ -476,9 +485,16 @@ if(SENTRY_BACKEND_CRASHPAD)
|
||||
if(WIN32 AND MSVC)
|
||||
sentry_install(FILES $<TARGET_PDB_FILE:crashpad_handler>
|
||||
DESTINATION "${CMAKE_INSTALL_BINDIR}" OPTIONAL)
|
||||
if (CRASHPAD_WER_ENABLED)
|
||||
sentry_install(FILES $<TARGET_PDB_FILE:crashpad_wer>
|
||||
DESTINATION "${CMAKE_INSTALL_BINDIR}" OPTIONAL)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
add_dependencies(sentry crashpad::handler)
|
||||
if(CRASHPAD_WER_ENABLED)
|
||||
add_dependencies(sentry crashpad::wer)
|
||||
endif()
|
||||
elseif(SENTRY_BACKEND_BREAKPAD)
|
||||
option(SENTRY_BREAKPAD_SYSTEM "Use system breakpad" OFF)
|
||||
if(SENTRY_BREAKPAD_SYSTEM)
|
||||
@ -568,6 +584,10 @@ if(SENTRY_BUILD_EXAMPLES)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(sentry_example PRIVATE $<BUILD_INTERFACE:/wd5105>)
|
||||
if(CRASHPAD_WER_ENABLED)
|
||||
# to test handling SEH by-passing exceptions we need to enable the control flow guard
|
||||
target_compile_options(sentry_example PRIVATE $<BUILD_INTERFACE:/guard:cf>)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# set static runtime if enabled
|
||||
|
9
thirdparty/sentry-native/CONTRIBUTING.md
vendored
9
thirdparty/sentry-native/CONTRIBUTING.md
vendored
@ -122,7 +122,7 @@ The example can be run manually with a variety of commands to test different
|
||||
scenarios. Additionally, it will use the `SENTRY_DSN` env-variable, and can thus
|
||||
also be used to capture events/crashes directly to sentry.
|
||||
|
||||
The example currently supports the following commends:
|
||||
The example currently supports the following commands:
|
||||
|
||||
- `capture-event`: Captures an event.
|
||||
- `crash`: Triggers a crash to be captured.
|
||||
@ -141,6 +141,11 @@ The example currently supports the following commends:
|
||||
- `add-stacktrace`: Adds the current thread stacktrace to the captured event.
|
||||
- `disable-backend`: Disables the build-configured crash-handler backend.
|
||||
- `before-send`: Installs a `before_send()` callback that retains the event.
|
||||
- `discarding-before-send`: Installs a `before_send()` callback that retains the event.
|
||||
- `discarding-before-send`: Installs a `before_send()` callback that discards the event.
|
||||
- `on-crash`: Installs an `on_crash()` callback that retains the crash event.
|
||||
- `discarding-on-crash`: Installs an `on_crash()` callback that discards the crash event.
|
||||
|
||||
Only on Windows using crashpad with its WER handler module:
|
||||
|
||||
- `fastfail`: Crashes the application using the `__fastfail` intrinsic directly, thus by-passing SEH.
|
||||
- `stack-buffer-overrun`: Triggers the Windows Control Flow Guard, which also fast fails and in turn by-passes SEH.
|
||||
|
8
thirdparty/sentry-native/README.md
vendored
8
thirdparty/sentry-native/README.md
vendored
@ -315,8 +315,14 @@ Other important configuration options include:
|
||||
|
||||
- The crashpad backend on macOS currently has no support for notifying the crashing
|
||||
process, and can thus not properly terminate sessions or call the registered
|
||||
`before_send` hook. It will also lose any events that have been queued for
|
||||
`before_send` or `on_crash` hook. It will also lose any events that have been queued for
|
||||
sending at time of crash.
|
||||
- The Crashpad backend on Windows supports fast-fail crashes, which bypass SEH (Structured
|
||||
Exception Handling) primarily for security reasons. `sentry-native` registers a WER (Windows Error
|
||||
Reporting) module, which signals the `crashpad_handler` to send a minidump when a fast-fail crash occurs
|
||||
But since this process bypasses SEH, the application local exception handler is no longer invoked, which
|
||||
also means that for these kinds of crashes, `before_send` and `on_crash` will not be invoked before
|
||||
sending the minidump and thus have no effect.
|
||||
|
||||
## Development
|
||||
|
||||
|
55
thirdparty/sentry-native/examples/example.c
vendored
55
thirdparty/sentry-native/examples/example.c
vendored
@ -93,6 +93,53 @@ has_arg(int argc, char **argv, const char *arg)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef CRASHPAD_WER_ENABLED
|
||||
int
|
||||
call_rffe_many_times()
|
||||
{
|
||||
RaiseFailFastException(NULL, NULL, 0);
|
||||
RaiseFailFastException(NULL, NULL, 0);
|
||||
RaiseFailFastException(NULL, NULL, 0);
|
||||
RaiseFailFastException(NULL, NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
typedef int (*crash_func)();
|
||||
|
||||
void
|
||||
indirect_call(crash_func func)
|
||||
{
|
||||
// This code always generates CFG guards.
|
||||
func();
|
||||
}
|
||||
|
||||
static void
|
||||
trigger_stack_buffer_overrun()
|
||||
{
|
||||
// Call into the middle of the Crashy function.
|
||||
crash_func func = (crash_func)((uintptr_t)(call_rffe_many_times) + 16);
|
||||
__try {
|
||||
// Generates a STATUS_STACK_BUFFER_OVERRUN exception if CFG triggers.
|
||||
indirect_call(func);
|
||||
} __except (EXCEPTION_EXECUTE_HANDLER) {
|
||||
// CFG fast fail should never be caught.
|
||||
printf(
|
||||
"If you see me, then CFG wasn't enabled (compile with /guard:cf)");
|
||||
}
|
||||
// Should only reach here if CFG is disabled.
|
||||
abort();
|
||||
}
|
||||
|
||||
static void
|
||||
trigger_fastfail_crash()
|
||||
{
|
||||
// this bypasses WINDOWS SEH and will only be caught with the crashpad WER
|
||||
// module enabled
|
||||
__fastfail(77);
|
||||
}
|
||||
|
||||
#endif // CRASHPAD_WER_ENABLED
|
||||
|
||||
#ifdef SENTRY_PLATFORM_AIX
|
||||
// AIX has a null page mapped to the bottom of memory, which means null derefs
|
||||
// don't segfault. try dereferencing the top of memory instead; the top nibble
|
||||
@ -250,6 +297,14 @@ main(int argc, char **argv)
|
||||
if (has_arg(argc, argv, "crash")) {
|
||||
trigger_crash();
|
||||
}
|
||||
#ifdef CRASHPAD_WER_ENABLED
|
||||
if (has_arg(argc, argv, "fastfail")) {
|
||||
trigger_fastfail_crash();
|
||||
}
|
||||
if (has_arg(argc, argv, "stack-buffer-overrun")) {
|
||||
trigger_stack_buffer_overrun();
|
||||
}
|
||||
#endif
|
||||
if (has_arg(argc, argv, "assert")) {
|
||||
assert(0);
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
# GitHub actions workflow.
|
||||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
|
||||
|
||||
# https://github.com/superbrothers/close-pull-request
|
||||
name: Close Pull Request
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: >
|
||||
Thanks for your contribution!
|
||||
Unfortunately, we don't use GitHub pull requests to manage code
|
||||
contributions to this repository.
|
||||
Instead, please see [README.md](../blob/HEAD/README.md) which
|
||||
provides full instructions on how to get involved.
|
@ -1,4 +1,4 @@
|
||||
# Copyright 2014 Google Inc. All rights reserved.
|
||||
# Copyright 2014 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -10,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
@ -69,7 +69,7 @@ config.h
|
||||
/Makefile
|
||||
stamp-h1
|
||||
|
||||
# Ignore GYP generated Visual Studio artifacts.
|
||||
# Ignore generated Visual Studio artifacts.
|
||||
*.filters
|
||||
*.sdf
|
||||
*.sln
|
||||
@ -77,7 +77,7 @@ stamp-h1
|
||||
*.vcproj
|
||||
*.vcxproj
|
||||
|
||||
# Ignore GYP generated Makefiles
|
||||
# Ignore generated Makefiles
|
||||
src/Makefile
|
||||
*.Makefile
|
||||
*.target.mk
|
||||
@ -89,4 +89,3 @@ src/Makefile
|
||||
src/testing
|
||||
src/third_party/lss
|
||||
src/third_party/protobuf
|
||||
src/tools/gyp
|
||||
|
32
thirdparty/sentry-native/external/breakpad/DEPS
vendored
32
thirdparty/sentry-native/external/breakpad/DEPS
vendored
@ -1,4 +1,4 @@
|
||||
# Copyright 2010 Google Inc. All rights reserved.
|
||||
# Copyright 2010 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -10,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
@ -43,15 +43,10 @@ deps = {
|
||||
"https://github.com/google/protobuf.git" +
|
||||
"@cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac",
|
||||
|
||||
# GYP project generator.
|
||||
"src/src/tools/gyp":
|
||||
"https://chromium.googlesource.com/external/gyp/" +
|
||||
"@324dd166b7c0b39d513026fa52d6280ac6d56770",
|
||||
|
||||
# Linux syscall support.
|
||||
"src/src/third_party/lss":
|
||||
"https://chromium.googlesource.com/linux-syscall-support/" +
|
||||
"@e1e7b0ad8ee99a875b272c8e33e308472e897660",
|
||||
"@9719c1e1e676814c456b55f5f070eabad6709d31",
|
||||
}
|
||||
|
||||
hooks = [
|
||||
@ -61,24 +56,3 @@ hooks = [
|
||||
"src/DEPS", "src/default.xml"],
|
||||
},
|
||||
]
|
||||
|
||||
hooks_os = {
|
||||
'win': [
|
||||
{
|
||||
# TODO(chrisha): Fix the GYP files so that they work without
|
||||
# --no-circular-check.
|
||||
"pattern": ".",
|
||||
"action": ["python",
|
||||
"src/src/tools/gyp/gyp_main.py",
|
||||
"--no-circular-check",
|
||||
"src/src/client/windows/breakpad_client.gyp"],
|
||||
},
|
||||
{
|
||||
# XXX: this and above should all be wired into build/all.gyp ?
|
||||
"action": ["python",
|
||||
"src/src/tools/gyp/gyp_main.py",
|
||||
"--no-circular-check",
|
||||
"src/src/tools/windows/tools_windows.gyp"],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
Copyright (c) 2006, Google Inc.
|
||||
All rights reserved.
|
||||
Copyright 2006 Google LLC
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@ notice, this list of conditions and the following disclaimer.
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
* Neither the name of Google LLC nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
# Copyright (c) 2011, Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2011 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -13,7 +12,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
@ -119,6 +118,22 @@ TEST_LIBS = src/testing/libtesting.a
|
||||
TEST_DEPS = $(TEST_LIBS)
|
||||
endif
|
||||
|
||||
|
||||
## Setup test driver
|
||||
if ANDROID_HOST
|
||||
# Since Autotools 1.2, tests are run through a special "test driver" script.
|
||||
# Unfortunately, it's not possible anymore to specify an alternative shell to
|
||||
# run them on connected devices, so use a slightly modified version of the
|
||||
# driver for Android.
|
||||
LOG_DRIVER = $(top_srcdir)/android/test-driver
|
||||
else
|
||||
if TESTS_AS_ROOT
|
||||
LOG_DRIVER = $(top_srcdir)/autotools/root-test-driver $(top_srcdir)/autotools/test-driver
|
||||
else
|
||||
LOG_DRIVER = $(top_srcdir)/autotools/test-driver
|
||||
endif !TESTS_AS_ROOT
|
||||
endif !ANDROID_HOST
|
||||
|
||||
## Libraries
|
||||
check_LIBRARIES =
|
||||
noinst_LIBRARIES =
|
||||
@ -126,12 +141,17 @@ lib_LIBRARIES =
|
||||
libexec_PROGRAMS =
|
||||
bin_PROGRAMS =
|
||||
check_PROGRAMS =
|
||||
noinst_PROGRAMS =
|
||||
noinst_SCRIPTS =
|
||||
EXTRA_PROGRAMS =
|
||||
CLEANFILES =
|
||||
|
||||
check_LIBRARIES += src/testing/libtesting.a
|
||||
|
||||
#
|
||||
# Tests helper library
|
||||
#
|
||||
if !SYSTEM_TEST_LIBS
|
||||
check_LIBRARIES += src/testing/libtesting.a
|
||||
endif
|
||||
src_testing_libtesting_a_SOURCES = \
|
||||
src/breakpad_googletest_includes.h \
|
||||
src/testing/googletest/src/gtest-all.cc \
|
||||
@ -139,62 +159,171 @@ src_testing_libtesting_a_SOURCES = \
|
||||
src/testing/googlemock/src/gmock-all.cc
|
||||
src_testing_libtesting_a_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
endif
|
||||
|
||||
#
|
||||
# General
|
||||
# Not specific to processor, client or tools
|
||||
#
|
||||
|
||||
check_PROGRAMS += src/common/safe_math_unittest
|
||||
|
||||
|
||||
#
|
||||
# Breakpad minidump and microdump
|
||||
# processor library, tools and tests
|
||||
#
|
||||
if !DISABLE_PROCESSOR
|
||||
|
||||
lib_LIBRARIES += src/libbreakpad.a
|
||||
pkgconfig_DATA += breakpad.pc
|
||||
noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a
|
||||
endif
|
||||
|
||||
## Programs
|
||||
bin_PROGRAMS += \
|
||||
src/processor/microdump_stackwalk \
|
||||
src/processor/minidump_dump \
|
||||
src/processor/minidump_stackwalk
|
||||
|
||||
## Tests (binaries)
|
||||
check_PROGRAMS += \
|
||||
src/common/test_assembler_unittest \
|
||||
src/common/dwarf/dwarf2reader_lineinfo_unittest \
|
||||
src/common/dwarf/dwarf2reader_splitfunctions_unittest \
|
||||
src/processor/address_map_unittest \
|
||||
src/processor/basic_source_line_resolver_unittest \
|
||||
src/processor/cfi_frame_info_unittest \
|
||||
src/processor/contained_range_map_unittest \
|
||||
src/processor/disassembler_objdump_unittest \
|
||||
src/processor/disassembler_x86_unittest \
|
||||
src/processor/exploitability_unittest \
|
||||
src/processor/fast_source_line_resolver_unittest \
|
||||
src/processor/map_serializers_unittest \
|
||||
src/processor/microdump_processor_unittest \
|
||||
src/processor/minidump_processor_unittest \
|
||||
src/processor/minidump_unittest \
|
||||
src/processor/static_address_map_unittest \
|
||||
src/processor/static_contained_range_map_unittest \
|
||||
src/processor/static_map_unittest \
|
||||
src/processor/static_range_map_unittest \
|
||||
src/processor/pathname_stripper_unittest \
|
||||
src/processor/postfix_evaluator_unittest \
|
||||
src/processor/proc_maps_linux_unittest \
|
||||
src/processor/range_map_truncate_lower_unittest \
|
||||
src/processor/range_map_truncate_upper_unittest \
|
||||
src/processor/range_map_unittest \
|
||||
src/processor/stackwalker_amd64_unittest \
|
||||
src/processor/stackwalker_arm_unittest \
|
||||
src/processor/stackwalker_arm64_unittest \
|
||||
src/processor/stackwalker_address_list_unittest \
|
||||
src/processor/stackwalker_mips_unittest \
|
||||
src/processor/stackwalker_mips64_unittest \
|
||||
src/processor/stackwalker_riscv_unittest \
|
||||
src/processor/stackwalker_riscv64_unittest \
|
||||
src/processor/stackwalker_x86_unittest \
|
||||
src/processor/synth_minidump_unittest
|
||||
if SELFTEST
|
||||
check_PROGRAMS += \
|
||||
src/processor/stackwalker_selftest
|
||||
endif SELFTEST
|
||||
|
||||
## Tests (scripts)
|
||||
check_SCRIPTS = \
|
||||
src/processor/microdump_stackwalk_test \
|
||||
src/processor/microdump_stackwalk_machine_readable_test \
|
||||
src/processor/minidump_dump_test \
|
||||
src/processor/minidump_stackwalk_test \
|
||||
src/processor/minidump_stackwalk_machine_readable_test
|
||||
|
||||
endif !DISABLE_PROCESSOR
|
||||
|
||||
|
||||
#
|
||||
# Breakpad client library and tests
|
||||
#
|
||||
# Currently Linux only, the macOS client
|
||||
# is built using an Xcode project instead.
|
||||
#
|
||||
if LINUX_HOST
|
||||
|
||||
lib_LIBRARIES += src/client/linux/libbreakpad_client.a
|
||||
pkgconfig_DATA += breakpad-client.pc
|
||||
|
||||
src_client_linux_libbreakpad_client_a_SOURCES = \
|
||||
src/client/linux/crash_generation/crash_generation_client.cc \
|
||||
src/client/linux/crash_generation/crash_generation_server.cc \
|
||||
src/client/linux/dump_writer_common/thread_info.cc \
|
||||
src/client/linux/dump_writer_common/ucontext_reader.cc \
|
||||
src/client/linux/handler/exception_handler.cc \
|
||||
src/client/linux/handler/exception_handler.h \
|
||||
src/client/linux/handler/minidump_descriptor.cc \
|
||||
src/client/linux/handler/minidump_descriptor.h \
|
||||
src/client/linux/log/log.cc \
|
||||
src/client/linux/log/log.h \
|
||||
src/client/linux/microdump_writer/microdump_writer.cc \
|
||||
src/client/linux/microdump_writer/microdump_writer.h \
|
||||
src/client/linux/minidump_writer/linux_core_dumper.cc \
|
||||
src/client/linux/minidump_writer/linux_dumper.cc \
|
||||
src/client/linux/minidump_writer/linux_ptrace_dumper.cc \
|
||||
src/client/linux/minidump_writer/minidump_writer.cc \
|
||||
src/client/linux/minidump_writer/pe_file.cc \
|
||||
src/client/minidump_file_writer-inl.h \
|
||||
src/client/minidump_file_writer.cc \
|
||||
src/client/minidump_file_writer.h \
|
||||
src/common/convert_UTF.cc \
|
||||
src/common/convert_UTF.h \
|
||||
src/common/md5.cc \
|
||||
src/common/md5.h \
|
||||
src/common/string_conversion.cc \
|
||||
src/common/string_conversion.h \
|
||||
src/common/linux/elf_core_dump.cc \
|
||||
src/common/linux/elfutils.cc \
|
||||
src/common/linux/elfutils.h \
|
||||
src/common/linux/file_id.cc \
|
||||
src/common/linux/file_id.h \
|
||||
src/common/linux/guid_creator.cc \
|
||||
src/common/linux/guid_creator.h \
|
||||
src/common/linux/linux_libc_support.cc \
|
||||
src/common/linux/memory_mapped_file.cc \
|
||||
src/common/linux/safe_readlink.cc
|
||||
if !HAVE_GETCONTEXT
|
||||
src_client_linux_libbreakpad_client_a_SOURCES += \
|
||||
src/common/linux/breakpad_getcontext.S
|
||||
endif
|
||||
check_PROGRAMS += \
|
||||
src/client/linux/linux_client_unittest \
|
||||
src/common/linux/google_crashdump_uploader_test
|
||||
|
||||
EXTRA_PROGRAMS += \
|
||||
src/client/linux/linux_dumper_unittest_helper \
|
||||
src/client/linux/linux_client_unittest_shlib
|
||||
|
||||
CLEANFILES += \
|
||||
src/client/linux/linux_dumper_unittest_helper \
|
||||
src/client/linux/linux_client_unittest_shlib
|
||||
|
||||
endif LINUX_HOST
|
||||
|
||||
if !DISABLE_PROCESSOR
|
||||
|
||||
#
|
||||
# Various Breakpad tools
|
||||
# This includes symbol dumpers and uploaders
|
||||
#
|
||||
if !DISABLE_TOOLS
|
||||
|
||||
if LINUX_HOST
|
||||
|
||||
bin_PROGRAMS += \
|
||||
src/tools/linux/core2md/core2md \
|
||||
src/tools/linux/pid2md/pid2md \
|
||||
src/tools/linux/dump_syms/dump_syms \
|
||||
src/tools/linux/md2core/minidump-2-core \
|
||||
src/tools/linux/symupload/minidump_upload \
|
||||
src/tools/linux/symupload/sym_upload
|
||||
if X86_HOST
|
||||
bin_PROGRAMS += \
|
||||
src/tools/mac/dump_syms/dump_syms_mac
|
||||
endif
|
||||
if HAVE_MEMFD_CREATE
|
||||
libexec_PROGRAMS += \
|
||||
src/tools/linux/core_handler/core_handler
|
||||
endif
|
||||
|
||||
check_PROGRAMS += \
|
||||
src/common/dumper_unittest \
|
||||
src/tools/linux/md2core/minidump_2_core_unittest
|
||||
if X86_HOST
|
||||
check_PROGRAMS += \
|
||||
src/common/mac/macho_reader_unittest
|
||||
endif
|
||||
|
||||
endif LINUX_HOST
|
||||
|
||||
endif !DISABLE_TOOLS
|
||||
|
||||
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
||||
|
||||
## Non-installables
|
||||
noinst_SCRIPTS += $(check_SCRIPTS)
|
||||
|
||||
|
||||
## Target definitions
|
||||
|
||||
# All targets that were defined above should now be
|
||||
# declared below. This should be done unconditionally
|
||||
# so DO NOT wrap them in conditions!
|
||||
# Execept for conditionally adding a specific file or
|
||||
# flag that should only be added for a specific arch,
|
||||
# system, etc.
|
||||
|
||||
src_common_safe_math_unittest_SOURCES = \
|
||||
src/common/safe_math.h \
|
||||
src/common/safe_math_unittest.cc
|
||||
src_common_safe_math_unittest_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
src_common_safe_math_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
|
||||
# Breakpad processor library
|
||||
src_libbreakpad_a_SOURCES = \
|
||||
src/google_breakpad/common/breakpad_types.h \
|
||||
src/google_breakpad/common/minidump_format.h \
|
||||
@ -237,6 +366,8 @@ src_libbreakpad_a_SOURCES = \
|
||||
src/processor/contained_range_map.h \
|
||||
src/processor/convert_old_arm64_context.cc \
|
||||
src/processor/convert_old_arm64_context.h \
|
||||
src/processor/disassembler_objdump.h \
|
||||
src/processor/disassembler_objdump.cc \
|
||||
src/processor/disassembler_x86.h \
|
||||
src/processor/disassembler_x86.cc \
|
||||
src/processor/dump_context.cc \
|
||||
@ -296,6 +427,10 @@ src_libbreakpad_a_SOURCES = \
|
||||
src/processor/stackwalker_ppc.h \
|
||||
src/processor/stackwalker_ppc64.cc \
|
||||
src/processor/stackwalker_ppc64.h \
|
||||
src/processor/stackwalker_riscv.cc \
|
||||
src/processor/stackwalker_riscv.h \
|
||||
src/processor/stackwalker_riscv64.cc \
|
||||
src/processor/stackwalker_riscv64.h \
|
||||
src/processor/stackwalker_sparc.cc \
|
||||
src/processor/stackwalker_sparc.h \
|
||||
src/processor/stackwalker_x86.cc \
|
||||
@ -315,6 +450,7 @@ src_libbreakpad_a_SOURCES = \
|
||||
src/processor/tokenize.cc \
|
||||
src/processor/tokenize.h
|
||||
|
||||
# libdisasm 3rd party library
|
||||
src_third_party_libdisasm_libdisasm_a_SOURCES = \
|
||||
src/third_party/libdisasm/ia32_implicit.c \
|
||||
src/third_party/libdisasm/ia32_implicit.h \
|
||||
@ -343,131 +479,51 @@ src_third_party_libdisasm_libdisasm_a_SOURCES = \
|
||||
src/third_party/libdisasm/x86_operand_list.c \
|
||||
src/third_party/libdisasm/x86_operand_list.h
|
||||
|
||||
## Programs
|
||||
bin_PROGRAMS += \
|
||||
src/processor/microdump_stackwalk \
|
||||
src/processor/minidump_dump \
|
||||
src/processor/minidump_stackwalk
|
||||
endif !DISABLE_PROCESSOR
|
||||
|
||||
if LINUX_HOST
|
||||
EXTRA_PROGRAMS += \
|
||||
src/client/linux/linux_dumper_unittest_helper
|
||||
CLEANFILES += \
|
||||
src/client/linux/linux_dumper_unittest_helper
|
||||
|
||||
if !DISABLE_TOOLS
|
||||
bin_PROGRAMS += \
|
||||
src/tools/linux/core2md/core2md \
|
||||
src/tools/linux/pid2md/pid2md \
|
||||
src/tools/linux/dump_syms/dump_syms \
|
||||
src/tools/linux/md2core/minidump-2-core \
|
||||
src/tools/linux/symupload/minidump_upload \
|
||||
src/tools/linux/symupload/sym_upload
|
||||
if X86_HOST
|
||||
bin_PROGRAMS += \
|
||||
src/tools/mac/dump_syms/dump_syms_mac
|
||||
endif
|
||||
if HAVE_MEMFD_CREATE
|
||||
libexec_PROGRAMS += \
|
||||
src/tools/linux/core_handler/core_handler
|
||||
endif
|
||||
endif
|
||||
endif LINUX_HOST
|
||||
|
||||
|
||||
## Tests
|
||||
if !DISABLE_PROCESSOR
|
||||
check_PROGRAMS += \
|
||||
src/common/test_assembler_unittest \
|
||||
src/common/dwarf/dwarf2reader_lineinfo_unittest \
|
||||
src/common/dwarf/dwarf2reader_splitfunctions_unittest \
|
||||
src/processor/address_map_unittest \
|
||||
src/processor/basic_source_line_resolver_unittest \
|
||||
src/processor/cfi_frame_info_unittest \
|
||||
src/processor/contained_range_map_unittest \
|
||||
src/processor/disassembler_x86_unittest \
|
||||
src/processor/exploitability_unittest \
|
||||
src/processor/fast_source_line_resolver_unittest \
|
||||
src/processor/map_serializers_unittest \
|
||||
src/processor/microdump_processor_unittest \
|
||||
src/processor/minidump_processor_unittest \
|
||||
src/processor/minidump_unittest \
|
||||
src/processor/static_address_map_unittest \
|
||||
src/processor/static_contained_range_map_unittest \
|
||||
src/processor/static_map_unittest \
|
||||
src/processor/static_range_map_unittest \
|
||||
src/processor/pathname_stripper_unittest \
|
||||
src/processor/postfix_evaluator_unittest \
|
||||
src/processor/proc_maps_linux_unittest \
|
||||
src/processor/range_map_truncate_lower_unittest \
|
||||
src/processor/range_map_truncate_upper_unittest \
|
||||
src/processor/range_map_unittest \
|
||||
src/processor/stackwalker_amd64_unittest \
|
||||
src/processor/stackwalker_arm_unittest \
|
||||
src/processor/stackwalker_arm64_unittest \
|
||||
src/processor/stackwalker_address_list_unittest \
|
||||
src/processor/stackwalker_mips_unittest \
|
||||
src/processor/stackwalker_mips64_unittest \
|
||||
src/processor/stackwalker_x86_unittest \
|
||||
src/processor/synth_minidump_unittest
|
||||
# Breakpad client
|
||||
src_client_linux_libbreakpad_client_a_SOURCES = \
|
||||
src/client/linux/crash_generation/crash_generation_client.cc \
|
||||
src/client/linux/crash_generation/crash_generation_server.cc \
|
||||
src/client/linux/dump_writer_common/thread_info.cc \
|
||||
src/client/linux/dump_writer_common/ucontext_reader.cc \
|
||||
src/client/linux/handler/exception_handler.cc \
|
||||
src/client/linux/handler/exception_handler.h \
|
||||
src/client/linux/handler/minidump_descriptor.cc \
|
||||
src/client/linux/handler/minidump_descriptor.h \
|
||||
src/client/linux/log/log.cc \
|
||||
src/client/linux/log/log.h \
|
||||
src/client/linux/microdump_writer/microdump_writer.cc \
|
||||
src/client/linux/microdump_writer/microdump_writer.h \
|
||||
src/client/linux/minidump_writer/linux_core_dumper.cc \
|
||||
src/client/linux/minidump_writer/linux_dumper.cc \
|
||||
src/client/linux/minidump_writer/linux_ptrace_dumper.cc \
|
||||
src/client/linux/minidump_writer/minidump_writer.cc \
|
||||
src/client/linux/minidump_writer/pe_file.cc \
|
||||
src/client/minidump_file_writer-inl.h \
|
||||
src/client/minidump_file_writer.cc \
|
||||
src/client/minidump_file_writer.h \
|
||||
src/common/convert_UTF.cc \
|
||||
src/common/convert_UTF.h \
|
||||
src/common/md5.cc \
|
||||
src/common/md5.h \
|
||||
src/common/string_conversion.cc \
|
||||
src/common/string_conversion.h \
|
||||
src/common/linux/elf_core_dump.cc \
|
||||
src/common/linux/elfutils.cc \
|
||||
src/common/linux/elfutils.h \
|
||||
src/common/linux/file_id.cc \
|
||||
src/common/linux/file_id.h \
|
||||
src/common/linux/guid_creator.cc \
|
||||
src/common/linux/guid_creator.h \
|
||||
src/common/linux/linux_libc_support.cc \
|
||||
src/common/linux/memory_mapped_file.cc \
|
||||
src/common/linux/safe_readlink.cc
|
||||
if !HAVE_GETCONTEXT
|
||||
src_client_linux_libbreakpad_client_a_SOURCES += \
|
||||
src/common/linux/breakpad_getcontext.S
|
||||
endif
|
||||
|
||||
if LINUX_HOST
|
||||
EXTRA_PROGRAMS += \
|
||||
src/client/linux/linux_client_unittest_shlib
|
||||
CLEANFILES += \
|
||||
src/client/linux/linux_client_unittest_shlib
|
||||
# Client tests
|
||||
|
||||
check_PROGRAMS += \
|
||||
src/client/linux/linux_client_unittest \
|
||||
src/common/linux/google_crashdump_uploader_test
|
||||
|
||||
if !DISABLE_TOOLS
|
||||
check_PROGRAMS += \
|
||||
src/common/dumper_unittest \
|
||||
src/tools/linux/md2core/minidump_2_core_unittest
|
||||
if X86_HOST
|
||||
check_PROGRAMS += \
|
||||
src/common/mac/macho_reader_unittest
|
||||
endif
|
||||
endif
|
||||
endif LINUX_HOST
|
||||
|
||||
if !DISABLE_PROCESSOR
|
||||
if SELFTEST
|
||||
check_PROGRAMS += \
|
||||
src/processor/stackwalker_selftest
|
||||
endif SELFTEST
|
||||
endif !DISABLE_PROCESSOR
|
||||
|
||||
if !DISABLE_PROCESSOR
|
||||
check_SCRIPTS = \
|
||||
src/processor/microdump_stackwalk_test \
|
||||
src/processor/microdump_stackwalk_machine_readable_test \
|
||||
src/processor/minidump_dump_test \
|
||||
src/processor/minidump_stackwalk_test \
|
||||
src/processor/minidump_stackwalk_machine_readable_test
|
||||
endif
|
||||
|
||||
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
||||
|
||||
if ANDROID_HOST
|
||||
# Since Autotools 1.2, tests are run through a special "test driver" script.
|
||||
# Unfortunately, it's not possible anymore to specify an alternative shell to
|
||||
# run them on connected devices, so use a slightly modified version of the
|
||||
# driver for Android.
|
||||
LOG_DRIVER = $(top_srcdir)/android/test-driver
|
||||
else
|
||||
# The default Autotools test driver script.
|
||||
if TESTS_AS_ROOT
|
||||
LOG_DRIVER = $(top_srcdir)/autotools/root-test-driver $(top_srcdir)/autotools/test-driver
|
||||
else
|
||||
LOG_DRIVER = $(top_srcdir)/autotools/test-driver
|
||||
endif !TESTS_AS_ROOT
|
||||
endif !ANDROID_HOST
|
||||
|
||||
if LINUX_HOST
|
||||
src_client_linux_linux_dumper_unittest_helper_SOURCES = \
|
||||
src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
|
||||
src_client_linux_linux_dumper_unittest_helper_LDFLAGS=$(PTHREAD_CFLAGS)
|
||||
@ -575,7 +631,8 @@ src_client_linux_linux_client_unittest_LDADD = \
|
||||
src_client_linux_linux_client_unittest_DEPENDENCIES = \
|
||||
src/client/linux/linux_client_unittest_shlib
|
||||
|
||||
if !DISABLE_TOOLS
|
||||
# Tools
|
||||
|
||||
src_tools_linux_core2md_core2md_SOURCES = \
|
||||
src/tools/linux/core2md/core2md.cc
|
||||
|
||||
@ -583,14 +640,12 @@ src_tools_linux_core2md_core2md_LDADD = \
|
||||
src/client/linux/libbreakpad_client.a \
|
||||
src/common/path_helper.o
|
||||
|
||||
if HAVE_MEMFD_CREATE
|
||||
src_tools_linux_core_handler_core_handler_SOURCES = \
|
||||
src/tools/linux/core_handler/core_handler.cc
|
||||
|
||||
src_tools_linux_core_handler_core_handler_LDADD = \
|
||||
src/client/linux/libbreakpad_client.a \
|
||||
src/common/path_helper.o
|
||||
endif
|
||||
|
||||
src_tools_linux_pid2md_pid2md_SOURCES = \
|
||||
src/tools/linux/pid2md/pid2md.cc
|
||||
@ -627,7 +682,8 @@ src_tools_linux_dump_syms_dump_syms_SOURCES = \
|
||||
src_tools_linux_dump_syms_dump_syms_CXXFLAGS = \
|
||||
$(RUSTC_DEMANGLE_CFLAGS)
|
||||
src_tools_linux_dump_syms_dump_syms_LDADD = \
|
||||
$(RUSTC_DEMANGLE_LIBS)
|
||||
$(RUSTC_DEMANGLE_LIBS) \
|
||||
-lz
|
||||
|
||||
src_tools_linux_md2core_minidump_2_core_SOURCES = \
|
||||
src/common/linux/memory_mapped_file.cc \
|
||||
@ -755,7 +811,8 @@ src_common_dumper_unittest_CPPFLAGS = \
|
||||
src_common_dumper_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(RUSTC_DEMANGLE_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
|
||||
-lz
|
||||
|
||||
src_common_mac_macho_reader_unittest_SOURCES = \
|
||||
src/common/dwarf_cfi_to_module.cc \
|
||||
@ -789,7 +846,6 @@ src_common_mac_macho_reader_unittest_CPPFLAGS = \
|
||||
src_common_mac_macho_reader_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
endif
|
||||
|
||||
src_common_linux_google_crashdump_uploader_test_SOURCES = \
|
||||
src/common/linux/google_crashdump_uploader.cc \
|
||||
@ -810,9 +866,6 @@ src_tools_linux_md2core_minidump_2_core_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
|
||||
endif LINUX_HOST
|
||||
|
||||
if !DISABLE_PROCESSOR
|
||||
src_processor_address_map_unittest_SOURCES = \
|
||||
src/processor/address_map_unittest.cc
|
||||
src_processor_address_map_unittest_LDADD = \
|
||||
@ -858,6 +911,7 @@ src_processor_exploitability_unittest_LDADD = \
|
||||
src/processor/convert_old_arm64_context.o \
|
||||
src/processor/minidump_processor.o \
|
||||
src/processor/process_state.o \
|
||||
src/processor/disassembler_objdump.o \
|
||||
src/processor/disassembler_x86.o \
|
||||
src/processor/exploitability.o \
|
||||
src/processor/exploitability_linux.o \
|
||||
@ -884,6 +938,8 @@ src_processor_exploitability_unittest_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/symbolic_constants_win.o \
|
||||
@ -892,6 +948,19 @@ src_processor_exploitability_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
|
||||
src_processor_disassembler_objdump_unittest_SOURCES = \
|
||||
src/processor/disassembler_objdump_unittest.cc
|
||||
src_processor_disassembler_objdump_unittest_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
src_processor_disassembler_objdump_unittest_LDADD = \
|
||||
src/processor/disassembler_objdump.o \
|
||||
src/processor/dump_context.o \
|
||||
src/processor/dump_object.o \
|
||||
src/processor/logging.o \
|
||||
src/processor/pathname_stripper.o \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
|
||||
src_processor_disassembler_x86_unittest_SOURCES = \
|
||||
src/processor/disassembler_x86_unittest.cc
|
||||
src_processor_disassembler_x86_unittest_CPPFLAGS = \
|
||||
@ -957,6 +1026,8 @@ src_processor_microdump_processor_unittest_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/tokenize.o \
|
||||
@ -973,6 +1044,7 @@ src_processor_minidump_processor_unittest_LDADD = \
|
||||
src/processor/call_stack.o \
|
||||
src/processor/cfi_frame_info.o \
|
||||
src/processor/convert_old_arm64_context.o \
|
||||
src/processor/disassembler_objdump.o \
|
||||
src/processor/disassembler_x86.o \
|
||||
src/processor/dump_context.o \
|
||||
src/processor/dump_object.o \
|
||||
@ -996,6 +1068,8 @@ src_processor_minidump_processor_unittest_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/symbolic_constants_win.o \
|
||||
@ -1120,6 +1194,7 @@ src_processor_stackwalker_selftest_LDADD = \
|
||||
src/processor/basic_code_modules.o \
|
||||
src/processor/basic_source_line_resolver.o \
|
||||
src/processor/call_stack.o \
|
||||
src/processor/disassembler_objdump.o \
|
||||
src/processor/disassembler_x86.o \
|
||||
src/processor/exploitability.o \
|
||||
src/processor/exploitability_linux.o \
|
||||
@ -1139,6 +1214,8 @@ src_processor_stackwalker_selftest_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/tokenize.o \
|
||||
@ -1204,6 +1281,26 @@ src_processor_stackwalker_mips64_unittest_LDADD = \
|
||||
src_processor_stackwalker_mips64_unittest_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
|
||||
src_processor_stackwalker_riscv_unittest_SOURCES = \
|
||||
src/common/test_assembler.cc \
|
||||
src/processor/stackwalker_riscv_unittest.cc
|
||||
src_processor_stackwalker_riscv_unittest_LDADD = \
|
||||
src/libbreakpad.a \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
src_processor_stackwalker_riscv_unittest_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
|
||||
src_processor_stackwalker_riscv64_unittest_SOURCES = \
|
||||
src/common/test_assembler.cc \
|
||||
src/processor/stackwalker_riscv64_unittest.cc
|
||||
src_processor_stackwalker_riscv64_unittest_LDADD = \
|
||||
src/libbreakpad.a \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
src_processor_stackwalker_riscv64_unittest_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
||||
|
||||
src_processor_stackwalker_x86_unittest_SOURCES = \
|
||||
src/common/test_assembler.cc \
|
||||
src/processor/stackwalker_x86_unittest.cc
|
||||
@ -1260,10 +1357,6 @@ src_common_dwarf_dwarf2reader_splitfunctions_unittest_LDADD = \
|
||||
$(TEST_LIBS) \
|
||||
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||
|
||||
## Non-installables
|
||||
noinst_PROGRAMS =
|
||||
noinst_SCRIPTS = $(check_SCRIPTS)
|
||||
|
||||
src_processor_minidump_dump_SOURCES = \
|
||||
src/processor/minidump_dump.cc
|
||||
src_processor_minidump_dump_LDADD = \
|
||||
@ -1307,6 +1400,8 @@ src_processor_microdump_stackwalk_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/tokenize.o \
|
||||
@ -1321,6 +1416,7 @@ src_processor_minidump_stackwalk_LDADD = \
|
||||
src/processor/call_stack.o \
|
||||
src/processor/cfi_frame_info.o \
|
||||
src/processor/convert_old_arm64_context.o \
|
||||
src/processor/disassembler_objdump.o \
|
||||
src/processor/disassembler_x86.o \
|
||||
src/processor/dump_context.o \
|
||||
src/processor/dump_object.o \
|
||||
@ -1346,14 +1442,14 @@ src_processor_minidump_stackwalk_LDADD = \
|
||||
src/processor/stackwalker_mips.o \
|
||||
src/processor/stackwalker_ppc.o \
|
||||
src/processor/stackwalker_ppc64.o \
|
||||
src/processor/stackwalker_riscv.o \
|
||||
src/processor/stackwalker_riscv64.o \
|
||||
src/processor/stackwalker_sparc.o \
|
||||
src/processor/stackwalker_x86.o \
|
||||
src/processor/symbolic_constants_win.o \
|
||||
src/processor/tokenize.o \
|
||||
src/third_party/libdisasm/libdisasm.a
|
||||
|
||||
endif !DISABLE_PROCESSOR
|
||||
|
||||
## Additional files to be included in a source distribution
|
||||
##
|
||||
## find src/client src/common src/processor/testdata src/tools \
|
||||
@ -1397,13 +1493,10 @@ EXTRA_DIST = \
|
||||
src/client/solaris/handler/minidump_test.cc \
|
||||
src/client/solaris/handler/solaris_lwp.cc \
|
||||
src/client/solaris/handler/solaris_lwp.h \
|
||||
src/client/windows/breakpad_client.gyp \
|
||||
src/client/windows/handler/exception_handler.cc \
|
||||
src/client/windows/handler/exception_handler.h \
|
||||
src/client/windows/handler/exception_handler.gyp \
|
||||
src/client/windows/sender/crash_report_sender.cc \
|
||||
src/client/windows/sender/crash_report_sender.h \
|
||||
src/client/windows/sender/crash_report_sender.gyp \
|
||||
src/common/dwarf/dwarf2diehandler.h \
|
||||
src/common/dwarf/dwarf2enums.h \
|
||||
src/common/dwarf/line_state_machine.h \
|
||||
@ -1613,9 +1706,7 @@ EXTRA_DIST = \
|
||||
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.sym \
|
||||
src/tools/windows/converter/ms_symbol_server_converter.cc \
|
||||
src/tools/windows/converter/ms_symbol_server_converter.h \
|
||||
src/tools/windows/converter/ms_symbol_server_converter.gyp \
|
||||
src/tools/windows/dump_syms/dump_syms.cc \
|
||||
src/tools/windows/dump_syms/dump_syms.gyp \
|
||||
src/tools/windows/dump_syms/run_regtest.sh \
|
||||
src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc \
|
||||
src/tools/windows/dump_syms/testdata/dump_syms_regtest.pdb \
|
||||
@ -1625,8 +1716,7 @@ EXTRA_DIST = \
|
||||
src/tools/windows/dump_syms/testdata/omap_reorder_funcs.sym \
|
||||
src/tools/windows/dump_syms/testdata/omap_stretched.sym \
|
||||
src/tools/windows/dump_syms/testdata/omap_stretched_filled.sym \
|
||||
src/tools/windows/symupload/symupload.cc \
|
||||
src/tools/windows/symupload/symupload.gyp
|
||||
src/tools/windows/symupload/symupload.cc
|
||||
|
||||
mostlyclean-local:
|
||||
-find src -name '*.dwo' -exec rm -f {} +
|
||||
|
4526
thirdparty/sentry-native/external/breakpad/Makefile.in
vendored
4526
thirdparty/sentry-native/external/breakpad/Makefile.in
vendored
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,4 @@
|
||||
# Copyright (c) 2012 Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
|
@ -1,5 +1,4 @@
|
||||
# Copyright (c) 2012, Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
@ -80,6 +79,7 @@ LOCAL_SRC_FILES := \
|
||||
src/client/linux/minidump_writer/linux_dumper.cc \
|
||||
src/client/linux/minidump_writer/linux_ptrace_dumper.cc \
|
||||
src/client/linux/minidump_writer/minidump_writer.cc \
|
||||
src/client/linux/minidump_writer/pe_file.cc \
|
||||
src/client/minidump_file_writer.cc \
|
||||
src/common/convert_UTF.cc \
|
||||
src/common/md5.cc \
|
||||
|
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2012 Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -12,7 +11,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
|
@ -1,5 +1,4 @@
|
||||
# Copyright (c) 2012, Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
|
@ -1,5 +1,4 @@
|
||||
# Copyright (c) 2012, Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
|
@ -1,5 +1,4 @@
|
||||
// Copyright (c) 2012, Google Inc.
|
||||
// All rights reserved.
|
||||
// Copyright 2012 Google LLC
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
@ -11,7 +10,7 @@
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// * Neither the name of Google LLC nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2012 Google Inc.
|
||||
# All rights reserved.
|
||||
# Copyright 2012 Google LLC
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@ -13,7 +12,7 @@
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# * Neither the name of Google LLC nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
|
@ -2,9 +2,9 @@
|
||||
# Wrapper for Microsoft lib.exe
|
||||
|
||||
me=ar-lib
|
||||
scriptversion=2012-03-01.08; # UTC
|
||||
scriptversion=2019-07-04.01; # UTC
|
||||
|
||||
# Copyright (C) 2010-2014 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2010-2021 Free Software Foundation, Inc.
|
||||
# Written by Peter Rosin <peda@lysator.liu.se>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -18,7 +18,7 @@ scriptversion=2012-03-01.08; # UTC
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
@ -53,7 +53,7 @@ func_file_conv ()
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN*)
|
||||
CYGWIN* | MSYS*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
@ -65,7 +65,7 @@ func_file_conv ()
|
||||
mingw)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin)
|
||||
cygwin | msys)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine)
|
||||
@ -224,10 +224,11 @@ elif test -n "$extract"; then
|
||||
esac
|
||||
done
|
||||
else
|
||||
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
|
||||
do
|
||||
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
|
||||
done
|
||||
$AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \
|
||||
| while read member
|
||||
do
|
||||
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
|
||||
done
|
||||
fi
|
||||
|
||||
elif test -n "$quick$replace"; then
|
||||
|
@ -1,9 +1,9 @@
|
||||
#! /bin/sh
|
||||
# Wrapper for compilers which do not understand '-c -o'.
|
||||
|
||||
scriptversion=2012-10-14.11; # UTC
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -17,7 +17,7 @@ scriptversion=2012-10-14.11; # UTC
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
@ -53,7 +53,7 @@ func_file_conv ()
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN*)
|
||||
CYGWIN* | MSYS*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
@ -67,7 +67,7 @@ func_file_conv ()
|
||||
mingw/*)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin/*)
|
||||
cygwin/* | msys/*)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine/*)
|
||||
@ -255,7 +255,8 @@ EOF
|
||||
echo "compile $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
||||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
|
||||
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
|
||||
func_cl_wrapper "$@" # Doesn't return...
|
||||
;;
|
||||
esac
|
||||
@ -339,9 +340,9 @@ exit $ret
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2013-05-30.07; # UTC
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -16,7 +16,7 @@ scriptversion=2013-05-30.07; # UTC
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
@ -783,9 +783,9 @@ exit 0
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2013-12-25.23; # UTC
|
||||
scriptversion=2020-11-14.01; # UTC
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
@ -69,6 +69,11 @@ posix_mkdir=
|
||||
# Desired mode of installed file.
|
||||
mode=0755
|
||||
|
||||
# Create dirs (including intermediate dirs) using mode 755.
|
||||
# This is like GNU 'install' as of coreutils 8.32 (2020).
|
||||
mkdir_umask=22
|
||||
|
||||
backupsuffix=
|
||||
chgrpcmd=
|
||||
chmodcmd=$chmodprog
|
||||
chowncmd=
|
||||
@ -99,18 +104,28 @@ Options:
|
||||
--version display version info and exit.
|
||||
|
||||
-c (ignored)
|
||||
-C install only if different (preserve the last data modification time)
|
||||
-C install only if different (preserve data modification time)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-p pass -p to $cpprog.
|
||||
-s $stripprog installed files.
|
||||
-S SUFFIX attempt to back up existing files, with suffix SUFFIX.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||
RMPROG STRIPPROG
|
||||
|
||||
By default, rm is invoked with -f; when overridden with RMPROG,
|
||||
it's up to you to specify -f if you want it.
|
||||
|
||||
If -S is not specified, no backups are attempted.
|
||||
|
||||
Email bug reports to bug-automake@gnu.org.
|
||||
Automake home page: https://www.gnu.org/software/automake/
|
||||
"
|
||||
|
||||
while test $# -ne 0; do
|
||||
@ -137,8 +152,13 @@ while test $# -ne 0; do
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-p) cpprog="$cpprog -p";;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-S) backupsuffix="$2"
|
||||
shift;;
|
||||
|
||||
-t)
|
||||
is_target_a_directory=always
|
||||
dst_arg=$2
|
||||
@ -255,6 +275,10 @@ do
|
||||
dstdir=$dst
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
# Don't chown directories that already exist.
|
||||
if test $dstdir_status = 0; then
|
||||
chowncmd=""
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
@ -271,15 +295,18 @@ do
|
||||
fi
|
||||
dst=$dst_arg
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
# If destination is a directory, append the input filename.
|
||||
if test -d "$dst"; then
|
||||
if test "$is_target_a_directory" = never; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dst=$dstdir/`basename "$src"`
|
||||
dstbase=`basename "$src"`
|
||||
case $dst in
|
||||
*/) dst=$dst$dstbase;;
|
||||
*) dst=$dst/$dstbase;;
|
||||
esac
|
||||
dstdir_status=0
|
||||
else
|
||||
dstdir=`dirname "$dst"`
|
||||
@ -288,27 +315,16 @@ do
|
||||
fi
|
||||
fi
|
||||
|
||||
case $dstdir in
|
||||
*/) dstdirslash=$dstdir;;
|
||||
*) dstdirslash=$dstdir/;;
|
||||
esac
|
||||
|
||||
obsolete_mkdir_used=false
|
||||
|
||||
if test $dstdir_status != 0; then
|
||||
case $posix_mkdir in
|
||||
'')
|
||||
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||
umask=`umask`
|
||||
case $stripcmd.$umask in
|
||||
# Optimize common cases.
|
||||
*[2367][2367]) mkdir_umask=$umask;;
|
||||
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
mkdir_umask=`expr $umask + 22 \
|
||||
- $umask % 100 % 40 + $umask % 20 \
|
||||
- $umask % 10 % 4 + $umask % 2
|
||||
`;;
|
||||
*) mkdir_umask=$umask,go-w;;
|
||||
esac
|
||||
|
||||
# With -d, create the new directory with the user-specified mode.
|
||||
# Otherwise, rely on $mkdir_umask.
|
||||
if test -n "$dir_arg"; then
|
||||
@ -318,43 +334,49 @@ do
|
||||
fi
|
||||
|
||||
posix_mkdir=false
|
||||
case $umask in
|
||||
*[123567][0-7][0-7])
|
||||
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||
;;
|
||||
*)
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||
# The $RANDOM variable is not portable (e.g., dash). Use it
|
||||
# here however when possible just to lower collision chance.
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
|
||||
if (umask $mkdir_umask &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/d" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac;;
|
||||
trap '
|
||||
ret=$?
|
||||
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
|
||||
exit $ret
|
||||
' 0
|
||||
|
||||
# Because "mkdir -p" follows existing symlinks and we likely work
|
||||
# directly in world-writeable /tmp, make sure that the '$tmpdir'
|
||||
# directory is successfully created first before we actually test
|
||||
# 'mkdir -p'.
|
||||
if (umask $mkdir_umask &&
|
||||
$mkdirprog $mkdir_mode "$tmpdir" &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
test_tmpdir="$tmpdir/a"
|
||||
ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac
|
||||
|
||||
if
|
||||
@ -365,7 +387,7 @@ do
|
||||
then :
|
||||
else
|
||||
|
||||
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||
# mkdir does not conform to POSIX,
|
||||
# or it failed possibly due to a race condition. Create the
|
||||
# directory the slow way, step by step, checking for races as we go.
|
||||
|
||||
@ -394,7 +416,7 @@ do
|
||||
prefixes=
|
||||
else
|
||||
if $posix_mkdir; then
|
||||
(umask=$mkdir_umask &&
|
||||
(umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||
# Don't fail if two instances are running concurrently.
|
||||
test -d "$prefix" || exit 1
|
||||
@ -427,14 +449,25 @@ do
|
||||
else
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
dsttmp=${dstdirslash}_inst.$$_
|
||||
rmtmp=${dstdirslash}_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
(umask $cp_umask &&
|
||||
{ test -z "$stripcmd" || {
|
||||
# Create $dsttmp read-write so that cp doesn't create it read-only,
|
||||
# which would cause strip to fail.
|
||||
if test -z "$doit"; then
|
||||
: >"$dsttmp" # No need to fork-exec 'touch'.
|
||||
else
|
||||
$doit touch "$dsttmp"
|
||||
fi
|
||||
}
|
||||
} &&
|
||||
$doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
@ -460,6 +493,13 @@ do
|
||||
then
|
||||
rm -f "$dsttmp"
|
||||
else
|
||||
# If $backupsuffix is set, and the file being installed
|
||||
# already exists, attempt a backup. Don't worry if it fails,
|
||||
# e.g., if mv doesn't support -f.
|
||||
if test -n "$backupsuffix" && test -f "$dst"; then
|
||||
$doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
|
||||
fi
|
||||
|
||||
# Rename the file to the real destination.
|
||||
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||
|
||||
@ -474,9 +514,9 @@ do
|
||||
# file should still install successfully.
|
||||
{
|
||||
test ! -f "$dst" ||
|
||||
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||
$doit $rmcmd "$dst" 2>/dev/null ||
|
||||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||
{ $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
|
||||
} ||
|
||||
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||
(exit 1); exit 1
|
||||
@ -493,9 +533,9 @@ do
|
||||
done
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
|
@ -1,9 +1,9 @@
|
||||
#! /bin/sh
|
||||
# Common wrapper for a few potentially missing GNU programs.
|
||||
|
||||
scriptversion=2013-10-28.13; # UTC
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
||||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -17,7 +17,7 @@ scriptversion=2013-10-28.13; # UTC
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
@ -101,9 +101,9 @@ else
|
||||
exit $st
|
||||
fi
|
||||
|
||||
perl_URL=http://www.perl.org/
|
||||
flex_URL=http://flex.sourceforge.net/
|
||||
gnu_software_URL=http://www.gnu.org/software
|
||||
perl_URL=https://www.perl.org/
|
||||
flex_URL=https://github.com/westes/flex
|
||||
gnu_software_URL=https://www.gnu.org/software
|
||||
|
||||
program_details ()
|
||||
{
|
||||
@ -207,9 +207,9 @@ give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||
exit $st
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user