Commit 623baff8 authored by Jon Turney's avatar Jon Turney Committed by Hugo Beauzée-Luyssen

Add a

Add a with some notes on building and what is left to do.

Keep the original as

Keep the original at the end for easier merges
parent f9fc454c
# Breakpad for Cygwin/MinGW
google-breakpad with added support for Cygwin/MinGW:
- A `dump_syms` tool which can read DWARF debugging information from PE/COFF executables.
- The breakpad crash-reporting client libraries built using Makefiles rather than MSVC solutions.
## Compiling
### Preparation
Run autoreconf to generate ./configure
autoreconf -fvi
### Compiling
./configure && make
will produce `dump_syms.exe`, `minidump_dump.exe`, `minidump_stackwalk.exe`, `libbreakpad.a`,
and for MinGW `libcrash_generation_client.a`, `libcrash_generation_server.a`, `crash_generation_app.exe`
Note that since git-svn ignores svn externals, this repository is missing the
gyp and gtest dependencies.
## Using
See [Getting started with breakpad](
### Producing and installing symbols
dump_syms crash_generation_app.exe >crash_generation_app.sym
FILE=`head -1 crash_generation_app.sym | cut -f5 -d' '`
BUILDID=`head -1 crash_generation_app.sym | cut -f4 -d' '`
mkdir -p ${SYMBOLPATH}
mv crash_generation_app.sym ${SYMBOLPATH}
### Generating a minidump file
A small test application demonstrating out-of-process dumping called
`crash_generation_app.exe` is built.
- Run it once, selecting "Server->Start" from the menu
- Run it again, selecting "Client->Deref zero"
- Client should crash, and a .dmp is written to C:\Dumps\
### Processing the minidump to produce a stack trace
minidump_stackwalk blah.dmp /symbols/
## Issues
### Lack of build-id
On Windows, the build-id takes the form of a CodeView record.
This build-id is captured for all modules in the process by MiniDumpWriteDump(),
and is used by the breakpad minidump processing tools to find the matching
symbol file.
I have implemented 'ld --build-id' for PE/COFF executables (See, but you must use a
sufficently recent version of binutils (2.25 or later) and build with
'-Wl,--build-id' (or a gcc configured with '--enable-linker-build-id', which
turns that flag on by default) to enable that.
A tool could be written to add a build-id to existing PE/COFF executables, but in
practice this turns out to be quite tricky...
### Symbols from a PDB or the Microsoft Symbol Server
<a href="">
symsrv_convert</a> and dump_syms for PDB cannot be currently built with MinGW,
because (i) they require the MS DIA (Debug Interface Access) SDK (only in paid
editions of Visual Studio 2013), and (ii) the DIA SDK uses ATL.
An alternate PDB parser is available at, but
that also needs some work before it can be built with MinGW.
# Breakpad
Breakpad is a set of client and server components which implement a
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment