1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/crashreporter/google-breakpad/src/common/android/include/stab.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,100 @@ 1.4 +// Copyright (c) 2012, Google Inc. 1.5 +// All rights reserved. 1.6 +// 1.7 +// Redistribution and use in source and binary forms, with or without 1.8 +// modification, are permitted provided that the following conditions are 1.9 +// met: 1.10 +// 1.11 +// * Redistributions of source code must retain the above copyright 1.12 +// notice, this list of conditions and the following disclaimer. 1.13 +// * Redistributions in binary form must reproduce the above 1.14 +// copyright notice, this list of conditions and the following disclaimer 1.15 +// in the documentation and/or other materials provided with the 1.16 +// distribution. 1.17 +// * Neither the name of Google Inc. nor the names of its 1.18 +// contributors may be used to endorse or promote products derived from 1.19 +// this software without specific prior written permission. 1.20 +// 1.21 +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1.22 +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1.23 +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1.24 +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1.25 +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.26 +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.27 +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1.28 +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1.29 +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1.30 +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1.31 +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.32 + 1.33 +#ifndef GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_STAB_H 1.34 +#define GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_STAB_H 1.35 + 1.36 +#include <sys/cdefs.h> 1.37 + 1.38 +#ifdef __BIONIC_HAVE_STAB_H 1.39 +#include <stab.h> 1.40 +#else 1.41 + 1.42 +#ifdef __cplusplus 1.43 +extern "C" { 1.44 +#endif // __cplusplus 1.45 + 1.46 +#define _STAB_CODE_LIST \ 1.47 + _STAB_CODE_DEF(UNDF,0x00) \ 1.48 + _STAB_CODE_DEF(GSYM,0x20) \ 1.49 + _STAB_CODE_DEF(FNAME,0x22) \ 1.50 + _STAB_CODE_DEF(FUN,0x24) \ 1.51 + _STAB_CODE_DEF(STSYM,0x26) \ 1.52 + _STAB_CODE_DEF(LCSYM,0x28) \ 1.53 + _STAB_CODE_DEF(MAIN,0x2a) \ 1.54 + _STAB_CODE_DEF(PC,0x30) \ 1.55 + _STAB_CODE_DEF(NSYMS,0x32) \ 1.56 + _STAB_CODE_DEF(NOMAP,0x34) \ 1.57 + _STAB_CODE_DEF(OBJ,0x38) \ 1.58 + _STAB_CODE_DEF(OPT,0x3c) \ 1.59 + _STAB_CODE_DEF(RSYM,0x40) \ 1.60 + _STAB_CODE_DEF(M2C,0x42) \ 1.61 + _STAB_CODE_DEF(SLINE,0x44) \ 1.62 + _STAB_CODE_DEF(DSLINE,0x46) \ 1.63 + _STAB_CODE_DEF(BSLINE,0x48) \ 1.64 + _STAB_CODE_DEF(BROWS,0x48) \ 1.65 + _STAB_CODE_DEF(DEFD,0x4a) \ 1.66 + _STAB_CODE_DEF(EHDECL,0x50) \ 1.67 + _STAB_CODE_DEF(MOD2,0x50) \ 1.68 + _STAB_CODE_DEF(CATCH,0x54) \ 1.69 + _STAB_CODE_DEF(SSYM,0x60) \ 1.70 + _STAB_CODE_DEF(SO,0x64) \ 1.71 + _STAB_CODE_DEF(LSYM,0x80) \ 1.72 + _STAB_CODE_DEF(BINCL,0x82) \ 1.73 + _STAB_CODE_DEF(SOL,0x84) \ 1.74 + _STAB_CODE_DEF(PSYM,0xa0) \ 1.75 + _STAB_CODE_DEF(EINCL,0xa2) \ 1.76 + _STAB_CODE_DEF(ENTRY,0xa4) \ 1.77 + _STAB_CODE_DEF(LBRAC,0xc0) \ 1.78 + _STAB_CODE_DEF(EXCL,0xc2) \ 1.79 + _STAB_CODE_DEF(SCOPE,0xc4) \ 1.80 + _STAB_CODE_DEF(RBRAC,0xe0) \ 1.81 + _STAB_CODE_DEF(BCOMM,0xe2) \ 1.82 + _STAB_CODE_DEF(ECOMM,0xe4) \ 1.83 + _STAB_CODE_DEF(ECOML,0xe8) \ 1.84 + _STAB_CODE_DEF(NBTEXT,0xf0) \ 1.85 + _STAB_CODE_DEF(NBDATA,0xf2) \ 1.86 + _STAB_CODE_DEF(NBBSS,0xf4) \ 1.87 + _STAB_CODE_DEF(NBSTS,0xf6) \ 1.88 + _STAB_CODE_DEF(NBLCS,0xf8) \ 1.89 + _STAB_CODE_DEF(LENG,0xfe) 1.90 + 1.91 +enum __stab_debug_code { 1.92 +#define _STAB_CODE_DEF(x,y) N_##x = y, 1.93 +_STAB_CODE_LIST 1.94 +#undef _STAB_CODE_DEF 1.95 +}; 1.96 + 1.97 +#ifdef __cplusplus 1.98 +} // extern "C" 1.99 +#endif // __cplusplus 1.100 + 1.101 +#endif // __BIONIC_HAVE_STAB_H 1.102 + 1.103 +#endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_STAB_H