dump_without_crashing.h 772 B

123456789101112131415161718192021222324252627
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
  5. #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_
  6. #include "base/base_export.h"
  7. #include "base/compiler_specific.h"
  8. #include "base/build_config.h"
  9. namespace base {
  10. namespace debug {
  11. // Handler to silently dump the current process without crashing.
  12. BASE_EXPORT void DumpWithoutCrashing();
  13. // Sets a function that'll be invoked to dump the current process when
  14. // DumpWithoutCrashing() is called.
  15. BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)());
  16. } // namespace debug
  17. } // namespace base
  18. #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_