/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DEBUG_DOT_H
#define _DEBUG_DOT_H
#include <debug.h>
#include <conv.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Debugging is enabled by various tokens (see debug.c) that result in an
* internal bit mask (d_class) being initialized. Each debugging function is
* appropriate for one or more of the classes specified by the bit mask. Each
* debugging function validates whether it is appropriate for the present
* classes before printing anything.
*/
typedef struct {
} DBG_options;
/*
* Some Dbg_*() format strings differ depending on whether they are used for
* 32-bit or 64-bit values.
*/
#if defined(_ELF64)
#else
#endif
/*
* Some Elf_*() format strings differ depending on whether they are used for
* 32-bit or 64-bit values.
*/
#if defined(_ELF64)
#else
#endif
/*
* Buffer used by dbg_isec_name() to format input section
* names. The size was selected to satisfy two opposing
* constraints:
* - To be large enough to handle the largest C++ mangled name.
* Although we can malloc buffers, we don't want that to happen.
* - To be small enough on the thread stack to not cause problems.
*/
#if defined(_ELF64)
#else
#endif
char **);
extern const char *dbg_fmt_isec_name2(const char *, Word,
dbg_isec_name_buf_t, char **);
#ifdef __cplusplus
}
#endif
#endif /* _DEBUG_DOT_H */