/*
* 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"
/*
* Active walks are tracked using a WCB (Walk Control Block), which is a simple
* data structure that contains the mdb_walk_state_t passed to the various
* walker functions for this particular walk, as well as links to other walk
* layers if this is a layered walk. The control block is kept in a list
* associated with the MDB frame, so that we can clean up all the walks and
* call their respective fini routines at the end of command processing.
*/
#include <mdb/mdb_module.h>
#include <mdb/mdb_modapi.h>
#include <mdb/mdb_debug.h>
#include <mdb/mdb_frame.h>
{
/*
* The walk state passed to a walker sits at the start of the
* walk control block, so we can ask the walker to pass this
* back to us and quickly obtain the control block:
*/
return (wcb);
}
{
return (wcb);
}
void
{
mdb_wcb_t *p, *q;
q = wcb->w_lyr_link;
mdb_wcb_destroy(p);
}
}
void
{
}
void
{
mdb_wcb_t *w;
if (w == wcb) {
w->w_buftag = WCB_TAG_PASSIVE;
return;
}
}
}
void
{
wcb = n;
}
}