资源简介
目前正在写,弄完会加上,适用于安卓异常捕获,在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步进电机驱动模块的使用心得
相关资源
- DNW最新驱动兼容WIN7 8 10及100ask dnw烧写
- GO语言圣经 - 中文版
- SpeexDemo代码
- EWB512 简单的软件压 缩包 版本最新最
- 易达服装生产管理系统破解永久注册
- 广联达2019最新程序与定额规则ID全国
- stc-isp最新
- 最新3.0.5版本的maven
- 广联达最新写狗、授权工具,支持5
- H3CNE题库官网最新完整版_附答案详解
- 最新抽奖助手5.2.5.zip
- 仿抖音列表
- 最新中国电信CRM规范2.0
- 2020最新 HCIAHCNA数通(RS)路由交换-
- FRM 2020二级 公示表 Quicksheet 最新
- 管家婆7.2集合最新打印管理器,在W
- ISO142291-7道路车辆统一诊断标准7册全
- LwIP+freertos工程LwIP2.1.2最新版本
- WNR2000V3刷DDWRT固件终极教程及最新固件
- sublime text2官网最新原版+汉化包
- 洛达1562M虎头版11月最新固件+软件(检
- 类似淘宝底部菜单的实现
- 东北大学计算机组成原理最新题库
- unity最新录屏插件
- 利用加速传感器做的睡眠监测
- OpenGL手势控制立方体旋转(代码详解
- glm-0.9.8.52018最新发布版
- 最新汽车之家车型数据以及抓取方法
- 爱普生1390打印机最新清零软件专业版
- 自定义来电秀Demo
评论
共有 条评论