1*8383b4f2Smpi /* $OpenBSD: db_run.h,v 1.12 2019/11/06 07:30:08 mpi Exp $ */ 2d724e01aSderaadt /* $NetBSD: db_run.h,v 1.3 1996/02/05 01:57:14 christos Exp $ */ 3df930be7Sderaadt 4df930be7Sderaadt /* 5df930be7Sderaadt * Mach Operating System 6b2471a9dSmickey * Copyright (c) 1993,1992,1991,1990 Carnegie Mellon University 7df930be7Sderaadt * All Rights Reserved. 8df930be7Sderaadt * 9df930be7Sderaadt * Permission to use, copy, modify and distribute this software and its 10df930be7Sderaadt * documentation is hereby granted, provided that both the copyright 11df930be7Sderaadt * notice and this permission notice appear in all copies of the 12df930be7Sderaadt * software, derivative works or modified versions, and any portions 13df930be7Sderaadt * thereof, and that both notices appear in supporting documentation. 14df930be7Sderaadt * 15b2471a9dSmickey * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16df930be7Sderaadt * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 17df930be7Sderaadt * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18df930be7Sderaadt * 19df930be7Sderaadt * Carnegie Mellon requests users of this software to return to 20df930be7Sderaadt * 21df930be7Sderaadt * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22df930be7Sderaadt * School of Computer Science 23df930be7Sderaadt * Carnegie Mellon University 24df930be7Sderaadt * Pittsburgh PA 15213-3890 25df930be7Sderaadt * 26b2471a9dSmickey * any improvements or extensions that they make and grant Carnegie Mellon 27b2471a9dSmickey * the rights to redistribute these changes. 28df930be7Sderaadt * 29df930be7Sderaadt * Author: David B. Golub, Carnegie Mellon University 30df930be7Sderaadt * Date: 7/90 31df930be7Sderaadt */ 32df930be7Sderaadt 33df930be7Sderaadt #ifndef _DDB_DB_RUN_ 34df930be7Sderaadt #define _DDB_DB_RUN_ 35df930be7Sderaadt 36df930be7Sderaadt /* 37df930be7Sderaadt * Commands to run process. 38df930be7Sderaadt */ 390c4981b0Sjason extern int db_inst_count; 4026356f19Smiod extern int db_cmd_loop_done; 41df930be7Sderaadt 42*8383b4f2Smpi int db_stop_at_pc(db_regs_t *, int *); 43*8383b4f2Smpi void db_restart_at_pc(db_regs_t *, int); 44c4071fd1Smillert void db_single_step(db_regs_t *); 45df930be7Sderaadt #ifndef db_set_single_step 46c4071fd1Smillert void db_set_single_step(db_regs_t *); 47df930be7Sderaadt #endif 48df930be7Sderaadt #ifndef db_clear_single_step 49c4071fd1Smillert void db_clear_single_step(db_regs_t *); 50df930be7Sderaadt #endif 51c4071fd1Smillert void db_single_step_cmd(db_expr_t, int, db_expr_t, char *); 52c4071fd1Smillert void db_trace_until_call_cmd(db_expr_t, int, db_expr_t, char *); 53c4071fd1Smillert void db_trace_until_matching_cmd(db_expr_t, int, db_expr_t, char *); 54c4071fd1Smillert void db_continue_cmd(db_expr_t, int, db_expr_t, char *); 55df930be7Sderaadt 56cf92f179Sniklas #ifdef SOFTWARE_SSTEP 57cf92f179Sniklas /* 58cf92f179Sniklas * I've seen this defined to (0) when it is not needed and then the proto will 59cf92f179Sniklas * not be correct, so skip it then. 60cf92f179Sniklas */ 61cf92f179Sniklas #ifndef getreg_val 62c4071fd1Smillert extern register_t getreg_val(db_regs_t *, int); 63cf92f179Sniklas #endif 64cf92f179Sniklas #endif /* SOFTWARE_SSTEP */ 65cf92f179Sniklas 66746e4008Sderaadt #endif /* _DDB_DB_RUN_ */ 67