Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2017 12:30:39 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320734 - head/sys/ddb
Message-ID:  <201707061230.v66CUdW6087822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu Jul  6 12:30:39 2017
New Revision: 320734
URL: https://svnweb.freebsd.org/changeset/base/320734

Log:
  Improve ddb(4) error reporting a bit.
  
  Obtained from:	CheriBSD
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/ddb/db_command.c

Modified: head/sys/ddb/db_command.c
==============================================================================
--- head/sys/ddb/db_command.c	Thu Jul  6 12:27:14 2017	(r320733)
+++ head/sys/ddb/db_command.c	Thu Jul  6 12:30:39 2017	(r320734)
@@ -372,7 +372,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;
 	}
@@ -643,7 +644,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;
 	    }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707061230.v66CUdW6087822>