Coder Social home page Coder Social logo

bpwrapper's Introduction

Introduction Build Status

A simple plain C wrapper for C++ Google Breakpad. What is Google Breakpad client library? Read about it here: Getting Started With Breakpad

Why do I need it?

Actually, you don't need this wrapper, you need Google Breakpad. But Google Breakpad is a c++ library with c++ headers. So, if you have a plain C project, that you want Google Breakpad to use with, you will need simple wrapper.

How to use it?

First, build and install breakpad library

git clone https://chromium.googlesource.com/breakpad/breakpad
cd breakpad
mkdir -p src/third_party/lss/
mkdir -p third_party/lss/ && cd third_party/lss/
git clone https://chromium.googlesource.com/linux-syscall-support
cp linux-syscall-support/*.h .
cp linux-syscall-support/*.h ../../src/third_party/lss/
cd -
./configure
make -j2
sudo make install

Now build this wrapper library:

git clone [email protected]:haiwen/bpwrapper.git
cd bpwrapper
./autogen.sh
./configure
make
sudo make install

Then:

  • Modify the main function of your source code. See tests/test.c for example
  • Link your program with -lbpwrapper -lstdc++

After that, each time the program crashes, a breakpad minidump file would be generated. See breadpad doc about how to get a full stacktrace and other info from this minidump file.

Here is example output of running the breakpad minidump_stackwalk tool with a minidump. It provides useful information like the reason of crashing, strace trace of each thread, and OS information.

bpwrapper's People

Contributors

lins05 avatar

Watchers

James Cloos avatar Àlex Fiestas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.