/thirdparty/breakpad/google_breakpad/common/minidump_exception_linux.h

http://github.com/tomahawk-player/tomahawk · C++ Header · 85 lines · 38 code · 8 blank · 39 comment · 0 complexity · 55f474508f5f4e81d7a18bda4306f58e MD5 · raw file

  1. /* Copyright (c) 2006, 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. /* minidump_exception_linux.h: A definition of exception codes for
  30. * Linux
  31. *
  32. * (This is C99 source, please don't corrupt it with C++.)
  33. *
  34. * Author: Mark Mentovai
  35. * Split into its own file: Neal Sidhwaney */
  36. #ifndef GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_LINUX_H__
  37. #define GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_LINUX_H__
  38. #include <stddef.h>
  39. #include "google_breakpad/common/breakpad_types.h"
  40. /* For (MDException).exception_code. These values come from bits/signum.h.
  41. */
  42. typedef enum {
  43. MD_EXCEPTION_CODE_LIN_SIGHUP = 1, /* Hangup (POSIX) */
  44. MD_EXCEPTION_CODE_LIN_SIGINT = 2, /* Interrupt (ANSI) */
  45. MD_EXCEPTION_CODE_LIN_SIGQUIT = 3, /* Quit (POSIX) */
  46. MD_EXCEPTION_CODE_LIN_SIGILL = 4, /* Illegal instruction (ANSI) */
  47. MD_EXCEPTION_CODE_LIN_SIGTRAP = 5, /* Trace trap (POSIX) */
  48. MD_EXCEPTION_CODE_LIN_SIGABRT = 6, /* Abort (ANSI) */
  49. MD_EXCEPTION_CODE_LIN_SIGBUS = 7, /* BUS error (4.2 BSD) */
  50. MD_EXCEPTION_CODE_LIN_SIGFPE = 8, /* Floating-point exception (ANSI) */
  51. MD_EXCEPTION_CODE_LIN_SIGKILL = 9, /* Kill, unblockable (POSIX) */
  52. MD_EXCEPTION_CODE_LIN_SIGUSR1 = 10, /* User-defined signal 1 (POSIX). */
  53. MD_EXCEPTION_CODE_LIN_SIGSEGV = 11, /* Segmentation violation (ANSI) */
  54. MD_EXCEPTION_CODE_LIN_SIGUSR2 = 12, /* User-defined signal 2 (POSIX) */
  55. MD_EXCEPTION_CODE_LIN_SIGPIPE = 13, /* Broken pipe (POSIX) */
  56. MD_EXCEPTION_CODE_LIN_SIGALRM = 14, /* Alarm clock (POSIX) */
  57. MD_EXCEPTION_CODE_LIN_SIGTERM = 15, /* Termination (ANSI) */
  58. MD_EXCEPTION_CODE_LIN_SIGSTKFLT = 16, /* Stack faultd */
  59. MD_EXCEPTION_CODE_LIN_SIGCHLD = 17, /* Child status has changed (POSIX) */
  60. MD_EXCEPTION_CODE_LIN_SIGCONT = 18, /* Continue (POSIX) */
  61. MD_EXCEPTION_CODE_LIN_SIGSTOP = 19, /* Stop, unblockable (POSIX) */
  62. MD_EXCEPTION_CODE_LIN_SIGTSTP = 20, /* Keyboard stop (POSIX) */
  63. MD_EXCEPTION_CODE_LIN_SIGTTIN = 21, /* Background read from tty (POSIX) */
  64. MD_EXCEPTION_CODE_LIN_SIGTTOU = 22, /* Background write to tty (POSIX) */
  65. MD_EXCEPTION_CODE_LIN_SIGURG = 23,
  66. /* Urgent condition on socket (4.2 BSD) */
  67. MD_EXCEPTION_CODE_LIN_SIGXCPU = 24, /* CPU limit exceeded (4.2 BSD) */
  68. MD_EXCEPTION_CODE_LIN_SIGXFSZ = 25,
  69. /* File size limit exceeded (4.2 BSD) */
  70. MD_EXCEPTION_CODE_LIN_SIGVTALRM = 26, /* Virtual alarm clock (4.2 BSD) */
  71. MD_EXCEPTION_CODE_LIN_SIGPROF = 27, /* Profiling alarm clock (4.2 BSD) */
  72. MD_EXCEPTION_CODE_LIN_SIGWINCH = 28, /* Window size change (4.3 BSD, Sun) */
  73. MD_EXCEPTION_CODE_LIN_SIGIO = 29, /* I/O now possible (4.2 BSD) */
  74. MD_EXCEPTION_CODE_LIN_SIGPWR = 30, /* Power failure restart (System V) */
  75. MD_EXCEPTION_CODE_LIN_SIGSYS = 31 /* Bad system call */
  76. } MDExceptionCodeLinux;
  77. #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_LINUX_H__ */