+2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * breakpoint.c (print_one_breakpoint_location): Display "N" for
+ disabled-by-condition locations on MI-like output.
+ (breakpoint_1): Do not display the disabled-by-condition footnote
+ if the output is MI-like.
+
2021-04-21 Frederic Cambus <fred@statdns.com>
* syscalls/update-netbsd.sh: Fix script name display in usage, and
/* 4 */
annotate_field (3);
+ /* For locations that are disabled because of an invalid condition,
+ display "N*" on CLI, where "*" refers to a footnote below the
+ table. For MI, simply display a "N" without a footnote. */
+ const char *N = (uiout->is_mi_like_p ()) ? "N" : "N*";
if (part_of_multiple)
- uiout->field_string ("enabled", (loc->disabled_by_cond ? "N*"
+ uiout->field_string ("enabled", (loc->disabled_by_cond ? N
: (loc->enabled ? "y" : "n")));
else
uiout->field_fmt ("enabled", "%c", bpenables[(int) b->enable_state]);
if (last_loc && !server_command)
set_next_address (last_loc->gdbarch, last_loc->address);
- if (has_disabled_by_cond_location)
+ if (has_disabled_by_cond_location && !uiout->is_mi_like_p ())
uiout->message (_("(*): Breakpoint condition is invalid at this "
"location.\n"));
}
+2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * gdb.texinfo (GDB/MI Breakpoint Information): Update the
+ description for the 'enabled' field of breakpoint locations.
+
2021-04-15 Tom Tromey <tom@tromey.com>
Andrew Burgess <andrew.burgess@embecosm.com>
location within that breakpoint.
@item enabled
-This indicates whether the location is enabled, in which case the
-value is @samp{y}, or disabled, in which case the value is @samp{n}.
-Note that this is not the same as the field @code{enable}.
+There are three possible values, with the following meanings:
+@table @code
+@item y
+The location is enabled.
+@item n
+The location is disabled by the user.
+@item N
+The location is disabled because the breakpoint condition is invalid
+at this location.
+@end table
@item addr
The address of this location as an hexidecimal number.