svn commit: r324267 - stable/11/sys/ddb

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Oct 4 11:55:35 UTC 2017


Author: trasz
Date: Wed Oct  4 11:55:34 2017
New Revision: 324267
URL: https://svnweb.freebsd.org/changeset/base/324267

Log:
  MFC r320734:
  
  Improve ddb(4) error reporting a bit.

Modified:
  stable/11/sys/ddb/db_command.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ddb/db_command.c
==============================================================================
--- stable/11/sys/ddb/db_command.c	Wed Oct  4 11:54:15 2017	(r324266)
+++ stable/11/sys/ddb/db_command.c	Wed Oct  4 11:55:34 2017	(r324267)
@@ -359,7 +359,8 @@ db_command(struct command **last_cmdp, struct command_
 	    return;
 	}
 	else if (t != tIDENT) {
-	    db_printf("?\n");
+	    db_printf("Unrecognized input; use \"help\" "
+	        "to list available commands\n");
 	    db_flush_lex();
 	    return;
 	}
@@ -630,7 +631,7 @@ db_fncall(db_expr_t dummy1, bool dummy2, db_expr_t dum
 		db_unread_token(t);
 	    }
 	    if (db_read_token() != tRPAREN) {
-		db_printf("?\n");
+	        db_printf("Mismatched parens\n");
 		db_flush_lex();
 		return;
 	    }


More information about the svn-src-stable mailing list