资源简介
目前正在写,弄完会加上,适用于安卓异常捕获,在native层奔溃信息,安卓官方权威捕获异常方法

代码片段和文件信息
// Copyright (c) 2012 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms with or without
// modification are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
// SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
// LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
// DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include
#include “client/linux/handler/exception_handler.h“
#include “client/linux/handler/minidump_descriptor.h“
namespace {
bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor
void* context
bool succeeded) {
printf(“Dump path: %s\n“ descriptor.path());
return succeeded;
}
void Crash() {
volatile int* a = reinterpret_cast(NULL);
*a = 1;
}
} // namespace
int main(int argc char* argv[]) {
google_breakpad::MinidumpDescriptor descriptor(“.“);
google_breakpad::ExceptionHandler eh(descriptor NULL DumpCallback
NULL true -1);
Crash();
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-12 17:49 breakpad-master\
文件 2616 2018-10-12 17:49 breakpad-master\.gitignore
文件 1257 2018-10-12 17:49 breakpad-master\.travis.yml
文件 22 2018-10-12 17:49 breakpad-master\AUTHORS
文件 0 2018-10-12 17:49 breakpad-master\ChangeLog
文件 3300 2018-10-12 17:49 breakpad-master\DEPS
文件 15749 2018-10-12 17:49 breakpad-master\INSTALL
文件 2333 2018-10-12 17:49 breakpad-master\LICENSE
文件 59626 2018-10-12 17:49 breakpad-master\Makefile.am
文件 950871 2018-10-12 17:49 breakpad-master\Makefile.in
文件 0 2018-10-12 17:49 breakpad-master\NEWS
文件 4744 2018-10-12 17:49 breakpad-master\README.ANDROID
文件 3080 2018-10-12 17:49 breakpad-master\README.md
文件 47840 2018-10-12 17:49 breakpad-master\aclocal.m4
目录 0 2018-10-12 17:49 breakpad-master\android\
文件 9580 2018-10-12 17:49 breakpad-master\android\common-functions.sh
目录 0 2018-10-12 17:49 breakpad-master\android\google_breakpad\
文件 4221 2018-10-12 17:49 breakpad-master\android\google_breakpad\Android.mk
文件 17942 2018-10-12 17:49 breakpad-master\android\run-checks.sh
目录 0 2018-10-12 17:49 breakpad-master\android\sample_app\
文件 970 2018-10-12 17:49 breakpad-master\android\sample_app\README
目录 0 2018-10-12 17:49 breakpad-master\android\sample_app\jni\
文件 2001 2018-10-12 17:49 breakpad-master\android\sample_app\jni\Android.mk
文件 1623 2018-10-12 17:49 breakpad-master\android\sample_app\jni\Application.mk
文件 2260 2018-10-12 17:49 breakpad-master\android\sample_app\jni\test_breakpad.cpp
文件 4135 2018-10-12 17:49 breakpad-master\android\test-driver
文件 4659 2018-10-12 17:49 breakpad-master\android\test-shell.sh
文件 1199 2018-10-12 17:49 breakpad-master\appveyor.yml
目录 0 2018-10-12 17:49 breakpad-master\autotools\
文件 5826 2018-10-12 17:49 breakpad-master\autotools\ar-lib
文件 7333 2018-10-12 17:49 breakpad-master\autotools\compile
............此处省略983个文件信息
- 上一篇:Hba
se二级索引实现方案 - 下一篇:关于A4988步进电机驱动模块的使用心得
相关资源
- Visio图标-最新最全的网络通信图标库
- Python中Numpy库最新教程
- 联想H61主板BIOS升级F9KT58AUS支持22NM.i
- IAR For ARM 7.3最新注册机
- IAR-Keygen-2019+附使用教程.zip
- ectouch最新版JSAPI微信支付V3插
- elantech触控板驱动程序 v13.6.11 官方最
- 最新版TTF16.OCX Formula One v. 6.1.6.2 控件
- CASS9.1最新S4数据及驱动+ET199数据及驱
- USB转串口驱动,FT232R驱动程序,最新
- ICD10 excel
- zlib 最新 1.2.8 win32 win64 编译好的dll
- Origin2019最新中文版用户入门使用手册
- 爱普生plq22km打印机驱动 v1.00 官方最新
- VMware vSphere 的 Intel 82579LM网卡驱动 最
- 毕索龙bixolon 2478bsc打印机驱动 v4.6.6
- 毕索龙bixolon 3468bsc打印机驱动 v4.6.6
- powerpaste-4.0.1-317(兼容最新tinymce5.2.
- 汉印A300 CPCL协议 android 热敏打印app(
- 安国AU6989SN/SNL系列最新量产工具V16.
- aspose-cells-8.6.1最新完美破解版无水印
- 联想K29最新1.70BIOS修改版,去白名单验
- 火线精英最新稳定辅助源码!
- 2019最新黑马程序员前端39期全套视频
- 2020年东南大学920考研真题(最新)
- VirtualTreeview 最新版支持 XE10.3
- HM77芯片组AHCI驱动 最新版
- 映泰Biostar TA870网
- 华硕b250主板网卡驱动 官方最新版
- 最新ZendStudio13.6破解文件+注册码
评论
共有 条评论