3 dmalloc \- program used to set the environment for debugging using the
4 dmalloc debugging library.
9 This manual page documents the
12 It was written for the Debian GNU/Linux distribution based, almost verbatim,
13 on the original documentation provided by the library in GNU Info format;
18 program is designed to assist in the setting of the
21 It is designed to print the shell commands necessary to make the
22 appropriate changes to the environment. Unfortunately, it cannot make
23 the changes on its own so the output from dmalloc should be sent
24 through the `eval' shell command which will do the commands.
26 With shells that have aliasing or macro capabilities: csh, bash, ksh,
27 tcsh, zsh, etc., setting up an alias to dmalloc to do the eval call is
28 recommended. Csh/tcsh users (for example) should put the following in
31 alias dmalloc 'eval `\dmalloc -C \!*`'
33 Bash and Zsh users on the other hand should put the following in
36 function dmalloc { eval `command dmalloc -b $*` }
38 This allows the user to execute the dmalloc command as `dmalloc
41 The most basic usage for the program is
42 .B `dmalloc [-bC] tag'.
47 (either but not both flags used at a time) are for
48 generating Bourne or C shell type commands respectively. dmalloc will
51 environment variable to determine whether
52 bourne or C shell commands should be generated but you may want to
53 explicitly specify the correct flag.
57 argument to dmalloc should match a line from the user's
58 run-time configuration file or should be one of the built-in tags.
59 If no tag is specified and no other option-commands
60 used, dmalloc will display the current settings of the environment
61 variable. It is useful to specify one of the verbose options when doing
64 To find out the usage for the debug malloc program try
65 .B dmalloc \-\-usage\-long.
66 The standardized usage message that will be displayed is
67 one of the many features of the argv library included with this package.
68 It is available via ftp from `ftp.letters.com' in the `/src/argv'
69 directory. See `argv.info' there for more information.
75 Set the `addr' part of the
77 variable to address (or alternatively address:number).
80 Output Bourne shell type commands.
83 Output C shell type commands.
86 Clear/unset all of the settings not specified with other arguments.
87 Clear will never unset the `debug' setting. Use
89 or a tag to `none' to achieve this.
93 Set the `debug' part of the
96 bitmask value which should be in hex. This is overridden (and
97 unnecessary) if a tag is specified.
100 List all of the debug-tokens. Useful for finding a token to be
113 Print the dmalloc error string that corresponds to the error number
118 Use this configuration file instead of the RC file
123 Set the checking interval to number.
126 Keep the settings when using a tag. This overrides
131 Set the log-file to filename.
134 Output the debug-value not in hex but by individual debug-tokens
139 Remove (minus) the debug capabilities of token(s) from the current
140 debug setting or from the selected tag (or
147 Without changing the environment, output the commands resulting
148 from the supplied options.
152 Add (plus) the debug capabilities of token(s) to the current debug
153 setting or to the selected tag (or
161 Remove (unset) all settings when using a tag. This is useful when
162 you are returning to a standard development tag and want the
163 logfile, address, and interval settings to be cleared
164 automatically. If you want this behavior by default, this can be
165 put into the dmalloc alias.
169 Set the `start' part of the
172 number (alternatively `file:line').
175 Output the debug-value not in hex but by individual debug-tokens
179 List all of the tags in the rc-file. Use with
186 Give verbose output. Especially useful when dumping current
187 settings or listing all of the tags.
189 If no arguments are specified, dmalloc dumps out the current settings
190 that you have for the environment variable. For example:
192 Debug-Flags '0x40005c7' (runtime)
193 Address 0x1f008, count = 3
200 option and no arguments, dmalloc dumps out the current
201 settings in a verbose manner. For example:
203 Debug-Flags '0x40005c7' (runtime)
204 log-stats, log-non-free, log-blocks, log-unknown,
205 log-bad-space, check-fence, catch-null
206 Address 0x1f008, count = 10
212 The documetation for the library is in GNU Info format. Please check the
214 .IR /usr/info/dmalloc.info.gz
219 .I /usr/info/dmalloc.info.gz
220 The real documentation for the dmalloc library.
223 User's configuration file.
225 This manual page was written by Luis Francisco González <luisgh@debian.org>,
226 for the Debian GNU/Linux system (but may be used by others).
227 The library was written by
229 Please see the copyright