michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_ michael@0: #define PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_ michael@0: michael@0: #include "google_breakpad/processor/stack_frame_symbolizer.h" michael@0: michael@0: #include michael@0: #include michael@0: michael@0: namespace google_breakpad { michael@0: michael@0: class Module; michael@0: michael@0: class LocalDebugInfoSymbolizer : public StackFrameSymbolizer { michael@0: public: michael@0: using StackFrameSymbolizer::SymbolizerResult; michael@0: LocalDebugInfoSymbolizer(const std::vector& debug_dirs) : michael@0: StackFrameSymbolizer(NULL, NULL), michael@0: debug_dirs_(debug_dirs) {} michael@0: virtual ~LocalDebugInfoSymbolizer(); michael@0: michael@0: virtual SymbolizerResult FillSourceLineInfo(const CodeModules* modules, michael@0: const SystemInfo* system_info, michael@0: StackFrame* stack_frame); michael@0: michael@0: virtual WindowsFrameInfo* FindWindowsFrameInfo(const StackFrame* frame); michael@0: michael@0: virtual CFIFrameInfo* FindCFIFrameInfo(const StackFrame* frame); michael@0: michael@0: // Lie to the stackwalker to short-circuit stack-scanning heuristics. michael@0: virtual bool HasImplementation() { return false; } michael@0: michael@0: private: michael@0: typedef std::map SymbolMap; michael@0: SymbolMap symbols_; michael@0: std::vector debug_dirs_; michael@0: }; michael@0: michael@0: } // namespace google_breakpad michael@0: michael@0: #endif // PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_