Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb In db_command(), fix indentation and add a missing d...
details: https://anonhg.NetBSD.org/src/rev/58b861aa0f7b
branches: trunk
changeset: 488049:58b861aa0f7b
user: jhawk <jhawk%NetBSD.org@localhost>
date: Sat Jun 17 05:57:41 2000 +0000
description:
In db_command(), fix indentation and add a missing db_skip_to_eol() which
previously caused the next command following a ","-style repitition
to not be properly executed.
diffstat:
sys/ddb/TODO | 4 ++--
sys/ddb/db_command.c | 13 +++++++------
2 files changed, 9 insertions(+), 8 deletions(-)
diffs (46 lines):
diff -r 159d5349f521 -r 58b861aa0f7b sys/ddb/TODO
--- a/sys/ddb/TODO Sat Jun 17 03:16:54 2000 +0000
+++ b/sys/ddb/TODO Sat Jun 17 05:57:41 2000 +0000
@@ -1,10 +1,10 @@
-$NetBSD: TODO,v 1.2 2000/06/07 13:24:11 jhawk Exp $
+$NetBSD: TODO,v 1.3 2000/06/17 05:57:41 jhawk Exp $
In rough order.
Bugs to be fixed:
-1. command history sometimes gets slightly confused
+done command history sometimes gets slightly confused
2. uvm_fault()s can loop infinitely (kern/10016)
diff -r 159d5349f521 -r 58b861aa0f7b sys/ddb/db_command.c
--- a/sys/ddb/db_command.c Sat Jun 17 03:16:54 2000 +0000
+++ b/sys/ddb/db_command.c Sat Jun 17 05:57:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.47 2000/06/10 16:31:42 sommerfeld Exp $ */
+/* $NetBSD: db_command.c,v 1.48 2000/06/17 05:57:41 jhawk Exp $ */
/*
* Mach Operating System
@@ -212,14 +212,15 @@
addr = (db_expr_t)db_next;
if (t == tCOMMA) {
if (!db_expression(&count)) {
- db_printf("Count missing\n");
- db_flush_lex();
- return;
- }
+ db_printf("Count missing\n");
+ db_flush_lex();
+ return;
+ }
} else
- count = last_count;
+ count = last_count;
have_addr = FALSE;
modif[0] = '\0';
+ db_skip_to_eol();
}
else if (t == tEXCL) {
db_fncall(0, 0, 0, NULL);
Home |
Main Index |
Thread Index |
Old Index