breakpad/src/processor/testdata
Ian Barkley-Yeung f5123d7196 Add #include <config.h> to the beginning of all cc files
Added
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
to the beginning of all source files that didn't have it.

This ensures that configuration options are respected in all source
files. In particular, it ensures that the defines needed to fix Large
File System issues are set before including system headers.

More generally, it ensures consistency between the source files, and
avoids the possibility of ODR violations between source files that were
including config.h and source files that were not.

Process:
Ran
find . \( -name third_party -prune \) -o \( -name '.git*' -prune \) -o \( \( -name '*.cc' -o -name '*.c' \) -exec sed -i '0,/^#include/ s/^#include/#ifdef HAVE_CONFIG_H\n#include <config.h>  \/\/ Must come first\n#endif\n\n#include/' {} + \)
and then manually fixed up src/common/linux/guid_creator.cc,
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.cc,
src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc,
src/common/stabs_reader.h, and src/common/linux/breakpad_getcontext.h.

BUG=google-breakpad:877
Fixed: google-breakpad:877
TEST=./configure && make && make check
TEST=Did the find/sed in ChromeOS's copy, ensured emerge-hana google-breakpad
worked and had fewer LFS violations.
TEST=Did the find/sed in Chrome's copy, ensured compiling hana, windows, linux, and
eve still worked (since Chrome doesn't used config.h)

Change-Id: I16cededbba0ea0c28e919b13243e35300999e799
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4289676
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2023-02-27 19:31:32 +00:00
..
symbols Make processor compatible with both old and new format INLINE/INLINE_ORIGIN 2021-10-29 23:23:38 +00:00
ascii_read_av.dmp
ascii_read_av_block_write.dmp
ascii_read_av_clobber_write.dmp
ascii_read_av_conditional.dmp
ascii_read_av_then_jmp.dmp
ascii_read_av_xchg_write.dmp
ascii_write_av.dmp
ascii_write_av_arg_to_call.dmp
exec_av_on_stack.dmp
linux_divide_by_zero.dmp Checking location of the instruction pointer to see if it is 2015-06-25 23:05:16 +00:00
linux_executable_heap.dmp Add check for executable stack/heap when rating Linux exploitability. 2015-08-15 00:37:14 +00:00
linux_executable_stack.dmp Add check for executable stack/heap when rating Linux exploitability. 2015-08-15 00:37:14 +00:00
linux_inline.dmp Add support to process INLINE records in symbol files 2021-07-22 19:09:50 +00:00
linux_inside_module_exe_region1.dmp Add ELF header analysis when checking for instruction pointer in code. 2015-07-16 20:42:29 +00:00
linux_inside_module_exe_region2.dmp Add ELF header analysis when checking for instruction pointer in code. 2015-07-16 20:42:29 +00:00
linux_jmp_to_0.dmp Checking location of the instruction pointer to see if it is 2015-06-25 23:05:16 +00:00
linux_jmp_to_module_not_exe_region.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
linux_null_dereference.dmp Checking location of the instruction pointer to see if it is 2015-06-25 23:05:16 +00:00
linux_null_read_av.dmp Add simple exploitability analysis for Linux crashes. 2013-10-29 20:03:39 +00:00
linux_outside_module.dmp Add ELF header analysis when checking for instruction pointer in code. 2015-07-16 20:42:29 +00:00
linux_overflow.dmp Add simple exploitability analysis for Linux crashes. 2013-10-29 20:03:39 +00:00
linux_raise_sigabrt.dmp Add ELF header analysis when checking for instruction pointer in code. 2015-07-16 20:42:29 +00:00
linux_stack_pointer_in_module.dmp Add check to see if stack pointer is off the stack according to the memory 2015-08-15 00:27:27 +00:00
linux_stack_pointer_in_stack.dmp Add check to see if stack pointer is off the stack according to the memory 2015-08-15 00:27:27 +00:00
linux_stack_pointer_in_stack_alt_name.dmp Updating ExploitabilityLinux to check memory mapping names against a prefix 2016-08-29 18:39:01 +00:00
linux_stacksmash.dmp Add simple exploitability analysis for Linux crashes. 2013-10-29 20:03:39 +00:00
linux_test_app.cc Add #include <config.h> to the beginning of all cc files 2023-02-27 19:31:32 +00:00
linux_write_to_nonwritable_module.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
linux_write_to_nonwritable_region_math.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
linux_write_to_outside_module.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
linux_write_to_outside_module_via_math.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
linux_write_to_under_4k.dmp Add check for Linux minidump ending on bad write for exploitability rating. 2015-08-21 16:22:19 +00:00
microdump-arm.dmp Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
microdump-arm64.dmp Microdumps: support aarch64 and lib mapping from APK 2014-12-02 15:31:25 +00:00
microdump-mips32.dmp Support processing microdump for mips architecture 2016-04-01 18:50:46 -04:00
microdump-mips64.dmp Support processing microdump for mips architecture 2016-04-01 18:50:46 -04:00
microdump-multiple.dmp Handle multiple microdumps in system log. 2016-02-26 18:50:50 -08:00
microdump-withcrashreason.dmp Add crash reason extraction to microdump processor 2017-08-21 10:19:07 +00:00
microdump-x86.dmp Support processing microdumps for x86 architecture. 2016-02-18 06:13:56 -08:00
microdump.stackwalk-arm.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
microdump.stackwalk-arm64.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
microdump.stackwalk.machine_readable-arm.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
microdump.stackwalk.machine_readable-arm64.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
minidump2.dmp
minidump2.dump.out refresh minidump test output 2021-06-07 16:00:01 +00:00
minidump2.stackwalk.machine_readable.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
minidump2.stackwalk.out Parse additional line introduced in the microdump format and containing the GPU infromation in the following format: 2016-02-11 10:04:04 -08:00
minidump_32bit_crash_addr.dmp Always emit a 32-bit crash address for 32-bit architectures 2019-01-30 16:21:52 +00:00
minidump_crashpad_annotation.dmp Add support for reading annotation objects in Crashpad modules 2023-01-26 20:22:33 +00:00
module0.out FastSourceLineResolver implementation for optimization purpose. 2010-10-21 17:13:01 +00:00
module1.out Populating is_multiple in google_breakpad::StackFrame from symbol files. 2022-02-19 22:51:15 +00:00
module2.out
module3_bad.out
module4_bad.out
null_read_av.dmp
null_write_av.dmp
read_av_clobber_write.dmp missed test crashdumps in revision 706. 2010-10-02 00:30:32 +00:00
read_av_conditional.dmp missed test crashdumps in revision 706. 2010-10-02 00:30:32 +00:00
read_av_non_null.dmp missed test crashdumps in revision 706. 2010-10-02 00:30:32 +00:00
stack_exhaustion.dmp
test_app.cc Add #include <config.h> to the beginning of all cc files 2023-02-27 19:31:32 +00:00
thread_name_list.dmp [breakpad] Add MINIDUMP_THREAD_NAME_LIST support 2022-06-07 18:42:06 +00:00
tiny-exe-fastfail.dmp Adds fastfail subcodes as distinct failure reasons 2022-07-19 13:05:17 +00:00
tiny-exe-with-cet-xsave.dmp Allow breakpad to read extended amd64 contexts 2021-11-02 20:17:21 +00:00
write_av_non_canonical.dmp Fixup non-canonical fault addresses for amd64. 2022-10-12 17:32:28 +00:00
write_av_non_null.dmp missed test crashdumps in revision 706. 2010-10-02 00:30:32 +00:00