| @@ -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 |
86 | command; | | 86 | command; |
87 | .\" | | 87 | .\" |
88 | .It Dv DDB_SHOW_CMD | | 88 | .It Dv DDB_SHOW_CMD |
89 | sub-commands of the top-level | | 89 | sub-commands of the top-level |
90 | .Ic show | | 90 | .Ic show |
91 | command. | | 91 | command. |
92 | .\" | | 92 | .\" |
93 | .El | | 93 | .El |
94 | .\" | | 94 | .\" |
95 | .Pp | | 95 | .Pp |
96 | The | | 96 | The |
97 | .Fa commands | | 97 | .Fa commands |
98 | is an array of | | 98 | argument is an array of |
99 | .Vt struct db_command\| | | 99 | .Vt struct db_command\| |
100 | entries. | | 100 | entries. |
101 | The initializer list for the array should use the | | 101 | The initializer list for the array should use the |
102 | .Fn DDB_ADD_CMD | | 102 | .Fn DDB_ADD_CMD |
103 | macro for its entries. | | 103 | macro for its entries. |
104 | The | | 104 | The |
105 | .Fa name | | 105 | .Fa name |
106 | is the name of the debugger command. | | 106 | argument is the name of the debugger command. |
107 | An entry with | | 107 | An entry with |
108 | .Dv NULL | | 108 | .Dv NULL |
109 | .Fa name | | 109 | .Fa name |
110 | terminates the array. | | 110 | terminates the array. |
111 | .Pp | | 111 | .Pp |
112 | The | | 112 | The |
113 | .Fa pf | | 113 | .Fa pf |
114 | argument is the function that implements the command. | | 114 | argument is the function that implements the command. |
115 | The debugger's | | 115 | The debugger's |
116 | .Tn REPL | | 116 | .Tn REPL |
117 | parses the usual command format documented in | | 117 | parses the usual command format documented in |
118 | .Xr ddb 4 | | 118 | .Xr ddb 4 |
119 | and invokes the implementation with the values obtained. | | 119 | and invokes the implementation with the values obtained. |