/*
* 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 <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <libelf.h>
#include "rdb.h"
void
perr(char *s)
{
perror(s);
exit(1);
}
{
for (i = 0; i < len; i++)
return (num);
}
{
return (RET_FAILED);
STBUFSIZ)) == -1)
return (RET_FAILED);
intbufind = 0;
}
return (RET_OK);
bufind++;
intbufind++;
}
return (RET_FAILED);
}
void
{
(void) display_all_regs(ph);
return;
}
}
void
{
int i;
for (i = 0; i < count; i++) {
unsigned long word;
if ((i % 4) == 0)
sizeof (unsigned long)) != PS_OK) {
(void) printf("\nfailed to read memory at: "
"0x%lx\n", address);
return;
}
address += 4;
}
(void) putchar('\n');
return;
}
if (*format == 'b') {
int i;
unsigned char byte;
if ((i % 8) == 0)
sizeof (unsigned char)) != PS_OK) {
"at: 0x%lx\n", address);
return;
}
}
(void) putchar('\n');
return;
}
if (*format == 's') {
MAXPATHLEN) != RET_OK) {
(void) printf("unable to read string at: %lx\n",
address);
return;
}
return;
}
}