* Copyright (c) 1991,1990 Carnegie Mellon University
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
* Carnegie Mellon requests users of this software to return to
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
* $Id: db_write_cmd.c,v 1.2 1993/10/16 16:47:35 rgrimes Exp $
* Author: David B. Golub, Carnegie Mellon University
#include <ddb/db_access.h>
#include <ddb/db_command.h>
db_write_cmd(address
, have_addr
, count
, modif
)
boolean_t wrote_one
= FALSE
;
addr
= (db_addr_t
) address
;
db_error("Unknown size\n");
while (db_expression(&new_value
)) {
old_value
= db_get_value(addr
, size
, FALSE
);
db_printsym(addr
, DB_STGY_ANY
);
db_printf("\t\t%#8n\t=\t%#8n\n", old_value
, new_value
);
db_put_value(addr
, size
, new_value
);
db_error("Nothing written.\n");