From: Stan Shebs Date: Thu, 30 Jun 1994 02:51:50 +0000 (+0000) Subject: * Makefile.in (dcache_h): Remove redundant definition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=054308add9c52ea3357e780fcf7e119faad86efe;p=binutils-gdb.git * Makefile.in (dcache_h): Remove redundant definition. (init.c): Add a comment. (top.c): Remove explicit compile action. * breakpoint.c (mention): Share code indicating location of break/watchpoints, don't print address if addressprint is off. * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h (demangle): Remove redundant declarations. * eval.c: Remove redundant function declarations. * objfiles.h: Cosmetic and grammatical improvements. * TODO: Various updates. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aad18760c3b..b468fbc7025 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,16 @@ Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com) + * Makefile.in (dcache_h): Remove redundant definition. + (init.c): Add a comment. + (top.c): Remove explicit compile action. + * breakpoint.c (mention): Share code indicating location of + break/watchpoints, don't print address if addressprint is off. + * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h + (demangle): Remove redundant declarations. + * eval.c: Remove redundant function declarations. + * objfiles.h: Cosmetic and grammatical improvements. + * TODO: Various updates. + * remote-mips.c: Replace all \r chars with \015. (mips_receive_header): Display control characters readably. (mips_xfer_memory): Add a simple progress display. diff --git a/gdb/TODO b/gdb/TODO index eed91074661..e8aee6f4d00 100644 --- a/gdb/TODO +++ b/gdb/TODO @@ -139,11 +139,6 @@ it matches the source line indicated. The prompt at end of screen should accept space as well as CR. -"List" should put you into a pseudo-"more" where you can hit space to -get more, forever to eof. (questionable--you can already hit return -to get more, and modal user interfaces are evil -kingdon, 28 Oct -1993). - Check STORE_RETURN_VALUE on all architectures. Check near it in tm-sparc.h for other bogosities. @@ -161,7 +156,7 @@ actually caused it to die. "x/10i" should shorten the long name, if any, on subsequent lines. Check through the code for FIXME comments and fix them. dbxread.c, -blockframe.c, and plenty more. +blockframe.c, and plenty more. (I count 634 as of 940621 - sts) "next" over a function that longjumps, never stops until next time you happen to get to that spot by accident. E.g. "n" over execute_command which has @@ -240,9 +235,6 @@ Handle free_named_symtab to cope with multiply-loaded object files in a dynamic linking environment. Should remember the last copy loaded, but not get too snowed if it finds references to the older copy. -The original BFD core dump reading routine would itself coredump when fed -a garbage file as a core file. Does the current one? - Generalize and Standardize the RPC interface to a target program, improve it beyond the "ptrace" interface, and see if it can become a standard for remote debugging. @@ -338,3 +330,7 @@ does). For ebmon, use ^Ak. Possible feature: A version of the "disassemble" command which shows both source and assembly code ("set symbol-filename on" is a partial solution). + +xcoffexec.c should be eliminated, contents going into either exec.c +or rs6000-nat.c. + diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 9654c479503..fa5d6f29f21 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -36,8 +36,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include -extern int demangle; /* whether to print C++ syms raw or source-form */ - static void c_type_print_args PARAMS ((struct type *, GDB_FILE *)); diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 5960369d6da..b776237d79f 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -30,7 +30,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* BEGIN-FIXME */ extern int vtblprint; /* Controls printing of vtbl's */ -extern int demangle; /* whether to print C++ syms raw or src-form */ extern void cp_print_class_member PARAMS ((char *, struct type *, GDB_FILE *, char *)); diff --git a/gdb/energize.c b/gdb/energize.c index afbfb04b0a4..6c8fdc4f7a1 100644 --- a/gdb/energize.c +++ b/gdb/energize.c @@ -411,7 +411,6 @@ energize_annotate_function(funcname, arg_mode, level) int arg_mode; int level; { - extern int demangle; char *demangled_name = NULL; if (funcname == NULL) diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 8a1fdc632fc..f7cd113eda6 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -1,5 +1,5 @@ /* Definitions for symbol file management in GDB. - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. This file is part of GDB. @@ -23,7 +23,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* This structure maintains information on a per-objfile basis about the "entry point" of the objfile, and the scope within which the entry point exists. It is possible that gdb will see more than one objfile that is - executable, each with it's own entry point. + executable, each with its own entry point. For example, for dynamically linked executables in SVR4, the dynamic linker code is contained within the shared C library, which is actually executable @@ -123,7 +123,6 @@ struct entry_info }; - /* Sections in an objfile. It is strange that we have both this notion of "sections" @@ -327,7 +326,7 @@ struct objfile /* Defines for the objfile flag word. */ /* Gdb can arrange to allocate storage for all objects related to a - particular objfile in a designated section of it's address space, + particular objfile in a designated section of its address space, managed at a low level by mmap() and using a special version of malloc that handles malloc/free/realloc on top of the mmap() interface. This allows the "internal gdb state" for a particular objfile to be @@ -371,13 +370,17 @@ extern struct objfile *object_files; /* Declarations for functions defined in objfiles.c */ -extern struct objfile *allocate_objfile PARAMS ((bfd *, int)); +extern struct objfile * +allocate_objfile PARAMS ((bfd *, int)); -int build_objfile_section_table PARAMS ((struct objfile *)); +extern int +build_objfile_section_table PARAMS ((struct objfile *)); -extern void unlink_objfile PARAMS ((struct objfile *)); +extern void +unlink_objfile PARAMS ((struct objfile *)); -extern void free_objfile PARAMS ((struct objfile *)); +extern void +free_objfile PARAMS ((struct objfile *)); extern void free_all_objfiles PARAMS ((void)); @@ -411,7 +414,6 @@ find_pc_section PARAMS((CORE_ADDR pc)); (obj) != NULL? ((nxt)=(obj)->next,1) :0; \ (obj) = (nxt)) - /* Traverse all symtabs in one objfile. */ #define ALL_OBJFILE_SYMTABS(objfile, s) \ @@ -427,7 +429,6 @@ find_pc_section PARAMS((CORE_ADDR pc)); #define ALL_OBJFILE_MSYMBOLS(objfile, m) \ for ((m) = (objfile) -> msymbols; SYMBOL_NAME(m) != NULL; (m)++) - /* Traverse all symtabs in all objfiles. */ #define ALL_SYMTABS(objfile, s) \