Stu Grossman [Tue, 31 Mar 1992 01:21:01 +0000 (01:21 +0000)]
* mipsread.c (parse_symbol, parse_procedure): Re-do the way that
.gdbinfo. symbols are created. Move creation from parse_procedure
to parse_symbol, where it is fairly easy to grow the symtab. This
also fixes a symtab trashing bug on all mips-based systems.
* (got_numargs, lookup_numargs, free_numargs): Delete. Not
needed anymore.
* tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
mips_extra_func_info, and all the PROC_xxx macros that look at it.
John Gilmore [Sun, 29 Mar 1992 23:18:31 +0000 (23:18 +0000)]
* Makefile.in (VERSION): Roll to 4.4.7.
(HFILES): Add call-cmds.h.
* call-cmds.h: New header for command fns called by other files.
* breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
(breakpoint_1): Remove unused type arg. Change callers.
John Gilmore [Sun, 29 Mar 1992 18:45:43 +0000 (18:45 +0000)]
* bout.c, coff-a29k.c, coff-i960.c: Lint.
* configure.in: Add new host and target configs.
* elf.c (bfd_prstatus, bfd_fpregset): Avoid typename of register
structs, which vary; just use member name.
(elf_object_p, elf_core_file_p): Lint, fix comments.
* config/sparc-elf.mt, hosts/sysv4.h: New config files.
Fred Fish [Sat, 28 Mar 1992 21:06:23 +0000 (21:06 +0000)]
Add OBJF_SYMS flag and use it to decide whether or not we have already
tried to read symbols from a file, for mapped objfiles. This fixes a
memory leak (actually a constant memory growth) due to reading symbol
files with no debug info and thus generating no psymtabs or symtabs.
Most typically happened with shared libraries.
Fred Fish [Fri, 27 Mar 1992 01:11:08 +0000 (01:11 +0000)]
Document requirements for calling mmcheck to install corruption checking
hooks and set up to enforce the requirements. However, we still allow
unconditional installation until some complications are resolved.
Fred Fish [Fri, 27 Mar 1992 01:04:14 +0000 (01:04 +0000)]
Mostly changes to dbxread.c to preserve stringtab's on a per-objfile
basis, for use in expanding psymtabs to full symtabs. See ChangeLog
for other details.
Per Bothner [Thu, 26 Mar 1992 21:22:50 +0000 (21:22 +0000)]
* rs6000-pinsn.c: Make dis-assembly output more like
other targets: Don't print instruction in hex before
the assembly; use print_address to print out jump
destinations.
Per Bothner [Wed, 25 Mar 1992 23:07:16 +0000 (23:07 +0000)]
* command.c, main.c (various places): Use ctype.h macros
(such as isupper(x)), instead of hard-wiring in ASCII-isms
(such as (x >= 'A' && x <= 'Z')).
(There are still more of these in other files.)
* main.c (defined_command): Lower-case the user's
new command before entering it. Needed because
command lookup is case-insensitive (and also lower-cases).
(Based on Metin's earlier patch.)
Stu Grossman [Wed, 25 Mar 1992 00:22:14 +0000 (00:22 +0000)]
* mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
when calling new_symbol.
* mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
current_objfile.
Per Bothner [Tue, 24 Mar 1992 22:54:21 +0000 (22:54 +0000)]
* config/rs6000.mh: Update (for Fred's new mmalloc)
flags to disable use of GNU malloc/mmalloc.
* munch: Change SYSV rule to allow .text before the label,
as well as after, to work for AIX.
* gdbtypes.h: Minor clarifiction.
Fred Fish [Sat, 21 Mar 1992 01:56:01 +0000 (01:56 +0000)]
Many changes, most related to creating entry point information on a per-objfile
basis. See comments in objfiles.h and details in ChangeLog. Also remove
redundant definitions of FRAME_CHAIN_VALID from most of the tm-* files and
use a default definition in frame.h.
Fred Fish [Thu, 19 Mar 1992 21:57:15 +0000 (21:57 +0000)]
* coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
elfread.c (coff_symfile_finish): Add function, prototype, and
add to the xxxx_sym_fns struct for each file type. Also reformat
the xxxx_sym_fns vector to a standard format and add comments.
* coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
Pass pointer to struct objfile rather than pointer to sym_fns.
Change references inside each function accordingly. Allocate any
symbol file specific info in the per-objfile memory region.
* dbxread.c (free_and_init_header_files): Break function into
free_header_files(), called from dbx_symfile_finish(), and
init_header_files(), called from dbx_new_init().
* dbxread.c (dbx_new_init): Move deallocation things to new
dbx_symfile_finish function.
* elfread.c (elf_new_init): Call buildsym_new_init().
* objfiles.c (free_objfile): Call the appropriate symfile_finish()
routine for the objfile before deallocating other stuff.
* sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
* symfile.h: Move struct sym_fns to before struct objfile def.
Add sym_finish function pointer and change prototypes of other
function pointers to reflect passing struct objfile pointer rather
than struct sym_fns pointer.
* symfile.c: Remove now obsolete symtab_fns pointer.
* symfile.c (symfile_init): Renamed to find_sym_fns, and now only
locates the correct sym_fns struct for the given objfile.
* symfile.c (syms_from_objfile, symbol_file_add): Restructured
for better support of mapped symbol tables.
* symfile.c (symbol_file_command): Remove obsolete code using
symfile_fns.
* symfile.h: Remove duplicate declarations for symfile_objfile,
entry_point, and object_files.
* target.c (target_info): Compare symfile_objfile to NULL.
* xcoffread.c (aixcoff_new_init): Move deallocation stuff to
aixcoff_symfile_finish().
Fred Fish [Thu, 19 Mar 1992 02:26:25 +0000 (02:26 +0000)]
Add and use definition for IN_SOLIB_TRAMPOLINE which allows wait_for_inferior
to test whether or not it has stepped into the glue that binds an
application to a shared library routine.
Per Bothner [Thu, 19 Mar 1992 00:05:35 +0000 (00:05 +0000)]
Some improvements to g++ debugging.
* symtab.c (list_symbols): demangle before pattern matching.
* symtab.c: Other fixes to improve handing of operators.
* valprint.c (type_print_base): Fix test for constructor.
* values.c (value_static_field): Allow evaluation of
CLASS::METHOD, returning a function pointer.
John Gilmore [Sat, 14 Mar 1992 05:40:34 +0000 (05:40 +0000)]
* mipsread.c (mipscoff_symfile_read): Eliminate a lot of
useless code, including an lseek to an uninitialized variable.
Reported by Jim Williams <jimbo@wrs.com>.
Roland Pesch [Sat, 14 Mar 1992 00:07:37 +0000 (00:07 +0000)]
(1) GDB 4.5: another Grossman/Gilmore co-production!
(2) Add fnf to GDB credits for SVr4 stuff. (Need to sift ChangeLog again for
more recent credits).
(3) document "mapped", "readnow" keywords (with file or symbol-file commands;
for now no mention of add-symbol-file in this context), -m and -mapped
cmd-line options, and associated explanations.
Roland Pesch [Fri, 13 Mar 1992 22:56:28 +0000 (22:56 +0000)]
(1) Document printmsyms; slight clarifications to description of printsyms,
printpsyms.
(2) Fix errors found by makeinfo.
(3) Initial docn for "info proc" and its subcommands. Should probably
be expanded somewhat after implementation complete.
* config/mt-<foo> renamed to <foo>.mt
* config/mh-<foo> renamed to <foo>.mt
* configure.in changed to reflect this
* genscripts.sh now make .xbn files rather than .xN files