56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
/* demanglerTypes.h - enums needed for WR demangler functions (can safely be included by GDB) */
|
|
|
|
/* Copyright 2001 Wind River Systems, Inc. */
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01c,03aug04,sn added DEMANGLER_RESULT
|
|
01b,15apr03,sn moved to share/src/demangler
|
|
01a,10dec01,sn wrote
|
|
*/
|
|
|
|
#ifndef __INCdemanglerTypesh
|
|
#define __INCdemanglerTypesh
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* includes */
|
|
|
|
/* defines */
|
|
|
|
/* typedefs */
|
|
|
|
typedef enum demangler_style
|
|
{
|
|
DMGL_STYLE_GNU,
|
|
DMGL_STYLE_DIAB,
|
|
DMGL_STYLE_IA64_ABI,
|
|
DMGL_STYLE_AUTO,
|
|
DMGL_STYLE_ARM,
|
|
DMGL_STYLE_INVALID
|
|
} DEMANGLER_STYLE;
|
|
|
|
typedef enum demangler_mode
|
|
{
|
|
DMGL_MODE_OFF = 0, /* function name is not demangled */
|
|
DMGL_MODE_TERSE = 1, /* just function name, no type information */
|
|
DMGL_MODE_COMPLETE = 2 /* full demangling */
|
|
} DEMANGLER_MODE;
|
|
|
|
typedef enum demangle_result
|
|
{
|
|
DMGL_OK,
|
|
DMGL_ERR_BUFFER_OVERFLOW,
|
|
DMGL_ERR_BAD_INPUT
|
|
} DEMANGLER_RESULT;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INCdemanglerTypesh */
|
|
|