2006-08-25 14:14:45 -07:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2022-09-07 07:34:05 -07:00
|
|
|
# Copyright 2011 Google LLC
|
2006-08-30 13:05:05 -07:00
|
|
|
#
|
2006-09-20 14:16:16 -07:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met:
|
2006-08-30 13:05:05 -07:00
|
|
|
#
|
2006-09-20 14:16:16 -07:00
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above
|
|
|
|
# copyright notice, this list of conditions and the following disclaimer
|
|
|
|
# in the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
2022-09-07 07:34:05 -07:00
|
|
|
# * Neither the name of Google LLC nor the names of its
|
2006-09-20 14:16:16 -07:00
|
|
|
# contributors may be used to endorse or promote products derived from
|
|
|
|
# this software without specific prior written permission.
|
2006-08-30 13:05:05 -07:00
|
|
|
#
|
2006-09-20 14:16:16 -07:00
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2006-08-30 13:05:05 -07:00
|
|
|
|
|
|
|
|
2006-09-05 12:42:57 -07:00
|
|
|
# This allows #includes to be relative to src/
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src
|
2012-09-19 05:55:16 -07:00
|
|
|
AM_CFLAGS =
|
2012-08-23 08:45:01 -07:00
|
|
|
AM_CXXFLAGS =
|
|
|
|
|
2012-08-21 07:34:48 -07:00
|
|
|
if ANDROID_HOST
|
|
|
|
# This allows using fixed NDK headers when building for Android.
|
2012-08-23 08:45:01 -07:00
|
|
|
AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/include
|
|
|
|
# This is only necessary for building the unit tests until GTest is upgraded
|
|
|
|
# to a future version.
|
|
|
|
AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/testing/include
|
2012-08-21 07:34:48 -07:00
|
|
|
endif
|
2006-09-05 12:42:57 -07:00
|
|
|
|
2017-02-06 13:10:13 -07:00
|
|
|
AM_CXXFLAGS += $(WARN_CXXFLAGS)
|
2012-07-02 15:55:57 -07:00
|
|
|
|
2012-09-19 05:55:16 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
# Build as PIC on Linux, for linux_client_unittest_shlib
|
|
|
|
AM_CFLAGS += -fPIC
|
|
|
|
AM_CXXFLAGS += -fPIC
|
|
|
|
endif
|
|
|
|
|
2010-03-01 17:39:48 -07:00
|
|
|
# Specify include paths for ac macros
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2006-09-05 19:56:44 -07:00
|
|
|
|
2014-02-27 12:23:16 -07:00
|
|
|
# License file is called LICENSE not COPYING
|
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2006-08-30 13:05:05 -07:00
|
|
|
## Documentation
|
|
|
|
docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
2006-08-25 14:14:45 -07:00
|
|
|
|
2006-08-30 13:05:05 -07:00
|
|
|
dist_doc_DATA = \
|
|
|
|
AUTHORS \
|
|
|
|
ChangeLog \
|
|
|
|
INSTALL \
|
2014-02-27 12:23:16 -07:00
|
|
|
LICENSE \
|
2006-08-30 13:05:05 -07:00
|
|
|
NEWS \
|
2015-09-28 06:02:08 -07:00
|
|
|
README.md
|
2006-08-25 14:14:45 -07:00
|
|
|
|
2014-08-26 19:10:55 -07:00
|
|
|
## Headers
|
|
|
|
if LINUX_HOST
|
|
|
|
includeclhdir = $(includedir)/$(PACKAGE)/client/linux/handler
|
|
|
|
includeclh_HEADERS = $(top_srcdir)/src/client/linux/handler/*.h
|
|
|
|
|
2015-11-10 23:11:00 -07:00
|
|
|
includecldwcdir = $(includedir)/$(PACKAGE)/client/linux/dump_writer_common
|
|
|
|
includecldwc_HEADERS = $(top_srcdir)/src/client/linux/dump_writer_common/*.h
|
|
|
|
|
2014-08-26 19:10:55 -07:00
|
|
|
includeclmdir = $(includedir)/$(PACKAGE)/client/linux/minidump_writer
|
|
|
|
includeclm_HEADERS = $(top_srcdir)/src/client/linux/minidump_writer/*.h
|
|
|
|
|
|
|
|
includeclcdir = $(includedir)/$(PACKAGE)/client/linux/crash_generation
|
|
|
|
includeclc_HEADERS = $(top_srcdir)/src/client/linux/crash_generation/*.h
|
|
|
|
|
|
|
|
includelssdir = $(includedir)/$(PACKAGE)/third_party/lss
|
|
|
|
includelss_HEADERS = $(top_srcdir)/src/third_party/lss/*.h
|
|
|
|
|
|
|
|
includecldir = $(includedir)/$(PACKAGE)/common/linux
|
|
|
|
includecl_HEADERS = $(top_srcdir)/src/common/linux/*.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
includegbcdir = $(includedir)/$(PACKAGE)/google_breakpad/common
|
|
|
|
includegbc_HEADERS = $(top_srcdir)/src/google_breakpad/common/*.h
|
|
|
|
|
|
|
|
includecdir = $(includedir)/$(PACKAGE)/common
|
|
|
|
includec_HEADERS = $(top_srcdir)/src/common/*.h
|
|
|
|
|
|
|
|
includepdir = $(includedir)/$(PACKAGE)/processor
|
|
|
|
includep_HEADERS = $(top_srcdir)/src/processor/*.h
|
|
|
|
|
|
|
|
## pkgconfig files
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA =
|
2006-08-25 14:14:45 -07:00
|
|
|
|
2016-01-25 13:12:03 -07:00
|
|
|
## Common test logic
|
2016-01-25 17:27:56 -07:00
|
|
|
if SYSTEM_TEST_LIBS
|
|
|
|
TEST_CFLAGS = $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
|
|
|
|
TEST_LIBS = $(GTEST_LIBS) -lgtest_main $(GMOCK_LIBS)
|
2016-04-12 11:55:18 -07:00
|
|
|
TEST_DEPS =
|
2016-01-25 17:27:56 -07:00
|
|
|
else
|
2016-01-25 13:12:03 -07:00
|
|
|
TEST_CFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/testing/include \
|
2016-11-18 05:19:03 -07:00
|
|
|
-I$(top_srcdir)/src/testing/googletest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/googletest \
|
|
|
|
-I$(top_srcdir)/src/testing/googlemock/include \
|
|
|
|
-I$(top_srcdir)/src/testing/googlemock \
|
2016-01-25 13:12:03 -07:00
|
|
|
-I$(top_srcdir)/src/testing
|
2016-01-25 15:41:53 -07:00
|
|
|
TEST_LIBS = src/testing/libtesting.a
|
2016-04-12 11:55:18 -07:00
|
|
|
TEST_DEPS = $(TEST_LIBS)
|
2016-01-25 17:27:56 -07:00
|
|
|
endif
|
2016-01-25 13:12:03 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|
2006-08-30 13:05:05 -07:00
|
|
|
## Libraries
|
2016-01-25 15:41:53 -07:00
|
|
|
check_LIBRARIES =
|
2010-10-05 12:38:51 -07:00
|
|
|
noinst_LIBRARIES =
|
|
|
|
lib_LIBRARIES =
|
2020-11-23 14:58:05 -07:00
|
|
|
libexec_PROGRAMS =
|
2010-10-05 12:38:22 -07:00
|
|
|
bin_PROGRAMS =
|
|
|
|
check_PROGRAMS =
|
2022-09-30 04:55:51 -07:00
|
|
|
noinst_PROGRAMS =
|
|
|
|
noinst_SCRIPTS =
|
2016-01-25 14:53:16 -07:00
|
|
|
EXTRA_PROGRAMS =
|
|
|
|
CLEANFILES =
|
2010-10-05 12:38:22 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
#
|
|
|
|
# Tests helper library
|
|
|
|
#
|
2016-01-25 17:27:56 -07:00
|
|
|
if !SYSTEM_TEST_LIBS
|
2022-09-30 04:55:51 -07:00
|
|
|
check_LIBRARIES += src/testing/libtesting.a
|
2016-01-25 15:41:53 -07:00
|
|
|
src_testing_libtesting_a_SOURCES = \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/breakpad_googletest_includes.h \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googletest/src/gtest-all.cc \
|
|
|
|
src/testing/googletest/src/gtest_main.cc \
|
|
|
|
src/testing/googlemock/src/gmock-all.cc
|
2016-01-25 15:41:53 -07:00
|
|
|
src_testing_libtesting_a_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2022-12-22 18:33:01 -07:00
|
|
|
endif
|
2016-01-25 15:41:53 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
#
|
|
|
|
# General
|
|
|
|
# Not specific to processor, client or tools
|
|
|
|
#
|
|
|
|
|
|
|
|
check_PROGRAMS += src/common/safe_math_unittest
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Breakpad minidump and microdump
|
|
|
|
# processor library, tools and tests
|
|
|
|
#
|
2010-10-05 12:38:22 -07:00
|
|
|
if !DISABLE_PROCESSOR
|
2022-09-30 04:55:51 -07:00
|
|
|
|
2010-10-05 12:38:51 -07:00
|
|
|
lib_LIBRARIES += src/libbreakpad.a
|
2014-08-26 19:10:55 -07:00
|
|
|
pkgconfig_DATA += breakpad.pc
|
2010-10-05 12:38:51 -07:00
|
|
|
noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a
|
2010-08-31 08:09:01 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
## 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_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
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
check_PROGRAMS += \
|
2023-01-30 03:19:45 -07:00
|
|
|
src/processor/disassembler_objdump_unittest \
|
2023-01-30 03:33:04 -07:00
|
|
|
src/common/linux/scoped_pipe_unittest \
|
2023-01-30 03:19:45 -07:00
|
|
|
src/common/linux/scoped_tmpfile_unittest
|
2023-01-30 03:15:11 -07:00
|
|
|
endif LINUX_HOST
|
2022-09-30 04:55:51 -07:00
|
|
|
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.
|
|
|
|
#
|
2010-08-31 08:09:01 -07:00
|
|
|
if LINUX_HOST
|
2022-09-30 04:55:51 -07:00
|
|
|
|
2010-10-05 12:38:51 -07:00
|
|
|
lib_LIBRARIES += src/client/linux/libbreakpad_client.a
|
2014-08-26 19:10:55 -07:00
|
|
|
pkgconfig_DATA += breakpad-client.pc
|
2010-03-01 17:39:48 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
2012-08-31 11:38:29 -07:00
|
|
|
endif
|
2022-09-30 04:55:51 -07:00
|
|
|
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
|
|
|
|
|
2011-02-28 07:05:22 -07:00
|
|
|
endif LINUX_HOST
|
2007-02-14 12:51:05 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
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
|
2010-10-05 12:38:51 -07:00
|
|
|
src_libbreakpad_a_SOURCES = \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/common/breakpad_types.h \
|
|
|
|
src/google_breakpad/common/minidump_format.h \
|
2007-05-31 12:44:52 -07:00
|
|
|
src/google_breakpad/common/minidump_size.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/basic_source_line_resolver.h \
|
|
|
|
src/google_breakpad/processor/call_stack.h \
|
|
|
|
src/google_breakpad/processor/code_module.h \
|
|
|
|
src/google_breakpad/processor/code_modules.h \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/google_breakpad/processor/dump_context.h \
|
|
|
|
src/google_breakpad/processor/dump_object.h \
|
2010-08-25 13:16:17 -07:00
|
|
|
src/google_breakpad/processor/exploitability.h \
|
2010-10-21 10:13:01 -07:00
|
|
|
src/google_breakpad/processor/fast_source_line_resolver.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/memory_region.h \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/google_breakpad/processor/microdump.h \
|
|
|
|
src/google_breakpad/processor/microdump_processor.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/minidump.h \
|
|
|
|
src/google_breakpad/processor/minidump_processor.h \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/google_breakpad/processor/process_result.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/process_state.h \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/google_breakpad/processor/proc_maps_linux.h \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/google_breakpad/processor/source_line_resolver_base.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/google_breakpad/processor/source_line_resolver_interface.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/stack_frame.h \
|
|
|
|
src/google_breakpad/processor/stack_frame_cpu.h \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/google_breakpad/processor/stack_frame_symbolizer.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/google_breakpad/processor/stackwalker.h \
|
|
|
|
src/google_breakpad/processor/symbol_supplier.h \
|
|
|
|
src/google_breakpad/processor/system_info.h \
|
2006-10-20 12:50:01 -07:00
|
|
|
src/processor/address_map-inl.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/processor/address_map.h \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/basic_code_module.h \
|
|
|
|
src/processor/basic_code_modules.cc \
|
|
|
|
src/processor/basic_code_modules.h \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/basic_source_line_resolver_types.h \
|
2006-12-11 16:22:54 -07:00
|
|
|
src/processor/basic_source_line_resolver.cc \
|
2006-10-19 18:46:38 -07:00
|
|
|
src/processor/call_stack.cc \
|
2010-03-16 09:28:32 -07:00
|
|
|
src/processor/cfi_frame_info.cc \
|
|
|
|
src/processor/cfi_frame_info.h \
|
2006-09-20 09:20:15 -07:00
|
|
|
src/processor/contained_range_map-inl.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/processor/contained_range_map.h \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.cc \
|
|
|
|
src/processor/convert_old_arm64_context.h \
|
2010-10-01 15:38:10 -07:00
|
|
|
src/processor/disassembler_x86.h \
|
|
|
|
src/processor/disassembler_x86.cc \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.cc \
|
|
|
|
src/processor/dump_object.cc \
|
2010-08-25 13:16:17 -07:00
|
|
|
src/processor/exploitability.cc \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/exploitability_linux.h \
|
|
|
|
src/processor/exploitability_linux.cc \
|
2010-09-21 19:37:19 -07:00
|
|
|
src/processor/exploitability_win.h \
|
|
|
|
src/processor/exploitability_win.cc \
|
2010-10-21 10:13:01 -07:00
|
|
|
src/processor/fast_source_line_resolver_types.h \
|
|
|
|
src/processor/fast_source_line_resolver.cc \
|
2006-09-08 11:03:56 -07:00
|
|
|
src/processor/linked_ptr.h \
|
2007-05-17 11:34:37 -07:00
|
|
|
src/processor/logging.h \
|
|
|
|
src/processor/logging.cc \
|
2010-10-15 13:36:31 -07:00
|
|
|
src/processor/map_serializers-inl.h \
|
|
|
|
src/processor/map_serializers.h \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/processor/microdump.cc \
|
|
|
|
src/processor/microdump_processor.cc \
|
2006-09-05 19:56:44 -07:00
|
|
|
src/processor/minidump.cc \
|
2006-09-19 14:58:41 -07:00
|
|
|
src/processor/minidump_processor.cc \
|
2010-10-21 10:13:01 -07:00
|
|
|
src/processor/module_comparer.cc \
|
|
|
|
src/processor/module_comparer.h \
|
|
|
|
src/processor/module_factory.h \
|
2011-01-19 10:02:10 -07:00
|
|
|
src/processor/module_serializer.cc \
|
|
|
|
src/processor/module_serializer.h \
|
2006-10-26 17:40:56 -07:00
|
|
|
src/processor/pathname_stripper.cc \
|
|
|
|
src/processor/pathname_stripper.h \
|
2006-09-21 17:42:23 -07:00
|
|
|
src/processor/postfix_evaluator-inl.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/processor/postfix_evaluator.h \
|
2006-10-24 12:31:21 -07:00
|
|
|
src/processor/process_state.cc \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.cc \
|
2006-09-20 09:20:15 -07:00
|
|
|
src/processor/range_map-inl.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/processor/range_map.h \
|
2010-10-15 13:36:31 -07:00
|
|
|
src/processor/simple_serializer-inl.h \
|
|
|
|
src/processor/simple_serializer.h \
|
2006-10-26 17:40:56 -07:00
|
|
|
src/processor/simple_symbol_supplier.cc \
|
|
|
|
src/processor/simple_symbol_supplier.h \
|
2009-12-23 15:32:14 -07:00
|
|
|
src/processor/windows_frame_info.h \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base_types.h \
|
|
|
|
src/processor/source_line_resolver_base.cc \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stack_frame_cpu.cc \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/processor/stack_frame_symbolizer.cc \
|
2021-01-29 03:29:45 -07:00
|
|
|
src/processor/stackwalk_common.cc \
|
|
|
|
src/processor/stackwalk_common.h \
|
2006-09-06 12:28:46 -07:00
|
|
|
src/processor/stackwalker.cc \
|
2007-10-31 12:20:31 -07:00
|
|
|
src/processor/stackwalker_amd64.cc \
|
|
|
|
src/processor/stackwalker_amd64.h \
|
2009-12-19 14:43:53 -07:00
|
|
|
src/processor/stackwalker_arm.cc \
|
|
|
|
src/processor/stackwalker_arm.h \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stackwalker_arm64.cc \
|
|
|
|
src/processor/stackwalker_arm64.h \
|
2013-08-23 07:38:36 -07:00
|
|
|
src/processor/stackwalker_address_list.cc \
|
|
|
|
src/processor/stackwalker_address_list.h \
|
2013-09-11 04:37:04 -07:00
|
|
|
src/processor/stackwalker_mips.cc \
|
|
|
|
src/processor/stackwalker_mips.h \
|
2006-09-25 11:29:48 -07:00
|
|
|
src/processor/stackwalker_ppc.cc \
|
|
|
|
src/processor/stackwalker_ppc.h \
|
2013-04-12 16:24:02 -07:00
|
|
|
src/processor/stackwalker_ppc64.cc \
|
|
|
|
src/processor/stackwalker_ppc64.h \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.cc \
|
|
|
|
src/processor/stackwalker_riscv.h \
|
|
|
|
src/processor/stackwalker_riscv64.cc \
|
|
|
|
src/processor/stackwalker_riscv64.h \
|
2007-09-26 11:28:05 -07:00
|
|
|
src/processor/stackwalker_sparc.cc \
|
|
|
|
src/processor/stackwalker_sparc.h \
|
2006-09-06 12:28:46 -07:00
|
|
|
src/processor/stackwalker_x86.cc \
|
2010-04-08 16:06:23 -07:00
|
|
|
src/processor/stackwalker_x86.h \
|
2010-10-15 13:36:31 -07:00
|
|
|
src/processor/static_address_map-inl.h \
|
|
|
|
src/processor/static_address_map.h \
|
|
|
|
src/processor/static_contained_range_map-inl.h \
|
|
|
|
src/processor/static_contained_range_map.h \
|
2010-09-20 10:45:15 -07:00
|
|
|
src/processor/static_map_iterator-inl.h \
|
|
|
|
src/processor/static_map_iterator.h \
|
2010-09-29 07:02:09 -07:00
|
|
|
src/processor/static_map-inl.h \
|
|
|
|
src/processor/static_map.h \
|
2010-10-15 13:36:31 -07:00
|
|
|
src/processor/static_range_map-inl.h \
|
|
|
|
src/processor/static_range_map.h \
|
2015-04-10 15:05:29 -07:00
|
|
|
src/processor/symbolic_constants_win.cc \
|
|
|
|
src/processor/symbolic_constants_win.h \
|
2010-04-08 16:06:23 -07:00
|
|
|
src/processor/tokenize.cc \
|
2011-07-07 13:53:52 -07:00
|
|
|
src/processor/tokenize.h
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_libbreakpad_a_SOURCES += \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.h \
|
|
|
|
src/common/linux/scoped_pipe.cc \
|
|
|
|
src/common/linux/scoped_tmpfile.h \
|
|
|
|
src/common/linux/scoped_tmpfile.cc \
|
|
|
|
src/processor/disassembler_objdump.h \
|
|
|
|
src/processor/disassembler_objdump.cc
|
|
|
|
endif
|
2006-08-25 14:14:45 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
# libdisasm 3rd party library
|
2010-10-05 12:38:51 -07:00
|
|
|
src_third_party_libdisasm_libdisasm_a_SOURCES = \
|
2010-10-01 15:38:10 -07:00
|
|
|
src/third_party/libdisasm/ia32_implicit.c \
|
|
|
|
src/third_party/libdisasm/ia32_implicit.h \
|
|
|
|
src/third_party/libdisasm/ia32_insn.c \
|
|
|
|
src/third_party/libdisasm/ia32_insn.h \
|
|
|
|
src/third_party/libdisasm/ia32_invariant.c \
|
|
|
|
src/third_party/libdisasm/ia32_invariant.h \
|
|
|
|
src/third_party/libdisasm/ia32_modrm.c \
|
|
|
|
src/third_party/libdisasm/ia32_modrm.h \
|
|
|
|
src/third_party/libdisasm/ia32_opcode_tables.c \
|
|
|
|
src/third_party/libdisasm/ia32_opcode_tables.h \
|
|
|
|
src/third_party/libdisasm/ia32_operand.c \
|
|
|
|
src/third_party/libdisasm/ia32_operand.h \
|
|
|
|
src/third_party/libdisasm/ia32_reg.c \
|
|
|
|
src/third_party/libdisasm/ia32_reg.h \
|
|
|
|
src/third_party/libdisasm/ia32_settings.c \
|
|
|
|
src/third_party/libdisasm/ia32_settings.h \
|
|
|
|
src/third_party/libdisasm/libdis.h \
|
|
|
|
src/third_party/libdisasm/qword.h \
|
|
|
|
src/third_party/libdisasm/x86_disasm.c \
|
|
|
|
src/third_party/libdisasm/x86_format.c \
|
|
|
|
src/third_party/libdisasm/x86_imm.c \
|
|
|
|
src/third_party/libdisasm/x86_imm.h \
|
|
|
|
src/third_party/libdisasm/x86_insn.c \
|
|
|
|
src/third_party/libdisasm/x86_misc.c \
|
|
|
|
src/third_party/libdisasm/x86_operand_list.c \
|
2010-10-05 12:38:22 -07:00
|
|
|
src/third_party/libdisasm/x86_operand_list.h
|
2006-08-25 14:14:45 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
# 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
|
2010-10-05 12:38:22 -07:00
|
|
|
endif
|
2006-09-25 14:16:15 -07:00
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
# Client tests
|
2010-03-01 17:39:48 -07:00
|
|
|
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)
|
|
|
|
src_client_linux_linux_dumper_unittest_helper_CC=$(PTHREAD_CC)
|
2013-09-25 06:47:44 -07:00
|
|
|
if ANDROID_HOST
|
|
|
|
# On Android PTHREAD_CFLAGS is empty, and adding src/common/android/include
|
|
|
|
# to the include path is necessary to build this program.
|
|
|
|
src_client_linux_linux_dumper_unittest_helper_CXXFLAGS=$(AM_CXXFLAGS)
|
|
|
|
else
|
|
|
|
src_client_linux_linux_dumper_unittest_helper_CXXFLAGS=$(PTHREAD_CFLAGS)
|
|
|
|
endif
|
2010-03-01 17:39:48 -07:00
|
|
|
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(src_testing_libtesting_a_SOURCES) \
|
2010-03-01 17:39:48 -07:00
|
|
|
src/client/linux/handler/exception_handler_unittest.cc \
|
2020-03-10 23:09:43 -07:00
|
|
|
src/client/linux/microdump_writer/microdump_writer_unittest.cc \
|
2010-03-01 17:39:48 -07:00
|
|
|
src/client/linux/minidump_writer/directory_reader_unittest.cc \
|
2013-04-24 03:06:14 -07:00
|
|
|
src/client/linux/minidump_writer/cpu_set_unittest.cc \
|
2010-03-01 17:39:48 -07:00
|
|
|
src/client/linux/minidump_writer/line_reader_unittest.cc \
|
2012-08-31 10:07:25 -07:00
|
|
|
src/client/linux/minidump_writer/linux_core_dumper.cc \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/client/linux/minidump_writer/linux_core_dumper_unittest.cc \
|
|
|
|
src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc \
|
2010-03-01 17:39:48 -07:00
|
|
|
src/client/linux/minidump_writer/minidump_writer_unittest.cc \
|
2012-07-02 15:55:57 -07:00
|
|
|
src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc \
|
2022-05-12 02:32:52 -07:00
|
|
|
src/client/linux/minidump_writer/pe_file.cc \
|
2013-04-24 03:06:14 -07:00
|
|
|
src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc \
|
2012-08-31 10:07:25 -07:00
|
|
|
src/common/linux/elf_core_dump.cc \
|
2012-01-11 13:35:18 -07:00
|
|
|
src/common/linux/linux_libc_support_unittest.cc \
|
2023-01-30 03:33:04 -07:00
|
|
|
src/common/linux/scoped_pipe.h \
|
|
|
|
src/common/linux/scoped_pipe.cc \
|
2023-01-30 03:19:45 -07:00
|
|
|
src/common/linux/scoped_tmpfile.h \
|
|
|
|
src/common/linux/scoped_tmpfile.cc \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/common/linux/tests/crash_generator.cc \
|
2017-10-17 07:02:23 -07:00
|
|
|
src/common/memory_allocator_unittest.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/tests/auto_tempdir.h \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/common/tests/file_utils.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/tests/file_utils.h \
|
2010-10-05 12:38:22 -07:00
|
|
|
src/processor/basic_code_modules.cc \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.cc \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.cc \
|
|
|
|
src/processor/dump_object.cc \
|
2010-10-05 12:38:22 -07:00
|
|
|
src/processor/logging.cc \
|
|
|
|
src/processor/minidump.cc \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/pathname_stripper.cc \
|
|
|
|
src/processor/proc_maps_linux.cc
|
2020-03-16 12:56:56 -07:00
|
|
|
if !HAVE_GETCONTEXT
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_SOURCES += \
|
2020-03-16 12:56:56 -07:00
|
|
|
src/common/linux/breakpad_getcontext.S
|
2012-08-31 11:38:29 -07:00
|
|
|
endif
|
2010-03-01 17:39:48 -07:00
|
|
|
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_LDFLAGS = \
|
|
|
|
-shared \
|
|
|
|
-Wl,-h,linux_client_unittest_shlib
|
|
|
|
src_client_linux_linux_client_unittest_shlib_LDADD = \
|
2014-10-01 02:51:23 -07:00
|
|
|
src/client/linux/crash_generation/crash_generation_client.o \
|
|
|
|
src/client/linux/dump_writer_common/thread_info.o \
|
|
|
|
src/client/linux/dump_writer_common/ucontext_reader.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/client/linux/handler/exception_handler.o \
|
2012-08-09 15:59:58 -07:00
|
|
|
src/client/linux/handler/minidump_descriptor.o \
|
2012-04-03 10:11:12 -07:00
|
|
|
src/client/linux/log/log.o \
|
2014-10-28 09:45:14 -07:00
|
|
|
src/client/linux/microdump_writer/microdump_writer.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/client/linux/minidump_writer/linux_dumper.o \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/client/linux/minidump_writer/linux_ptrace_dumper.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/client/linux/minidump_writer/minidump_writer.o \
|
|
|
|
src/client/minidump_file_writer.o \
|
|
|
|
src/common/convert_UTF.o \
|
|
|
|
src/common/md5.o \
|
2012-07-18 06:44:34 -07:00
|
|
|
src/common/linux/elfutils.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/common/linux/file_id.o \
|
|
|
|
src/common/linux/guid_creator.o \
|
2012-08-03 08:01:52 -07:00
|
|
|
src/common/linux/linux_libc_support.o \
|
2011-12-16 09:42:59 -07:00
|
|
|
src/common/linux/memory_mapped_file.o \
|
2011-12-21 10:51:40 -07:00
|
|
|
src/common/linux/safe_readlink.o \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/common/string_conversion.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-01-19 00:14:51 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2020-03-16 12:56:56 -07:00
|
|
|
if !HAVE_GETCONTEXT
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_SOURCES += \
|
2020-03-16 12:56:56 -07:00
|
|
|
src/common/linux/breakpad_getcontext_unittest.cc
|
|
|
|
endif
|
|
|
|
if ANDROID_HOST
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_LDFLAGS += \
|
2012-10-09 10:15:06 -07:00
|
|
|
-llog -lm
|
2012-08-23 08:45:01 -07:00
|
|
|
endif
|
2010-10-05 12:38:51 -07:00
|
|
|
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_shlib_DEPENDENCIES = \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/client/linux/linux_dumper_unittest_helper \
|
|
|
|
src/client/linux/libbreakpad_client.a \
|
2016-04-12 11:55:18 -07:00
|
|
|
$(TEST_DEPS) \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/libbreakpad.a
|
2011-02-28 07:05:22 -07:00
|
|
|
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_SOURCES =
|
2016-04-05 06:34:20 -07:00
|
|
|
# The extra-long build id is for a test in minidump_writer_unittest.cc.
|
2012-09-19 05:55:16 -07:00
|
|
|
src_client_linux_linux_client_unittest_LDFLAGS = \
|
2016-04-05 06:34:20 -07:00
|
|
|
-Wl,-rpath,'$$ORIGIN' \
|
|
|
|
-Wl,--build-id=0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
2012-10-09 10:15:06 -07:00
|
|
|
if ANDROID_HOST
|
|
|
|
src_client_linux_linux_client_unittest_LDFLAGS += \
|
|
|
|
-llog
|
|
|
|
endif
|
2012-09-19 05:55:16 -07:00
|
|
|
|
|
|
|
src_client_linux_linux_client_unittest_LDADD = \
|
2016-01-25 17:27:56 -07:00
|
|
|
src/client/linux/linux_client_unittest_shlib \
|
|
|
|
$(TEST_LIBS)
|
2012-09-19 05:55:16 -07:00
|
|
|
|
|
|
|
src_client_linux_linux_client_unittest_DEPENDENCIES = \
|
|
|
|
src/client/linux/linux_client_unittest_shlib
|
|
|
|
|
2022-09-30 04:55:51 -07:00
|
|
|
# Tools
|
|
|
|
|
2012-01-19 00:14:51 -07:00
|
|
|
src_tools_linux_core2md_core2md_SOURCES = \
|
2016-01-13 13:30:21 -07:00
|
|
|
src/tools/linux/core2md/core2md.cc
|
2012-04-03 09:38:53 -07:00
|
|
|
|
2012-01-19 00:14:51 -07:00
|
|
|
src_tools_linux_core2md_core2md_LDADD = \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/client/linux/libbreakpad_client.a \
|
|
|
|
src/common/path_helper.o
|
2020-11-23 14:58:05 -07:00
|
|
|
|
|
|
|
src_tools_linux_core_handler_core_handler_SOURCES = \
|
|
|
|
src/tools/linux/core_handler/core_handler.cc
|
|
|
|
|
|
|
|
src_tools_linux_core_handler_core_handler_LDADD = \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/client/linux/libbreakpad_client.a \
|
|
|
|
src/common/path_helper.o
|
2020-11-24 00:48:27 -07:00
|
|
|
|
|
|
|
src_tools_linux_pid2md_pid2md_SOURCES = \
|
|
|
|
src/tools/linux/pid2md/pid2md.cc
|
|
|
|
|
|
|
|
src_tools_linux_pid2md_pid2md_LDADD = \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/client/linux/libbreakpad_client.a \
|
|
|
|
src/common/path_helper.o
|
2012-01-19 00:14:51 -07:00
|
|
|
|
2011-02-28 07:05:22 -07:00
|
|
|
src_tools_linux_dump_syms_dump_syms_SOURCES = \
|
|
|
|
src/common/dwarf_cfi_to_module.cc \
|
|
|
|
src/common/dwarf_cu_to_module.cc \
|
|
|
|
src/common/dwarf_line_to_module.cc \
|
2018-08-03 15:59:34 -07:00
|
|
|
src/common/dwarf_range_list_handler.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/language.cc \
|
|
|
|
src/common/module.cc \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/stabs_reader.cc \
|
|
|
|
src/common/stabs_to_module.cc \
|
|
|
|
src/common/dwarf/bytereader.cc \
|
|
|
|
src/common/dwarf/dwarf2diehandler.cc \
|
|
|
|
src/common/dwarf/dwarf2reader.cc \
|
2016-05-04 11:09:44 -07:00
|
|
|
src/common/dwarf/elf_reader.cc \
|
2014-04-23 13:52:28 -07:00
|
|
|
src/common/linux/crc32.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/linux/dump_symbols.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/linux/dump_symbols.h \
|
2011-07-06 10:05:49 -07:00
|
|
|
src/common/linux/elf_symbols_to_module.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/linux/elf_symbols_to_module.h \
|
2012-07-18 06:44:34 -07:00
|
|
|
src/common/linux/elfutils.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/linux/file_id.cc \
|
2012-08-03 08:01:52 -07:00
|
|
|
src/common/linux/linux_libc_support.cc \
|
2011-12-16 09:42:59 -07:00
|
|
|
src/common/linux/memory_mapped_file.cc \
|
2011-12-21 10:51:40 -07:00
|
|
|
src/common/linux/safe_readlink.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/tools/linux/dump_syms/dump_syms.cc
|
2016-10-24 12:16:28 -07:00
|
|
|
src_tools_linux_dump_syms_dump_syms_CXXFLAGS = \
|
2023-07-26 11:55:57 -07:00
|
|
|
$(RUSTC_DEMANGLE_CFLAGS) \
|
|
|
|
$(ZSTD_CFLAGS)
|
2016-10-24 12:16:28 -07:00
|
|
|
src_tools_linux_dump_syms_dump_syms_LDADD = \
|
2022-10-26 13:16:26 -07:00
|
|
|
$(RUSTC_DEMANGLE_LIBS) \
|
2023-07-26 11:55:57 -07:00
|
|
|
$(ZSTD_CFLAGS) \
|
2022-10-26 13:16:26 -07:00
|
|
|
-lz
|
2011-02-28 07:05:22 -07:00
|
|
|
|
|
|
|
src_tools_linux_md2core_minidump_2_core_SOURCES = \
|
2011-12-16 09:42:59 -07:00
|
|
|
src/common/linux/memory_mapped_file.cc \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/tools/linux/md2core/minidump-2-core.cc \
|
|
|
|
src/tools/linux/md2core/minidump_memory_range.h
|
2011-02-28 07:05:22 -07:00
|
|
|
|
|
|
|
src_tools_linux_symupload_minidump_upload_SOURCES = \
|
|
|
|
src/common/linux/http_upload.cc \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/common/path_helper.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/tools/linux/symupload/minidump_upload.cc
|
2012-04-19 11:31:37 -07:00
|
|
|
src_tools_linux_symupload_minidump_upload_LDADD = -ldl
|
2011-02-28 07:05:22 -07:00
|
|
|
|
|
|
|
src_tools_linux_symupload_sym_upload_SOURCES = \
|
|
|
|
src/common/linux/http_upload.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/linux/http_upload.h \
|
2020-02-19 16:32:08 -07:00
|
|
|
src/common/linux/libcurl_wrapper.cc \
|
|
|
|
src/common/linux/libcurl_wrapper.h \
|
|
|
|
src/common/linux/symbol_collector_client.cc \
|
|
|
|
src/common/linux/symbol_collector_client.h \
|
2016-03-30 13:46:21 -07:00
|
|
|
src/common/linux/symbol_upload.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/linux/symbol_upload.h \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/common/path_helper.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/tools/linux/symupload/sym_upload.cc
|
2012-04-19 11:31:37 -07:00
|
|
|
src_tools_linux_symupload_sym_upload_LDADD = -ldl
|
2011-02-28 07:05:22 -07:00
|
|
|
|
2015-11-25 12:27:53 -07:00
|
|
|
src_tools_mac_dump_syms_dump_syms_mac_SOURCES = \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/dwarf_cfi_to_module.cc \
|
|
|
|
src/common/dwarf_cu_to_module.cc \
|
|
|
|
src/common/dwarf_line_to_module.cc \
|
2018-08-03 15:59:34 -07:00
|
|
|
src/common/dwarf_range_list_handler.cc \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/language.cc \
|
|
|
|
src/common/md5.cc \
|
|
|
|
src/common/module.cc \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.cc \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/stabs_reader.cc \
|
|
|
|
src/common/stabs_to_module.cc \
|
|
|
|
src/common/dwarf/bytereader.cc \
|
|
|
|
src/common/dwarf/dwarf2diehandler.cc \
|
|
|
|
src/common/dwarf/dwarf2reader.cc \
|
2016-05-04 11:09:44 -07:00
|
|
|
src/common/dwarf/elf_reader.cc \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/arch_utilities.cc \
|
|
|
|
src/common/mac/dump_syms.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/dump_syms.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/file_id.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/file_id.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/macho_id.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/macho_id.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/macho_reader.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/macho_reader.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/macho_utilities.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/macho_utilities.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/macho_walker.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/macho_walker.h \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/tools/mac/dump_syms/dump_syms_tool.cc
|
2015-11-25 12:27:53 -07:00
|
|
|
src_tools_mac_dump_syms_dump_syms_mac_CXXFLAGS= \
|
2015-09-16 03:46:55 -07:00
|
|
|
-I$(top_srcdir)/src/third_party/mac_headers \
|
2021-11-10 14:25:30 -07:00
|
|
|
$(RUSTC_DEMANGLE_CFLAGS) \
|
2015-09-16 03:46:55 -07:00
|
|
|
-DHAVE_MACH_O_NLIST_H
|
2016-10-24 12:16:28 -07:00
|
|
|
src_tools_mac_dump_syms_dump_syms_mac_LDADD= \
|
2021-11-10 14:25:30 -07:00
|
|
|
$(RUSTC_DEMANGLE_LIBS)
|
2015-09-16 03:46:55 -07:00
|
|
|
|
2011-02-28 07:05:22 -07:00
|
|
|
src_common_dumper_unittest_SOURCES = \
|
|
|
|
src/common/byte_cursor_unittest.cc \
|
2019-08-03 09:12:40 -07:00
|
|
|
src/common/convert_UTF.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/dwarf_cfi_to_module.cc \
|
|
|
|
src/common/dwarf_cfi_to_module_unittest.cc \
|
|
|
|
src/common/dwarf_cu_to_module.cc \
|
|
|
|
src/common/dwarf_cu_to_module_unittest.cc \
|
|
|
|
src/common/dwarf_line_to_module.cc \
|
|
|
|
src/common/dwarf_line_to_module_unittest.cc \
|
2018-08-03 15:59:34 -07:00
|
|
|
src/common/dwarf_range_list_handler.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/language.cc \
|
2011-12-16 09:42:59 -07:00
|
|
|
src/common/memory_range_unittest.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/module.cc \
|
|
|
|
src/common/module_unittest.cc \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/stabs_reader.cc \
|
|
|
|
src/common/stabs_reader_unittest.cc \
|
|
|
|
src/common/stabs_to_module.cc \
|
|
|
|
src/common/stabs_to_module_unittest.cc \
|
string_conversion: fix pointer math
Since target_ptr is of type uint16_t* already, we don't need to scale
the byte count as the language does that for us. If it were void*, we
would need this code, but it's not.
In practice it's probably not a big deal due to how we preallocated
memory: when converting UTF8->UTF16, we'd reserve the same number of
code units, and UTF8 takes more code units per codepoint than UTF16,
so the UTF16 vector is always oversized.
When converting UTF32->UTF16, we also reserve the same number of
code units, but since one UTF32 code unit could require two UTF16
code units (for U+10000 codepoints and higher), we would probably
corrupt memory in the process. The APIs in this module don't seem
to take into account that range in general, so for now I'm only
fixing the memory corruption.
Bug: google-breakpad:768
Change-Id: Ibfaea4e866733ff8d99b505e72c500bd40d11a74
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1732888
Reviewed-by: Mark Mentovai <mark@chromium.org>
2019-08-03 08:28:50 -07:00
|
|
|
src/common/string_conversion.cc \
|
|
|
|
src/common/string_conversion_unittest.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/dwarf/bytereader.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/bytereader.h \
|
|
|
|
src/common/dwarf/bytereader-inl.h \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/dwarf/bytereader_unittest.cc \
|
|
|
|
src/common/dwarf/cfi_assembler.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/cfi_assembler.h \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/dwarf/dwarf2diehandler.cc \
|
|
|
|
src/common/dwarf/dwarf2diehandler_unittest.cc \
|
|
|
|
src/common/dwarf/dwarf2reader.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/dwarf2reader.h \
|
2016-05-04 11:09:44 -07:00
|
|
|
src/common/dwarf/elf_reader.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/elf_reader.h \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/dwarf/dwarf2reader_cfi_unittest.cc \
|
2012-02-01 07:57:58 -07:00
|
|
|
src/common/dwarf/dwarf2reader_die_unittest.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/dwarf2reader_test_common.h \
|
2014-04-23 13:52:28 -07:00
|
|
|
src/common/linux/crc32.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/linux/dump_symbols.cc \
|
2011-07-06 10:05:59 -07:00
|
|
|
src/common/linux/dump_symbols_unittest.cc \
|
2012-01-06 19:25:22 -07:00
|
|
|
src/common/linux/elf_core_dump.cc \
|
|
|
|
src/common/linux/elf_core_dump_unittest.cc \
|
2011-07-06 10:05:49 -07:00
|
|
|
src/common/linux/elf_symbols_to_module.cc \
|
|
|
|
src/common/linux/elf_symbols_to_module_unittest.cc \
|
2012-07-18 06:44:34 -07:00
|
|
|
src/common/linux/elfutils.cc \
|
2011-02-28 07:05:22 -07:00
|
|
|
src/common/linux/file_id.cc \
|
|
|
|
src/common/linux/file_id_unittest.cc \
|
2012-08-03 08:01:52 -07:00
|
|
|
src/common/linux/linux_libc_support.cc \
|
|
|
|
src/common/linux/memory_mapped_file.cc \
|
|
|
|
src/common/linux/memory_mapped_file_unittest.cc \
|
2011-12-21 10:51:40 -07:00
|
|
|
src/common/linux/safe_readlink.cc \
|
|
|
|
src/common/linux/safe_readlink_unittest.cc \
|
2012-08-03 08:01:52 -07:00
|
|
|
src/common/linux/synth_elf.cc \
|
|
|
|
src/common/linux/synth_elf_unittest.cc \
|
2012-01-06 19:25:22 -07:00
|
|
|
src/common/linux/tests/crash_generator.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/linux/tests/crash_generator.h \
|
|
|
|
src/common/testdata/func-line-pairing.h \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/common/tests/file_utils.cc
|
2011-02-28 07:05:22 -07:00
|
|
|
src_common_dumper_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS) \
|
2021-11-10 14:25:30 -07:00
|
|
|
$(RUSTC_DEMANGLE_CFLAGS) \
|
2023-07-26 11:55:57 -07:00
|
|
|
$(PTHREAD_CFLAGS) \
|
|
|
|
$(ZSTD_CFLAGS)
|
2016-01-25 15:41:53 -07:00
|
|
|
src_common_dumper_unittest_LDADD = \
|
|
|
|
$(TEST_LIBS) \
|
2021-11-10 14:25:30 -07:00
|
|
|
$(RUSTC_DEMANGLE_LIBS) \
|
2022-10-26 13:16:26 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
|
2023-07-26 11:55:57 -07:00
|
|
|
$(ZSTD_LIBS) \
|
2022-10-26 13:16:26 -07:00
|
|
|
-lz
|
2015-09-16 03:46:55 -07:00
|
|
|
|
|
|
|
src_common_mac_macho_reader_unittest_SOURCES = \
|
|
|
|
src/common/dwarf_cfi_to_module.cc \
|
|
|
|
src/common/dwarf_cu_to_module.cc \
|
|
|
|
src/common/dwarf_line_to_module.cc \
|
|
|
|
src/common/language.cc \
|
|
|
|
src/common/md5.cc \
|
|
|
|
src/common/module.cc \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.cc \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/stabs_reader.cc \
|
|
|
|
src/common/stabs_to_module.cc \
|
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/dwarf/bytereader.cc \
|
|
|
|
src/common/dwarf/cfi_assembler.cc \
|
|
|
|
src/common/dwarf/dwarf2diehandler.cc \
|
|
|
|
src/common/dwarf/dwarf2reader.cc \
|
2016-05-04 11:09:44 -07:00
|
|
|
src/common/dwarf/elf_reader.cc \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/common/mac/arch_utilities.cc \
|
|
|
|
src/common/mac/file_id.cc \
|
|
|
|
src/common/mac/macho_id.cc \
|
|
|
|
src/common/mac/macho_reader.cc \
|
|
|
|
src/common/mac/macho_reader_unittest.cc \
|
|
|
|
src/common/mac/macho_utilities.cc \
|
|
|
|
src/common/mac/macho_walker.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/common/tests/file_utils.cc
|
2015-09-16 03:46:55 -07:00
|
|
|
src_common_mac_macho_reader_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS) \
|
2015-09-16 03:46:55 -07:00
|
|
|
-I$(top_srcdir)/src/third_party/mac_headers \
|
|
|
|
-DHAVE_MACH_O_NLIST_H \
|
|
|
|
$(PTHREAD_CFLAGS)
|
2016-01-25 15:41:53 -07:00
|
|
|
src_common_mac_macho_reader_unittest_LDADD = \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2011-12-21 15:33:21 -07:00
|
|
|
|
2017-09-13 14:31:38 -07:00
|
|
|
src_common_linux_google_crashdump_uploader_test_SOURCES = \
|
|
|
|
src/common/linux/google_crashdump_uploader.cc \
|
|
|
|
src/common/linux/google_crashdump_uploader_test.cc \
|
|
|
|
src/common/linux/libcurl_wrapper.cc
|
|
|
|
src_common_linux_google_crashdump_uploader_test_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
src_common_linux_google_crashdump_uploader_test_LDADD = \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
|
|
|
|
-ldl
|
|
|
|
|
2011-12-21 15:33:21 -07:00
|
|
|
src_tools_linux_md2core_minidump_2_core_unittest_SOURCES = \
|
|
|
|
src/tools/linux/md2core/minidump_memory_range_unittest.cc
|
|
|
|
src_tools_linux_md2core_minidump_2_core_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2012-09-10 11:26:31 -07:00
|
|
|
src_tools_linux_md2core_minidump_2_core_unittest_LDADD = \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2011-12-21 15:33:21 -07:00
|
|
|
|
2006-10-20 12:50:01 -07:00
|
|
|
src_processor_address_map_unittest_SOURCES = \
|
|
|
|
src/processor/address_map_unittest.cc
|
2007-05-21 13:09:33 -07:00
|
|
|
src_processor_address_map_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/pathname_stripper.o
|
2006-10-20 12:50:01 -07:00
|
|
|
|
2006-12-11 16:22:54 -07:00
|
|
|
src_processor_basic_source_line_resolver_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/basic_source_line_resolver_unittest.cc
|
2010-04-08 16:06:23 -07:00
|
|
|
src_processor_basic_source_line_resolver_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2006-12-11 16:22:54 -07:00
|
|
|
src_processor_basic_source_line_resolver_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/cfi_frame_info.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/logging.o \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/tokenize.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2006-12-11 16:22:54 -07:00
|
|
|
|
2010-03-16 09:28:32 -07:00
|
|
|
src_processor_cfi_frame_info_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/cfi_frame_info_unittest.cc
|
2010-03-16 09:28:32 -07:00
|
|
|
src_processor_cfi_frame_info_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/cfi_frame_info.o \
|
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-03-16 09:28:32 -07:00
|
|
|
src_processor_cfi_frame_info_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-03-16 09:28:32 -07:00
|
|
|
|
2006-09-20 09:20:15 -07:00
|
|
|
src_processor_contained_range_map_unittest_SOURCES = \
|
|
|
|
src/processor/contained_range_map_unittest.cc
|
2007-05-21 13:09:33 -07:00
|
|
|
src_processor_contained_range_map_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/pathname_stripper.o
|
2006-09-20 09:20:15 -07:00
|
|
|
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_exploitability_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/exploitability_unittest.cc
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_exploitability_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_exploitability_unittest_LDADD = \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/minidump_processor.o \
|
|
|
|
src/processor/process_state.o \
|
|
|
|
src/processor/disassembler_x86.o \
|
|
|
|
src/processor/exploitability.o \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/exploitability_linux.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability_win.o \
|
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
|
|
|
src/processor/cfi_frame_info.o \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.o \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/simple_symbol_supplier.o \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stack_frame_cpu.o \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/processor/stack_frame_symbolizer.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_address_list.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stackwalker_arm64.o \
|
2013-09-11 04:37:04 -07:00
|
|
|
src/processor/stackwalker_mips.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_ppc.o \
|
2013-04-12 16:24:02 -07:00
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
2015-04-10 15:05:29 -07:00
|
|
|
src/processor/symbolic_constants_win.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/tokenize.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/third_party/libdisasm/libdisasm.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_exploitability_unittest_LDADD += \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
2023-01-30 03:15:11 -07:00
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif
|
2010-10-01 15:38:10 -07:00
|
|
|
|
2023-01-30 03:33:04 -07:00
|
|
|
src_common_linux_scoped_pipe_unittest_SOURCES = \
|
|
|
|
src/common/linux/scoped_pipe_unittest.cc
|
|
|
|
src_common_linux_scoped_pipe_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
src_common_linux_scoped_pipe_unittest_LDADD = \
|
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
|
2023-01-30 03:19:45 -07:00
|
|
|
src_common_linux_scoped_tmpfile_unittest_SOURCES = \
|
|
|
|
src/common/linux/scoped_tmpfile_unittest.cc
|
|
|
|
src_common_linux_scoped_tmpfile_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
src_common_linux_scoped_tmpfile_unittest_LDADD = \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
|
2022-10-07 01:43:07 -07:00
|
|
|
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 = \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
2022-10-07 01:43:07 -07:00
|
|
|
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)
|
|
|
|
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_disassembler_x86_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/disassembler_x86_unittest.cc
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_disassembler_x86_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-01 15:38:10 -07:00
|
|
|
src_processor_disassembler_x86_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/disassembler_x86.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/third_party/libdisasm/libdisasm.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-01 15:38:10 -07:00
|
|
|
|
2010-10-21 10:13:01 -07:00
|
|
|
src_processor_fast_source_line_resolver_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/fast_source_line_resolver_unittest.cc
|
2010-10-21 10:13:01 -07:00
|
|
|
src_processor_fast_source_line_resolver_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-21 10:13:01 -07:00
|
|
|
src_processor_fast_source_line_resolver_unittest_LDADD = \
|
2012-01-19 00:14:51 -07:00
|
|
|
src/processor/fast_source_line_resolver.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/cfi_frame_info.o \
|
|
|
|
src/processor/module_comparer.o \
|
|
|
|
src/processor/module_serializer.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/source_line_resolver_base.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/tokenize.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-21 10:13:01 -07:00
|
|
|
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_map_serializers_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/map_serializers_unittest.cc
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_map_serializers_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_map_serializers_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-15 13:36:31 -07:00
|
|
|
|
2014-09-10 12:12:30 -07:00
|
|
|
src_processor_microdump_processor_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/microdump_processor_unittest.cc
|
2014-09-10 12:12:30 -07:00
|
|
|
src_processor_microdump_processor_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2014-09-10 12:12:30 -07:00
|
|
|
src_processor_microdump_processor_unittest_LDADD = \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/processor/cfi_frame_info.o \
|
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/microdump.o \
|
|
|
|
src/processor/microdump_processor.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/process_state.o \
|
|
|
|
src/processor/simple_symbol_supplier.o \
|
|
|
|
src/processor/source_line_resolver_base.o \
|
|
|
|
src/processor/stack_frame_symbolizer.o \
|
|
|
|
src/processor/stackwalker.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_address_list.o \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
|
|
|
src/processor/stackwalker_arm64.o \
|
|
|
|
src/processor/stackwalker_mips.o \
|
|
|
|
src/processor/stackwalker_ppc.o \
|
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2014-11-19 14:33:26 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
|
|
|
src/processor/tokenize.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2015-08-13 09:38:19 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2023-01-30 03:33:54 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_microdump_processor_unittest_LDADD += \
|
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif
|
2014-09-10 12:12:30 -07:00
|
|
|
|
2006-09-19 14:58:41 -07:00
|
|
|
src_processor_minidump_processor_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/minidump_processor_unittest.cc
|
2009-05-28 17:53:02 -07:00
|
|
|
src_processor_minidump_processor_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2006-09-19 14:58:41 -07:00
|
|
|
src_processor_minidump_processor_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
|
|
|
src/processor/cfi_frame_info.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/disassembler_x86.o \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability.o \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/exploitability_linux.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability_win.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump_processor.o \
|
|
|
|
src/processor/minidump.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/process_state.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.o \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stack_frame_cpu.o \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/processor/stack_frame_symbolizer.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_address_list.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stackwalker_arm64.o \
|
2013-09-11 04:37:04 -07:00
|
|
|
src/processor/stackwalker_mips.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_ppc.o \
|
2013-04-12 16:24:02 -07:00
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
2015-04-10 15:05:29 -07:00
|
|
|
src/processor/symbolic_constants_win.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/tokenize.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/third_party/libdisasm/libdisasm.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_minidump_processor_unittest_LDADD += \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
2023-01-30 03:15:11 -07:00
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif
|
2006-09-19 14:58:41 -07:00
|
|
|
|
2009-12-08 18:24:37 -07:00
|
|
|
src_processor_minidump_unittest_SOURCES = \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/common/test_assembler.cc \
|
2009-12-08 18:24:37 -07:00
|
|
|
src/processor/minidump_unittest.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/synth_minidump.cc
|
2009-12-08 18:24:37 -07:00
|
|
|
src_processor_minidump_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2009-12-08 18:24:37 -07:00
|
|
|
src_processor_minidump_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
|
|
|
|
src_processor_proc_maps_linux_unittest_SOURCES = \
|
|
|
|
src/processor/proc_maps_linux.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/proc_maps_linux_unittest.cc
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src_processor_proc_maps_linux_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src_processor_proc_maps_linux_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/third_party/libdisasm/libdisasm.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2009-12-08 18:24:37 -07:00
|
|
|
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_address_map_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/static_address_map_unittest.cc
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_address_map_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_address_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-15 13:36:31 -07:00
|
|
|
|
|
|
|
src_processor_static_contained_range_map_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/static_contained_range_map_unittest.cc
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_contained_range_map_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_contained_range_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-15 13:36:31 -07:00
|
|
|
|
2010-09-20 10:45:15 -07:00
|
|
|
src_processor_static_map_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/static_map_unittest.cc
|
2010-09-20 10:45:15 -07:00
|
|
|
src_processor_static_map_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-09-20 10:45:15 -07:00
|
|
|
src_processor_static_map_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-09-20 10:45:15 -07:00
|
|
|
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_range_map_unittest_SOURCES = \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/static_range_map_unittest.cc
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_range_map_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-10-15 13:36:31 -07:00
|
|
|
src_processor_static_range_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-10-15 13:36:31 -07:00
|
|
|
|
2006-10-26 17:40:56 -07:00
|
|
|
src_processor_pathname_stripper_unittest_SOURCES = \
|
|
|
|
src/processor/pathname_stripper_unittest.cc
|
|
|
|
src_processor_pathname_stripper_unittest_LDADD = \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2006-10-26 17:40:56 -07:00
|
|
|
|
2006-09-21 17:42:23 -07:00
|
|
|
src_processor_postfix_evaluator_unittest_SOURCES = \
|
|
|
|
src/processor/postfix_evaluator_unittest.cc
|
2007-05-21 13:09:33 -07:00
|
|
|
src_processor_postfix_evaluator_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2006-09-21 17:42:23 -07:00
|
|
|
|
2019-06-11 11:48:14 -07:00
|
|
|
src_processor_range_map_truncate_lower_unittest_SOURCES = \
|
|
|
|
src/processor/range_map_truncate_lower_unittest.cc
|
|
|
|
src_processor_range_map_truncate_lower_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
src_processor_range_map_truncate_lower_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
|
|
|
|
src_processor_range_map_truncate_upper_unittest_SOURCES = \
|
|
|
|
src/processor/range_map_truncate_upper_unittest.cc
|
|
|
|
src_processor_range_map_truncate_upper_unittest_LDADD = \
|
|
|
|
src/processor/logging.o \
|
2016-06-05 22:41:10 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2019-06-11 11:48:14 -07:00
|
|
|
src_processor_range_map_truncate_upper_unittest_CPPFLAGS = \
|
2016-06-05 22:41:10 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
|
2006-09-05 19:56:44 -07:00
|
|
|
src_processor_range_map_unittest_SOURCES = \
|
|
|
|
src/processor/range_map_unittest.cc
|
2007-05-21 13:09:33 -07:00
|
|
|
src_processor_range_map_unittest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2006-08-30 13:05:05 -07:00
|
|
|
|
2006-09-25 14:16:15 -07:00
|
|
|
src_processor_stackwalker_selftest_SOURCES = \
|
|
|
|
src/processor/stackwalker_selftest.cc
|
|
|
|
src_processor_stackwalker_selftest_LDADD = \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
|
|
|
src/processor/disassembler_x86.o \
|
|
|
|
src/processor/exploitability.o \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/exploitability_linux.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability_win.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.o \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stack_frame_cpu.o \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/processor/stack_frame_symbolizer.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_address_list.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stackwalker_arm64.o \
|
2013-09-11 04:37:04 -07:00
|
|
|
src/processor/stackwalker_mips.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_ppc.o \
|
2013-04-12 16:24:02 -07:00
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/processor/tokenize.o \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_stackwalker_selftest_LDADD += \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
2023-01-30 03:15:11 -07:00
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif
|
2006-09-25 14:16:15 -07:00
|
|
|
|
2010-03-16 09:49:53 -07:00
|
|
|
src_processor_stackwalker_amd64_unittest_SOURCES = \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_amd64_unittest.cc
|
2010-03-16 09:49:53 -07:00
|
|
|
src_processor_stackwalker_amd64_unittest_LDADD = \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-03-16 09:49:53 -07:00
|
|
|
src_processor_stackwalker_amd64_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-03-16 09:49:53 -07:00
|
|
|
|
Breakpad: Support DWARF CFI-driven stack walking on ARM.
This patch allows the Breakpad minidump processor to use data from
STACK CFI records to generate stack traces for the ARM processor.
In the symbol dumper, we need a table mapping DWARF CFI register
numbers to their names: STACK CFI records refer to registers by name.
In the processor, we expand StackwalkerARM::GetCallerFrame to see if
there are STACK CFI records covering the callee, and then use those to
recover the caller's register values.
There's no good reason the ARM walker couldn't use the SimpleCFIWalker
interface declared in cfi_frame_info.h. Unfortunately, that interface
assumes that one can map register names to member pointers of the raw
context type, while MDRawContextARM uses an array to hold the
registers' values: C++ pointer-to-member types can't refer to elements
of member arrays. So we have to write out SimpleCFIWalker::FindCallerRegisters
in StackwalkerARM::GetCallerFrame.
We define enum MDARMRegisterNumbers in minidump_cpu_arm.h, for
convenience in referring to certain ARM registers with dedicated
purposes, like the stack pointer and the PC.
We define validity flags in StackFrameARM for all the registers, since
CFI could theoretically recover any of them. In the same vein, we
expand minidump_stackwalk.cc to print the values of all valid
callee-saves registers in the context --- and use the proper names for
special-purpose registers.
We provide unit tests that give full code and branch coverage (with
minor exceptions). We add a testing interface to StackwalkerARM that
allows us to create context frames that lack some register values.
a=jimblandy, r=mmentovai
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@553 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-03-16 09:46:22 -07:00
|
|
|
src_processor_stackwalker_arm_unittest_SOURCES = \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_arm_unittest.cc
|
Breakpad: Support DWARF CFI-driven stack walking on ARM.
This patch allows the Breakpad minidump processor to use data from
STACK CFI records to generate stack traces for the ARM processor.
In the symbol dumper, we need a table mapping DWARF CFI register
numbers to their names: STACK CFI records refer to registers by name.
In the processor, we expand StackwalkerARM::GetCallerFrame to see if
there are STACK CFI records covering the callee, and then use those to
recover the caller's register values.
There's no good reason the ARM walker couldn't use the SimpleCFIWalker
interface declared in cfi_frame_info.h. Unfortunately, that interface
assumes that one can map register names to member pointers of the raw
context type, while MDRawContextARM uses an array to hold the
registers' values: C++ pointer-to-member types can't refer to elements
of member arrays. So we have to write out SimpleCFIWalker::FindCallerRegisters
in StackwalkerARM::GetCallerFrame.
We define enum MDARMRegisterNumbers in minidump_cpu_arm.h, for
convenience in referring to certain ARM registers with dedicated
purposes, like the stack pointer and the PC.
We define validity flags in StackFrameARM for all the registers, since
CFI could theoretically recover any of them. In the same vein, we
expand minidump_stackwalk.cc to print the values of all valid
callee-saves registers in the context --- and use the proper names for
special-purpose registers.
We provide unit tests that give full code and branch coverage (with
minor exceptions). We add a testing interface to StackwalkerARM that
allows us to create context frames that lack some register values.
a=jimblandy, r=mmentovai
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@553 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-03-16 09:46:22 -07:00
|
|
|
src_processor_stackwalker_arm_unittest_LDADD = \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
Breakpad: Support DWARF CFI-driven stack walking on ARM.
This patch allows the Breakpad minidump processor to use data from
STACK CFI records to generate stack traces for the ARM processor.
In the symbol dumper, we need a table mapping DWARF CFI register
numbers to their names: STACK CFI records refer to registers by name.
In the processor, we expand StackwalkerARM::GetCallerFrame to see if
there are STACK CFI records covering the callee, and then use those to
recover the caller's register values.
There's no good reason the ARM walker couldn't use the SimpleCFIWalker
interface declared in cfi_frame_info.h. Unfortunately, that interface
assumes that one can map register names to member pointers of the raw
context type, while MDRawContextARM uses an array to hold the
registers' values: C++ pointer-to-member types can't refer to elements
of member arrays. So we have to write out SimpleCFIWalker::FindCallerRegisters
in StackwalkerARM::GetCallerFrame.
We define enum MDARMRegisterNumbers in minidump_cpu_arm.h, for
convenience in referring to certain ARM registers with dedicated
purposes, like the stack pointer and the PC.
We define validity flags in StackFrameARM for all the registers, since
CFI could theoretically recover any of them. In the same vein, we
expand minidump_stackwalk.cc to print the values of all valid
callee-saves registers in the context --- and use the proper names for
special-purpose registers.
We provide unit tests that give full code and branch coverage (with
minor exceptions). We add a testing interface to StackwalkerARM that
allows us to create context frames that lack some register values.
a=jimblandy, r=mmentovai
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@553 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-03-16 09:46:22 -07:00
|
|
|
src_processor_stackwalker_arm_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
Breakpad: Support DWARF CFI-driven stack walking on ARM.
This patch allows the Breakpad minidump processor to use data from
STACK CFI records to generate stack traces for the ARM processor.
In the symbol dumper, we need a table mapping DWARF CFI register
numbers to their names: STACK CFI records refer to registers by name.
In the processor, we expand StackwalkerARM::GetCallerFrame to see if
there are STACK CFI records covering the callee, and then use those to
recover the caller's register values.
There's no good reason the ARM walker couldn't use the SimpleCFIWalker
interface declared in cfi_frame_info.h. Unfortunately, that interface
assumes that one can map register names to member pointers of the raw
context type, while MDRawContextARM uses an array to hold the
registers' values: C++ pointer-to-member types can't refer to elements
of member arrays. So we have to write out SimpleCFIWalker::FindCallerRegisters
in StackwalkerARM::GetCallerFrame.
We define enum MDARMRegisterNumbers in minidump_cpu_arm.h, for
convenience in referring to certain ARM registers with dedicated
purposes, like the stack pointer and the PC.
We define validity flags in StackFrameARM for all the registers, since
CFI could theoretically recover any of them. In the same vein, we
expand minidump_stackwalk.cc to print the values of all valid
callee-saves registers in the context --- and use the proper names for
special-purpose registers.
We provide unit tests that give full code and branch coverage (with
minor exceptions). We add a testing interface to StackwalkerARM that
allows us to create context frames that lack some register values.
a=jimblandy, r=mmentovai
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@553 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-03-16 09:46:22 -07:00
|
|
|
|
2013-11-22 18:45:20 -07:00
|
|
|
src_processor_stackwalker_arm64_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_arm64_unittest.cc
|
2013-11-22 18:45:20 -07:00
|
|
|
src_processor_stackwalker_arm64_unittest_LDADD = \
|
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2013-11-22 18:45:20 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
src_processor_stackwalker_arm64_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2013-11-22 18:45:20 -07:00
|
|
|
|
2013-08-23 07:38:36 -07:00
|
|
|
src_processor_stackwalker_address_list_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_address_list_unittest.cc
|
2013-08-23 07:38:36 -07:00
|
|
|
src_processor_stackwalker_address_list_unittest_LDADD = \
|
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2013-08-23 07:38:36 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
src_processor_stackwalker_address_list_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2013-08-23 07:38:36 -07:00
|
|
|
|
2013-09-11 04:37:04 -07:00
|
|
|
src_processor_stackwalker_mips_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_mips_unittest.cc
|
2013-09-11 04:37:04 -07:00
|
|
|
src_processor_stackwalker_mips_unittest_LDADD = \
|
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2013-09-11 04:37:04 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
src_processor_stackwalker_mips_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2013-09-11 04:37:04 -07:00
|
|
|
|
2016-02-06 16:58:39 -07:00
|
|
|
src_processor_stackwalker_mips64_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/processor/stackwalker_mips64_unittest.cc
|
|
|
|
src_processor_stackwalker_mips64_unittest_LDADD = \
|
|
|
|
src/libbreakpad.a \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
src_processor_stackwalker_mips64_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
|
2022-09-09 00:53:29 -07:00
|
|
|
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)
|
|
|
|
|
2010-03-16 09:25:30 -07:00
|
|
|
src_processor_stackwalker_x86_unittest_SOURCES = \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/common/test_assembler.cc \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/processor/stackwalker_x86_unittest.cc
|
2010-03-16 09:25:30 -07:00
|
|
|
src_processor_stackwalker_x86_unittest_LDADD = \
|
2012-09-10 11:26:31 -07:00
|
|
|
src/libbreakpad.a \
|
2016-01-25 15:41:53 -07:00
|
|
|
$(TEST_LIBS) \
|
2012-09-10 11:26:31 -07:00
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-03-16 09:25:30 -07:00
|
|
|
src_processor_stackwalker_x86_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2010-03-16 09:25:30 -07:00
|
|
|
|
2010-03-16 09:20:34 -07:00
|
|
|
src_processor_synth_minidump_unittest_SOURCES = \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/test_assembler.h \
|
2010-03-16 09:20:34 -07:00
|
|
|
src/processor/synth_minidump_unittest.cc \
|
|
|
|
src/processor/synth_minidump.cc \
|
2010-04-27 12:17:59 -07:00
|
|
|
src/processor/synth_minidump.h
|
2010-03-16 09:20:34 -07:00
|
|
|
src_processor_synth_minidump_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2016-01-25 15:41:53 -07:00
|
|
|
src_processor_synth_minidump_unittest_LDADD = \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-03-16 09:20:34 -07:00
|
|
|
|
2010-04-27 12:17:59 -07:00
|
|
|
src_common_test_assembler_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/test_assembler.h \
|
2016-01-25 15:41:53 -07:00
|
|
|
src/common/test_assembler_unittest.cc
|
2010-04-27 12:17:59 -07:00
|
|
|
src_common_test_assembler_unittest_CPPFLAGS = \
|
2016-01-25 13:12:03 -07:00
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
2016-01-25 15:41:53 -07:00
|
|
|
src_common_test_assembler_unittest_LDADD = \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2010-03-16 09:20:34 -07:00
|
|
|
|
2020-12-11 13:53:50 -07:00
|
|
|
src_common_dwarf_dwarf2reader_lineinfo_unittest_SOURCES = \
|
|
|
|
src/common/dwarf/dwarf2reader.h \
|
|
|
|
src/common/dwarf/dwarf2reader_lineinfo_unittest.cc
|
|
|
|
src_common_dwarf_dwarf2reader_lineinfo_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
src_common_dwarf_dwarf2reader_lineinfo_unittest_LDADD = \
|
|
|
|
src/common/dwarf/bytereader.o \
|
|
|
|
src/common/dwarf/dwarf2reader.o \
|
|
|
|
src/common/dwarf/elf_reader.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
|
|
|
|
2020-12-14 19:26:33 -07:00
|
|
|
src_common_dwarf_dwarf2reader_splitfunctions_unittest_SOURCES = \
|
|
|
|
src/common/dwarf/dwarf2reader.h \
|
|
|
|
src/common/dwarf/dwarf2reader_splitfunctions_unittest.cc
|
|
|
|
src_common_dwarf_dwarf2reader_splitfunctions_unittest_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) $(TEST_CFLAGS)
|
|
|
|
src_common_dwarf_dwarf2reader_splitfunctions_unittest_LDADD = \
|
|
|
|
src/common/dwarf/bytereader.o \
|
|
|
|
src/common/dwarf/dwarf2reader.o \
|
|
|
|
src/common/dwarf/elf_reader.o \
|
|
|
|
$(TEST_LIBS) \
|
|
|
|
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
2020-12-11 13:53:50 -07:00
|
|
|
|
2006-09-05 19:56:44 -07:00
|
|
|
src_processor_minidump_dump_SOURCES = \
|
|
|
|
src/processor/minidump_dump.cc
|
|
|
|
src_processor_minidump_dump_LDADD = \
|
2021-03-25 18:32:03 -07:00
|
|
|
src/common/path_helper.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/proc_maps_linux.o
|
2006-09-05 19:56:44 -07:00
|
|
|
|
2014-11-25 04:36:38 -07:00
|
|
|
src_processor_microdump_stackwalk_SOURCES = \
|
|
|
|
src/processor/microdump_stackwalk.cc
|
|
|
|
src_processor_microdump_stackwalk_LDADD = \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/cfi_frame_info.o \
|
|
|
|
src/processor/disassembler_x86.o \
|
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/microdump.o \
|
|
|
|
src/processor/microdump_processor.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/process_state.o \
|
|
|
|
src/processor/simple_symbol_supplier.o \
|
|
|
|
src/processor/source_line_resolver_base.o \
|
|
|
|
src/processor/stack_frame_cpu.o \
|
|
|
|
src/processor/stack_frame_symbolizer.o \
|
|
|
|
src/processor/stackwalk_common.o \
|
|
|
|
src/processor/stackwalker.o \
|
|
|
|
src/processor/stackwalker_address_list.o \
|
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
|
|
|
src/processor/stackwalker_arm64.o \
|
|
|
|
src/processor/stackwalker_mips.o \
|
|
|
|
src/processor/stackwalker_ppc.o \
|
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
|
|
|
src/processor/tokenize.o \
|
|
|
|
src/third_party/libdisasm/libdisasm.a
|
2023-01-30 03:33:54 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_microdump_stackwalk_LDADD += \
|
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif
|
2014-11-25 04:36:38 -07:00
|
|
|
|
2006-09-06 12:28:46 -07:00
|
|
|
src_processor_minidump_stackwalk_SOURCES = \
|
|
|
|
src/processor/minidump_stackwalk.cc
|
|
|
|
src_processor_minidump_stackwalk_LDADD = \
|
2017-10-18 08:39:09 -07:00
|
|
|
src/common/path_helper.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/basic_code_modules.o \
|
|
|
|
src/processor/basic_source_line_resolver.o \
|
|
|
|
src/processor/call_stack.o \
|
|
|
|
src/processor/cfi_frame_info.o \
|
2018-08-01 10:48:27 -07:00
|
|
|
src/processor/convert_old_arm64_context.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/disassembler_x86.o \
|
2014-09-08 12:10:42 -07:00
|
|
|
src/processor/dump_context.o \
|
|
|
|
src/processor/dump_object.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability.o \
|
2013-10-29 13:03:39 -07:00
|
|
|
src/processor/exploitability_linux.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/exploitability_win.o \
|
|
|
|
src/processor/logging.o \
|
|
|
|
src/processor/minidump.o \
|
|
|
|
src/processor/minidump_processor.o \
|
|
|
|
src/processor/pathname_stripper.o \
|
|
|
|
src/processor/process_state.o \
|
Add support for Linux memory mapping stream and remove ELF header usage
when checking exploitability rating.
Linux minidumps do not support MD_MEMORY_INFO_LIST_STREAM, meaning the
processor cannot retrieve its memory mappings. However, it has its own
stream, MD_LINUX_MAPS, which contains memory mappings specific to Linux
(it contains the contents of /proc/self/maps). This CL allows the minidump
to gather information from the memory mappings for Linux minidumps.
In addition, exploitability rating for Linux dumps now use memory mappings
instead of checking the ELF headers of binaries. The basis for the change
is that checking the ELF headers requires the minidumps to store the memory
from the ELF headers, while the memory mapping data is already present,
meaning the size of a minidump will be unchanged.
As a result, of removing ELF header analysis, two unit tests have been removed.
Arguably, the cases that those unit tests check do not merit a high
exploitability rating and do not warrant a solid conclusion that was given
earlier.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1251593007
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1476 4c0a9323-5329-0410-9bdc-e9ce6186880e
2015-07-27 17:53:44 -07:00
|
|
|
src/processor/proc_maps_linux.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/simple_symbol_supplier.o \
|
2010-10-07 13:31:36 -07:00
|
|
|
src/processor/source_line_resolver_base.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stack_frame_cpu.o \
|
2012-10-10 14:41:52 -07:00
|
|
|
src/processor/stack_frame_symbolizer.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalk_common.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker.o \
|
2014-11-25 04:36:38 -07:00
|
|
|
src/processor/stackwalker_address_list.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_amd64.o \
|
|
|
|
src/processor/stackwalker_arm.o \
|
2013-11-22 18:45:20 -07:00
|
|
|
src/processor/stackwalker_arm64.o \
|
2013-09-11 04:37:04 -07:00
|
|
|
src/processor/stackwalker_mips.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_ppc.o \
|
2013-04-12 16:24:02 -07:00
|
|
|
src/processor/stackwalker_ppc64.o \
|
2022-09-09 00:53:29 -07:00
|
|
|
src/processor/stackwalker_riscv.o \
|
|
|
|
src/processor/stackwalker_riscv64.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/stackwalker_sparc.o \
|
|
|
|
src/processor/stackwalker_x86.o \
|
2015-04-10 15:05:29 -07:00
|
|
|
src/processor/symbolic_constants_win.o \
|
2010-10-05 12:38:51 -07:00
|
|
|
src/processor/tokenize.o \
|
|
|
|
src/third_party/libdisasm/libdisasm.a
|
2023-01-30 03:15:11 -07:00
|
|
|
if LINUX_HOST
|
|
|
|
src_processor_minidump_stackwalk_LDADD += \
|
2023-01-30 03:33:54 -07:00
|
|
|
src/common/linux/scoped_pipe.o \
|
|
|
|
src/common/linux/scoped_tmpfile.o \
|
2023-01-30 03:15:11 -07:00
|
|
|
src/processor/disassembler_objdump.o
|
|
|
|
endif LINUX_HOST
|
2006-09-06 12:28:46 -07:00
|
|
|
|
2006-08-30 13:05:05 -07:00
|
|
|
## Additional files to be included in a source distribution
|
2006-12-05 15:52:28 -07:00
|
|
|
##
|
|
|
|
## find src/client src/common src/processor/testdata src/tools \
|
2007-09-26 11:37:39 -07:00
|
|
|
## -type f \! -path '*/.svn/*' -print | sort | \
|
|
|
|
## sed -e s/'^\(.*\)$'/'\t\1 \\'/
|
2006-08-30 13:05:05 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(SCRIPTS) \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/client/linux/data/linux-gate-amd.sym \
|
|
|
|
src/client/linux/data/linux-gate-intel.sym \
|
|
|
|
src/client/mac/handler/breakpad_nlist_64.cc \
|
|
|
|
src/client/mac/handler/breakpad_nlist_64.h \
|
2007-09-26 11:37:39 -07:00
|
|
|
src/client/mac/handler/dynamic_images.cc \
|
|
|
|
src/client/mac/handler/dynamic_images.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/client/mac/handler/exception_handler.cc \
|
|
|
|
src/client/mac/handler/exception_handler.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/client/mac/handler/mach_vm_compat.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/client/mac/handler/minidump_generator.cc \
|
|
|
|
src/client/mac/handler/minidump_generator.h \
|
|
|
|
src/client/mac/handler/minidump_test.xcodeproj/project.pbxproj \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/client/mac/handler/minidump_tests32-Info.plist \
|
|
|
|
src/client/mac/handler/minidump_tests64-Info.plist \
|
|
|
|
src/client/mac/handler/obj-cTestCases-Info.plist \
|
2007-09-26 11:37:39 -07:00
|
|
|
src/client/mac/handler/protected_memory_allocator.cc \
|
|
|
|
src/client/mac/handler/protected_memory_allocator.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/client/mac/handler/ucontext_compat.h \
|
|
|
|
src/client/mac/handler/testcases/testdata/dump_syms_i386_breakpad.sym \
|
|
|
|
src/client/mac/tests/BreakpadFramework_Test.mm \
|
|
|
|
src/client/mac/tests/crash_generation_server_test.cc \
|
|
|
|
src/client/mac/tests/exception_handler_test.cc \
|
|
|
|
src/client/mac/tests/minidump_generator_test.cc \
|
|
|
|
src/client/mac/tests/minidump_generator_test_helper.cc \
|
|
|
|
src/client/mac/tests/spawn_child_process.h \
|
|
|
|
src/client/mac/tests/testlogging.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/client/minidump_file_writer_unittest.cc \
|
2007-09-26 11:37:39 -07:00
|
|
|
src/client/solaris/handler/Makefile \
|
|
|
|
src/client/solaris/handler/exception_handler.cc \
|
|
|
|
src/client/solaris/handler/exception_handler.h \
|
|
|
|
src/client/solaris/handler/exception_handler_test.cc \
|
|
|
|
src/client/solaris/handler/minidump_generator.cc \
|
|
|
|
src/client/solaris/handler/minidump_generator.h \
|
|
|
|
src/client/solaris/handler/minidump_test.cc \
|
|
|
|
src/client/solaris/handler/solaris_lwp.cc \
|
|
|
|
src/client/solaris/handler/solaris_lwp.h \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/client/windows/handler/exception_handler.cc \
|
|
|
|
src/client/windows/handler/exception_handler.h \
|
|
|
|
src/client/windows/sender/crash_report_sender.cc \
|
|
|
|
src/client/windows/sender/crash_report_sender.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/dwarf/dwarf2diehandler.h \
|
|
|
|
src/common/dwarf/dwarf2enums.h \
|
|
|
|
src/common/dwarf/line_state_machine.h \
|
|
|
|
src/common/dwarf/types.h \
|
|
|
|
src/common/mac/arch_utilities.h \
|
|
|
|
src/common/mac/byteswap.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/common/mac/HTTPMultipartUpload.h \
|
|
|
|
src/common/mac/HTTPMultipartUpload.m \
|
|
|
|
src/common/mac/string_utilities.cc \
|
|
|
|
src/common/mac/string_utilities.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/common/mac/super_fat_arch.h \
|
2013-01-22 10:20:42 -07:00
|
|
|
src/common/scoped_ptr.h \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/common/solaris/dump_symbols.cc \
|
|
|
|
src/common/solaris/dump_symbols.h \
|
2007-09-26 11:37:39 -07:00
|
|
|
src/common/solaris/file_id.cc \
|
|
|
|
src/common/solaris/file_id.h \
|
|
|
|
src/common/solaris/guid_creator.cc \
|
|
|
|
src/common/solaris/guid_creator.h \
|
|
|
|
src/common/solaris/message_output.h \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/common/windows/guid_string.cc \
|
|
|
|
src/common/windows/guid_string.h \
|
|
|
|
src/common/windows/http_upload.cc \
|
|
|
|
src/common/windows/http_upload.h \
|
|
|
|
src/common/windows/pdb_source_line_writer.cc \
|
|
|
|
src/common/windows/pdb_source_line_writer.h \
|
|
|
|
src/common/windows/string_utils-inl.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/common/windows/string_utils.cc \
|
2016-11-23 16:01:18 -07:00
|
|
|
src/processor/microdump_stackwalk_test_vars \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/stackwalk_common.cc \
|
|
|
|
src/processor/stackwalk_common.h \
|
|
|
|
src/processor/stackwalker_selftest_sol.s \
|
|
|
|
src/processor/testdata/ascii_read_av_block_write.dmp \
|
|
|
|
src/processor/testdata/ascii_read_av_clobber_write.dmp \
|
|
|
|
src/processor/testdata/ascii_read_av_conditional.dmp \
|
|
|
|
src/processor/testdata/ascii_read_av.dmp \
|
|
|
|
src/processor/testdata/ascii_read_av_then_jmp.dmp \
|
|
|
|
src/processor/testdata/ascii_read_av_xchg_write.dmp \
|
|
|
|
src/processor/testdata/ascii_write_av_arg_to_call.dmp \
|
|
|
|
src/processor/testdata/ascii_write_av.dmp \
|
|
|
|
src/processor/testdata/exec_av_on_stack.dmp \
|
|
|
|
src/processor/testdata/linux_divide_by_zero.dmp \
|
|
|
|
src/processor/testdata/linux_executable_heap.dmp \
|
|
|
|
src/processor/testdata/linux_executable_stack.dmp \
|
|
|
|
src/processor/testdata/linux_inside_module_exe_region1.dmp \
|
|
|
|
src/processor/testdata/linux_inside_module_exe_region2.dmp \
|
|
|
|
src/processor/testdata/linux_jmp_to_0.dmp \
|
|
|
|
src/processor/testdata/linux_jmp_to_module_not_exe_region.dmp \
|
|
|
|
src/processor/testdata/linux_null_dereference.dmp \
|
|
|
|
src/processor/testdata/linux_null_read_av.dmp \
|
|
|
|
src/processor/testdata/linux_outside_module.dmp \
|
|
|
|
src/processor/testdata/linux_overflow.dmp \
|
|
|
|
src/processor/testdata/linux_raise_sigabrt.dmp \
|
|
|
|
src/processor/testdata/linux_stack_pointer_in_module.dmp \
|
|
|
|
src/processor/testdata/linux_stack_pointer_in_stack.dmp \
|
2016-09-01 09:05:18 -07:00
|
|
|
src/processor/testdata/linux_stack_pointer_in_stack_alt_name.dmp \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/testdata/linux_stacksmash.dmp \
|
|
|
|
src/processor/testdata/linux_write_to_nonwritable_module.dmp \
|
|
|
|
src/processor/testdata/linux_write_to_nonwritable_region_math.dmp \
|
|
|
|
src/processor/testdata/linux_write_to_outside_module.dmp \
|
|
|
|
src/processor/testdata/linux_write_to_outside_module_via_math.dmp \
|
|
|
|
src/processor/testdata/linux_write_to_under_4k.dmp \
|
|
|
|
src/processor/testdata/microdump-arm64.dmp \
|
|
|
|
src/processor/testdata/microdump-arm.dmp \
|
|
|
|
src/processor/testdata/microdump-mips32.dmp \
|
|
|
|
src/processor/testdata/microdump-mips64.dmp \
|
|
|
|
src/processor/testdata/microdump-multiple.dmp \
|
|
|
|
src/processor/testdata/microdump.stackwalk-arm64.out \
|
|
|
|
src/processor/testdata/microdump.stackwalk-arm.out \
|
|
|
|
src/processor/testdata/microdump.stackwalk.machine_readable-arm64.out \
|
|
|
|
src/processor/testdata/microdump.stackwalk.machine_readable-arm.out \
|
2017-09-14 13:45:23 -07:00
|
|
|
src/processor/testdata/microdump-withcrashreason.dmp \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/testdata/microdump-x86.dmp \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/processor/testdata/minidump_32bit_crash_addr.dmp \
|
2006-09-07 19:35:53 -07:00
|
|
|
src/processor/testdata/minidump2.dmp \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/testdata/minidump2.dump.out \
|
2007-01-29 14:30:31 -07:00
|
|
|
src/processor/testdata/minidump2.stackwalk.machine_readable.out \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/testdata/minidump2.stackwalk.out \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/testdata/module0.out \
|
2006-08-30 13:05:05 -07:00
|
|
|
src/processor/testdata/module1.out \
|
|
|
|
src/processor/testdata/module2.out \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/testdata/module3_bad.out \
|
2007-09-26 11:37:39 -07:00
|
|
|
src/processor/testdata/module4_bad.out \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/testdata/null_read_av.dmp \
|
|
|
|
src/processor/testdata/null_write_av.dmp \
|
|
|
|
src/processor/testdata/read_av_clobber_write.dmp \
|
|
|
|
src/processor/testdata/read_av_conditional.dmp \
|
|
|
|
src/processor/testdata/read_av_non_null.dmp \
|
|
|
|
src/processor/testdata/stack_exhaustion.dmp \
|
|
|
|
src/processor/testdata/write_av_non_null.dmp \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/testdata/symbols/kernel32.pdb/BCE8785C57B44245A669896B6A19B9542/kernel32.sym \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/processor/testdata/symbols/ld-2.13.so/C32AD7E235EA6112E02A5B9D6219C4850/ld-2.13.so.sym \
|
|
|
|
src/processor/testdata/symbols/libc-2.13.so/F4F8DFCD5A5FB5A7CE64717E9E6AE3890/libc-2.13.so.sym \
|
|
|
|
src/processor/testdata/symbols/libgcc_s.so.1/18B180F90887D8F8B5C35D185444AF4C0/libgcc_s.so.1.sym \
|
|
|
|
src/processor/testdata/symbols/microdump/breakpad_unittests/D6D1FEC9A15DE7F38A236898871A2E770/breakpad_unittests.sym \
|
|
|
|
src/processor/testdata/symbols/microdump/breakpad_unittests/DA7778FB66018A4E9B4110ED06E730D00/breakpad_unittests.sym \
|
|
|
|
src/processor/testdata/symbols/microdump/crash_example/6E72E2F1A5F59AB3D51356FDFE394D490/crash_example.sym \
|
|
|
|
src/processor/testdata/symbols/microdump/crash_example/8F36148CC4647A8116CAF2A25F591F570/crash_example.sym \
|
|
|
|
src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/null_read_av.sym \
|
|
|
|
src/processor/testdata/symbols/overflow/B0E1FC01EF48E39CAF5C881D2DF0C3840/overflow.sym \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/processor/testdata/symbols/test_app.pdb/5A9832E5287241C1838ED98914E9B7FF1/test_app.sym \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/processor/testdata/test_app.cc \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googletest/include/gtest/gtest.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-death-test.h \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/testing/googletest/include/gtest/gtest-matchers.h \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googletest/include/gtest/gtest-message.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-param-test.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-printers.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-spi.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-test-part.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest-typed-test.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest_pred_impl.h \
|
|
|
|
src/testing/googletest/include/gtest/gtest_prod.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/custom/gtest-port.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/custom/gtest-printers.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/custom/gtest.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-death-test-internal.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-filepath.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-internal.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-param-util-generated.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-param-util.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-port-arch.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-port.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-string.h \
|
|
|
|
src/testing/googletest/include/gtest/internal/gtest-type-util.h \
|
|
|
|
src/testing/googletest/src/gtest.cc \
|
|
|
|
src/testing/googletest/src/gtest-death-test.cc \
|
|
|
|
src/testing/googletest/src/gtest-filepath.cc \
|
|
|
|
src/testing/googletest/src/gtest-internal-inl.h \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/testing/googletest/src/gtest-matchers.cc \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googletest/src/gtest-port.cc \
|
|
|
|
src/testing/googletest/src/gtest-printers.cc \
|
|
|
|
src/testing/googletest/src/gtest-test-part.cc \
|
|
|
|
src/testing/googletest/src/gtest-typed-test.cc \
|
|
|
|
src/testing/googlemock/include/gmock/gmock.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-actions.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-cardinalities.h \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/testing/googlemock/include/gmock/gmock-function-mocker.h \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googlemock/include/gmock/gmock-generated-actions.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-generated-function-mockers.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-generated-matchers.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-matchers.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-more-actions.h \
|
|
|
|
src/testing/googlemock/include/gmock/gmock-more-matchers.h \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/testing/googlemock/include/gmock/gmock-nice-strict.h \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googlemock/include/gmock/gmock-spec-builders.h \
|
|
|
|
src/testing/googlemock/include/gmock/internal/custom/gmock-generated-actions.h \
|
|
|
|
src/testing/googlemock/include/gmock/internal/custom/gmock-matchers.h \
|
|
|
|
src/testing/googlemock/include/gmock/internal/custom/gmock-port.h \
|
|
|
|
src/testing/googlemock/include/gmock/internal/gmock-internal-utils.h \
|
|
|
|
src/testing/googlemock/include/gmock/internal/gmock-port.h \
|
2019-11-19 08:00:33 -07:00
|
|
|
src/testing/googlemock/include/gmock/internal/gmock-pp.h \
|
2016-11-18 05:19:03 -07:00
|
|
|
src/testing/googlemock/src/gmock.cc \
|
|
|
|
src/testing/googlemock/src/gmock-cardinalities.cc \
|
|
|
|
src/testing/googlemock/src/gmock-internal-utils.cc \
|
|
|
|
src/testing/googlemock/src/gmock-matchers.cc \
|
|
|
|
src/testing/googlemock/src/gmock-spec-builders.cc \
|
|
|
|
src/testing/googlemock/src/gmock_main.cc \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/third_party/curl/COPYING \
|
|
|
|
src/third_party/curl/curlbuild.h \
|
|
|
|
src/third_party/curl/curl.h \
|
|
|
|
src/third_party/curl/curlrules.h \
|
|
|
|
src/third_party/curl/curlver.h \
|
|
|
|
src/third_party/curl/easy.h \
|
|
|
|
src/third_party/curl/mprintf.h \
|
|
|
|
src/third_party/curl/multi.h \
|
|
|
|
src/third_party/curl/stdcheaders.h \
|
|
|
|
src/third_party/curl/typecheck-gcc.h \
|
|
|
|
src/third_party/curl/types.h \
|
|
|
|
src/third_party/mac_headers/architecture/byte_order.h \
|
2023-04-26 14:08:39 -07:00
|
|
|
src/third_party/mac_headers/arm/_types.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/third_party/mac_headers/i386/_types.h \
|
|
|
|
src/third_party/mac_headers/mach/boolean.h \
|
2023-04-26 14:08:39 -07:00
|
|
|
src/third_party/mac_headers/mach/arm/boolean.h \
|
|
|
|
src/third_party/mac_headers/mach/arm/vm_types.h \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/third_party/mac_headers/mach/i386/boolean.h \
|
|
|
|
src/third_party/mac_headers/mach/i386/vm_types.h \
|
|
|
|
src/third_party/mac_headers/mach/machine/boolean.h \
|
|
|
|
src/third_party/mac_headers/mach/machine.h \
|
|
|
|
src/third_party/mac_headers/mach/machine/thread_state.h \
|
|
|
|
src/third_party/mac_headers/mach/machine/thread_status.h \
|
|
|
|
src/third_party/mac_headers/mach/machine/vm_types.h \
|
|
|
|
src/third_party/mac_headers/mach-o/arch.h \
|
|
|
|
src/third_party/mac_headers/mach-o/fat.h \
|
|
|
|
src/third_party/mac_headers/mach-o/loader.h \
|
|
|
|
src/third_party/mac_headers/mach-o/nlist.h \
|
|
|
|
src/third_party/mac_headers/mach/thread_status.h \
|
|
|
|
src/third_party/mac_headers/mach/vm_prot.h \
|
|
|
|
src/third_party/mac_headers/README \
|
|
|
|
src/third_party/musl/README \
|
|
|
|
src/third_party/musl/COPYRIGHT \
|
|
|
|
src/third_party/musl/README.breakpad \
|
|
|
|
src/third_party/musl/VERSION \
|
|
|
|
src/third_party/musl/include/elf.h \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/tools/mac/crash_report/crash_report.mm \
|
|
|
|
src/tools/mac/crash_report/crash_report.xcodeproj/project.pbxproj \
|
|
|
|
src/tools/mac/crash_report/on_demand_symbol_supplier.h \
|
|
|
|
src/tools/mac/crash_report/on_demand_symbol_supplier.mm \
|
|
|
|
src/tools/mac/dump_syms/dump_syms.xcodeproj/project.pbxproj \
|
2015-09-16 03:46:55 -07:00
|
|
|
src/tools/mac/dump_syms/dump_syms_tool.cc \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/tools/mac/symupload/minidump_upload.m \
|
|
|
|
src/tools/mac/symupload/symupload.m \
|
|
|
|
src/tools/mac/symupload/symupload.xcodeproj/project.pbxproj \
|
2007-09-28 11:14:48 -07:00
|
|
|
src/tools/solaris/dump_syms/Makefile \
|
|
|
|
src/tools/solaris/dump_syms/dump_syms.cc \
|
|
|
|
src/tools/solaris/dump_syms/run_regtest.sh \
|
|
|
|
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.cc \
|
|
|
|
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.o \
|
|
|
|
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.stabs \
|
|
|
|
src/tools/solaris/dump_syms/testdata/dump_syms_regtest.sym \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/tools/windows/converter/ms_symbol_server_converter.cc \
|
|
|
|
src/tools/windows/converter/ms_symbol_server_converter.h \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/tools/windows/dump_syms/dump_syms.cc \
|
|
|
|
src/tools/windows/dump_syms/run_regtest.sh \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc \
|
2006-12-05 15:52:28 -07:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.pdb \
|
2007-02-14 12:51:05 -07:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.sym \
|
2016-05-25 11:36:37 -07:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest64.sym \
|
|
|
|
src/tools/windows/dump_syms/testdata/omap_reorder_bbs.sym \
|
|
|
|
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 \
|
2022-11-24 01:20:21 -07:00
|
|
|
src/tools/windows/symupload/symupload.cc
|
2016-01-25 16:40:56 -07:00
|
|
|
|
|
|
|
mostlyclean-local:
|
|
|
|
-find src -name '*.dwo' -exec rm -f {} +
|