00001 /* 00002 * See the dyninst/COPYRIGHT file for copyright information. 00003 * 00004 * We provide the Paradyn Tools (below described as "Paradyn") 00005 * on an AS IS basis, and do not warrant its validity or performance. 00006 * We reserve the right to update, modify, or discontinue this 00007 * software at any time. We shall have no obligation to supply such 00008 * updates or modifications or any other form of support to you. 00009 * 00010 * By your use of Paradyn, you understand and agree that we (or any 00011 * other person or entity with proprietary rights in Paradyn) are 00012 * under no obligation to provide either maintenance services, 00013 * update services, notices of latent defects, or correction of 00014 * defects for Paradyn. 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free Software 00028 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00029 */ 00030 #if !defined(_bgl_compute_headers_h) 00031 #define _bgl_compute_headers_h 00032 00033 #include <string.h> 00034 #include <errno.h> 00035 #include <sys/time.h> 00036 00037 inline const char * P_strrchr (const char *P_STRING, int C) {return (strrchr(P_STRING, C));} 00038 inline char * P_strrchr (char *P_STRING, int C) {return (strrchr(P_STRING, C));} 00039 inline void * P_memcpy (void *A1, const void *A2, size_t SIZE) 00040 { return memcpy( A1, A2, SIZE ); } 00041 00042 /* The following values are taken from demangle.h in binutils */ 00043 #define DMGL_PARAMS (1 << 0) /* Include function args */ 00044 #define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */ 00045 00046 #define DMGL_ARM (1 << 11) /* Use C++ ARM name mangling */ 00047 00048 extern "C" char *cplus_demangle(char *, int); 00049 extern void dedemangle( char * demangled, char * dedemangled ); 00050 extern char * P_cplus_demangle( const char * symbol, bool nativeCompiler, 00051 bool includeTypes = false ); 00052 #endif // _bgl_compute_headers_h
1.6.1