summaryrefslogtreecommitdiff
path: root/ddb/db_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'ddb/db_run.c')
-rw-r--r--ddb/db_run.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/ddb/db_run.c b/ddb/db_run.c
index 47c39c2..c6feb24 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -1,25 +1,25 @@
-/*
+/*
* Mach Operating System
* Copyright (c) 1993-1990 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* 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 "AS IS"
* 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 Mellon
* the rights to redistribute these changes.
*/
@@ -240,7 +240,7 @@ db_single_step(regs, task)
* db_getreg_val(); return the value of a user register,
* as indicated in the hardware instruction
* encoding, e.g. 8 for r8
- *
+ *
* next_instr_address(pc,bd,task) returns the address of the first
* instruction following the one at "pc",
* which is either in the taken path of
@@ -252,7 +252,7 @@ db_single_step(regs, task)
* If one of these addresses does not already have a breakpoint,
* we allocate a breakpoint and save it here.
* These breakpoints are deleted on return.
- */
+ */
db_breakpoint_t db_not_taken_bkpt = 0;
db_breakpoint_t db_taken_bkpt = 0;
@@ -294,18 +294,18 @@ db_set_task_single_step(regs, task)
db_taken_bkpt = 0;
pc = next_instr_address(pc,1,task);
}
-
+
/* check if this control flow instruction is an unconditional transfer */
unconditional = inst_unconditional_flow_transfer(inst);
pc = next_instr_address(pc,0,task);
- /*
+ /*
We only set the sequential breakpoint if previous instruction was not
an unconditional change of flow of control. If the previous instruction
is an unconditional change of flow of control, setting a breakpoint in the
next sequential location may set a breakpoint in data or in another routine,
- which could screw up either the program or the debugger.
- (Consider, for instance, that the next sequential instruction is the
+ which could screw up either the program or the debugger.
+ (Consider, for instance, that the next sequential instruction is the
start of a routine needed by the debugger.)
*/
if (!unconditional && db_find_breakpoint_here(task, pc) == 0) {
@@ -438,4 +438,4 @@ db_in_single_step()
return(db_run_mode != STEP_NONE && db_run_mode != STEP_CONTINUE);
}
-#endif MACH_KDB
+#endif /* MACH_KDB */