From 327f7197b0cf72996628cdca53d64914e366c585 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Thu, 15 Oct 1992 13:42:10 +0000 Subject: [PATCH] * Makefile.in (VERSION): Roll to 4.6.8. (OBS): Put version.o first, so Makefile rebuild happens early. * command.h: Publicize prototype for not_just_help_class_command. * command.c: Remove proto. * maint.c: Mark "mt" as an abbrev, to avoid duplicated help output. Move "maint info" from class info to class maintenance, and improve text. * infrun.c: Move "stop" to class_obscure, and give it a function so it will not be seen as a global help topic. FIXME, it should be possible to set these attributes independently. * core.c (core_command): Make nicer error message for no core support. --- gdb/ChangeLog | 8 ++++---- gdb/Makefile.in | 6 +++--- gdb/command.c | 3 --- gdb/core.c | 3 ++- gdb/maint.c | 6 +++--- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f1ca497fed..5dc671fd3c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -5,10 +5,10 @@ Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com) * command.h: Publicize prototype for not_just_help_class_command. * command.c: Remove proto. - * maint.c (maintenance_init): Mark "mt" as an abbrev, to avoid - duplicated help output. Move "maint info" from class info to - class maintenance, and improve text. - * infrun.c (): Move "stop" to class_obscure, and give it a + * maint.c: Mark "mt" as an abbrev, to avoid duplicated help + output. Move "maint info" from class info to class maintenance, + and improve text. + * infrun.c: Move "stop" to class_obscure, and give it a function so it will not be seen as a global help topic. FIXME, it should be possible to set these attributes independently. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 19d8674a6c9..b31deecaeed 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -166,7 +166,7 @@ CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \ ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} -VERSION = 4.6.7 +VERSION = 4.6.8 DIST=gdb LINT=/usr/5bin/lint @@ -286,10 +286,10 @@ TAGFILES_MAINDIR = $(SFILES_MAINDIR) $(ALLDEPFILES_MAINDIR) \ ${HFILES} ${ALLPARAM} ${POSSLIBS_MAINDIR} TARFILES = ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES} -OBS = main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ +OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ values.o eval.o valops.o valarith.o valprint.o printcmd.o \ symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \ - command.o utils.o expprint.o environ.o version.o gdbtypes.o \ + command.o utils.o expprint.o environ.o gdbtypes.o \ copying.o $(DEPFILES) mem-break.o target.o \ ieee-float.o putenv.o parse.o language.o $(YYOBJ) \ buildsym.o objfiles.o minsyms.o maint.o demangle.o \ diff --git a/gdb/command.c b/gdb/command.c index 92d83ec2e3a..9c194332190 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -45,9 +45,6 @@ parse_binary_operation PARAMS ((char *)); static void print_doc_line PARAMS ((FILE *, char *)); -extern void -not_just_help_class_command PARAMS ((char *, int)); - /* Add element named NAME to command list *LIST. FUN should be the function to execute the command; it will get a character string as argument, with leading diff --git a/gdb/core.c b/gdb/core.c index 2b45c1c66f4..ca52e39af10 100644 --- a/gdb/core.c +++ b/gdb/core.c @@ -48,6 +48,7 @@ core_file_command (filename, from_tty) int from_tty; { struct target_ops *t; + dont_repeat (); /* Either way, seems bogus. */ t = find_core_target (); @@ -57,7 +58,7 @@ core_file_command (filename, from_tty) else (t->to_open) (filename, from_tty); else - error ("unimplemented: core files"); + error ("GDB can't read core files on this machine."); } diff --git a/gdb/maint.c b/gdb/maint.c index aff04b1b9d1..9a37fe0f6bd 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -167,10 +167,10 @@ to test internal functions such as the C++ demangler, etc.", &maintenancelist, "maintenance ", 0, &cmdlist); - add_com_alias ("mt", "maintenance", class_maintenance, 0); + add_com_alias ("mt", "maintenance", class_maintenance, 1); - add_prefix_cmd ("info", class_info, maintenance_info_command, - "Commands for showing things about the program being debugged.", + add_prefix_cmd ("info", class_maintenance, maintenance_info_command, + "Commands for showing internal info about the program being debugged.", &maintenanceinfolist, "maintenance info ", 0, &maintenancelist); -- 2.30.2