Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_ |
michael@0 | 7 | #define PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_ |
michael@0 | 8 | |
michael@0 | 9 | #include "google_breakpad/processor/stack_frame_symbolizer.h" |
michael@0 | 10 | |
michael@0 | 11 | #include <map> |
michael@0 | 12 | #include <vector> |
michael@0 | 13 | |
michael@0 | 14 | namespace google_breakpad { |
michael@0 | 15 | |
michael@0 | 16 | class Module; |
michael@0 | 17 | |
michael@0 | 18 | class LocalDebugInfoSymbolizer : public StackFrameSymbolizer { |
michael@0 | 19 | public: |
michael@0 | 20 | using StackFrameSymbolizer::SymbolizerResult; |
michael@0 | 21 | LocalDebugInfoSymbolizer(const std::vector<string>& debug_dirs) : |
michael@0 | 22 | StackFrameSymbolizer(NULL, NULL), |
michael@0 | 23 | debug_dirs_(debug_dirs) {} |
michael@0 | 24 | virtual ~LocalDebugInfoSymbolizer(); |
michael@0 | 25 | |
michael@0 | 26 | virtual SymbolizerResult FillSourceLineInfo(const CodeModules* modules, |
michael@0 | 27 | const SystemInfo* system_info, |
michael@0 | 28 | StackFrame* stack_frame); |
michael@0 | 29 | |
michael@0 | 30 | virtual WindowsFrameInfo* FindWindowsFrameInfo(const StackFrame* frame); |
michael@0 | 31 | |
michael@0 | 32 | virtual CFIFrameInfo* FindCFIFrameInfo(const StackFrame* frame); |
michael@0 | 33 | |
michael@0 | 34 | // Lie to the stackwalker to short-circuit stack-scanning heuristics. |
michael@0 | 35 | virtual bool HasImplementation() { return false; } |
michael@0 | 36 | |
michael@0 | 37 | private: |
michael@0 | 38 | typedef std::map<string, Module*> SymbolMap; |
michael@0 | 39 | SymbolMap symbols_; |
michael@0 | 40 | std::vector<string> debug_dirs_; |
michael@0 | 41 | }; |
michael@0 | 42 | |
michael@0 | 43 | } // namespace google_breakpad |
michael@0 | 44 | |
michael@0 | 45 | #endif // PROCESSOR_LOCAL_DEBUG_INFO_SYMBOLIZER_H_ |