From 4369a1406f2559d0d0dcdbf3edb634cd835e6fbe Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 4 Dec 1991 08:36:17 +0000 Subject: * Makefile.in: VERSION 4.2.96. * main.c (initialize_main): Revise command descriptions. * command.c (show_user): `info user' -> `show user'. * symtab.c (_initialize_symtab): Typo in `info types' desc. * coffread.c (coff_symfile_read): Avoid select_source_symtab, since it is not needed and can cause errors when examining ".o"s. (read_coff_symtab, decode_base_type): Use complain, not printf. Print symbol name, not its number. Remove "#if defined(clipper) #define BELIEVE_PCC_PROMOTION", which someday should go in a clipper target config file. * symfile.c (compact_misc_function_vector): Handle empty vector. (complain, clear_complaints, syms_from_objfile): Fix complaint formatting. * xcoffexec.c: Change syms_from_objfile caller. --- gdb/command.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'gdb/command.c') diff --git a/gdb/command.c b/gdb/command.c index 1747706..2851ad9 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -17,7 +17,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include "defs.h" -#include "command.h" +#include "gdbcmd.h" #include "symtab.h" #include "value.h" #include @@ -1152,7 +1152,7 @@ make_command (arg, from_tty) } static void -user_info_1 (c, stream) +show_user_1 (c, stream) struct cmd_list_element *c; FILE *stream; { @@ -1172,7 +1172,7 @@ user_info_1 (c, stream) /* ARGSUSED */ static void -user_info (args, from_tty) +show_user (args, from_tty) char *args; int from_tty; { @@ -1184,14 +1184,14 @@ user_info (args, from_tty) c = lookup_cmd (&args, cmdlist, "", 0, 1); if (c->class != class_user) error ("Not a user command."); - user_info_1 (c, stdout); + show_user_1 (c, stdout); } else { for (c = cmdlist; c; c = c->next) { if (c->class == class_user) - user_info_1 (c, stdout); + show_user_1 (c, stdout); } } } @@ -1206,7 +1206,8 @@ With no arguments, run an inferior shell."); add_com ("make", class_support, make_command, "Run the ``make'' program using the rest of the line as arguments."); - add_info ("user", user_info, "Show definitions of user defined commands.\n\ + add_cmd ("user", no_class, show_user, + "Show definitions of user defined commands.\n\ Argument is the name of the user defined command.\n\ -With no argument, show definitions of all user defined commands."); +With no argument, show definitions of all user defined commands.", &showlist); } -- cgit v1.1