inteldis.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 "dis.h"
/*ARGSUSED*/
static void
{
/* Nothing to do here */
}
static mdb_tgt_addr_t
{
char c;
return (pc); /* we need to be in the middle of a symbol */
nseen++;
goto done; /* no progress or can't read - give up */
}
/*
* We scanned past %pc, but didn't find an instruction that
* started at %pc. This means that either the caller specified
* an invalid address, or we ran into something other than code
* during our scan. Virtually any combination of bytes can be
* construed as a valid Intel instruction, so any non-code bytes
* we encounter will have thrown off the scan.
*/
goto done;
}
done:
return (res);
}
/*ARGSUSED*/
static mdb_tgt_addr_t
{
char c;
return (pc);
/*
* Probe the address to make sure we can read something from it - we
* want the address we return to actually contain something.
*/
return (pc);
return (npc);
}
static const mdb_dis_ops_t ia32dis_ops = {
};
int
{
return (0);
}
int
{
return (0);
}