mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-02-27 10:42:58 +00:00
Provide for logging initialization routines (#179). r=bryner
http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/4b196ca0b6d7f9a6 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@177 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
#include "google_breakpad/processor/memory_region.h"
|
||||
#include "google_breakpad/processor/stack_frame.h"
|
||||
#include "google_breakpad/processor/stack_frame_cpu.h"
|
||||
#include "processor/logging.h"
|
||||
#include "processor/scoped_ptr.h"
|
||||
|
||||
using google_breakpad::BasicSourceLineResolver;
|
||||
@@ -292,6 +293,8 @@ static bool Recursor(unsigned int depth, unsigned int parent_callers) {
|
||||
// be inlined anyway.
|
||||
int main(int argc, char** argv) __attribute__((noinline));
|
||||
int main(int argc, char** argv) {
|
||||
BPLOG_INIT(&argc, &argv);
|
||||
|
||||
return Recursor(RECURSION_DEPTH, CountCallerFrames()) ? 0 : 1;
|
||||
}
|
||||
|
||||
@@ -302,8 +305,11 @@ int main(int argc, char** argv) {
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
BPLOG_INIT(&argc, &argv);
|
||||
|
||||
// "make check" interprets an exit status of 77 to mean that the test is
|
||||
// not supported.
|
||||
BPLOG(ERROR) << "Selftest not supported here";
|
||||
return 77;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user