aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-12-04 08:36:17 +0000
committerJohn Gilmore <gnu@cygnus>1991-12-04 08:36:17 +0000
commit4369a1406f2559d0d0dcdbf3edb634cd835e6fbe (patch)
treea83aaa0c4cb2e5e1463687ffb7d86c771c33c98b /gdb/command.c
parent01a8219f154307cd1df4c4e04fb97ba52ec7924c (diff)
downloadgdb-4369a1406f2559d0d0dcdbf3edb634cd835e6fbe.zip
gdb-4369a1406f2559d0d0dcdbf3edb634cd835e6fbe.tar.gz
gdb-4369a1406f2559d0d0dcdbf3edb634cd835e6fbe.tar.bz2
* 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.
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c15
1 files changed, 8 insertions, 7 deletions
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 <stdio.h>
#include "defs.h"
-#include "command.h"
+#include "gdbcmd.h"
#include "symtab.h"
#include "value.h"
#include <ctype.h>
@@ -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);
}