Skip to content

Commit 50e21e5

Browse files
authored
Merge pull request #150 from duncan-roe/debugger-stop
Update documentation to describe actual behaviour
2 parents 1f32d6f + 228d73f commit 50e21e5

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

doc/make.1

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH REMAKE 1 "5 June 2020" "GNU" "User Commands"
1+
.TH REMAKE 1 "28 August 2023" "GNU" "User Commands"
22
.SH NAME
33
remake \- GNU make utility to maintain groups of programs
44
.SH SYNOPSIS
@@ -118,7 +118,7 @@ Go into the debugger on an error. This is the
118118
Same as options: \-\-debugger \-\-debugger\-stop=error
119119

120120
.TP 0.5i
121-
.B \-P, " \-\-profile [=TYPE]
121+
.B \-P, " \-\-profile[=TYPE]
122122
Enables timing and dependency profiling output using the specified
123123
.I TYPE
124124
for formatting.
@@ -139,7 +139,7 @@ have the format specified in the
139139
manual.
140140

141141
.TP 0.5i
142-
.B \-\-profile\-directory=[PATH]
142+
.B \-\-profile\-directory[=PATH]
143143
Specifies the
144144
.I PATH
145145
that profiling files should be written to. Must exist
@@ -161,7 +161,7 @@ have description comments. A description comment is added by putting
161161
a single comment before the target that starts with '#:'.
162162

163163
.TP 0.5i
164-
.B \-x, " \-\-trace [=FLAGS]"
164+
.B \-x, " \-\-trace[=FLAGS]"
165165
Set trace flags
166166
If the
167167
.I FLAGS
@@ -179,33 +179,29 @@ is disabled, or
179179
for maximum tracing.
180180

181181
.TP 0.5i
182-
.B \-X, "\-\-debugger [=TYPE]"
183-
Enter debugger with
184-
If the
182+
.B \-X, "\-\-debugger"
183+
Same as \fB--debugger-stop=full\fR
184+
.TP 0.5i
185+
.B "\-\-debugger-stop[=TYPE]"
186+
If
185187
.I TYPE
186-
are omitted, then the behavior is the same as if
187-
.B \-\-debugger=normal
188+
is omitted, then the behavior is the same as if
189+
.B \-\-debugger=preaction
188190
was specified.
189191
.I TYPE
190192
may be
191-
.I goal
192-
for all tracing Makefiles read
193193
.I preread
194-
which stop before any Makefiles are read
194+
which stops before any Makefiles are read,
195195
.I goal
196-
which stops after the goal target is built
197-
.I normal
198-
which is the same as given no option
196+
which stops before any target is built,
199197
.I preaction
200-
which is like \fInormal\fR but shell tracing
201-
is disabled
198+
which stops after all Makefiles are read but before make does anything else,
202199
.I full
203-
for maximum tracing. It is the same as giving all of the
204-
options except "normal" .
200+
which combines \fIpreaction\fR, \fIerror\fR and \fIfatal\fR,
205201
.I fatal
206-
for entering the debugger on a fatal error,
202+
to enter the debugger on a fatal error or
207203
.I error
208-
for entering the debugger on an error
204+
to enter the debugger on an error.
209205

210206
.SH "SEE ALSO"
211207
The full documentation for

src/main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,16 @@ static const char *const usage[] =
370370
--debugger-stop[=TYPE] Which point to enter debugger. TYPE may be\n\
371371
\"goal\", \"preread\", \"preaction\",\n\
372372
\"full\", \"error\", or \"fatal\".\n\
373-
Only makes sense with -X set.\n"),
373+
Default is \"preaction\".\n\
374+
May be repeated (to get TYPE|TYPE|...).\n"),
374375
N_("\
375376
-v, --version Print the version number of make and exit.\n"),
376377
N_("\
377-
-X, --debugger Enter debugger.\n"),
378+
-X, --debugger Enter debugger.\n\
379+
Same as --debugger-stop=full\n"),
378380
N_("\
379381
-!, --post-mortem Go into debugger on error.\n\
380-
Same as --debugger --debugger-stop=error\n"),
382+
Same as --debugger-stop=error\n"),
381383
N_("\
382384
--no-readline Do not use GNU ReadLine in debugger.\n"),
383385
NULL

0 commit comments

Comments
 (0)