[PATCH 1/1] winedbg: Clarify options specific to GDB proxy mode.

Jinoh Kang wine at gitlab.winehq.org
Tue Jun 21 04:54:27 CDT 2022

From: Jinoh Kang <jinoh.kang.kr at gmail.com>

Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
 programs/winedbg/winedbg.man.in | 39 +++++++++++++++++++++++++--------
 1 file changed, 30 insertions(+), 9 deletions(-)

diff --git a/programs/winedbg/winedbg.man.in b/programs/winedbg/winedbg.man.in
index 7eae4faa756..c58696ba1c9 100644
--- a/programs/winedbg/winedbg.man.in
+++ b/programs/winedbg/winedbg.man.in
@@ -69,17 +69,38 @@ will exit.
 When in \fBgdb\fR proxy mode, the following options are available:
 .IP \fB--no-start\fR
-\fBgdb\fR will not be automatically
-started. Relevant information for starting \fBgdb\fR is printed on
-screen. This is somehow useful when not directly using \fBgdb\fR but
-some graphical front-ends, like \fBddd\fR or \fBkgbd\fR. 
+Don't launch \fBgdb\fR directly; instead, print the \fBtarget remote\fR
+GDB command to execute and listen for connection from any GDB-compatible
+debugger.  Normally, \fB--gdb\fR will start both the proxy debugging server
+and an instance of \fBgdb\fR for the front end.  This option instructs
+\fBwinedbg\fR to skip launching of \fBgdb\fR, and instead prints
+the GDB command that can be used to manually connect to the server.
+This command is in the form
+.in +4n
+target remote localhost:\fI<port>\fR
+where \fI<port>\fR is the TCP port \fBwinedbg\fR's proxy debugging server is bound to.
+This option allows the user to replace \fBgdb\fR with some other
+debugger front end, such as \fBddd\fR, \fBkgdb\fR, \fBgdbgui\fR, or Qt Creator.
+Regardless of whether \fB--no-start\fR is specified, \fBwinedbg\fR will quit
+after the first connection is hung up (e.g. \fBgdb\fR detaches from the
 .IP \fB--port\fR\ \fIport\fR
-Start the \fBgdb\fR server on the given port. If this option is not
-specified, a randomly chosen port will be used. If \fB--no-start\fR is
-specified, the port used will be printed on startup.
+Start the GDB proxy debugging server on the given port.  If this option is not
+specified, \fBwinedbg\fR will let the operating system choose any available port.
+This option can be used in conjunction with \fB--no-start\fR to specify the port the
+server shall be bound to.
 .IP \fB--with-xterm\fR
-This will run \fBgdb\fR in its own xterm instead of using the current
-Unix console for textual display.
+This will run the \fBgdb\fR front end in a new
+.BR xterm (1)
+window instead of using the current Unix terminal for its interface.
+This option is ignored if \fB--no-start\fR is
 In all modes, the rest of the command line, when passed, is used to 
 identify which program, if any, is to be debugged:


More information about the wine-devel mailing list