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
linux_executable_heap.dmp
linux_executable_stack.dmp
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
linux_inside_module_exe_region2.dmp
linux_jmp_to_0.dmp
linux_jmp_to_module_not_exe_region.dmp
linux_null_dereference.dmp
linux_null_read_av.dmp
linux_outside_module.dmp
linux_overflow.dmp
linux_raise_sigabrt.dmp
linux_stack_pointer_in_module.dmp
linux_stack_pointer_in_stack.dmp
linux_stack_pointer_in_stack_alt_name.dmp
linux_stacksmash.dmp
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
linux_write_to_nonwritable_region_math.dmp
linux_write_to_outside_module.dmp
linux_write_to_outside_module_via_math.dmp
linux_write_to_under_4k.dmp
microdump-arm.dmp
microdump-arm64.dmp
microdump-mips32.dmp
microdump-mips64.dmp
microdump-multiple.dmp
microdump-withcrashreason.dmp
microdump-x86.dmp
microdump.stackwalk-arm.out
microdump.stackwalk-arm64.out
microdump.stackwalk.machine_readable-arm.out
microdump.stackwalk.machine_readable-arm64.out
minidump2.dmp
minidump2.dump.out refresh minidump test output 2021-06-07 16:00:01 +00:00
minidump2.stackwalk.machine_readable.out
minidump2.stackwalk.out
minidump_32bit_crash_addr.dmp
minidump_crashpad_annotation.dmp Add support for reading annotation objects in Crashpad modules 2023-01-26 20:22:33 +00:00
module0.out
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
read_av_conditional.dmp
read_av_non_null.dmp
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