Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
be6d9e55
Commit
be6d9e55
authored
Jul 16, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix manpage formatting.
parent
aab5e4d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
123 additions
and
125 deletions
+123
-125
winedbg.man.in
programs/winedbg/winedbg.man.in
+123
-125
No files found.
programs/winedbg/winedbg.man.in
View file @
be6d9e55
.\" -*- nroff -*-
.TH WINEDBG 1 "October 2005" "@PACKAGE_STRING@" "Wine Developers Manual"
.SH NAME
winedbg \- Wine
's
debugger
winedbg \- Wine debugger
.SH SYNOPSIS
.BR "winedbg "
.RI "[" " options " "] ["
...
...
@@ -35,7 +34,7 @@ is a debugger for Wine. It allows:
.RS 4
.nf
+ debugging native Win32 applications
+ debugging Winelib applications
.
+ debugging Winelib applications
+ being a drop-in replacement for Dr Watson
.fi
.RE
...
...
@@ -72,24 +71,23 @@ command below, or the \fB--minidump mode\fR.
.SH OPTIONS
When in \fBdefault\fR mode, the following options are available:
.PP
.IP \f
I--command\ <string>
\fR
\fBwinedbg\fR will execute the command
<string>
as if it was keyed on
winedbg
's
command line, and then will exit. This can be handy for
.IP \f
B--command\ \fIstring
\fR
\fBwinedbg\fR will execute the command
\fIstring\fR
as if it was keyed on
winedbg command line, and then will exit. This can be handy for
getting the pid of running processes (winedbg --command "info proc").
.IP \f
I--file\ <filename>
\fR
.IP \f
B--file\ \fIfilename
\fR
\fBwinedbg\fR will execute the list of commands contained in file
<filename> as if they were keyed on winedbg's
command line, and then
filename as if they were keyed on winedbg
command line, and then
will exit.
.PP
When in \fBgdb\fR proxy mode, the following options are available:
.PP
.IP \f
I
--no-start\fR
.IP \f
B
--no-start\fR
\fBgdb\fR will not be automatically
started. Relevant information for starting \fBgdb\fR are printed on
screen. This is somehow useful when not directly using \fBgdb\fR but
some graphical front-ends, like \fBddd\fR or \fBkgbd\fR.
.IP \f
I
--with-xterm\fR
.IP \f
B
--with-xterm\fR
This will run \fBgdb\fR in its own xterm instead of using the current
Unix console for textual display.
.PP
...
...
@@ -121,8 +119,8 @@ of variations from \fBgdb\fR commands.
Aborts the debugger.
.IP \fBquit\fR
Exits the debugger.
.IP \fBattach\ N\fR
Attach to a Wine
-process (\fB
N\fR is its ID, numeric or hexadecimal).
.IP \fBattach\
\fI
N\fR
Attach to a Wine
process (\fI
N\fR is its ID, numeric or hexadecimal).
IDs can be obtained using the \fBinfo\ process\fR command. Note the
\fBinfo\ process\fR command returns hexadecimal values
.IP
...
...
@@ -157,45 +155,45 @@ postfixed by a number (N), meaning that the command must be executed N
times before control is returned to the user.
.PP
\fIBreakpoints, watchpoints
.IP \fBenable\ N\fR
Enables (break|watch)-point
#\fB
N\fR
.IP \fBdisable\fR
Disables (break|watch)-point \f
B#
N\fR
.IP \fBdelete\fR
Deletes (break|watch)-point
#\fB
N\fR
.IP \fBcond\ N\fR
Removes any existing condition to (break|watch)-point \f
B
N\fR
.IP \fBcond\
N\ <expr>
\fR
Adds condition \f
B<expr>
\fR to (break|watch)-point
#\fBN\fR. \fB<expr>
\fR will be evaluated each time the
.IP \fBenable\
\fI
N\fR
Enables (break|watch)-point
\fI
N\fR
.IP \fBdisable\
\fIN\
fR
Disables (break|watch)-point \f
I
N\fR
.IP \fBdelete\
\fIN\
fR
Deletes (break|watch)-point
\fI
N\fR
.IP \fBcond\
\fI
N\fR
Removes any existing condition to (break|watch)-point \f
I
N\fR
.IP \fBcond\
\fIN\ expr
\fR
Adds condition \f
Iexpr
\fR to (break|watch)-point
\fIN\fR. \fIexpr
\fR will be evaluated each time the
(break|watch)-point is hit. If the result is a zero value, the
breakpoint isn't triggered.
.IP \fBbreak\ *\ N\fR
Adds a breakpoint at address \f
B
N\fR
.IP \fBbreak\
<id>
\fR
Adds a breakpoint at the address of symbol \f
B<id>
\fR
.IP \fBbreak\
<id>
\ N\fR
Adds a breakpoint at the line \f
BN\fR inside symbol \fB<id>
\fR.
.IP \fBbreak\ N\fR
Adds a breakpoint at line \f
B
N\fR of current source file.
.IP \fBbreak\ *\
\fI
N\fR
Adds a breakpoint at address \f
I
N\fR
.IP \fBbreak\
\fIid
\fR
Adds a breakpoint at the address of symbol \f
Iid
\fR
.IP \fBbreak\
\fIid
\ N\fR
Adds a breakpoint at the line \f
IN\fR inside symbol \fIid
\fR.
.IP \fBbreak\
\fI
N\fR
Adds a breakpoint at line \f
I
N\fR of current source file.
.IP \fBbreak\fR
Adds a breakpoint at current \f$PC\fR address.
.IP \fBwatch\ *\ N\fR
Adds a watch command (on write) at address \f
B
N\fR (on 4 bytes).
.IP \fBwatch\
<id>
\fR
.IP \fBwatch\ *\
\fI
N\fR
Adds a watch command (on write) at address \f
I
N\fR (on 4 bytes).
.IP \fBwatch\
\fIid
\fR
Adds a watch command (on write) at the address of symbol
\f
B<id>\fR. Size depends on size of \fB<id>
\fR.
.IP \fBrwatch\ *\ N\fR
Adds a watch command (on read) at address \f
B
N\fR (on 4 bytes).
.IP \fBrwatch\
<id>
\fR
\f
Iid\fR. Size depends on size of \fIid
\fR.
.IP \fBrwatch\ *\
\fI
N\fR
Adds a watch command (on read) at address \f
I
N\fR (on 4 bytes).
.IP \fBrwatch\
\fIid
\fR
Adds a watch command (on read) at the address of symbol
\f
B<id>\fR. Size depends on size of \fB<id>
\fR.
\f
Iid\fR. Size depends on size of \fIid
\fR.
.IP \fBinfo\ break\fR
Lists all (break|watch)-points (with their state).
.PP
You can use the symbol \fBEntryPoint\fR to stand for the entry point of the Dll.
.PP
When setting a (break|watch)-point by \f
B<id>
\fR, if the symbol cannot
When setting a (break|watch)-point by \f
Iid
\fR, if the symbol cannot
be found (for example, the symbol is contained in a not yet loaded
module), \fBwinedbg\fR will recall the name of the symbol and will try
to set the breakpoint each time a new module is loaded (until it succeeds).
...
...
@@ -203,48 +201,48 @@ to set the breakpoint each time a new module is loaded (until it succeeds).
\fIStack manipulation\fR
.IP \fBbt\fR
Print calling stack of current thread.
.IP \fBbt\ N\fR
Print calling stack of thread of ID \f
B
N\fR. Note: this doesn't change
.IP \fBbt\
\fI
N\fR
Print calling stack of thread of ID \f
I
N\fR. Note: this doesn't change
the position of the current frame as manipulated by the \fBup\fR &
\fBdn\fR commands).
.IP \fBup\fR
Goes up one frame in current thread's stack
.IP \fBup\ N\fR
Goes up \f
B
N\fR frames in current thread's stack
.IP \fBup\
\fI
N\fR
Goes up \f
I
N\fR frames in current thread's stack
.IP \fBdn\fR
Goes down one frame in current thread's stack
.IP \fBdn\ N\fR
Goes down \f
B
N\fR frames in current thread's stack
.IP \fBframe\ N\fR
Sets \f
B
N\fR as the current frame for current thread's stack.
.IP \fBdn\
\fI
N\fR
Goes down \f
I
N\fR frames in current thread's stack
.IP \fBframe\
\fI
N\fR
Sets \f
I
N\fR as the current frame for current thread's stack.
.IP \fBinfo\ locals\fR
Prints information on local variables for current function frame.
.PP
\fIDirectory & source file manipulation\fR
.IP \fBshow\ dir\fR
Prints the list of dir
:
s where source files are looked for.
.IP \fBdir\
<pathname>
\fR
Adds \f
B<pathname>\fR to the list of dir:
s where to look for source
Prints the list of dirs where source files are looked for.
.IP \fBdir\
\fIpathname
\fR
Adds \f
Ipathname\fR to the list of dir
s where to look for source
files
.IP \fBdir\fR
Deletes the list of dir
:
s where to look for source files
.IP \fBsymbolfile\
<pathname>
\fR
Loads external symbol definition
symbolfile \fB<pathname>
\fR
.IP \fBsymbolfile\
<pathname>
\ N\fR
Loads external symbol definition
symbolfile \fB<pathname>
\fR (applying
an offset of \f
B
N\fR to addresses)
Deletes the list of dirs where to look for source files
.IP \fBsymbolfile\
\fIpathname
\fR
Loads external symbol definition
file \fIpathname
\fR
.IP \fBsymbolfile\
\fIpathname
\ N\fR
Loads external symbol definition
file \fIpathname
\fR (applying
an offset of \f
I
N\fR to addresses)
.IP \fBlist\fR
Lists 10 source lines forwards from current position.
.IP \fBlist\ -\fR
Lists 10 source lines backwards from current position
.IP \fBlist\ N\fR
Lists 10 source lines from line
#\fB
N\fR in current file
.IP \fBlist\
<pathname>:
N\fR
Lists 10 source lines from line
#\fBN\fR in file \fB<pathname>
\fR
.IP \fBlist\
<id>
\fR
Lists 10 source lines of function \f
B<id>
\fR
.IP \fBlist\ *\ N\fR
Lists 10 source lines from address \f
B
N\fR
.IP \fBlist\
\fI
N\fR
Lists 10 source lines from line
\fI
N\fR in current file
.IP \fBlist\
\fIpathname\fB:\fI
N\fR
Lists 10 source lines from line
\fIN\fR in file \fIpathname
\fR
.IP \fBlist\
\fIid
\fR
Lists 10 source lines of function \f
Iid
\fR
.IP \fBlist\ *\
\fI
N\fR
Lists 10 source lines from address \f
I
N\fR
.PP
You can specify the end target (to change the 10 lines value) using
the ',' separator. For example:
...
...
@@ -256,44 +254,44 @@ lists source lines from line 1 up to 56 in file foo.c
\fIDisplaying\fR
.PP
A display is an expression that's evaluated and printed after the
execution of any \fBwinedbg\fR
's
command.
execution of any \fBwinedbg\fR command.
.IP \fBdisplay\fR
.IP \fBinfo\ display\fR
Lists the active displays
.IP \fBdisplay\
<expr>
\fR
Adds a display for expression \f
<expr>
\fR
.IP \fBdisplay\ /
fmt\ <expr>
\fR
Adds a display for expression \f
B<expr>
\fR. Printing evaluated
\f
B<expr>
\fR is done using the given format (see \fBprint\ command\fR
.IP \fBdisplay\
\fIexpr
\fR
Adds a display for expression \f
Iexpr
\fR
.IP \fBdisplay\ /
\fIfmt\ \fIexpr
\fR
Adds a display for expression \f
Iexpr
\fR. Printing evaluated
\f
Iexpr
\fR is done using the given format (see \fBprint\ command\fR
for more on formats)
.IP \fBdel\ display\ N\fR
.IP \fBundisplay\ N\fR
Deletes display
#\fB
N\fR
.IP \fBdel\ display\
\fI
N\fR
.IP \fBundisplay\
\fI
N\fR
Deletes display
\fI
N\fR
.PP
\fIDisassembly\fR
.IP \fBdisas\fR
Disassemble from current position
.IP \fBdisas\
<expr>
\fR
Disassemble from address \f
B<expr>
\fR
.IP \fBdisas\
<expr>,<expr>
\fR
Disassembles code between addresses specified by the two
\fB<expr>\fR:
s
.IP \fBdisas\
\fIexpr
\fR
Disassemble from address \f
Iexpr
\fR
.IP \fBdisas\
\fIexpr\fB,\fIexpr
\fR
Disassembles code between addresses specified by the two
expression
s
.PP
\fIMemory\ (reading,\ writing,\ typing)\fR
.IP \fBx\
<expr>
\fR
Examines memory at
\fB<expr>\fR address
.IP \fBx\ /
fmt\ <expr>
\fR
Examines memory at
\fB<expr>\fR address using format \fI/
fmt\fR
.IP \fBprint\
<expr>
\fR
Prints the value of \f
B<expr>
\fR (possibly using its type)
.IP \fBprint\ /
fmt\ <expr>
\fR
Prints the value of \f
B<expr>
\fR (possibly using its type)
.IP \fBset\
<var>\ =\ <expr>
\fR
Writes the value of \f
B<expr>\fR in \fB<var>\fR variable.
.IP \fBwhatis\
<expr>
\fR
Prints the C type of expression \f
B<expr>
\fR
.PP
.IP \fI
/
fmt\fR
is either \fI
/<letter>\fR or \fI/<count><letter>\fR. \fI<letter>
\fR
.IP \fBx\
\fIexpr
\fR
Examines memory at
address \fIexpr\fR
.IP \fBx\ /
\fIfmt\ expr
\fR
Examines memory at
address \fIexpr\fR using format \fI
fmt\fR
.IP \fBprint\
\fIexpr
\fR
Prints the value of \f
Iexpr
\fR (possibly using its type)
.IP \fBprint\ /
\fIfmt\ expr
\fR
Prints the value of \f
Iexpr
\fR (possibly using its type)
.IP \fBset\
\fIvar\fB\ =\ \fIexpr
\fR
Writes the value of \f
Iexpr\fR in \fIvar\fR variable
.IP \fBwhatis\
\fIexpr
\fR
Prints the C type of expression \f
Iexpr
\fR
.PP
.IP \fIfmt\fR
is either \fI
letter\fR or \fIcount letter\fR, where \fIletter
\fR
can be:
.RS 4
.IP s
...
...
@@ -303,15 +301,15 @@ a UTF16 Unicode string
.IP i
instructions (disassemble)
.IP x
32
bit unsigned hexadecimal integer
32
-
bit unsigned hexadecimal integer
.IP d
32
bit signed decimal integer
32
-
bit signed decimal integer
.IP w
16
bit unsigned hexadecimal integer
16
-
bit unsigned hexadecimal integer
.IP c
character (only printable 0x20-0x7f are actually printed)
.IP b
8
bit unsigned hexadecimal integer
8
-
bit unsigned hexadecimal integer
.IP g
Win32 GUID
.RE
...
...
@@ -323,13 +321,13 @@ there are a few discrepancies:
.PP
.RS 4
Identifiers can take a '!' in their names. This allows mainly to
specify a module where to look the
module from:
\fIUSER32!CreateWindowExA\fR.
specify a module where to look the
ID from, e.g.
\fIUSER32!CreateWindowExA\fR.
.PP
In
cast operation, when specifying a structure or an
union, you must
use the struct or union key
word (even if your program uses a typedef).
In
a cast operation, when specifying a structure or a
union, you must
use the struct or union key
word (even if your program uses a typedef).
.RE
.PP
When specifying an identifier
\fB<id>\fR
, if several symbols with
When specifying an identifier, if several symbols with
this name exist, the debugger will prompt for the symbol you want to
use. Pick up the one you want from its number.
.PP
...
...
@@ -339,34 +337,34 @@ use. Pick up the one you want from its number.
saves the debugging context of the debuggee into a minidump file called
file.mdmp
.PP
\fIInformation on Wine
's
internals\fR
\fIInformation on Wine internals\fR
.IP \fBinfo\ class\fR
Lists all Windows
' clas
s registered in Wine
.IP \fBinfo\ class\
<id>
\fR
Prints information on Windows
's class \fB<id>
\fR
Lists all Windows
classe
s registered in Wine
.IP \fBinfo\ class\
\fIid
\fR
Prints information on Windows
class \fIid
\fR
.IP \fBinfo\ share\fR
Lists all the dynamic libraries loaded in the debugged program
(including .so files, NE and PE DLLs)
.IP \fBinfo\ share\ N\fR
Prints information on module at address \f
B
N\fR
.IP \fBinfo\ share\
\fI
N\fR
Prints information on module at address \f
I
N\fR
.IP \fBinfo\ regs\fR
Prints the value of the CPU registers
.IP \fBinfo\ all-regs\fR
Prints the value of the CPU and Floating Point registers
.IP \fBinfo\ segment\fR
Lists all allocated segments (i386 only)
.IP \fBinfo\ segment\ N\fR
Prints information on segment \f
B
N\fR (i386 only)
.IP \fBinfo\ segment\
\fI
N\fR
Prints information on segment \f
I
N\fR (i386 only)
.IP \fBinfo\ stack\fR
Prints the values on top of the stack
.IP \fBinfo\ map\fR
Lists all virtual mappings used by the debugged program
.IP \fBinfo\ map\ N\fR
Lists all virtual mappings used by the program of pid \f
B
N\fR
.IP \fBinfo\ map\
\fI
N\fR
Lists all virtual mappings used by the program of pid \f
I
N\fR
.IP \fBinfo\ wnd\fR
Displays the window hierarchy starting from the desktop window
.IP \fBinfo\ wnd\ N\fR
Prints information of Window of handle \f
B
N\fR
.IP \fBinfo\ wnd\
\fI
N\fR
Prints information of Window of handle \f
I
N\fR
.IP \fBinfo\ process\fR
Lists all w-processes in Wine session
.IP \fBinfo\ thread\fR
...
...
@@ -379,23 +377,23 @@ thread) to examine its exception frames.
Debug messages can be turned on and off as you are debugging using
the \fBset\fR command, but only for channels initialized with the
\fIWINEDEBUG\fR environment variable.
.IP \fBset\ warn\ +\ win\fR
Turns on warn on \f
B'win'
\fR channel
.IP \fBset\ +\ win\fR
Turns on warn/fixme/err/trace on \f
B'win'
\fR channel
.IP \fBset\ -\ win\fR
Turns off warn/fixme/err/trace on \f
B'win'
\fR channel
.IP \fBset\ warn\ +\
\fI
win\fR
Turns on warn on \f
Iwin
\fR channel
.IP \fBset\ +\
\fI
win\fR
Turns on warn/fixme/err/trace on \f
Iwin
\fR channel
.IP \fBset\ -\
\fI
win\fR
Turns off warn/fixme/err/trace on \f
Iwin
\fR channel
.IP \fBset\ fixme\ -\ all\fR
Turns off
the 'fixme'
class on all channels
Turns off
fixme
class on all channels
.PP
.SS Gdb mode:
.PP
See the \fBgdb\fR documentation for all the \fBgdb\fR commands.
.PP
However, a few Wine
's extension
are available, through the
However, a few Wine
extensions
are available, through the
\fBmonitor\fR command:
.IP \fBmonitor\ wnd\fR
Lists all window in the Wine session
Lists all window
s
in the Wine session
.IP \fBmonitor\ proc\fR
Lists all processes in the Wine session
.IP \fBmonitor\ mem\fR
...
...
@@ -417,9 +415,9 @@ A lot.
.SH AUTHORS
The first version was written by Eric Youngdale.
.PP
See Wine developer
'
s list for the rest of contributors.
See Wine developers list for the rest of contributors.
.SH "SEE ALSO"
.BR winedbg "
's
README file"
.BR winedbg " README file"
.nf
The Winelib User Guide
.nf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment