winedump: Fix manpage formatting.
frederic.delanoy at gmail.com
Wed Jul 17 09:45:22 CDT 2013
tools/winedump/winedump.man.in | 87 +++++++++++++++++++++---------------------
1 file changed, 43 insertions(+), 44 deletions(-)
diff --git a/tools/winedump/winedump.man.in b/tools/winedump/winedump.man.in
index bae18cc..4da6274 100644
@@ -1,14 +1,13 @@
-.\" -*- nroff -*-
.TH WINEDUMP 1 "October 2005" "@PACKAGE_STRING@" "Wine Developers Manual"
winedump \- A Wine DLL tool
.BR "winedump " [ "-h " "| "
-.BI "sym " "<sym> "
+.BI "sym " sym
-.BI "spec " "<dll> "
+.BI "spec " dll
-.BI "dump " "<file>"
+.BI "dump " file
.RI "] [" "mode_options" ]
@@ -21,7 +20,7 @@ B: Compiling a Win32 application with Winelib that uses x86 DLLs
For both tasks in order to be able to link to the Win functions some
glue code is needed. This 'glue' comes in the form of a \fI.spec\fR file.
The \fI.spec\fR file, along with some dummy code, is used to create a
-Wine .so corresponding to the Windows DLL. The \fBwinebuild\fR program
+Wine \fI.so\fR corresponding to the Windows DLL. The \fBwinebuild\fR program
can then resolve calls made to DLL functions.
Creating a \fI.spec\fR file is a labour intensive task during which it is
@@ -30,7 +29,7 @@ and create the majority of the support code needed for your DLL. In
addition you can have \fBwinedump\fR create code to help you re-implement a
DLL, by providing tracing of calls to the DLL, and (in some cases)
automatically determining the parameters, calling conventions, and
-return values of the DLL's functions.
+return values of the DLL functions.
Another use for this tool is to display (dump) information about a 32bit
DLL or PE format image file. When used in this way \fBwinedump\fR functions
@@ -41,7 +40,7 @@ Finally \fBwinedump\fR can be also used to demangle C++ symbols.
can be used in several different modes. The first argument to the
-program determines the mode winedump will run in.
+program determines the mode \fBwinedump\fR will run in.
Basic usage help is printed.
@@ -61,9 +60,9 @@ No options are used.
The program prints the help info and than exits.
.B Dump mode:
-Dumps the content of the file named \fI<file>\fR. Various file
-formats are supported (PE, NE, LE, Minidumps, .lnk).
+Dumps the contents of \fIfile\fR. Various file formats are supported
+(PE, NE, LE, Minidumps, .lnk).
Turns on symbol demangling.
@@ -81,33 +80,33 @@ implemented.
This command prints all available information (including all
available directories - see \fB-j\fR option) about the file. You may
-wish to pipe the output through more/less or into a file, since
+wish to pipe the output through \fBmore\fR/\fBless\fR or into a file, since
a lot of output will be produced.
Dumps contents of debug section if any (for now, only stabs
information is supported).
.B Spec mode:
-Use dll for input file and generate implementation code.
+Use \fIdll\fR for input file and generate implementation code.
.IP "\fB-I \fIdir\fR"
-Look for prototypes in '\fIdir\fR' (implies \fB-c\fR). In the case of
+Look for prototypes in \fIdir\fR (implies \fB-c\fR). In the case of
Windows DLLs, this could be either the standard include
directory from your compiler, or a SDK include directory.
If you have a text document with prototypes (such as
documentation) that can be used also, however you may need
to delete some non-code lines to ensure that prototypes are
-The '\fIdir\fR' argument can also be a file specification (e.g.
-"include/*"). If it contains wildcards you must quote it to
+The \fIdir\fR argument can also be a file specification (e.g.
+\fIinclude/*\fR). If it contains wildcards you must quote it to
prevent the shell from expanding it.
-If you have no prototypes, specify /dev/null for '\fIdir\fR'.
-Winedump may still be able to generate some working stub
+If you have no prototypes, specify \fI/dev/null\fR as \fIdir\fR.
+\fBwinedump\fR may still be able to generate some working stub
code for you.
Generate skeleton code (requires \fB-I\fR).
-This option tells winedump to create function stubs for each
-function in the DLL. As winedump reads each exported symbol
+This option tells \fBwinedump\fR to create function stubs for each
+function in the DLL. As \fBwinedump\fR reads each exported symbol
from the source DLL, it first tries to demangle the name. If
the name is a C++ symbol, the arguments, class and return
value are all encoded into the symbol name. Winedump
@@ -122,24 +121,24 @@ arguments are printed out when the function is called.
Structs that are passed by value are printed as "struct",
and functions that take variable argument lists print "...".
.IP "\fB-f \fIdll\fR"
-Forward calls to '\fIdll\fR' (implies \fB-t\fR).
+Forward calls to \fIdll\fR (implies \fB-t\fR).
This is the most complicated level of code generation. The
same code is generated as \fB-t\fR, however support is added for
forwarding calls to another DLL. The DLL to forward to is
-given as '\fIdll\fR'.
+given as \fIdll\fR.
-By default, winedump generates a standard comment at the
+By default, \fBwinedump\fR generates a standard comment at the
header of each function it generates. Passing this option
-makes winedump output a full header template for standard
+makes \fBwinedump\fR output a full header template for standard
Wine documentation, listing the parameters and return value
of the function.
.IP "\fB-o \fIname\fR"
-Set the output dll name (default: \fIdll\fR).
-By default, if winedump is run on DLL 'foo', it creates
-files 'foo.spec', 'foo_main.c' etc, and prefixes any
-functions generated with 'FOO_'. If '-o bar' is given,
-these will become 'bar.spec', 'bar_main.c' and 'BAR_'
+Set the output dll name (default: \fBdll\fR).
+By default, if \fBwinedump\fR is run on DLL \fIfoo\fR, it creates
+files \fIfoo.spec\fR, \fIfoo_main.c\fR etc, and prefixes any
+functions generated with \fIFOO_\fR. If \fB-o \fIbar\fR is given,
+these will become \fIbar.spec\fR, \fIbar_main.c\fR and \fIBAR_\fR
This option is mostly useful when generating a forwarding DLL.
@@ -148,18 +147,18 @@ If winebuild cannot determine the calling convention,
__stdcall is used by default, unless this option has
Unless \fB-q\fR is given, a warning will be printed for every
-function that winedump determines the calling convention
+function that \fBwinedump\fR determines the calling convention
for and which does not match the assumed calling convention.
.IP "\fB-s \fInum\fR"
-Start prototype search after symbol '\fInum\fR'.
+Start prototype search after symbol \fInum\fR.
.IP "\fB-e \fInum\fR"
-End prototype search after symbol '\fInum\fR'.
-By passing the \fB-s\fR or \fB-e\fR options you can have winedump try to
+End prototype search after symbol \fInum\fR.
+By passing the \fB-s\fR or \fB-e\fR options you can have \fBwinedump\fR try to
generate code for only some functions in your DLL. This may
be used to generate a single function, for example, if you
wanted to add functionality to an existing DLL.
.IP "\fB-S \fIsymfile\fR"
-Search only prototype names found in '\fIsymfile\fR'.
+Search only prototype names found in \fIsymfile\fR.
If you want to only generate code for a subset of exported
functions from your source DLL, you can use this option to
provide a text file containing the names of the symbols to
@@ -170,17 +169,17 @@ Don't show progress (quiet).
No output is printed unless a fatal error is encountered.
Show lots of detail while working (verbose).
-There are 3 levels of output while winedump is running. The
-default level, when neither -q or -v are given, prints the
+There are 3 levels of output while \fBwinedump\fR is running. The
+default level, when neither \fB-q\fR or \fB-v\fR are given, prints the
number of exported functions found in the dll, followed by
the name of each function as it is processed, and a status
-indication of whether it was processed OK. With -v given, a
-lot of information is dumped while winedump works: this is
+indication of whether it was processed OK. With \fB-v\fR given, a
+lot of information is dumped while \fBwinedump\fR works: this is
intended to help debug any problems.
.B Sym mode:
-Demangles C++ symbol '\fI<sym>\fR' and then exits.
+Demangles C++ symbol \fI<sym>\fR and then exits.
@@ -188,13 +187,13 @@ Perl script used to retrieve a function prototype.
Files output in
-.B spec mode
+.BR spec " mode"
+.IR foo.dll :
-This is the .spec file.
+This is the \fI.spec\fR file.
@@ -202,12 +201,12 @@ This is the .spec file.
These are the source code files containing the minimum set
of code to build a stub DLL. The C file contains one
-function, FOO_Init, which does nothing (but must be
+function, \fIFOO_Init\fR, which does nothing (but must be
-This is a template for 'configure' to produce a makefile. It
+This is a template for \fBconfigure\fR to produce a makefile. It
is designed for a DLL that will be inserted into the Wine
More information about the wine-patches