patch-toolkit_crashreporter_google-breakpad_src_common_stabs_reader_cc 863 B

12345678910111213141516171819202122232425262728293031323334
  1. --- mozilla-release.orig/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.cc 2013-09-11 01:15:25.000000000 +0200
  2. +++ mozilla-release/toolkit/crashreporter/google-breakpad/src/common/stabs_reader.cc 2013-10-24 12:08:16.000000000 +0200
  3. @@ -34,13 +34,31 @@
  4. #include "common/stabs_reader.h"
  5. #include <assert.h>
  6. +#if defined(__GLIBC__) && !defined(__UCLIBC__)
  7. #include <stab.h>
  8. +#else
  9. +#define __define_stab(NAME, CODE, STRING) NAME=CODE,
  10. +enum __stab_debug_code
  11. +{
  12. +__define_stab (N_FUN, 0x24, "FUN")
  13. +__define_stab (N_SLINE, 0x44, "SLINE")
  14. +__define_stab (N_SOL, 0x84, "SOL")
  15. +__define_stab (N_SO, 0x64, "SO")
  16. +LAST_UNUSED_STAB_CODE
  17. +};
  18. +#undef __define_stab
  19. +#endif
  20. #include <string.h>
  21. #include <string>
  22. #include "common/using_std_string.h"
  23. +#ifndef N_UNDF
  24. +#define N_UNDF 0
  25. +#endif
  26. +
  27. +
  28. using std::vector;
  29. namespace google_breakpad {