[m-rev.] mdb "set" command documentation
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Nov 7 05:36:46 AEDT 2003
Zoltan, I hope this doesn't overlap with your outstanding
changes in this area...
Estimated hours taken: 0.5
Branches: main
Improve the on-line documentation of the mdb "set" command.
doc/mdb_categories:
Mention the "set" command, which was previously not documented here.
trace/mercury_trace_internal.c:
Make the "set" command a part of the "parameter" commands,
not the "browsing" commands.
trace/mercury_trace_help.c:
Fix a misleading error message: errors caused by typing the
wrong arguments to the "help" command are not "internal" errors.
Workspace: /home/ceres/fjh/mercury
Index: doc/mdb_categories
===================================================================
RCS file: /home/mercury1/repository/mercury/doc/mdb_categories,v
retrieving revision 1.17
diff -u -d -r1.17 mdb_categories
--- doc/mdb_categories 23 Oct 2003 02:02:22 -0000 1.17
+++ doc/mdb_categories 6 Nov 2003 18:26:14 -0000
@@ -42,7 +42,7 @@
end
document_category 700 parameter
parameter - Commands that let users access debugger parameters.
- The parameter commands are `printlevel', `echo', `context',
+ The parameter commands are `set', `printlevel', `echo', `context',
`scroll', `mmc_options', `scope', `alias' and `unalias'.
end
Index: trace/mercury_trace_help.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_help.c,v
retrieving revision 1.20
diff -u -d -r1.20 mercury_trace_help.c
--- trace/mercury_trace_help.c 20 Oct 2003 07:29:55 -0000 1.20
+++ trace/mercury_trace_help.c 6 Nov 2003 18:29:16 -0000
@@ -176,7 +176,7 @@
);
if (error) {
- printf("internal error in the trace help system: %s\n", msg);
+ printf("error in the trace help system: %s\n", msg);
}
}
Index: trace/mercury_trace_internal.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_internal.c,v
retrieving revision 1.162
diff -u -d -r1.162 mercury_trace_internal.c
--- trace/mercury_trace_internal.c 27 Oct 2003 06:00:50 -0000 1.162
+++ trace/mercury_trace_internal.c 6 Nov 2003 18:30:38 -0000
@@ -2139,7 +2139,7 @@
if (! MR_trace_options_param_set(&print_set, &browse_set,
&print_all_set, &flat_format, &raw_pretty_format,
&verbose_format, &pretty_format, &words, &word_count,
- "browsing", "set"))
+ "parameter", "set"))
{
; /* the usage message has already been printed */
}
@@ -2148,7 +2148,7 @@
print_all_set, flat_format, raw_pretty_format,
verbose_format, pretty_format, words[1], words[2]))
{
- MR_trace_usage("browsing", "set");
+ MR_trace_usage("parameter", "set");
}
return KEEP_INTERACTING;
@@ -6843,8 +6843,6 @@
MR_trace_stack_cmd_args, MR_trace_null_completer },
{ "browsing", "current", MR_trace_cmd_current,
NULL, MR_trace_null_completer },
- { "browsing", "set", MR_trace_cmd_set,
- MR_trace_set_cmd_args, MR_trace_null_completer },
{ "browsing", "view", MR_trace_cmd_view,
MR_trace_view_cmd_args, MR_trace_null_completer },
@@ -6879,6 +6877,8 @@
{ "table_io", "table_io", MR_trace_cmd_table_io,
MR_trace_table_io_cmd_args, MR_trace_null_completer },
+ { "parameter", "set", MR_trace_cmd_set,
+ MR_trace_set_cmd_args, MR_trace_null_completer },
{ "parameter", "printlevel", MR_trace_cmd_printlevel,
MR_trace_printlevel_cmd_args, MR_trace_null_completer },
{ "parameter", "mmc_options", MR_trace_cmd_mmc_options,
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list