help string for "break" command

Mathieu Lacage
2007-01-12T13:46:37Z

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

hi,

Am I right in assuming that the gdb command "break" places exclusively
so-called software-breakpoints while the command "hbreak" places a
hardware-breakpoint (I am not sure I have figured out the details of the
logic in gdb/breakpoint.c) ?

If so, maybe the gdb help should be updated to reflect this difference
more prominently: the current help string for "break" do not specify
clearly that it is a software-breakpoint. The attached patch changes the
relevant string.

regards,
Mathieu
--

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 455 bytes --]

--- breakpoint.old 2007-01-12 14:38:50.000000000 +0100
+++ breakpoint.c 2007-01-12 14:39:32.000000000 +0100
@@ -7928,7 +7928,7 @@
See also the \"delete\" command which clears breakpoints by number."));

c = add_com ("break", class_breakpoint, break_command, _("\
-Set breakpoint at specified line or function.\n"
+Set software breakpoint at specified line or function.\n"
BREAK_ARGS_HELP ("break")));
set_cmd_completer (c, location_completer);