Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Enhance break command help
@ 2005-12-01 12:28 Andrew STUBBS
  2005-12-01 16:57 ` Andrew STUBBS
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew STUBBS @ 2005-12-01 12:28 UTC (permalink / raw)
  To: gdb-patches

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

Hi,

The attached patch adds more information to the on-line help for the 
break command. It adds a brief description how to set thread specific 
and conditional breakpoints.

The information is all in the user guide, but was missing from the 
internal help message.

This is in response to a complaint from a user.

Thanks

Andrew Stubbs

[-- Attachment #2: break-help.patch --]
[-- Type: text/plain, Size: 1569 bytes --]

2005-12-01  Andrew Stubbs  <andrew.stubbs@st.com>

	* breakpoint.c (_initialize_breakpoint): Enhance break command help.

Index: src/gdb/breakpoint.c
===================================================================
--- src.orig/gdb/breakpoint.c	2005-12-01 12:05:59.000000000 +0000
+++ src/gdb/breakpoint.c	2005-12-01 12:19:28.000000000 +0000
@@ -7809,13 +7809,17 @@ See also the \"delete\" command which cl
 
   c = add_com ("break", class_breakpoint, break_command, _("\
 Set breakpoint at specified line or function.\n\
-Argument may be line number, function name, or \"*\" and an address.\n\
-If line number is specified, break at start of code for that line.\n\
-If function is specified, break at start of code for that function.\n\
+break [LOCATION] [thread THREADNUM] [if CONDITION]\n\
+The LOCATION may be a line number, function name, or \"*\" and an address.\n\
+If a line number is specified, break at start of code for that line.\n\
+If a function is specified, break at start of code for that function.\n\
 If an address is specified, break at that exact address.\n\
-With no arg, uses current execution address of selected stack frame.\n\
+With no LOCATION, uses current execution address of selected stack frame.\n\
 This is useful for breaking on return to a stack frame.\n\
 \n\
+The THREADNUM is the number from \"info threads\".\n\
+The CONDITION is a boolean expression.\n\
+\n\
 Multiple breakpoints at one place are permitted, and useful if conditional.\n\
 \n\
 Do \"help breakpoints\" for info on other commands dealing with breakpoints."));

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-02 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 12:28 [PATCH] Enhance break command help Andrew STUBBS
2005-12-01 16:57 ` Andrew STUBBS
2005-12-02  8:14   ` Eli Zaretskii
2005-12-02 13:54     ` Andrew STUBBS
2005-12-02 14:59       ` Eli Zaretskii
2005-12-02 17:30         ` Andrew STUBBS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox