/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include <floatingpoint.h>
#include <libctf.h>
#include <apptrace.h>
typedef struct printarg {
int pa_depth;
int pa_nest;
} printarg_t;
const char *
{
return (buf);
}
void
{
" \"%s\"", (char *)value);
else
return;
}
return;
}
}
}
static void
{
#ifdef _BIG_ENDIAN
#endif
/*
* On big-endian machines, we need to adjust the buf pointer to refer
* to the lowest 'size' bytes in 'value', and we need shift based on
* the offset from the end of the data, not the offset of the start.
*/
#ifdef _BIG_ENDIAN
#endif
/*
* Offsets are counted from opposite ends on little- and
* big-endian machines.
*/
#ifdef _BIG_ENDIAN
#endif
/*
* If the bits we want do not begin on a byte boundary, shift the data
* right so that the value is in the lowest 'cte_bits' of 'value'.
*/
}
/* ARGSUSED */
static void
{
return;
}
if (e.cte_format & CTF_INT_VARARGS) {
return;
}
print_bitfield(off, &e);
return;
}
return;
}
switch (size) {
case sizeof (uint8_t):
break;
case sizeof (uint16_t):
break;
case sizeof (uint32_t):
break;
case sizeof (uint64_t):
break;
}
}
/* ARGSUSED */
static void
{
union {
float f;
double d;
long double ld;
} u;
u.f = 0;
if (e.cte_format == CTF_FP_SINGLE &&
} else if (e.cte_format == CTF_FP_DOUBLE &&
} else if (e.cte_format == CTF_FP_LDOUBLE &&
"%+.16LE", u.ld);
}
}
}
/* ARGSUSED */
static void
{
return;
return;
return;
return;
}
/* ARGSUSED */
static void
{
}
/* ARGSUSED */
static void
{
}
/* ARGSUSED */
static void
{
const char *ename;
int value = 0;
else
}
/* ARGSUSED */
static void
{
}
print_int, /* CTF_K_INTEGER */
print_float, /* CTF_K_FLOAT */
print_ptr, /* CTF_K_POINTER */
print_array, /* CTF_K_ARRAY */
print_ptr, /* CTF_K_FUNCTION */
print_sou, /* CTF_K_STRUCT */
print_sou, /* CTF_K_UNION */
print_enum, /* CTF_K_ENUM */
print_tag /* CTF_K_FORWARD */
};
static int
{
int kind, d;
}
return (-1);
if (name[0] != '\0')
return (0);
}