2005-10-06 18:10:01 +02:00
|
|
|
.TH WINEDBG 1 "October 2005" "@PACKAGE_STRING@" "Wine Developers Manual"
|
2004-06-04 02:59:16 +02:00
|
|
|
.SH NAME
|
2013-07-16 16:57:48 +02:00
|
|
|
winedbg \- Wine debugger
|
2004-06-04 02:59:16 +02:00
|
|
|
.SH SYNOPSIS
|
2013-09-02 11:09:00 +02:00
|
|
|
.B winedbg
|
2013-09-02 11:09:01 +02:00
|
|
|
.RI "[ " options " ] [ " program_name " [ " program_arguments " ] | " wpid " ]"
|
2013-09-02 11:09:00 +02:00
|
|
|
.PP
|
|
|
|
.B winedbg --gdb
|
2013-09-02 11:09:01 +02:00
|
|
|
.RI "[ " options " ] [ " program_name " [ " program_arguments " ] | " wpid " ]"
|
2013-09-02 11:09:00 +02:00
|
|
|
.PP
|
2013-09-02 11:09:01 +02:00
|
|
|
.BI "winedbg --auto " wpid
|
2013-09-02 11:09:00 +02:00
|
|
|
.PP
|
|
|
|
.B winedbg --minidump
|
2013-09-02 11:09:01 +02:00
|
|
|
.RI "[ " file.mdmp " ] " wpid
|
2013-09-02 11:09:00 +02:00
|
|
|
.PP
|
|
|
|
.BI "winedbg " file.mdmp
|
2004-06-04 02:59:16 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B winedbg
|
|
|
|
is a debugger for Wine. It allows:
|
|
|
|
.RS 4
|
|
|
|
.nf
|
2009-08-17 07:14:57 +02:00
|
|
|
+ debugging native Win32 applications
|
2013-07-16 16:57:48 +02:00
|
|
|
+ debugging Winelib applications
|
2004-06-04 02:59:16 +02:00
|
|
|
+ being a drop-in replacement for Dr Watson
|
2009-08-17 07:14:57 +02:00
|
|
|
.fi
|
2004-06-04 02:59:16 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
|
|
|
|
.SH MODES
|
2006-03-01 21:05:39 +01:00
|
|
|
\fBwinedbg\fR can be used in five modes. The first argument to the
|
2004-06-04 02:59:16 +02:00
|
|
|
program determines the mode winedbg will run in.
|
|
|
|
.IP \fBdefault\fR
|
|
|
|
Without any explicit mode, this is standard \fBwinedbg\fR operating
|
|
|
|
mode. \fBwinedbg\fR will act as the front end for the user.
|
2006-03-01 21:05:39 +01:00
|
|
|
.IP \fB--gdb\fR
|
|
|
|
\fBwinedbg\fR will be used as a proxy for \fBgdb\fR. \fBgdb\fR will be
|
|
|
|
the front end for command handling, and \fBwinedbg\fR will proxy all
|
|
|
|
debugging requests from \fBgdb\fR to the Win32 APIs.
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fB--auto\fR
|
2006-03-01 21:05:39 +01:00
|
|
|
This mode is used when \fBwinedbg\fR is set up in \fIAeDebug\fR
|
2005-01-03 15:38:03 +01:00
|
|
|
registry entry as the default debugger. \fBwinedbg\fR will then
|
2005-07-11 12:59:41 +02:00
|
|
|
display basic information about a crash. This is useful for users
|
2004-06-04 02:59:16 +02:00
|
|
|
who don't want to debug a crash, but rather gather relevant
|
|
|
|
information about the crash to be sent to developers.
|
2006-03-01 21:05:39 +01:00
|
|
|
.IP \fB--minidump\fR
|
|
|
|
This mode is similar to the \fB--auto\fR one, except that instead of
|
|
|
|
printing the information on the screen (as \fB--auto\fR does), it's
|
|
|
|
saved into a minidump file. The name of the file is either passed on
|
|
|
|
the command line, or generated by \fBWineDbg\fR when none is given.
|
|
|
|
This file could later on be reloaded into \fBwinedbg\fR for further
|
|
|
|
examination.
|
|
|
|
.IP \fBfile.mdmp\fR
|
2012-05-15 10:15:32 +02:00
|
|
|
In this mode \fBwinedbg\fR reloads the state of a debuggee which
|
|
|
|
has been saved into a minidump file. See either the \fBminidump\fR
|
2006-03-01 21:05:39 +01:00
|
|
|
command below, or the \fB--minidump mode\fR.
|
2004-06-04 02:59:16 +02:00
|
|
|
|
|
|
|
.SH OPTIONS
|
2005-11-16 12:23:07 +01:00
|
|
|
When in \fBdefault\fR mode, the following options are available:
|
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fB--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
|
2005-11-16 12:23:07 +01:00
|
|
|
getting the pid of running processes (winedbg --command "info proc").
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fB--file\ \fIfilename\fR
|
2005-11-16 12:23:07 +01:00
|
|
|
\fBwinedbg\fR will execute the list of commands contained in file
|
2013-07-16 16:57:48 +02:00
|
|
|
filename as if they were keyed on winedbg command line, and then
|
2005-11-16 12:23:07 +01:00
|
|
|
will exit.
|
|
|
|
.PP
|
|
|
|
When in \fBgdb\fR proxy mode, the following options are available:
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fB--no-start\fR
|
2006-03-01 21:05:39 +01:00
|
|
|
\fBgdb\fR will not be automatically
|
2015-03-27 14:19:47 +01:00
|
|
|
started. Relevant information for starting \fBgdb\fR is printed on
|
2005-07-11 12:59:41 +02:00
|
|
|
screen. This is somehow useful when not directly using \fBgdb\fR but
|
2004-06-04 02:59:16 +02:00
|
|
|
some graphical front-ends, like \fBddd\fR or \fBkgbd\fR.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fB--with-xterm\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
This will run \fBgdb\fR in its own xterm instead of using the current
|
|
|
|
Unix console for textual display.
|
|
|
|
.PP
|
2005-11-16 12:23:07 +01:00
|
|
|
In all modes, the rest of the command line, when passed, is used to
|
|
|
|
identify which programs, if any, has to debugged:
|
2013-09-02 11:09:00 +02:00
|
|
|
.IP \fIprogram_name\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
This is the name of an executable to start for a debugging
|
|
|
|
session. \fBwinedbg\fR will actually create a process with this
|
2013-09-02 11:09:00 +02:00
|
|
|
executable. If \fIprograms_arguments\fR are also given, they will be
|
2004-06-04 02:59:16 +02:00
|
|
|
used as arguments for creating the process to be debugged.
|
2013-09-02 11:09:01 +02:00
|
|
|
.IP \fIwpid\fR
|
|
|
|
\fBwinedbg\fR will attach to the process which Windows pid is \fIwpid\fR.
|
|
|
|
Use the \fBinfo proc\fR command within \fBwinedbg\fR to list running processes
|
|
|
|
and their Windows pids.
|
2005-11-16 12:23:07 +01:00
|
|
|
.IP \fBdefault\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
If nothing is specified, you will enter the debugger without any run
|
|
|
|
nor attached process. You'll have to do the job yourself.
|
|
|
|
|
|
|
|
.SH COMMANDS
|
2006-03-01 21:05:39 +01:00
|
|
|
.SS Default mode, and while reloading a minidump file:
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
Most of commands used in \fBwinedbg\fR are similar to the ones from
|
|
|
|
\fBgdb\fR. Please refer to the \fBgdb\fR documentations for some more
|
|
|
|
details. See the \fIgdb\ differences\fR section later on to get a list
|
|
|
|
of variations from \fBgdb\fR commands.
|
|
|
|
.PP
|
|
|
|
\fIMisc. commands\fR
|
|
|
|
.IP \fBabort\fR
|
|
|
|
Aborts the debugger.
|
|
|
|
.IP \fBquit\fR
|
|
|
|
Exits the debugger.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBattach\ \fIN\fR
|
2013-09-02 11:09:01 +02:00
|
|
|
Attach to a Wine process (\fIN\fR is its Windows ID, numeric or hexadecimal).
|
2004-06-04 02:59:16 +02:00
|
|
|
IDs can be obtained using the \fBinfo\ process\fR command. Note the
|
|
|
|
\fBinfo\ process\fR command returns hexadecimal values
|
|
|
|
.IP
|
|
|
|
.IP \fBdetach\fR
|
|
|
|
Detach from a Wine-process.
|
|
|
|
.PP
|
|
|
|
\fIHelp commands\fR
|
|
|
|
.IP \fBhelp\fR
|
|
|
|
Prints some help on the commands.
|
|
|
|
.IP \fBhelp\ info\fR
|
|
|
|
Prints some help on info commands
|
|
|
|
.PP
|
|
|
|
\fIFlow control commands\fR
|
|
|
|
.IP \fBcont\fR
|
|
|
|
Continue execution until next breakpoint or exception.
|
|
|
|
.IP \fBpass\fR
|
|
|
|
Pass the exception event up to the filter chain.
|
|
|
|
.IP \fBstep\fR
|
|
|
|
Continue execution until next C line of code (enters function call)
|
|
|
|
.IP \fBnext\fR
|
|
|
|
Continue execution until next C line of code (doesn't enter function
|
|
|
|
call)
|
|
|
|
.IP \fBstepi\fR
|
|
|
|
Execute next assembly instruction (enters function call)
|
|
|
|
.IP \fBnexti\fR
|
|
|
|
Execute next assembly instruction (doesn't enter function call)
|
|
|
|
.IP \fBfinish\fR
|
2006-08-21 13:18:34 +02:00
|
|
|
Execute until return of current function is reached.
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
\fBcont\fR, \fBstep\fR, \fBnext\fR, \fBstepi\fR, \fBnexti\fR can be
|
|
|
|
postfixed by a number (N), meaning that the command must be executed N
|
|
|
|
times before control is returned to the user.
|
|
|
|
.PP
|
|
|
|
\fIBreakpoints, watchpoints
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBenable\ \fIN\fR
|
|
|
|
Enables (break|watch)-point \fIN\fR
|
|
|
|
.IP \fBdisable\ \fIN\fR
|
|
|
|
Disables (break|watch)-point \fIN\fR
|
|
|
|
.IP \fBdelete\ \fIN\fR
|
|
|
|
Deletes (break|watch)-point \fIN\fR
|
|
|
|
.IP \fBcond\ \fIN\fR
|
|
|
|
Removes any existing condition to (break|watch)-point \fIN\fR
|
|
|
|
.IP \fBcond\ \fIN\ expr\fR
|
|
|
|
Adds condition \fIexpr\fR to (break|watch)-point
|
|
|
|
\fIN\fR. \fIexpr\fR will be evaluated each time the
|
2004-06-04 02:59:16 +02:00
|
|
|
(break|watch)-point is hit. If the result is a zero value, the
|
|
|
|
breakpoint isn't triggered.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBbreak\ *\ \fIN\fR
|
|
|
|
Adds a breakpoint at address \fIN\fR
|
|
|
|
.IP \fBbreak\ \fIid\fR
|
|
|
|
Adds a breakpoint at the address of symbol \fIid\fR
|
|
|
|
.IP \fBbreak\ \fIid\ N\fR
|
|
|
|
Adds a breakpoint at the line \fIN\fR inside symbol \fIid\fR.
|
|
|
|
.IP \fBbreak\ \fIN\fR
|
|
|
|
Adds a breakpoint at line \fIN\fR of current source file.
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBbreak\fR
|
2016-03-02 09:24:34 +01:00
|
|
|
Adds a breakpoint at current \fB$PC\fR address.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBwatch\ *\ \fIN\fR
|
|
|
|
Adds a watch command (on write) at address \fIN\fR (on 4 bytes).
|
|
|
|
.IP \fBwatch\ \fIid\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
Adds a watch command (on write) at the address of symbol
|
2013-07-16 16:57:48 +02:00
|
|
|
\fIid\fR. Size depends on size of \fIid\fR.
|
|
|
|
.IP \fBrwatch\ *\ \fIN\fR
|
|
|
|
Adds a watch command (on read) at address \fIN\fR (on 4 bytes).
|
|
|
|
.IP \fBrwatch\ \fIid\fR
|
2010-12-05 17:35:55 +01:00
|
|
|
Adds a watch command (on read) at the address of symbol
|
2013-07-16 16:57:48 +02:00
|
|
|
\fIid\fR. Size depends on size of \fIid\fR.
|
2004-06-04 02:59:16 +02:00
|
|
|
.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
|
2013-07-16 16:57:48 +02:00
|
|
|
When setting a (break|watch)-point by \fIid\fR, if the symbol cannot
|
2004-06-04 02:59:16 +02:00
|
|
|
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).
|
|
|
|
.PP
|
|
|
|
\fIStack manipulation\fR
|
|
|
|
.IP \fBbt\fR
|
|
|
|
Print calling stack of current thread.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBbt\ \fIN\fR
|
|
|
|
Print calling stack of thread of ID \fIN\fR. Note: this doesn't change
|
2004-06-04 02:59:16 +02:00
|
|
|
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
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBup\ \fIN\fR
|
|
|
|
Goes up \fIN\fR frames in current thread's stack
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBdn\fR
|
|
|
|
Goes down one frame in current thread's stack
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBdn\ \fIN\fR
|
|
|
|
Goes down \fIN\fR frames in current thread's stack
|
|
|
|
.IP \fBframe\ \fIN\fR
|
|
|
|
Sets \fIN\fR as the current frame for current thread's stack.
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ locals\fR
|
|
|
|
Prints information on local variables for current function frame.
|
|
|
|
.PP
|
|
|
|
\fIDirectory & source file manipulation\fR
|
|
|
|
.IP \fBshow\ dir\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
Prints the list of dirs where source files are looked for.
|
|
|
|
.IP \fBdir\ \fIpathname\fR
|
|
|
|
Adds \fIpathname\fR to the list of dirs where to look for source
|
2004-06-04 02:59:16 +02:00
|
|
|
files
|
|
|
|
.IP \fBdir\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
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 \fIN\fR to addresses)
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBlist\fR
|
|
|
|
Lists 10 source lines forwards from current position.
|
|
|
|
.IP \fBlist\ -\fR
|
|
|
|
Lists 10 source lines backwards from current position
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBlist\ \fIN\fR
|
|
|
|
Lists 10 source lines from line \fIN\fR in current file
|
|
|
|
.IP \fBlist\ \fIpathname\fB:\fIN\fR
|
|
|
|
Lists 10 source lines from line \fIN\fR in file \fIpathname\fR
|
|
|
|
.IP \fBlist\ \fIid\fR
|
|
|
|
Lists 10 source lines of function \fIid\fR
|
|
|
|
.IP \fBlist\ *\ \fIN\fR
|
|
|
|
Lists 10 source lines from address \fIN\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
You can specify the end target (to change the 10 lines value) using
|
|
|
|
the ',' separator. For example:
|
|
|
|
.IP \fBlist\ 123,\ 234\fR
|
|
|
|
lists source lines from line 123 up to line 234 in current file
|
|
|
|
.IP \fBlist\ foo.c:1,56\fR
|
2009-08-17 07:14:57 +02:00
|
|
|
lists source lines from line 1 up to 56 in file foo.c
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
\fIDisplaying\fR
|
|
|
|
.PP
|
|
|
|
A display is an expression that's evaluated and printed after the
|
2013-07-16 16:57:48 +02:00
|
|
|
execution of any \fBwinedbg\fR command.
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBdisplay\fR
|
|
|
|
.IP \fBinfo\ display\fR
|
|
|
|
Lists the active displays
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBdisplay\ \fIexpr\fR
|
|
|
|
Adds a display for expression \fIexpr\fR
|
|
|
|
.IP \fBdisplay\ /\fIfmt\ \fIexpr\fR
|
|
|
|
Adds a display for expression \fIexpr\fR. Printing evaluated
|
|
|
|
\fIexpr\fR is done using the given format (see \fBprint\ command\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
for more on formats)
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBdel\ display\ \fIN\fR
|
|
|
|
.IP \fBundisplay\ \fIN\fR
|
|
|
|
Deletes display \fIN\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
\fIDisassembly\fR
|
|
|
|
.IP \fBdisas\fR
|
|
|
|
Disassemble from current position
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBdisas\ \fIexpr\fR
|
|
|
|
Disassemble from address \fIexpr\fR
|
|
|
|
.IP \fBdisas\ \fIexpr\fB,\fIexpr\fR
|
|
|
|
Disassembles code between addresses specified by the two expressions
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
\fIMemory\ (reading,\ writing,\ typing)\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBx\ \fIexpr\fR
|
|
|
|
Examines memory at address \fIexpr\fR
|
|
|
|
.IP \fBx\ /\fIfmt\ expr\fR
|
|
|
|
Examines memory at address \fIexpr\fR using format \fIfmt\fR
|
|
|
|
.IP \fBprint\ \fIexpr\fR
|
|
|
|
Prints the value of \fIexpr\fR (possibly using its type)
|
|
|
|
.IP \fBprint\ /\fIfmt\ expr\fR
|
|
|
|
Prints the value of \fIexpr\fR (possibly using its type)
|
|
|
|
.IP \fBset\ \fIvar\fB\ =\ \fIexpr\fR
|
|
|
|
Writes the value of \fIexpr\fR in \fIvar\fR variable
|
|
|
|
.IP \fBwhatis\ \fIexpr\fR
|
|
|
|
Prints the C type of expression \fIexpr\fR
|
|
|
|
.PP
|
|
|
|
.IP \fIfmt\fR
|
|
|
|
is either \fIletter\fR or \fIcount letter\fR, where \fIletter\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
can be:
|
|
|
|
.RS 4
|
|
|
|
.IP s
|
|
|
|
an ASCII string
|
|
|
|
.IP u
|
2008-11-23 20:53:43 +01:00
|
|
|
a UTF16 Unicode string
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP i
|
|
|
|
instructions (disassemble)
|
|
|
|
.IP x
|
2013-07-16 16:57:48 +02:00
|
|
|
32-bit unsigned hexadecimal integer
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP d
|
2013-07-16 16:57:48 +02:00
|
|
|
32-bit signed decimal integer
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP w
|
2013-07-16 16:57:48 +02:00
|
|
|
16-bit unsigned hexadecimal integer
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP c
|
|
|
|
character (only printable 0x20-0x7f are actually printed)
|
|
|
|
.IP b
|
2013-07-16 16:57:48 +02:00
|
|
|
8-bit unsigned hexadecimal integer
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP g
|
|
|
|
Win32 GUID
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
\fIExpressions\fR
|
|
|
|
.PP
|
|
|
|
Expressions in Wine Debugger are mostly written in a C form. However,
|
|
|
|
there are a few discrepancies:
|
|
|
|
.PP
|
|
|
|
.RS 4
|
|
|
|
Identifiers can take a '!' in their names. This allows mainly to
|
2013-07-16 16:57:48 +02:00
|
|
|
specify a module where to look the ID from, e.g. \fIUSER32!CreateWindowExA\fR.
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
In a cast operation, when specifying a structure or a union, you must
|
|
|
|
use the struct or union keyword (even if your program uses a typedef).
|
2004-06-04 02:59:16 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
When specifying an identifier, if several symbols with
|
2004-06-04 02:59:16 +02:00
|
|
|
this name exist, the debugger will prompt for the symbol you want to
|
|
|
|
use. Pick up the one you want from its number.
|
|
|
|
.PP
|
2006-03-01 21:05:39 +01:00
|
|
|
\fIMisc.\fR
|
|
|
|
.PP
|
2013-09-02 11:09:00 +02:00
|
|
|
.BI "minidump " file.mdmp
|
2006-03-01 21:05:39 +01:00
|
|
|
saves the debugging context of the debuggee into a minidump file called
|
2013-09-02 11:09:00 +02:00
|
|
|
\fIfile.mdmp\fR.
|
2006-03-01 21:05:39 +01:00
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
\fIInformation on Wine internals\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ class\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
Lists all Windows classes registered in Wine
|
|
|
|
.IP \fBinfo\ class\ \fIid\fR
|
|
|
|
Prints information on Windows class \fIid\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ share\fR
|
|
|
|
Lists all the dynamic libraries loaded in the debugged program
|
|
|
|
(including .so files, NE and PE DLLs)
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBinfo\ share\ \fIN\fR
|
|
|
|
Prints information on module at address \fIN\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ regs\fR
|
|
|
|
Prints the value of the CPU registers
|
2006-03-21 13:54:41 +01:00
|
|
|
.IP \fBinfo\ all-regs\fR
|
|
|
|
Prints the value of the CPU and Floating Point registers
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ segment\fR
|
|
|
|
Lists all allocated segments (i386 only)
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBinfo\ segment\ \fIN\fR
|
|
|
|
Prints information on segment \fIN\fR (i386 only)
|
2004-06-04 02:59:16 +02:00
|
|
|
.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
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBinfo\ map\ \fIN\fR
|
2013-09-02 11:09:01 +02:00
|
|
|
Lists all virtual mappings used by the program of Windows pid \fIN\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ wnd\fR
|
2005-01-03 15:38:03 +01:00
|
|
|
Displays the window hierarchy starting from the desktop window
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBinfo\ wnd\ \fIN\fR
|
|
|
|
Prints information of Window of handle \fIN\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
.IP \fBinfo\ process\fR
|
|
|
|
Lists all w-processes in Wine session
|
|
|
|
.IP \fBinfo\ thread\fR
|
|
|
|
Lists all w-threads in Wine session
|
2010-11-21 22:19:34 +01:00
|
|
|
.IP \fBinfo\ frame\fR
|
|
|
|
Lists the exception frames (starting from current stack frame). You
|
|
|
|
can also pass, as optional argument, a thread id (instead of current
|
|
|
|
thread) to examine its exception frames.
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
2009-08-17 07:15:02 +02:00
|
|
|
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.
|
2013-07-16 16:57:48 +02:00
|
|
|
.IP \fBset\ warn\ +\ \fIwin\fR
|
|
|
|
Turns on warn on \fIwin\fR channel
|
|
|
|
.IP \fBset\ +\ \fIwin\fR
|
|
|
|
Turns on warn/fixme/err/trace on \fIwin\fR channel
|
|
|
|
.IP \fBset\ -\ \fIwin\fR
|
|
|
|
Turns off warn/fixme/err/trace on \fIwin\fR channel
|
2009-08-17 07:14:53 +02:00
|
|
|
.IP \fBset\ fixme\ -\ all\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
Turns off fixme class on all channels
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
.SS Gdb mode:
|
|
|
|
.PP
|
|
|
|
See the \fBgdb\fR documentation for all the \fBgdb\fR commands.
|
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
However, a few Wine extensions are available, through the
|
2004-06-04 02:59:16 +02:00
|
|
|
\fBmonitor\fR command:
|
|
|
|
.IP \fBmonitor\ wnd\fR
|
2013-07-16 16:57:48 +02:00
|
|
|
Lists all windows in the Wine session
|
2006-03-01 21:05:39 +01:00
|
|
|
.IP \fBmonitor\ proc\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
Lists all processes in the Wine session
|
2006-03-01 21:05:39 +01:00
|
|
|
.IP \fBmonitor\ mem\fR
|
2004-06-04 02:59:16 +02:00
|
|
|
Displays memory mapping of debugged process
|
|
|
|
.PP
|
2006-03-01 21:05:39 +01:00
|
|
|
.SS Auto and minidump modes:
|
2004-06-04 02:59:16 +02:00
|
|
|
.PP
|
|
|
|
Since no user input is possible, no commands are available.
|
|
|
|
|
|
|
|
.SH ENVIRONMENT
|
|
|
|
.IP \fBWINE_GDB\fR
|
|
|
|
When used in \fBgdb\fR proxy mode, \fBWINE_GDB\fR specifies the name
|
2013-09-02 11:09:00 +02:00
|
|
|
(and the path) of the executable to be used for \fBgdb\fR. "gdb"
|
2004-06-04 02:59:16 +02:00
|
|
|
is used by default.
|
|
|
|
.SH AUTHORS
|
|
|
|
The first version was written by Eric Youngdale.
|
|
|
|
.PP
|
2013-07-16 16:57:48 +02:00
|
|
|
See Wine developers list for the rest of contributors.
|
2013-07-16 20:48:05 +02:00
|
|
|
.SH BUGS
|
|
|
|
Bugs can be reported on the
|
2017-11-30 19:57:16 +01:00
|
|
|
.UR https://bugs.winehq.org
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine bug tracker
|
|
|
|
.UE .
|
|
|
|
.SH AVAILABILITY
|
|
|
|
.B winedbg
|
|
|
|
is part of the Wine distribution, which is available through WineHQ,
|
|
|
|
the
|
2017-11-30 19:57:16 +01:00
|
|
|
.UR https://www.winehq.org/
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine development headquarters
|
|
|
|
.UE .
|
2004-06-04 02:59:16 +02:00
|
|
|
.SH "SEE ALSO"
|
2013-07-16 20:48:05 +02:00
|
|
|
.BR wine (1),
|
|
|
|
.br
|
2017-11-30 19:57:16 +01:00
|
|
|
.UR https://www.winehq.org/help
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine documentation and support
|
|
|
|
.UE .
|