author Benoit Girard <>
Tue, 30 Jun 2015 15:03:45 -0400
changeset 251392 94714c206f188a4587bdcb4d00ec72019c0925ca
parent 126547 tools/profiler/local_debug_info_symbolizer.h@52cd656def30eb0be5f96db2c8e95a7d34b10988
child 281836 211a4c710fb6af2cad10102c4cabc7cb525998b8
permissions -rw-r--r--
Bug 1178892 - Split the profiler into Core & Gecko files and break apart monolithic headers. r=mstange

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */


#include "google_breakpad/processor/stack_frame_symbolizer.h"

#include <map>
#include <vector>

namespace google_breakpad {

class Module;

class LocalDebugInfoSymbolizer : public StackFrameSymbolizer {
  using StackFrameSymbolizer::SymbolizerResult;
  LocalDebugInfoSymbolizer(const std::vector<string>& debug_dirs) :
      StackFrameSymbolizer(NULL, NULL),
      debug_dirs_(debug_dirs) {}
  virtual ~LocalDebugInfoSymbolizer();

  virtual SymbolizerResult FillSourceLineInfo(const CodeModules* modules,
                                              const SystemInfo* system_info,
                                              StackFrame* stack_frame);

  virtual WindowsFrameInfo* FindWindowsFrameInfo(const StackFrame* frame);

  virtual CFIFrameInfo* FindCFIFrameInfo(const StackFrame* frame);

  // Lie to the stackwalker to short-circuit stack-scanning heuristics.
  virtual bool HasImplementation() { return false; }

  typedef std::map<string, Module*> SymbolMap;
  SymbolMap symbols_;
  std::vector<string> debug_dirs_;

}  // namespace google_breakpad