From owner-p4-projects@FreeBSD.ORG Mon Jan 21 17:01:51 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1EA0116A474; Mon, 21 Jan 2008 17:01:51 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACBA316A468 for ; Mon, 21 Jan 2008 17:01:48 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9CA2A13C45B for ; Mon, 21 Jan 2008 17:01:48 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0LH1mYm065047 for ; Mon, 21 Jan 2008 17:01:48 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0LH1mdT065044 for perforce@freebsd.org; Mon, 21 Jan 2008 17:01:48 GMT (envelope-from sam@freebsd.org) Date: Mon, 21 Jan 2008 17:01:48 GMT Message-Id: <200801211701.m0LH1mdT065044@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 133795 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 17:01:51 -0000 http://perforce.freebsd.org/chv.cgi?CH=133795 Change 133795 by sam@sam_ebb on 2008/01/21 17:01:31 allow show all to be extended a la show Affected files ... .. //depot/projects/vap/sys/ddb/db_command.c#6 edit .. //depot/projects/vap/sys/ddb/ddb.h#7 edit Differences ... ==== //depot/projects/vap/sys/ddb/db_command.c#6 (text+ko) ==== @@ -65,6 +65,7 @@ SET_DECLARE(db_cmd_set, struct command); SET_DECLARE(db_show_cmd_set, struct command); +SET_DECLARE(db_show_all_cmd_set, struct command); static db_cmdfcn_t db_fncall; static db_cmdfcn_t db_gdb; @@ -85,7 +86,9 @@ }; static struct command_table db_show_all_table = { - db_show_all_cmds + db_show_all_cmds, + SET_BEGIN(db_show_all_cmd_set), + SET_LIMIT(db_show_all_cmd_set) }; static struct command db_show_cmds[] = { ==== //depot/projects/vap/sys/ddb/ddb.h#7 (text+ko) ==== @@ -80,6 +80,8 @@ DB_FUNC(cmd_name, func_name, db_cmd_set, 0, NULL) #define DB_SHOW_COMMAND(cmd_name, func_name) \ DB_FUNC(cmd_name, func_name, db_show_cmd_set, 0, NULL) +#define DB_SHOW_ALL_COMMAND(cmd_name, func_name) \ + DB_FUNC(cmd_name, func_name, db_show_all_cmd_set, 0, NULL) #define DB_SET(cmd_name, func_name, set, flag, more) \ static const struct command __CONCAT(cmd_name,_cmd) = { \