/*-1* SPDX-License-Identifier: MIT-CMU2*3* Mach Operating System4* Copyright (c) 1991,1990 Carnegie Mellon University5* All Rights Reserved.6*7* Permission to use, copy, modify and distribute this software and its8* documentation is hereby granted, provided that both the copyright9* notice and this permission notice appear in all copies of the10* software, derivative works or modified versions, and any portions11* thereof, and that both notices appear in supporting documentation.12*13* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS14* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR15* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.16*17* Carnegie Mellon requests users of this software to return to18*19* Software Distribution Coordinator or [email protected]20* School of Computer Science21* Carnegie Mellon University22* Pittsburgh PA 15213-389023*24* any improvements or extensions that they make and grant Carnegie the25* rights to redistribute these changes.26*/2728#ifndef _DDB_DB_COMMAND_H_29#define _DDB_DB_COMMAND_H_3031/*32* Author: David B. Golub, Carnegie Mellon University33* Date: 7/9034*/3536/*37* Helper functions.38*/39db_expr_t db_hex2dec(db_expr_t expr);4041/*42* Command loop declarations.43*/4445void db_command_init(void);46void db_command_loop(void);47void db_command_script(const char *command);4849extern int db_cmd_loop_done;50extern db_addr_t db_dot; /* current location */51extern db_addr_t db_last_addr; /* last explicit address typed */52extern db_addr_t db_prev; /* last address examined53or written */54extern db_addr_t db_next; /* next address to be examined55or written */5657#endif /* !_DDB_DB_COMMAND_H_ */585960