/*
* 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
*/
/*
*/
#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"
#ifndef WINDOWSIZE32
#endif
const char *
{
Elf32_Rela r;
size_t i;
return (NULL);
}
}
return (NULL);
}
int
{
return (0);
else
return (1);
}
int
{
if (Pissyscall(P, prevaddr)) {
if (dst)
return (1);
}
return (0);
}
/* ARGSUSED */
int
{
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.
*/
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
{
}
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;
sp += STACK_BIAS;
}
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);
}
{
}
int
{
int i;
if (i < 6)
}
if (nargs > 6 &&
return (-1);
return (0);
}
/* ARGSUSED */
int
{
/* Do nothing */
return (0);
}