Sat Oct 31 10:48:17 2020 UTC ()
Improve wording.


(wiz)
diff -r1.2 -r1.3 src/share/man/man9/ddb.9

cvs diff -r1.2 -r1.3 src/share/man/man9/ddb.9 (expand / switch to unified diff)

--- src/share/man/man9/ddb.9 2020/10/30 22:29:30 1.2
+++ src/share/man/man9/ddb.9 2020/10/31 10:48:17 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: ddb.9,v 1.2 2020/10/30 22:29:30 uwe Exp $ 1.\" $NetBSD: ddb.9,v 1.3 2020/10/31 10:48:17 wiz Exp $
2.\" 2.\"
3.\" Copyright (c) 2020 Valery Ushakov 3.\" Copyright (c) 2020 Valery Ushakov
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 14.\"
@@ -85,35 +85,35 @@ sub-commands of the top-level @@ -85,35 +85,35 @@ sub-commands of the top-level
85.Ic mach 85.Ic mach
86command; 86command;
87.\" 87.\"
88.It Dv DDB_SHOW_CMD 88.It Dv DDB_SHOW_CMD
89sub-commands of the top-level 89sub-commands of the top-level
90.Ic show 90.Ic show
91command. 91command.
92.\" 92.\"
93.El 93.El
94.\" 94.\"
95.Pp 95.Pp
96The 96The
97.Fa commands 97.Fa commands
98is an array of 98argument is an array of
99.Vt struct db_command\| 99.Vt struct db_command\|
100entries. 100entries.
101The initializer list for the array should use the 101The initializer list for the array should use the
102.Fn DDB_ADD_CMD 102.Fn DDB_ADD_CMD
103macro for its entries. 103macro for its entries.
104The 104The
105.Fa name 105.Fa name
106is the name of the debugger command. 106argument is the name of the debugger command.
107An entry with 107An entry with
108.Dv NULL 108.Dv NULL
109.Fa name 109.Fa name
110terminates the array. 110terminates the array.
111.Pp 111.Pp
112The 112The
113.Fa pf 113.Fa pf
114argument is the function that implements the command. 114argument is the function that implements the command.
115The debugger's 115The debugger's
116.Tn REPL 116.Tn REPL
117parses the usual command format documented in 117parses the usual command format documented in
118.Xr ddb 4 118.Xr ddb 4
119and invokes the implementation with the values obtained. 119and invokes the implementation with the values obtained.