OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2010, Google Inc. |
| 2 * All rights reserved. |
| 3 * |
| 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are |
| 6 * met: |
| 7 * |
| 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above |
| 11 * copyright notice, this list of conditions and the following disclaimer |
| 12 * in the documentation and/or other materials provided with the |
| 13 * distribution. |
| 14 * * Neither the name of Google Inc. nor the names of its |
| 15 * contributors may be used to endorse or promote products derived from |
| 16 * this software without specific prior written permission. |
| 17 * |
| 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ |
| 29 |
| 30 /* minidump_exception_linux.h: A definition of exception codes for |
| 31 * Linux |
| 32 * |
| 33 * (This is C99 source, please don't corrupt it with C++.) |
| 34 * |
| 35 * Author: Mark Mentovai |
| 36 * Split into its own file: Neal Sidhwaney */ |
| 37 |
| 38 |
| 39 #ifndef CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_EXTENSION_LINUX_H_ |
| 40 #define CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_EXTENSION_LINUX_H_ |
| 41 |
| 42 #include <stddef.h> |
| 43 |
| 44 #include "google_breakpad/common/breakpad_types.h" |
| 45 |
| 46 // These are additional minidump stream values which are specific to the linux |
| 47 // breakpad implementation. |
| 48 enum { |
| 49 MD_LINUX_CPU_INFO = 0x47670003, /* /proc/cpuinfo */ |
| 50 MD_LINUX_PROC_STATUS = 0x47670004, /* /proc/$x/status */ |
| 51 MD_LINUX_LSB_RELEASE = 0x47670005, /* /etc/lsb-release */ |
| 52 MD_LINUX_CMD_LINE = 0x47670006, /* /proc/$x/cmdline */ |
| 53 MD_LINUX_ENVIRON = 0x47670007, /* /proc/$x/environ */ |
| 54 MD_LINUX_AUXV = 0x47670008, /* /proc/$x/auxv */ |
| 55 MD_LINUX_MAPS = 0x47670009, /* /proc/$x/maps */ |
| 56 MD_LINUX_DSO_DEBUG = 0x4767000A, /* DSO data */ |
| 57 }; |
| 58 |
| 59 typedef struct { |
| 60 void* addr; |
| 61 MDRVA name; |
| 62 void* ld; |
| 63 } MDRawLinkMap; |
| 64 |
| 65 typedef struct { |
| 66 u_int32_t version; |
| 67 MDRVA map; |
| 68 u_int32_t dso_count; |
| 69 void* brk; |
| 70 void* ldbase; |
| 71 void* dynamic; |
| 72 } MDRawDebug; |
| 73 |
| 74 #endif /* CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_EXTENSION_LINUX_H_ */ |
OLD | NEW |