John Gilmore [Fri, 1 May 1992 09:14:43 +0000 (09:14 +0000)]
* gdbtypes.c (make_{reference,pointer,function}_type): New
functions which handle overwriting of forward-referenced types
for stabs file reading.
(lookup_{reference,pointer,function}_type): These just call
the make_*_type functions with a null storage alloc parameter.
* gdbtypes.h (make_{reference,pointer,function}_type): Declare.
* xcoffread.c (smash_to_pointer_type): Remove, no longer used.
* buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
(dbx_alloc_type): Make it easier to understand. No funct change.
(define_symbol: 't'): Don't put the typedef name into the name of
the struct, union, or enum. Bugfix.
(read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
routines to properly handle overwriting preallocated types so that
forward references will work.
(read_enum_type): Force enum values to file scope, due to bug in
Sun compiler output. FIXME, fix later.
Remove unused header_file_prev_index mechanism. It was already
obsolete in gdb-3.5. These comments appeared in 3.5:
/* This code was used before I knew about the instance codes.
My first hypothesis is that it is not necessary now
that instance codes are handled. */
* dbxread.c (add_new_header_file): Remove header_file_prev_index.
* buildsym.h: Remove it and prev_index that saves it.
* buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
* solib.c (special_symbol_handling): When called from core files,
must set up debug_addr. Don't print error messages, just return.
* symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
Fred Fish [Fri, 24 Apr 1992 01:45:47 +0000 (01:45 +0000)]
Call warning() to print warnings, which deals properly with leading and
trailing newlines, as well as presenting a consistent prefix for warnings
(IE "warning: ").
Fred Fish [Fri, 24 Apr 1992 01:42:41 +0000 (01:42 +0000)]
aoutx.h (aout_<bits>_swap_exec_header_in): Zero out the internal_exec
structure before initializing the fields that are used, so that the unused
fields are in a known state. Two of these structures are memcmp'd so
any fields not explicitly initialized must be set to a known state.
Stu Grossman [Wed, 22 Apr 1992 17:01:22 +0000 (17:01 +0000)]
* symtab.c (lookup_symbol): Need to check if msymbol->name is
NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
This prevents a crash when trying to lookup the value of a
non-existent symbol.
Fred Fish [Wed, 22 Apr 1992 16:46:47 +0000 (16:46 +0000)]
Remove now obsolete signame.c and signame.h; functionality is handled by
libiberty/strsignal.c. Widespread changes to use libiberty/strerror.c
functions for errno manipulations and libiberty/strsignal.c for signo
(signals) manipulations.
Makefile.in: rework CFLAGS so that they can be set from the command
line to make. CFLAGS -> INTERNAL_CFLAGS. USER_CFLAGS -> CFLAGS.
Remove MINUS_G. Default CFLAGS to -g. Pass CFLAGS on recusions.
configure: use move-if-change from gcc to create config.status. Some
makefiles depend on config.status to tell if a directory has been
reconfigured for a different host. This change prevents those
directories from remaking everything in the case where the reconfig
was only intended to rebuild a Makefile.
configure: test for config.sub with "config.sub sun4" rather than
"config.sub ${host_alias}". Otherwise we can't tell a bad host alias
from a missing config.sub.
Fred Fish [Sat, 18 Apr 1992 02:30:28 +0000 (02:30 +0000)]
Back out of TYPE_FLAG_FUND_TYPE change, solve the problem in valprint.c by
just printing the type name from the type if it is not otherwise handled.
Implement new handling of the ".syms" file for reusable symbol files.
Fri Apr 17 09:15:31 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* bfd.c, Makefile.in: added tekhex
* aoutx.h (set_section_contents): pages should be padded to the
size of a page, not the size of a segment.
* configure.in: added go32 host and i386-aout target.
* i386aout.c, libaout.h: now works for go32 target
* ieee.c: fix bit rot.
* seclet.c: support for padding seclet type.
* relax.c: added handling for new "padding" seclet type, used to
fill out gaps between section.
* ldgram.y, ldlex.l: now -defsym on the command line is done
properly.
Fred Fish [Wed, 15 Apr 1992 05:42:00 +0000 (05:42 +0000)]
Add TYPE_FLAG_FUND_TYPE bit to the flags member of the type structure,
and use it to decide when to print the actual type name rather than
trying to invent the name of a fundamental type. This clears up the
confusion between int/long when they are the same sizes, removes one
obstacle to multi-language support (previously valprint.c thought
everything was a C type), and allows gdb to support distinctions between
explicitly and implicitly signed types when the compiler supports such
distinction in the debug output (as does every ANSI compiler I tested
except for gcc).
Fred Fish [Wed, 15 Apr 1992 05:32:58 +0000 (05:32 +0000)]
Ifdef-out debugging code, and ifdef-out code that aborts on unhandled
sections (this was causing needless gdb aborts; gdb doesn't care about
these sections anyway).
Fred Fish [Tue, 14 Apr 1992 21:41:30 +0000 (21:41 +0000)]
Fix couple of function args that expect to be passed CONST pointers, and
boolean functions that were returning NULL, which can be "void *" rather
than just bare 0.
Fred Fish [Tue, 14 Apr 1992 21:34:02 +0000 (21:34 +0000)]
Pick up SGI defines for langCplusplus, langCplusplusV2, stStruct, stUnion,
and stEnum. The last three are required to be able to build the current
checked in gdb on a non-sgi machine.
Per Bothner [Tue, 14 Apr 1992 19:02:48 +0000 (19:02 +0000)]
* configure: Add support for 'subdirs' variable, which is
like 'configdirs', except that configure doesn't re-invoke
itself for subdirs, it just creates a Makefile for each subdir.
* configure.texi: Document subdirs.