/*
* 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
*/
/*
*/
#define __sparcv9cpu
#include <sys/sysmacros.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "Pcontrol.h"
#include "Pstack.h"
#include "Pisadep.h"
#include "P32ton.h"
const char *
{
size_t i;
return (NULL);
}
Elf64_Rela r;
} else {
i = M64_PLT_NEARPLTS +
((pltblockoff / M64_PLT_FBLOCKSZ) *
M64_PLT_FBLKCNTS) + ((pltblockoff %
}
}
} else /* PR_MODEL_ILP32 */ {
Elf32_Rela r;
}
}
return (NULL);
}
int
{
else
return (0);
else
return (1);
}
int
{
if (Pissyscall(P, prevaddr)) {
if (dst)
return (1);
}
return (0);
}
/* ARGSUSED */
int
{
else
return (1);
else
return (0);
}
/*
* For gwindows_t support, we define a structure to pass arguments to
* a Plwp_iter() callback routine.
*/
typedef struct {
} gwin_query_t;
static int
{
ssize_t n;
int fd, i;
return (0); /* Nothing doing; skip to next lwp */
/*
* Zero out the gwindows_t because the gwindows file only has
* as much data as needed to represent the saved windows.
*/
} else {
}
if (n > 0) {
/*
* If we actually found a non-zero gwindows file and
* were able to read it, iterate through the buffers
* looking for a stack pointer match; if one is found,
* copy out the corresponding register window.
*/
sizeof (struct rwindow));
break;
}
}
}
}
return (rv);
}
static int
{
uint_t n;
int i;
continue; /* No gwindows for this lwp */
/*
* If this lwp has gwindows associated with it, iterate
* through the buffers looking for a stack pointer
* match; if one is found, copy out the register window.
*/
sizeof (struct rwindow));
return (0); /* We're done */
}
}
}
return (-1); /* No gwindows match found */
}
}
static void
{
}
static void
{
/*
* We need to be very careful here to cast the greg32_t's (signed) to
* unsigned and then explicitly promote them as unsigned values.
*/
}
int
{
int nfp = 0;
int i;
int rv;
ssize_t n;
int frame_flags = 0;
init_uclist(&ucl, P);
for (;;) {
break;
}
else
for (i = 0; i < 6; i++)
break;
if (frame_flags & PR_SIGNAL_FRAME)
frame_flags = 0;
break;
sizeof (uc32)) {
}
if (n == sizeof (struct rwindow32)) {
continue;
}
} else {
sp += STACK_BIAS;
sizeof (uc)) {
}
if (n == sizeof (struct rwindow))
continue;
}
/*
* If we get here, then our Pread of the register window
* failed. If this is because the address was not mapped,
* then we attempt to read this window via any gwindows
* information we have. If that too fails, abort our loop.
*/
if (n > 0)
break; /* Failed for reason other than not mapped */
break; /* No gwindows match either */
}
if (prevfp)
free_uclist(&ucl);
return (rv);
}
{
if (model == PR_MODEL_LP64) {
} else {
}
if (model == PR_MODEL_LP64)
else
return (ret);
}
int
{
int i;
if (i < 6)
}
if (model == PR_MODEL_LP64) {
if (nargs > 6 &&
return (-1);
} else {
if (nargs > 6 &&
return (-1);
}
return (0);
}
/* ARGSUSED */
int
{
/* Do nothing */
return (0);
}