資源簡介
目前正在寫,弄完會加上,適用于安卓異常捕獲,在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步進電機驅動模塊的使用心得
評論
共有 條評論