16c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// Copyright (c) 2010 Google Inc. 26c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// All rights reserved. 36c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// 46c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// Redistribution and use in source and binary forms, with or without 56c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// modification, are permitted provided that the following conditions are 66c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// met: 76c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// 86c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// * Redistributions of source code must retain the above copyright 96c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// notice, this list of conditions and the following disclaimer. 106c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// * Redistributions in binary form must reproduce the above 116c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// copyright notice, this list of conditions and the following disclaimer 126c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// in the documentation and/or other materials provided with the 136c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// distribution. 146c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// * Neither the name of Google Inc. nor the names of its 156c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// contributors may be used to endorse or promote products derived from 166c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// this software without specific prior written permission. 176c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// 186c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 196c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 206c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 216c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 226c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 236c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 246c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 256c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 266c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 276c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 286c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 296c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 306c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// stackwalk_common.cc: Module shared by the {micro,mini}dump_stackwalck 316c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org// executables to print the content of dumps (w/ stack traces) on the console. 326c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 336c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 346c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org#ifndef PROCESSOR_STACKWALK_COMMON_H__ 356c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org#define PROCESSOR_STACKWALK_COMMON_H__ 366c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 376c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.orgnamespace google_breakpad { 386c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 396c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.orgclass ProcessState; 4099936a8790bb2aa900c065f38d5f3d543a8d34bfhashimoto@chromium.orgclass SourceLineResolverInterface; 416c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 426c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.orgvoid PrintProcessStateMachineReadable(const ProcessState& process_state); 4399936a8790bb2aa900c065f38d5f3d543a8d34bfhashimoto@chromium.orgvoid PrintProcessState(const ProcessState& process_state, 4499936a8790bb2aa900c065f38d5f3d543a8d34bfhashimoto@chromium.org bool output_stack_contents, 4599936a8790bb2aa900c065f38d5f3d543a8d34bfhashimoto@chromium.org SourceLineResolverInterface* resolver); 466c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 476c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org} // namespace google_breakpad 486c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org 496c3174886cab07c86d05c29be5d19a2e5b16683dprimiano@chromium.org#endif // PROCESSOR_STACKWALK_COMMON_H__ 50