aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-06-11 20:05:03 +0000
committerJim Blandy <jimb@codesourcery.com>2002-06-11 20:05:03 +0000
commit475b08678044b12807e00bc0cb1bb4882711af91 (patch)
treed4b3e5ed535d07eaca475b4a9ed17b90374b534d /gdb/macrocmd.c
parent2002-06-11 Daniel Jacobowitz <drow@mvista.com> (diff)
downloadbinutils-gdb-475b08678044b12807e00bc0cb1bb4882711af91.tar.gz
binutils-gdb-475b08678044b12807e00bc0cb1bb4882711af91.tar.bz2
binutils-gdb-475b08678044b12807e00bc0cb1bb4882711af91.zip
Call the command `info macro', not `show macro'.
* gdb/macrocmd.c (info_macro_command): Renamed from `show_macro_command'. Fix error message. (_initialize_macrocmd): Register `info_macro_command' in `infolist', not `showlist'. * gdb/doc/gdb.texinfo (Macros): Call the command `info macro', not `show macro'.
Diffstat (limited to 'gdb/macrocmd.c')
-rw-r--r--gdb/macrocmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c
index 1d14735bbe6..40b31541f90 100644
--- a/gdb/macrocmd.c
+++ b/gdb/macrocmd.c
@@ -135,14 +135,14 @@ show_pp_source_pos (struct ui_file *stream,
static void
-show_macro_command (char *name, int from_tty)
+info_macro_command (char *name, int from_tty)
{
struct macro_scope *ms = NULL;
struct cleanup *cleanup_chain = make_cleanup (free_current_contents, &ms);
struct macro_definition *d;
if (! name || ! *name)
- error ("You must follow the `show macro' command with the name"
+ error ("You must follow the `info macro' command with the name"
" of the macro\n"
"whose definition you want to see.");
@@ -257,9 +257,9 @@ _initialize_macrocmd (void)
add_alias_cmd ("exp1", "expand-once", no_class, 1, &macrolist);
add_cmd
- ("macro", no_class, show_macro_command,
+ ("macro", no_class, info_macro_command,
"Show the definition of MACRO, and its source location.",
- &showlist);
+ &infolist);
add_cmd
("define", no_class, macro_define_command,