2006-08-25 23:14:45 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2010-03-16 17:20:34 +01:00
|
|
|
# Copyright (c) 2010, Google Inc.
|
2006-09-20 23:16:16 +02:00
|
|
|
# All rights reserved.
|
2006-08-30 22:05:05 +02:00
|
|
|
#
|
2006-09-20 23:16:16 +02: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 22:05:05 +02:00
|
|
|
#
|
2006-09-20 23:16:16 +02: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.
|
|
|
|
# * Neither the name of Google Inc. nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived from
|
|
|
|
# this software without specific prior written permission.
|
2006-08-30 22:05:05 +02:00
|
|
|
#
|
2006-09-20 23:16:16 +02: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 22:05:05 +02:00
|
|
|
|
|
|
|
|
2006-09-05 21:42:57 +02:00
|
|
|
# This allows #includes to be relative to src/
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src
|
|
|
|
|
2010-03-02 01:39:48 +01:00
|
|
|
# Specify include paths for ac macros
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2006-09-06 04:56:44 +02:00
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
## Documentation
|
|
|
|
docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
dist_doc_DATA = \
|
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
ChangeLog \
|
|
|
|
INSTALL \
|
|
|
|
NEWS \
|
|
|
|
README
|
2006-08-25 23:14:45 +02:00
|
|
|
|
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
## Libraries
|
2010-10-02 00:38:10 +02:00
|
|
|
noinst_LTLIBRARIES = src/third_party/libdisasm/libdisasm.la
|
2010-08-31 17:09:01 +02:00
|
|
|
lib_LTLIBRARIES = src/libbreakpad.la
|
|
|
|
|
|
|
|
if LINUX_HOST
|
|
|
|
lib_LTLIBRARIES += src/client/linux/libbreakpad_client.la
|
2010-03-02 01:39:48 +01:00
|
|
|
|
|
|
|
src_client_linux_libbreakpad_client_la_SOURCES = \
|
|
|
|
src/client/linux/crash_generation/crash_generation_client.cc \
|
|
|
|
src/client/linux/handler/exception_handler.cc \
|
|
|
|
src/client/linux/minidump_writer/linux_dumper.cc \
|
|
|
|
src/client/linux/minidump_writer/minidump_writer.cc \
|
|
|
|
src/client/minidump_file_writer.cc \
|
|
|
|
src/common/convert_UTF.c \
|
|
|
|
src/common/md5.c \
|
|
|
|
src/common/string_conversion.cc \
|
|
|
|
src/common/linux/file_id.cc \
|
|
|
|
src/common/linux/guid_creator.cc
|
2010-08-31 17:09:01 +02:00
|
|
|
endif
|
2007-02-14 20:51:05 +01:00
|
|
|
|
|
|
|
src_libbreakpad_la_SOURCES = \
|
|
|
|
src/google_breakpad/common/breakpad_types.h \
|
|
|
|
src/google_breakpad/common/minidump_format.h \
|
2007-05-31 21:44:52 +02:00
|
|
|
src/google_breakpad/common/minidump_size.h \
|
2007-02-14 20:51:05 +01: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 \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/google_breakpad/processor/exploitability.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/google_breakpad/processor/memory_region.h \
|
|
|
|
src/google_breakpad/processor/minidump.h \
|
|
|
|
src/google_breakpad/processor/minidump_processor.h \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/google-breakpad/processor/network_source_line_resolver.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/google_breakpad/processor/process_state.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/google_breakpad/processor/source_line_resolver_interface.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/google_breakpad/processor/stack_frame.h \
|
|
|
|
src/google_breakpad/processor/stack_frame_cpu.h \
|
|
|
|
src/google_breakpad/processor/stackwalker.h \
|
|
|
|
src/google_breakpad/processor/symbol_supplier.h \
|
|
|
|
src/google_breakpad/processor/system_info.h \
|
2006-10-20 21:50:01 +02:00
|
|
|
src/processor/address_map-inl.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/processor/address_map.h \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/basic_code_module.h \
|
|
|
|
src/processor/basic_code_modules.cc \
|
|
|
|
src/processor/basic_code_modules.h \
|
2006-12-12 00:22:54 +01:00
|
|
|
src/processor/basic_source_line_resolver.cc \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/binarystream.h \
|
|
|
|
src/processor/binarystream.cc \
|
2006-10-20 03:46:38 +02:00
|
|
|
src/processor/call_stack.cc \
|
2010-03-16 17:28:32 +01:00
|
|
|
src/processor/cfi_frame_info.cc \
|
|
|
|
src/processor/cfi_frame_info.h \
|
2006-09-20 18:20:15 +02:00
|
|
|
src/processor/contained_range_map-inl.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/processor/contained_range_map.h \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86.h \
|
|
|
|
src/processor/disassembler_x86.cc \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/processor/exploitability.cc \
|
2010-09-22 04:37:19 +02:00
|
|
|
src/processor/exploitability_win.h \
|
|
|
|
src/processor/exploitability_win.cc \
|
2006-09-08 20:03:56 +02:00
|
|
|
src/processor/linked_ptr.h \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/logging.h \
|
|
|
|
src/processor/logging.cc \
|
2006-09-06 04:56:44 +02:00
|
|
|
src/processor/minidump.cc \
|
2006-09-19 23:58:41 +02:00
|
|
|
src/processor/minidump_processor.cc \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/network_interface.h \
|
|
|
|
src/processor/network_source_line_resolver.cc \
|
|
|
|
src/processor/network_source_line_server.cc \
|
|
|
|
src/processor/network_source_line_server.h \
|
2006-10-27 02:40:56 +02:00
|
|
|
src/processor/pathname_stripper.cc \
|
|
|
|
src/processor/pathname_stripper.h \
|
2006-09-22 02:42:23 +02:00
|
|
|
src/processor/postfix_evaluator-inl.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/processor/postfix_evaluator.h \
|
2006-10-24 21:31:21 +02:00
|
|
|
src/processor/process_state.cc \
|
2006-09-20 18:20:15 +02:00
|
|
|
src/processor/range_map-inl.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/processor/range_map.h \
|
2006-10-23 22:25:42 +02:00
|
|
|
src/processor/scoped_ptr.h \
|
2006-10-27 02:40:56 +02:00
|
|
|
src/processor/simple_symbol_supplier.cc \
|
|
|
|
src/processor/simple_symbol_supplier.h \
|
2009-12-23 23:32:14 +01:00
|
|
|
src/processor/windows_frame_info.h \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/stackwalker.cc \
|
2007-10-31 20:20:31 +01:00
|
|
|
src/processor/stackwalker_amd64.cc \
|
|
|
|
src/processor/stackwalker_amd64.h \
|
2009-12-19 22:43:53 +01:00
|
|
|
src/processor/stackwalker_arm.cc \
|
|
|
|
src/processor/stackwalker_arm.h \
|
2006-09-25 20:29:48 +02:00
|
|
|
src/processor/stackwalker_ppc.cc \
|
|
|
|
src/processor/stackwalker_ppc.h \
|
2007-09-26 20:28:05 +02:00
|
|
|
src/processor/stackwalker_sparc.cc \
|
|
|
|
src/processor/stackwalker_sparc.h \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/stackwalker_x86.cc \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/stackwalker_x86.h \
|
2010-09-20 19:45:15 +02:00
|
|
|
src/processor/static_map_iterator-inl.h \
|
|
|
|
src/processor/static_map_iterator.h \
|
2010-09-29 16:02:09 +02:00
|
|
|
src/processor/static_map-inl.h \
|
|
|
|
src/processor/static_map.h \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/tokenize.cc \
|
|
|
|
src/processor/tokenize.h \
|
|
|
|
src/processor/udp_network.cc \
|
|
|
|
src/processor/udp_network.h
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2010-10-02 00:38:10 +02:00
|
|
|
src_libbreakpad_la_LDFLAGS = -W1,-static
|
|
|
|
|
|
|
|
src_libbreakpad_la_LIBADD = src/third_party/libdisasm/libdisasm.la
|
|
|
|
|
|
|
|
src_third_party_libdisasm_libdisasm_la_SOURCES = \
|
|
|
|
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 \
|
|
|
|
src/third_party/libdisasm/x86_operand_list.h
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2006-09-06 04:56:44 +02:00
|
|
|
## Programs
|
|
|
|
bin_PROGRAMS = \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/minidump_dump \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/minidump_stackwalk \
|
|
|
|
src/processor/source_daemon
|
2006-09-06 04:56:44 +02:00
|
|
|
|
2010-08-31 17:09:01 +02:00
|
|
|
if LINUX_HOST
|
|
|
|
bin_PROGRAMS += \
|
|
|
|
src/client/linux/linux_dumper_unittest_helper
|
|
|
|
endif
|
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
## Tests
|
2006-09-06 04:56:44 +02:00
|
|
|
check_PROGRAMS = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler_unittest \
|
2006-10-20 21:50:01 +02:00
|
|
|
src/processor/address_map_unittest \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/binarystream_unittest \
|
2006-12-12 00:22:54 +01:00
|
|
|
src/processor/basic_source_line_resolver_unittest \
|
2010-03-16 17:28:32 +01:00
|
|
|
src/processor/cfi_frame_info_unittest \
|
2006-09-20 18:20:15 +02:00
|
|
|
src/processor/contained_range_map_unittest \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86_unittest \
|
|
|
|
src/processor/exploitability_unittest \
|
2006-09-19 23:58:41 +02:00
|
|
|
src/processor/minidump_processor_unittest \
|
2009-12-09 02:24:37 +01:00
|
|
|
src/processor/minidump_unittest \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/network_source_line_resolver_unittest \
|
|
|
|
src/processor/network_source_line_resolver_server_unittest \
|
|
|
|
src/processor/network_source_line_server_unittest \
|
2010-09-20 19:45:15 +02:00
|
|
|
src/processor/static_map_unittest \
|
2006-10-27 02:40:56 +02:00
|
|
|
src/processor/pathname_stripper_unittest \
|
2006-09-22 02:42:23 +02:00
|
|
|
src/processor/postfix_evaluator_unittest \
|
2010-03-16 17:20:34 +01:00
|
|
|
src/processor/range_map_unittest \
|
2010-03-16 17:49:53 +01:00
|
|
|
src/processor/stackwalker_amd64_unittest \
|
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 17:46:22 +01:00
|
|
|
src/processor/stackwalker_arm_unittest \
|
2010-03-16 17:25:30 +01:00
|
|
|
src/processor/stackwalker_x86_unittest \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/processor/synth_minidump_unittest
|
2006-09-25 23:16:15 +02:00
|
|
|
|
2010-08-31 17:09:01 +02:00
|
|
|
if LINUX_HOST
|
|
|
|
check_PROGRAMS += \
|
|
|
|
src/client/linux/linux_client_unittest
|
|
|
|
endif
|
|
|
|
|
2006-09-25 23:16:15 +02:00
|
|
|
if SELFTEST
|
|
|
|
check_PROGRAMS += \
|
|
|
|
src/processor/stackwalker_selftest
|
|
|
|
endif SELFTEST
|
|
|
|
|
2006-09-06 04:56:44 +02:00
|
|
|
check_SCRIPTS = \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/minidump_dump_test \
|
2007-01-29 22:30:31 +01:00
|
|
|
src/processor/minidump_stackwalk_test \
|
|
|
|
src/processor/minidump_stackwalk_machine_readable_test
|
2006-09-25 23:16:15 +02:00
|
|
|
|
2006-09-06 04:56:44 +02:00
|
|
|
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
2006-08-30 22:05:05 +02:00
|
|
|
TESTS_ENVIRONMENT =
|
2006-09-06 04:56:44 +02:00
|
|
|
|
2010-08-31 17:09:01 +02:00
|
|
|
if LINUX_HOST
|
2010-03-02 01:39:48 +01: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_CXXFLAGS=$(PTHREAD_CFLAGS)
|
|
|
|
src_client_linux_linux_dumper_unittest_helper_LDFLAGS=$(PTHREAD_CFLAGS)
|
|
|
|
src_client_linux_linux_dumper_unittest_helper_CC=$(PTHREAD_CC)
|
|
|
|
|
|
|
|
src_client_linux_linux_client_unittest_SOURCES = \
|
|
|
|
src/client/linux/handler/exception_handler_unittest.cc \
|
|
|
|
src/client/linux/minidump_writer/directory_reader_unittest.cc \
|
|
|
|
src/client/linux/minidump_writer/line_reader_unittest.cc \
|
|
|
|
src/client/linux/minidump_writer/linux_dumper_unittest.cc \
|
|
|
|
src/client/linux/minidump_writer/minidump_writer_unittest.cc \
|
2010-09-23 16:55:50 +02:00
|
|
|
src/common/memory_unittest.cc \
|
2010-03-02 01:39:48 +01:00
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
|
|
|
|
src_client_linux_linux_client_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-02 01:39:48 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_client_linux_linux_client_unittest_LDADD = \
|
|
|
|
src/client/linux/handler/exception_handler.lo \
|
|
|
|
src/client/linux/crash_generation/crash_generation_client.lo \
|
|
|
|
src/client/linux/minidump_writer/linux_dumper.lo \
|
|
|
|
src/client/linux/minidump_writer/minidump_writer.lo \
|
|
|
|
src/client/minidump_file_writer.lo \
|
|
|
|
src/common/convert_UTF.lo \
|
|
|
|
src/common/md5.lo \
|
|
|
|
src/common/linux/file_id.lo \
|
|
|
|
src/common/linux/guid_creator.lo \
|
2010-09-17 15:36:11 +02:00
|
|
|
src/common/string_conversion.lo \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/minidump.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
|
|
|
|
|
|
|
src_client_linux_linux_client_unittest_DEPENDENCIES = src/client/linux/linux_dumper_unittest_helper src/client/linux/libbreakpad_client.la src/libbreakpad.la
|
2010-08-31 17:09:01 +02:00
|
|
|
endif
|
2010-03-02 01:39:48 +01:00
|
|
|
|
2006-10-20 21:50:01 +02:00
|
|
|
src_processor_address_map_unittest_SOURCES = \
|
|
|
|
src/processor/address_map_unittest.cc
|
2007-05-21 22:09:33 +02:00
|
|
|
src_processor_address_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
2006-10-20 21:50:01 +02:00
|
|
|
|
2010-04-09 01:06:23 +02:00
|
|
|
src_processor_binarystream_unittest_SOURCES = \
|
|
|
|
src/processor/binarystream_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_binarystream_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-04-09 01:06:23 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_binarystream_unittest_LDADD = \
|
|
|
|
src/processor/binarystream.lo
|
|
|
|
|
2006-12-12 00:22:54 +01:00
|
|
|
src_processor_basic_source_line_resolver_unittest_SOURCES = \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/basic_source_line_resolver_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_basic_source_line_resolver_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-04-09 01:06:23 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
2006-12-12 00:22:54 +01:00
|
|
|
src_processor_basic_source_line_resolver_unittest_LDADD = \
|
2007-05-21 22:09:33 +02:00
|
|
|
src/processor/basic_source_line_resolver.lo \
|
2010-03-16 17:28:32 +01:00
|
|
|
src/processor/cfi_frame_info.lo \
|
2007-05-21 22:09:33 +02:00
|
|
|
src/processor/pathname_stripper.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/tokenize.lo
|
2006-12-12 00:22:54 +01:00
|
|
|
|
2010-03-16 17:28:32 +01:00
|
|
|
src_processor_cfi_frame_info_unittest_SOURCES = \
|
|
|
|
src/processor/cfi_frame_info_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_cfi_frame_info_unittest_LDADD = \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
|
|
|
src_processor_cfi_frame_info_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-16 17:28:32 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
2006-09-20 18:20:15 +02:00
|
|
|
src_processor_contained_range_map_unittest_SOURCES = \
|
|
|
|
src/processor/contained_range_map_unittest.cc
|
2007-05-21 22:09:33 +02:00
|
|
|
src_processor_contained_range_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
2006-09-20 18:20:15 +02:00
|
|
|
|
2010-10-02 00:38:10 +02:00
|
|
|
src_processor_exploitability_unittest_SOURCES = \
|
|
|
|
src/processor/exploitability_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_exploitability_unittest_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_exploitability_unittest_LDADD = \
|
|
|
|
src/processor/minidump_processor.lo \
|
|
|
|
src/processor/process_state.lo \
|
|
|
|
src/processor/disassembler_x86.lo \
|
|
|
|
src/processor/exploitability.lo \
|
|
|
|
src/processor/exploitability_win.lo \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/basic_source_line_resolver.lo \
|
|
|
|
src/processor/call_stack.lo \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/minidump.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/stackwalker.lo \
|
|
|
|
src/processor/stackwalker_amd64.lo \
|
|
|
|
src/processor/stackwalker_arm.lo \
|
|
|
|
src/processor/stackwalker_ppc.lo \
|
|
|
|
src/processor/stackwalker_sparc.lo \
|
|
|
|
src/processor/stackwalker_x86.lo \
|
|
|
|
src/processor/tokenize.lo \
|
|
|
|
src/third_party/libdisasm/libdisasm.la
|
|
|
|
|
|
|
|
src_processor_disassembler_x86_unittest_SOURCES = \
|
|
|
|
src/processor/disassembler_x86_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_disassembler_x86_unittest_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_disassembler_x86_unittest_LDADD = \
|
|
|
|
src/processor/disassembler_x86.lo \
|
|
|
|
src/third_party/libdisasm/libdisasm.la
|
|
|
|
|
2006-09-19 23:58:41 +02:00
|
|
|
src_processor_minidump_processor_unittest_SOURCES = \
|
2009-05-29 02:53:02 +02:00
|
|
|
src/processor/minidump_processor_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_minidump_processor_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2009-05-29 02:53:02 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
2006-09-19 23:58:41 +02:00
|
|
|
src_processor_minidump_processor_unittest_LDADD = \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/basic_code_modules.lo \
|
2006-12-12 00:22:54 +01:00
|
|
|
src/processor/basic_source_line_resolver.lo \
|
2006-10-20 03:46:38 +02:00
|
|
|
src/processor/call_stack.lo \
|
2010-03-16 17:28:32 +01:00
|
|
|
src/processor/cfi_frame_info.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86.lo \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/processor/exploitability.lo \
|
2010-09-22 04:37:19 +02:00
|
|
|
src/processor/exploitability_win.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/logging.lo \
|
2006-09-19 23:58:41 +02:00
|
|
|
src/processor/minidump_processor.lo \
|
|
|
|
src/processor/minidump.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/pathname_stripper.lo \
|
2006-10-24 21:31:21 +02:00
|
|
|
src/processor/process_state.lo \
|
2006-09-19 23:58:41 +02:00
|
|
|
src/processor/stackwalker.lo \
|
2007-10-31 20:20:31 +01:00
|
|
|
src/processor/stackwalker_amd64.lo \
|
2009-12-19 22:43:53 +01:00
|
|
|
src/processor/stackwalker_arm.lo \
|
2006-09-25 20:29:48 +02:00
|
|
|
src/processor/stackwalker_ppc.lo \
|
2007-09-26 20:28:05 +02:00
|
|
|
src/processor/stackwalker_sparc.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/stackwalker_x86.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/tokenize.lo \
|
|
|
|
src/third_party/libdisasm/libdisasm.la
|
2006-09-19 23:58:41 +02:00
|
|
|
|
2009-12-09 02:24:37 +01:00
|
|
|
src_processor_minidump_unittest_SOURCES = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler.cc \
|
2009-12-09 02:24:37 +01:00
|
|
|
src/processor/minidump_unittest.cc \
|
2010-03-16 17:20:34 +01:00
|
|
|
src/processor/synth_minidump.cc \
|
2009-12-09 02:24:37 +01:00
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
2010-03-16 17:20:34 +01:00
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
2009-12-09 02:24:37 +01:00
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_minidump_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2009-12-09 02:24:37 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_minidump_unittest_LDADD = \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/minidump.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
|
|
|
|
2010-04-09 01:06:23 +02:00
|
|
|
src_processor_network_source_line_resolver_unittest_SOURCES = \
|
|
|
|
src/processor/network_source_line_resolver_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_network_source_line_resolver_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-04-09 01:06:23 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_network_source_line_resolver_unittest_LDADD = \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/binarystream.lo \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/network_source_line_resolver.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/tokenize.lo \
|
|
|
|
src/processor/udp_network.lo
|
|
|
|
|
|
|
|
src_processor_network_source_line_resolver_server_unittest_SOURCES = \
|
|
|
|
src/processor/network_source_line_resolver_server_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_network_source_line_resolver_server_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-04-09 01:06:23 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_network_source_line_resolver_server_unittest_LDADD = \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/basic_source_line_resolver.lo \
|
|
|
|
src/processor/binarystream.lo \
|
|
|
|
src/processor/call_stack.lo \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86.lo \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/processor/exploitability.lo \
|
2010-09-22 04:37:19 +02:00
|
|
|
src/processor/exploitability_win.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/minidump_processor.lo \
|
|
|
|
src/processor/minidump.lo \
|
|
|
|
src/processor/network_source_line_resolver.lo \
|
|
|
|
src/processor/network_source_line_server.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/process_state.lo \
|
|
|
|
src/processor/simple_symbol_supplier.lo \
|
|
|
|
src/processor/stackwalker.lo \
|
|
|
|
src/processor/stackwalker_amd64.lo \
|
|
|
|
src/processor/stackwalker_arm.lo \
|
|
|
|
src/processor/stackwalker_ppc.lo \
|
|
|
|
src/processor/stackwalker_sparc.lo \
|
|
|
|
src/processor/stackwalker_x86.lo \
|
|
|
|
src/processor/tokenize.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/udp_network.lo \
|
|
|
|
src/third_party/libdisasm/libdisasm.la
|
2010-04-09 01:06:23 +02:00
|
|
|
|
|
|
|
src_processor_network_source_line_server_unittest_SOURCES = \
|
|
|
|
src/processor/network_source_line_server_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_network_source_line_server_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-04-09 01:06:23 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_network_source_line_server_unittest_LDADD = \
|
|
|
|
src/processor/binarystream.lo \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/network_source_line_server.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/udp_network.lo
|
|
|
|
|
2010-09-20 19:45:15 +02:00
|
|
|
src_processor_static_map_unittest_SOURCES = \
|
|
|
|
src/processor/static_map_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_static_map_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-09-20 19:45:15 +02:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
2010-09-20 19:45:15 +02:00
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
src_processor_static_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
|
|
|
|
2006-10-27 02:40:56 +02:00
|
|
|
src_processor_pathname_stripper_unittest_SOURCES = \
|
|
|
|
src/processor/pathname_stripper_unittest.cc
|
|
|
|
src_processor_pathname_stripper_unittest_LDADD = \
|
|
|
|
src/processor/pathname_stripper.lo
|
|
|
|
|
2006-09-22 02:42:23 +02:00
|
|
|
src_processor_postfix_evaluator_unittest_SOURCES = \
|
|
|
|
src/processor/postfix_evaluator_unittest.cc
|
2007-05-21 22:09:33 +02:00
|
|
|
src_processor_postfix_evaluator_unittest_LDADD = \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
2006-09-22 02:42:23 +02:00
|
|
|
|
2006-09-06 04:56:44 +02:00
|
|
|
src_processor_range_map_unittest_SOURCES = \
|
|
|
|
src/processor/range_map_unittest.cc
|
2007-05-21 22:09:33 +02:00
|
|
|
src_processor_range_map_unittest_LDADD = \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
2006-08-30 22:05:05 +02:00
|
|
|
|
2006-09-25 23:16:15 +02:00
|
|
|
src_processor_stackwalker_selftest_SOURCES = \
|
|
|
|
src/processor/stackwalker_selftest.cc
|
|
|
|
src_processor_stackwalker_selftest_LDADD = \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/basic_code_modules.lo \
|
2006-12-12 00:22:54 +01:00
|
|
|
src/processor/basic_source_line_resolver.lo \
|
2006-10-20 03:46:38 +02:00
|
|
|
src/processor/call_stack.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86.lo \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/processor/exploitability.lo \
|
2010-09-22 04:37:19 +02:00
|
|
|
src/processor/exploitability_win.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/logging.lo \
|
2006-09-25 23:16:15 +02:00
|
|
|
src/processor/minidump.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/pathname_stripper.lo \
|
2006-09-25 23:16:15 +02:00
|
|
|
src/processor/stackwalker.lo \
|
2007-10-31 20:20:31 +01:00
|
|
|
src/processor/stackwalker_amd64.lo \
|
2009-12-19 22:43:53 +01:00
|
|
|
src/processor/stackwalker_arm.lo \
|
2006-09-25 23:16:15 +02:00
|
|
|
src/processor/stackwalker_ppc.lo \
|
2007-09-26 20:28:05 +02:00
|
|
|
src/processor/stackwalker_sparc.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/stackwalker_x86.lo \
|
|
|
|
src/processor/tokenize.lo
|
2006-09-25 23:16:15 +02:00
|
|
|
|
2010-03-16 17:49:53 +01:00
|
|
|
src_processor_stackwalker_amd64_unittest_SOURCES = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler.cc \
|
2010-03-16 17:49:53 +01:00
|
|
|
src/processor/stackwalker_amd64_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_stackwalker_amd64_unittest_LDADD = \
|
|
|
|
src/libbreakpad.la
|
|
|
|
src_processor_stackwalker_amd64_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-16 17:49:53 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
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 17:46:22 +01:00
|
|
|
src_processor_stackwalker_arm_unittest_SOURCES = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler.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 17:46:22 +01:00
|
|
|
src/processor/stackwalker_arm_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_stackwalker_arm_unittest_LDADD = \
|
|
|
|
src/libbreakpad.la
|
|
|
|
src_processor_stackwalker_arm_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
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 17:46:22 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
2010-03-16 17:25:30 +01:00
|
|
|
src_processor_stackwalker_x86_unittest_SOURCES = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler.cc \
|
2010-03-16 17:25:30 +01:00
|
|
|
src/processor/stackwalker_x86_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_processor_stackwalker_x86_unittest_LDADD = \
|
|
|
|
src/libbreakpad.la
|
|
|
|
src_processor_stackwalker_x86_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-16 17:25:30 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
2010-03-16 17:20:34 +01:00
|
|
|
src_processor_synth_minidump_unittest_SOURCES = \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/test_assembler.h \
|
2010-03-16 17:20:34 +01:00
|
|
|
src/processor/synth_minidump_unittest.cc \
|
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
|
|
|
src/testing/src/gmock-all.cc \
|
|
|
|
src/processor/synth_minidump.cc \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/processor/synth_minidump.h
|
2010-03-16 17:20:34 +01:00
|
|
|
src_processor_synth_minidump_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-16 17:20:34 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
2010-04-27 21:17:59 +02:00
|
|
|
src_common_test_assembler_unittest_SOURCES = \
|
|
|
|
src/common/test_assembler.cc \
|
|
|
|
src/common/test_assembler.h \
|
|
|
|
src/common/test_assembler_unittest.cc \
|
2010-03-16 17:20:34 +01:00
|
|
|
src/testing/gtest/src/gtest-all.cc \
|
|
|
|
src/testing/gtest/src/gtest_main.cc \
|
2010-04-27 21:17:59 +02:00
|
|
|
src/testing/src/gmock-all.cc
|
|
|
|
src_common_test_assembler_unittest_CPPFLAGS = \
|
2010-09-29 16:02:09 +02:00
|
|
|
-I$(top_srcdir)/src \
|
2010-03-16 17:20:34 +01:00
|
|
|
-I$(top_srcdir)/src/testing/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest/include \
|
|
|
|
-I$(top_srcdir)/src/testing/gtest \
|
|
|
|
-I$(top_srcdir)/src/testing
|
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
## Non-installables
|
2006-09-06 04:56:44 +02:00
|
|
|
noinst_PROGRAMS =
|
2006-08-30 22:05:05 +02:00
|
|
|
noinst_SCRIPTS = $(check_SCRIPTS)
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2006-09-06 04:56:44 +02:00
|
|
|
src_processor_minidump_dump_SOURCES = \
|
|
|
|
src/processor/minidump_dump.cc
|
|
|
|
src_processor_minidump_dump_LDADD = \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/basic_code_modules.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/minidump.lo \
|
|
|
|
src/processor/pathname_stripper.lo
|
2006-09-06 04:56:44 +02:00
|
|
|
|
2006-09-06 21:28:46 +02:00
|
|
|
src_processor_minidump_stackwalk_SOURCES = \
|
|
|
|
src/processor/minidump_stackwalk.cc
|
|
|
|
src_processor_minidump_stackwalk_LDADD = \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/basic_code_modules.lo \
|
2006-12-12 00:22:54 +01:00
|
|
|
src/processor/basic_source_line_resolver.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/binarystream.lo \
|
2006-10-20 03:46:38 +02:00
|
|
|
src/processor/call_stack.lo \
|
2010-03-16 17:28:32 +01:00
|
|
|
src/processor/cfi_frame_info.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/disassembler_x86.lo \
|
2010-08-25 22:16:17 +02:00
|
|
|
src/processor/exploitability.lo \
|
2010-09-22 04:37:19 +02:00
|
|
|
src/processor/exploitability_win.lo \
|
2007-05-17 20:34:37 +02:00
|
|
|
src/processor/logging.lo \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/minidump.lo \
|
2006-10-27 02:40:56 +02:00
|
|
|
src/processor/minidump_processor.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/process_state.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/network_source_line_resolver.lo \
|
2006-10-27 02:40:56 +02:00
|
|
|
src/processor/simple_symbol_supplier.lo \
|
2006-09-06 21:28:46 +02:00
|
|
|
src/processor/stackwalker.lo \
|
2007-10-31 20:20:31 +01:00
|
|
|
src/processor/stackwalker_amd64.lo \
|
2009-12-19 22:43:53 +01:00
|
|
|
src/processor/stackwalker_arm.lo \
|
2006-09-25 20:29:48 +02:00
|
|
|
src/processor/stackwalker_ppc.lo \
|
2007-09-26 20:28:05 +02:00
|
|
|
src/processor/stackwalker_sparc.lo \
|
2010-04-09 01:06:23 +02:00
|
|
|
src/processor/stackwalker_x86.lo \
|
|
|
|
src/processor/tokenize.lo \
|
2010-10-02 00:38:10 +02:00
|
|
|
src/processor/udp_network.lo \
|
|
|
|
src/third_party/libdisasm/libdisasm.la
|
2006-09-06 21:28:46 +02:00
|
|
|
|
2010-04-09 01:06:23 +02:00
|
|
|
src_processor_source_daemon_SOURCES = \
|
|
|
|
src/processor/source_daemon.cc
|
|
|
|
src_processor_source_daemon_LDADD = \
|
|
|
|
src/processor/basic_code_modules.lo \
|
|
|
|
src/processor/basic_source_line_resolver.lo \
|
|
|
|
src/processor/binarystream.lo \
|
|
|
|
src/processor/cfi_frame_info.lo \
|
|
|
|
src/processor/logging.lo \
|
|
|
|
src/processor/network_source_line_server.lo \
|
|
|
|
src/processor/pathname_stripper.lo \
|
|
|
|
src/processor/simple_symbol_supplier.lo \
|
|
|
|
src/processor/tokenize.lo \
|
|
|
|
src/processor/udp_network.lo
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
## Additional files to be included in a source distribution
|
2006-12-05 23:52:28 +01:00
|
|
|
##
|
|
|
|
## find src/client src/common src/processor/testdata src/tools \
|
2007-09-26 20:37:39 +02:00
|
|
|
## -type f \! -path '*/.svn/*' -print | sort | \
|
|
|
|
## sed -e s/'^\(.*\)$'/'\t\1 \\'/
|
2006-08-30 22:05:05 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(SCRIPTS) \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/processor/stackwalk_selftest_sol.s \
|
|
|
|
src/client/linux/handler/Makefile \
|
|
|
|
src/client/linux/handler/exception_handler.cc \
|
|
|
|
src/client/linux/handler/exception_handler.h \
|
|
|
|
src/client/linux/handler/exception_handler_test.cc \
|
|
|
|
src/client/linux/handler/linux_thread.cc \
|
|
|
|
src/client/linux/handler/linux_thread.h \
|
|
|
|
src/client/linux/handler/linux_thread_test.cc \
|
|
|
|
src/client/linux/handler/minidump_generator.cc \
|
|
|
|
src/client/linux/handler/minidump_generator.h \
|
|
|
|
src/client/linux/handler/minidump_test.cc \
|
|
|
|
src/client/mac/handler/dynamic_images.cc \
|
|
|
|
src/client/mac/handler/dynamic_images.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/client/mac/handler/exception_handler.cc \
|
|
|
|
src/client/mac/handler/exception_handler.h \
|
|
|
|
src/client/mac/handler/exception_handler_test.cc \
|
|
|
|
src/client/mac/handler/minidump_generator.cc \
|
|
|
|
src/client/mac/handler/minidump_generator.h \
|
|
|
|
src/client/mac/handler/minidump_generator_test.cc \
|
|
|
|
src/client/mac/handler/minidump_test.xcodeproj/project.pbxproj \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/client/mac/handler/protected_memory_allocator.cc \
|
|
|
|
src/client/mac/handler/protected_memory_allocator.h \
|
|
|
|
src/client/minidump_file_writer-inl.h \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/client/minidump_file_writer.cc \
|
|
|
|
src/client/minidump_file_writer.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/client/minidump_file_writer_unittest.cc \
|
2007-09-26 20:37:39 +02: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 \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/client/windows/breakpad_client.sln \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/client/windows/handler/exception_handler.cc \
|
|
|
|
src/client/windows/handler/exception_handler.h \
|
|
|
|
src/client/windows/handler/exception_handler.vcproj \
|
|
|
|
src/client/windows/sender/crash_report_sender.cc \
|
|
|
|
src/client/windows/sender/crash_report_sender.h \
|
|
|
|
src/client/windows/sender/crash_report_sender.vcproj \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/common/convert_UTF.c \
|
|
|
|
src/common/convert_UTF.h \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/common/linux/dump_symbols.cc \
|
|
|
|
src/common/linux/dump_symbols.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/http_upload.cc \
|
|
|
|
src/common/linux/http_upload.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/common/mac/HTTPMultipartUpload.h \
|
|
|
|
src/common/mac/HTTPMultipartUpload.m \
|
|
|
|
src/common/mac/dump_syms.h \
|
|
|
|
src/common/mac/dump_syms.mm \
|
|
|
|
src/common/mac/file_id.cc \
|
|
|
|
src/common/mac/file_id.h \
|
|
|
|
src/common/mac/macho_id.cc \
|
|
|
|
src/common/mac/macho_id.h \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/common/mac/macho_utilities.cc \
|
|
|
|
src/common/mac/macho_utilities.h \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/common/mac/macho_walker.cc \
|
|
|
|
src/common/mac/macho_walker.h \
|
|
|
|
src/common/mac/string_utilities.cc \
|
|
|
|
src/common/mac/string_utilities.h \
|
2007-09-28 20:14:48 +02:00
|
|
|
src/common/md5.c \
|
|
|
|
src/common/md5.h \
|
|
|
|
src/common/solaris/dump_symbols.cc \
|
|
|
|
src/common/solaris/dump_symbols.h \
|
2007-09-26 20:37:39 +02: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 \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/common/string_conversion.cc \
|
|
|
|
src/common/string_conversion.h \
|
2006-12-05 23:52:28 +01: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 20:51:05 +01:00
|
|
|
src/common/windows/string_utils.cc \
|
2006-09-08 04:35:53 +02:00
|
|
|
src/processor/testdata/minidump2.dmp \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/testdata/minidump2.dump.out \
|
2007-01-29 22:30:31 +01:00
|
|
|
src/processor/testdata/minidump2.stackwalk.machine_readable.out \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/testdata/minidump2.stackwalk.out \
|
2006-08-30 22:05:05 +02:00
|
|
|
src/processor/testdata/module1.out \
|
|
|
|
src/processor/testdata/module2.out \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/testdata/module3_bad.out \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/processor/testdata/module4_bad.out \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/testdata/symbols/kernel32.pdb/BCE8785C57B44245A669896B6A19B9542/kernel32.sym \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/processor/testdata/symbols/test_app.pdb/5A9832E5287241C1838ED98914E9B7FF1/test_app.sym \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/processor/testdata/test_app.cc \
|
2007-09-26 20:37:39 +02:00
|
|
|
src/tools/linux/dump_syms/Makefile \
|
|
|
|
src/tools/linux/dump_syms/dump_syms.cc \
|
|
|
|
src/tools/linux/symupload/Makefile \
|
|
|
|
src/tools/linux/symupload/minidump_upload.cc \
|
|
|
|
src/tools/linux/symupload/sym_upload.cc \
|
2007-02-14 20:51:05 +01: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 \
|
|
|
|
src/tools/mac/dump_syms/dump_syms_tool.m \
|
|
|
|
src/tools/mac/symupload/minidump_upload.m \
|
|
|
|
src/tools/mac/symupload/symupload.m \
|
|
|
|
src/tools/mac/symupload/symupload.xcodeproj/project.pbxproj \
|
2007-09-28 20:14:48 +02: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 20:51:05 +01:00
|
|
|
src/tools/windows/converter/ms_symbol_server_converter.cc \
|
|
|
|
src/tools/windows/converter/ms_symbol_server_converter.h \
|
|
|
|
src/tools/windows/converter/ms_symbol_server_converter.vcproj \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/tools/windows/dump_syms/dump_syms.cc \
|
|
|
|
src/tools/windows/dump_syms/dump_syms.vcproj \
|
|
|
|
src/tools/windows/dump_syms/run_regtest.sh \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.cc \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.pdb \
|
2007-02-14 20:51:05 +01:00
|
|
|
src/tools/windows/dump_syms/testdata/dump_syms_regtest.sym \
|
2006-12-05 23:52:28 +01:00
|
|
|
src/tools/windows/symupload/symupload.cc \
|
|
|
|
src/tools/windows/symupload/symupload.vcproj
|
2006-08-25 23:14:45 +02:00
|
|
|
|
2006-08-30 22:05:05 +02:00
|
|
|
|
|
|
|
## Additional rules
|
2006-08-25 23:14:45 +02:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
|
|
|
$(SHELL) ./config.status --recheck
|
2010-03-02 01:39:48 +01:00
|
|
|
|