This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 1/3] gdb_breakpoint cleanup: Update function description
- From: Keith Seitz <keiths at redhat dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Fri, 26 Apr 2013 13:45:49 -0700
- Subject: [RFA 1/3] gdb_breakpoint cleanup: Update function description
Hi,
As requested by Pedro, I'm submitting this separately. This patch simply
updates the function documentation for gdb_breakpoint.
This patch is the only patch of the three that can be applied
independently of the other patches.
Keith
testsuite/ChangeLog
2013-04-26 Keith Seitz <keiths@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Update function description.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 06e1226..cdb7ca2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -334,16 +334,20 @@ proc gdb_start_cmd {args} {
return -1
}
-# Set a breakpoint at FUNCTION. If there is an additional argument it is
-# a list of options; the supported options are allow-pending, temporary,
-# message, no-message, and passfail.
+# Set a breakpoint at FUNCTION. If there are additional arguments,
+# they are options to alter the default behavior of this procedure.
+#
+# Supported options are:
+# allow-pending -- permit a pending breakpoint to be set
+# temporary -- set a temporary breakpoint, e.g., "tbreak"
+# message -- print PASS messages*
+# no-message -- do not print FAIL messages*
+#
# The result is 1 for success, 0 for failure.
#
-# Note: The handling of message vs no-message is messed up, but it's based
+# *Note: The handling of message vs no-message is messed up, but it's based
# on historical usage. By default this function does not print passes,
# only fails.
-# no-message: turns off printing of fails (and passes, but they're already off)
-# message: turns on printing of passes (and fails, but they're already on)
proc gdb_breakpoint { function args } {
global gdb_prompt