binutils-gdb.git
32 years agoCOFF changes for dealing better with EPI 29K C compiler output.
John Gilmore [Sun, 21 Jun 1992 02:20:30 +0000 (02:20 +0000)]
COFF changes for dealing better with EPI 29K C compiler output.

* coffread.c (record_minimal_symbol):  Pass the minsym type to it.
Callers changed.
(coff_end_symtab):  Sort blocks if needed.  Complain if misordered.
(read_coff_symtab):  Move patch_opaque_types call from
coff_symfile_read.  Restrict it to symtabs from this objfile.
(process_coff_symbol: C_TPDEF):  Don't put ordinary foward
references on opaque type chain; just let coff_lookup_type handle 'em.
(decode_type):  Complain about tagndx values on
non-struct/union/enum types, which the EPI compiler tends to produce.

* symtab.c (list_symbols):  Make minimal symbol variable-finding work.

* tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
dependency.

* elfread.c (elf_symfile_read):  Update bfd_elf_find_section
usage to match new prototype.  Include libbfd.h to get prototype.

32 years agoTypo.
John Gilmore [Sun, 21 Jun 1992 01:56:05 +0000 (01:56 +0000)]
Typo.

32 years ago* gdb.texinfo: document `set remotedebug' and `set rstack_high_address'.
John Gilmore [Sat, 20 Jun 1992 23:32:18 +0000 (23:32 +0000)]
* gdb.texinfo:  document `set remotedebug' and `set rstack_high_address'.

32 years ago * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
Fred Fish [Sat, 20 Jun 1992 23:30:33 +0000 (23:30 +0000)]
  * infcmd.c (jump_command):  Use cleanups to avoid memory leaks.
  * stack.c (return_command):  Use cleanups to avoid memory leaks.

32 years ago* remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
John Gilmore [Sat, 20 Jun 1992 03:42:14 +0000 (03:42 +0000)]
* remote-adapt.c, remote-eb.c, remote-mm.c:  Lint.  Fix
INT_REGNUM to INTE_REGNUM.
* tm-29k.h (SDB_REG_TO_REGNUM):  Add for EPI 29K C compiler.

32 years ago* elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION so
John Gilmore [Sat, 20 Jun 1992 02:04:20 +0000 (02:04 +0000)]
* elf.c (bfd_elf_find_section):  Mark as INTERNAL_FUNCTION so
its prototype will be included in libbfd.h.  Change result type
to struct * (rather than equivalent typedef) so it can be used in
the prototype, where they typedef won't be known.
* libbfd.h:  Updated version.

32 years agoHPPA BS
Stu Grossman [Sat, 20 Jun 1992 01:00:46 +0000 (01:00 +0000)]
HPPA BS

32 years ago* sysdep-obsd.h: #include <sys/types.h> to make this more Kosher.
Stu Grossman [Fri, 19 Jun 1992 22:50:08 +0000 (22:50 +0000)]
* sysdep-obsd.h:  #include <sys/types.h> to make this more Kosher.

32 years agoHPPA merge.
Stu Grossman [Fri, 19 Jun 1992 22:48:09 +0000 (22:48 +0000)]
HPPA merge.

32 years ago* bfd.h: HPPA merge.
Stu Grossman [Fri, 19 Jun 1992 22:47:19 +0000 (22:47 +0000)]
* bfd.h:  HPPA merge.

32 years ago* configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
Stu Grossman [Fri, 19 Jun 1992 22:43:49 +0000 (22:43 +0000)]
* configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h:  HPPA merge.

32 years ago* Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
Stu Grossman [Fri, 19 Jun 1992 22:39:44 +0000 (22:39 +0000)]
* Makefile.in (c-exp.tab.c, m2-exp.tab.c):  Filter out bogus extern
declarations of malloc/realloc/free that are inserted by some
versions of yacc.
* m2-exp.y:  Prevent conflicts with TRUE and FALSE tokens by
#undeffing them.
* xm-rs6000.h:  Declare malloc/realloc/free appropriately.  Yet
another decl of strdup (this really ought to come from libiberty.h!).

32 years agoHPPA merge.
Stu Grossman [Fri, 19 Jun 1992 22:25:45 +0000 (22:25 +0000)]
HPPA merge.

32 years ago* Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h,
Stu Grossman [Fri, 19 Jun 1992 22:24:13 +0000 (22:24 +0000)]
* Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h,
targets.c:  HPPA merge.

32 years ago* config.sub: HPPA merge.
Stu Grossman [Fri, 19 Jun 1992 22:20:16 +0000 (22:20 +0000)]
* config.sub:  HPPA merge.

32 years ago* remote.c (getpkt): Error if input exceeds buffer size.
John Gilmore [Fri, 19 Jun 1992 21:09:54 +0000 (21:09 +0000)]
* remote.c (getpkt):  Error if input exceeds buffer size.
(_initialize_remote):  `set remotedebug' enables packet trace.

* dbxread.c (process_one_symbol:N_FUN):  GCC now produces relative
N_SLINE's, etc, just like Sun cc on Solaris2.

* am29k-tdep.c (read_register_stack, write_register_stack):
Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
variable.  Add `set' and `show' commands for it.
* doc/gdb.texinfo:  Document it.

* eval.c:  Avoid residue-by-zero when evaluating without side effects.
(Bug and fix found by Pierre Willard.)

* sparc-tdep.c:  Clean up slightly for Solaris2.

32 years agoFri Jun 19 12:53:28 1992 John Gilmore (gnu at cygnus.com)
John Gilmore [Fri, 19 Jun 1992 19:54:41 +0000 (19:54 +0000)]
Fri Jun 19 12:53:28 1992  John Gilmore  (gnu at cygnus.com)

* config/mh-apollo68v, mh-sco, mh-sysv, mh-sysv4}: RANLIB=true.

Mon Jun 15 13:50:34 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)

* configure.in: use mh-sysv4 on solaris2

32 years ago* configure.in: Separate Solaris2 from SYSV4 on SPARC.
John Gilmore [Fri, 19 Jun 1992 19:22:36 +0000 (19:22 +0000)]
* configure.in:  Separate Solaris2 from SYSV4 on SPARC.
* config/solaris2.mh:  Kludge around Sun compiler bug.

32 years ago * valprint.c (type_print_1): Plug memory leak. Print all
Fred Fish [Fri, 19 Jun 1992 02:43:22 +0000 (02:43 +0000)]
  * valprint.c (type_print_1):  Plug memory leak.  Print all
  C++ syms as demangled, not just functions.
  * buildsym.c (read_range_type):  When we find a signed char
  type, do a lookup of signed char, not plain char.  Plain char's
  still get looked up as plain char's elsewhere.

32 years ago1) Better fix for section "Readline Killing Commands": delete entire
Roland Pesch [Thu, 18 Jun 1992 20:03:38 +0000 (20:03 +0000)]
1) Better fix for section "Readline Killing Commands": delete entire
first paragraph.  It looks like it's left over from previous
nomenclature; term "cutting" introduced there is not used in rest of
document.  ("killing" is used instead, as in the section title and in
the following paragraph.)

2) More consistent use of @key for things to type in; in a few cases
not having it actually produced wrong doc on paper---notably "M--"
comes out as "M" followed by emdash, if in the plain Roman body
text...

32 years agoDelete dangling "There is a" at end of first paragraph under "Readline
Roland Pesch [Thu, 18 Jun 1992 19:04:16 +0000 (19:04 +0000)]
Delete dangling "There is a" at end of first paragraph under "Readline
Killing Commands".  None of our saved versions has the rest of this sentence,
whatever it may have been...

32 years ago * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
Steve Chamberlain [Thu, 18 Jun 1992 16:42:46 +0000 (16:42 +0000)]
* h8300hms.em, h8300hms.sc-sh:  do the right thing for -r
* ldexp.c:  lint
* ldlang.c(open_output): set the target arch and machine as soon
as we can. (lang_size_sections): use new macros for setting vma
* ldwrite.c: lint

32 years ago* xm-rs6000.h: Fix decls for malloc, realloc, and free.
Stu Grossman [Thu, 18 Jun 1992 00:10:11 +0000 (00:10 +0000)]
* xm-rs6000.h:  Fix decls for malloc, realloc, and free.

32 years ago* tm-rs6000.h: Remove #include of inferior.h. Fixes many
Stu Grossman [Wed, 17 Jun 1992 23:57:40 +0000 (23:57 +0000)]
* tm-rs6000.h:  Remove #include of inferior.h.  Fixes many
compilation errors.

32 years ago* xm-rs6000.h: Add decl for strdup().
Stu Grossman [Wed, 17 Jun 1992 23:56:30 +0000 (23:56 +0000)]
* xm-rs6000.h:  Add decl for strdup().

32 years ago* xm-rs6000.h: Remove #include of inferior.h. Fixes many
Stu Grossman [Wed, 17 Jun 1992 23:44:37 +0000 (23:44 +0000)]
* xm-rs6000.h:  Remove #include of inferior.h.  Fixes many
compilation errors.

32 years ago* breakpoint.c (enable_command, disable_command): Without args,
Stu Grossman [Wed, 17 Jun 1992 21:53:28 +0000 (21:53 +0000)]
* breakpoint.c (enable_command, disable_command):  Without args,
should only affect normal breakpoints and watchpoints.

32 years ago* libaout.h (aout_backend_data): Change defs of two bitfields to
Stu Grossman [Wed, 17 Jun 1992 21:05:49 +0000 (21:05 +0000)]
* libaout.h (aout_backend_data):  Change defs of two bitfields to
be unsigned chars instead to get around rs6000 compiler problem.

32 years ago * elf.c (bfd_section_from_shdr, elf_slurp_symbol_table):
Fred Fish [Wed, 17 Jun 1992 20:58:46 +0000 (20:58 +0000)]
* elf.c (bfd_section_from_shdr, elf_slurp_symbol_table):
Correct misconception that there can be only one symbol table.
Only call elf_slurp_symbol_table on the full symbol table, not
the dynamic one which is only a subset of the full one.

(The bfd library was slurping in the first ELF symbol table it
found and then ignoring any others.  For dynamically linked
executables, this happened to be the dynamic symbol table, which
is a subset of the full symbol table and only contains the
symbols that need to be used in dynamic linking.)

32 years ago* m68k-pinsn.c (print_insn_arg): Make register be const.
Stu Grossman [Wed, 17 Jun 1992 20:24:32 +0000 (20:24 +0000)]
* m68k-pinsn.c (print_insn_arg):  Make register be const.

32 years ago* xcoffexec.c: Remove ' from comment.
Stu Grossman [Wed, 17 Jun 1992 20:15:03 +0000 (20:15 +0000)]
* xcoffexec.c:  Remove ' from comment.
* xm-sun3os4.h:  Define MALLOC_INCOMPATIBLE to avoid conflicts
with decls of malloc in c-exp.tab.c (as produced by yacc).
There's got to be a better way to do this...

32 years agoDon't align sections in I960 coff files.
Ken Raeburn [Wed, 17 Jun 1992 20:06:33 +0000 (20:06 +0000)]
Don't align sections in I960 coff files.
(I know there's a GDB freeze on, but this only affects writing i960
coff files, and Steve needs it ASAP.)

32 years ago * partial-stab.h: Convert single rindex use to strrchr.
Fred Fish [Wed, 17 Jun 1992 18:14:22 +0000 (18:14 +0000)]
* partial-stab.h: Convert single rindex use to strrchr.
* mipsread.c, dbxread.c:  Remove troublesome inclusion of non-
standard <strings.h> file, now that the only single use of
rindex in the gdb source files is gone.

32 years ago * mipsread.c: Undo ill effects from including <strings.h>,
Fred Fish [Wed, 17 Jun 1992 05:23:00 +0000 (05:23 +0000)]
* mipsread.c:  Undo ill effects from including <strings.h>,
which #defines index to be strchr.  Unfortunately, index is
a member of a symbol table structure that can't be changed.
* mipsread.c:  tm-mips.h includes coff/symconst.h and coff/sym.h,
remove redundant #include's.

32 years agogratuitous white space changes merged from other prep releases
K. Richard Pixley [Wed, 17 Jun 1992 04:31:33 +0000 (04:31 +0000)]
gratuitous white space changes merged from other prep releases

32 years agoKeep mh-solaris
Stu Grossman [Wed, 17 Jun 1992 01:37:46 +0000 (01:37 +0000)]
Keep mh-solaris

32 years agoAdd move-if-change to DEVO_SUPPORT_FILES.
Stu Grossman [Wed, 17 Jun 1992 00:27:12 +0000 (00:27 +0000)]
Add move-if-change to DEVO_SUPPORT_FILES.

32 years agoAdd demangle.h to HFILES.
Stu Grossman [Tue, 16 Jun 1992 23:15:05 +0000 (23:15 +0000)]
Add demangle.h to HFILES.

32 years agoUnscrew this file... (Been up too long I think...)
Stu Grossman [Tue, 16 Jun 1992 23:14:01 +0000 (23:14 +0000)]
Unscrew this file...  (Been up too long I think...)

32 years agoMore cleanup in gdb packaging...
Stu Grossman [Tue, 16 Jun 1992 22:53:09 +0000 (22:53 +0000)]
More cleanup in gdb packaging...

32 years agoKeep sun4sol2.m{th}.
Stu Grossman [Tue, 16 Jun 1992 22:47:40 +0000 (22:47 +0000)]
Keep sun4sol2.m{th}.

32 years agoKeep tm-sun4sol2.h and xm-sun4sol2.h.
Stu Grossman [Tue, 16 Jun 1992 22:46:45 +0000 (22:46 +0000)]
Keep tm-sun4sol2.h and xm-sun4sol2.h.

32 years agoMore 29k crap to remove!
Stu Grossman [Tue, 16 Jun 1992 22:39:37 +0000 (22:39 +0000)]
More 29k crap to remove!

32 years agoOne mo time...
Stu Grossman [Tue, 16 Jun 1992 22:37:12 +0000 (22:37 +0000)]
One mo time...

32 years agoFixup install.all target so that install-texinfo can be removed properly by GDB
Stu Grossman [Tue, 16 Jun 1992 22:36:08 +0000 (22:36 +0000)]
Fixup install.all target so that install-texinfo can be removed properly by GDB
packaging procedures.

32 years agoRemove 29k/UDI stuff for now. For the time being, the original Makefile is
Stu Grossman [Tue, 16 Jun 1992 21:58:53 +0000 (21:58 +0000)]
Remove 29k/UDI stuff for now.  For the time being, the original Makefile is
called Makefile.in-29k-UDI.

32 years agoSave Makefile with 29k stuff for later.
Stu Grossman [Tue, 16 Jun 1992 21:56:24 +0000 (21:56 +0000)]
Save Makefile with 29k stuff for later.

32 years agoSave scripts.
Stu Grossman [Tue, 16 Jun 1992 21:49:08 +0000 (21:49 +0000)]
Save scripts.

32 years agoRemove 29k/UDI for now.
Stu Grossman [Tue, 16 Jun 1992 21:45:01 +0000 (21:45 +0000)]
Remove 29k/UDI for now.

32 years ago* mipsread.c: #include <strings.h> for rindex().
Stu Grossman [Tue, 16 Jun 1992 21:17:43 +0000 (21:17 +0000)]
* mipsread.c:  #include <strings.h> for rindex().

32 years agotypo
K. Richard Pixley [Tue, 16 Jun 1992 17:44:51 +0000 (17:44 +0000)]
typo

32 years agohitachi bug gix
Steve Chamberlain [Tue, 16 Jun 1992 17:12:59 +0000 (17:12 +0000)]
hitachi bug gix

32 years agoBug fixes for Hitachi
Steve Chamberlain [Tue, 16 Jun 1992 17:12:51 +0000 (17:12 +0000)]
Bug fixes for Hitachi

32 years ago * xcoffexec.c (map_vmap): Turn comment into a real C comment.
Fred Fish [Tue, 16 Jun 1992 16:03:54 +0000 (16:03 +0000)]
  * xcoffexec.c (map_vmap):  Turn comment into a real C comment.

32 years agoChanges reflecting recent changes in BFD library sources.
Ken Raeburn [Tue, 16 Jun 1992 13:35:55 +0000 (13:35 +0000)]
Changes reflecting recent changes in BFD library sources.

32 years ago* hosts/sparc.h (abort, exit): Hide these names if compiling with
Ken Raeburn [Tue, 16 Jun 1992 12:05:52 +0000 (12:05 +0000)]
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.

32 years ago[time to file a PR on cvs...]
Ken Raeburn [Tue, 16 Jun 1992 12:04:03 +0000 (12:04 +0000)]
[time to file a PR on cvs...]

Various changes to get linker working again for a.out:
 * don't set/adjust section file positions or vmas more than once
 * use correct page size and segment size when calculating them
 * deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing.  See ChangeLog for details.

Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.

32 years agoVarious changes to get linker working again for a.out:
Ken Raeburn [Tue, 16 Jun 1992 11:34:07 +0000 (11:34 +0000)]
Various changes to get linker working again for a.out:
 * don't set/adjust section file positions or vmas more than once
 * use correct page size and segment size when calculating them
 * deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing.  See ChangeLog for details.

Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.

32 years ago* dbxread.c (process_one_symbol), partial-stab.h: Ignore
Stu Grossman [Tue, 16 Jun 1992 01:43:35 +0000 (01:43 +0000)]
* dbxread.c (process_one_symbol), partial-stab.h:  Ignore
extraneous SO stabs from busted C++ compilers.

32 years ago * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
Fred Fish [Mon, 15 Jun 1992 19:32:53 +0000 (19:32 +0000)]
* config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
it is broken on ncr 3000's.

32 years ago * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
Fred Fish [Mon, 15 Jun 1992 19:29:02 +0000 (19:29 +0000)]
* config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
it is broken on ncr 3000's.
* config/mh-ncr3000 (RANLIB):  Use RANLIB=true.

32 years ago * config/ncr3000.mh (INSTALL, RANLIB): Don't use /usr/ucb/install,
Fred Fish [Mon, 15 Jun 1992 19:27:49 +0000 (19:27 +0000)]
* config/ncr3000.mh (INSTALL, RANLIB):  Don't use /usr/ucb/install,
it's broken on ncr 3000's.  Use simple "true" for RANLIB.

32 years ago * Makefile.in (VERSION): Bump to 4.5.5.
Fred Fish [Mon, 15 Jun 1992 19:25:13 +0000 (19:25 +0000)]
* Makefile.in (VERSION):  Bump to 4.5.5.
* symtab.c (decode_line_1):  Until C++ support stabilizes, when
C++ lookups fail, print possibly helpful hint about completion.
* cplus-dem.c (demangle_signature):  Fix ARM style demangling
for static data members.
* dbxread.c (dbx_psymtab_to_symtab_1):  Fix prototype.
* config/ncr3000.mh (INSTALL):  Don't use /usr/ucb/install,
it's broken on ncr3000's.

32 years agoAccept m680?0 for wrs as vxworks68. Also deleted an unreachable path to wrs.
Michael Tiemann [Mon, 15 Jun 1992 15:49:30 +0000 (15:49 +0000)]
Accept m680?0 for wrs as vxworks68.  Also deleted an unreachable path to wrs.

32 years ago* dwarfread.c (decode_modified_type): Change type of first arg.
Fred Fish [Mon, 15 Jun 1992 14:26:57 +0000 (14:26 +0000)]
* dwarfread.c (decode_modified_type):  Change type of first arg.
Change 'modifier' to char from unsigned char.  Cast single use
that needs to be unsigned char.
* symtab.h (SYMBOL_BASEREG_VALID):  Explain disabling.
* utils.c (strdup_demangled):  Add function.
* defs.h (strdup_demangled):  Add prototype.
* stack.c (return_command):  Demangle C++ function names for query.
* infcmd.c (jump_command):  Demangle C++ function names for query.
* cplus-dem.c (consume_count):  New function and prototype.
* cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
do_type):  Replace conversion code with consume_count().
* cplus-dem.c (gnu_special):  Fix demangled of static members.
* source.c (list_command):  Print demangled function names
when appropriate.  Fix supplied by Peter Schauer.

32 years ago* buildsym.c (define_symbol): Nameless types are now on several
John Gilmore [Mon, 15 Jun 1992 08:47:56 +0000 (08:47 +0000)]
* buildsym.c (define_symbol):  Nameless types are now on several
platforms; generalize them and un-ifdef them to make Solaris 2
work.

32 years ago* infcmd.c: Fix typo (reported by Rob Savoye).
John Gilmore [Mon, 15 Jun 1992 08:42:09 +0000 (08:42 +0000)]
* infcmd.c:  Fix typo (reported by Rob Savoye).
* xm-sun4sol2.h (gregset_t):  Thinko in register set definition.
* symtab.h:  Disable SYMBOL_BASEREG_VALID until it works.
* dbxread.c (dbx_psymtab_to_symtab_1):  Renamed from
psymtab_to_symtab_1.  Use current psymtab's sym_offset and symbol_size,
rather than the one for the first file in the dependency chain.

32 years ago* readline.c: Make new SIGNALS_* macros to parameterize the
John Gilmore [Mon, 15 Jun 1992 08:37:50 +0000 (08:37 +0000)]
* readline.c: Make new SIGNALS_* macros to parameterize the
ugly changes in signal blocking macro.  Use them throughout,
reducing #ifdef HAVE_POSIX_SIGNALS and HAVE_BSD_SIGNALS clutter
significantly.  Make all such places use POSIX if available,
to avoid losing with poor `sigsetmask' emulation from libiberty.

32 years ago* readline.c (insert_some_chars): Return void.
Stu Grossman [Sun, 14 Jun 1992 22:21:18 +0000 (22:21 +0000)]
* readline.c (insert_some_chars):  Return void.

32 years ago* dbxread.c (end_psymtab): Only reset texthigh if it's not already
John Gilmore [Sun, 14 Jun 1992 18:10:10 +0000 (18:10 +0000)]
* dbxread.c (end_psymtab):  Only reset texthigh if it's not already
set.  Don't reset our own texthigh, or dependency-only pst's, in
scanning all the rest of the psymtabs.
(process_one_symbol):  Fix comments around N_OBJ, N_OPT, N_UNDF.

* buildsym.h (N_UNDF):  Improve comments.
(N_LSYM, etc):  Skip types without names (":T(0,3)=sfoob...").

32 years ago* objdump.c (dump_elf_stabs): Also dump .stab.index and .stab.excl sections.
John Gilmore [Sun, 14 Jun 1992 17:52:53 +0000 (17:52 +0000)]
* objdump.c (dump_elf_stabs):  Also dump .stab.index and .stab.excl sections.
(dump_elf_stabs_1):  Split out main body of old dump_elf_stabs.
* objdump.1, binutils.texi:  Document new sections dumped.

32 years ago* symtab.h (struct symbol): Add aux_value union for preserving
Fred Fish [Sat, 13 Jun 1992 18:20:44 +0000 (18:20 +0000)]
* symtab.h (struct symbol):  Add aux_value union for preserving
an additional per-symbol value.
* symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID):  Add defines.
* frame.h (FRAME_GET_BASEREG_VALUE):  Provide default definition.
* findvar.c (read_var_value):  Use SYMBOL_BASEREG if valid.
* printcmd.c (address_info):  Use SYMBOL_BASEREG if valid.
* symmisc.c (print_symbol):  Use SYMBOL_BASEREG if valid.

32 years agoLint
John Gilmore [Sat, 13 Jun 1992 17:15:12 +0000 (17:15 +0000)]
Lint

32 years agoMake `clear_symtab_users_once' non-static so objfiles can be linked.
Michael Tiemann [Sat, 13 Jun 1992 16:20:04 +0000 (16:20 +0000)]
Make `clear_symtab_users_once' non-static so objfiles can be linked.

32 years ago* elfread.c (record_minimal_symbol_and_info): Kludged to put
John Gilmore [Sat, 13 Jun 1992 07:24:30 +0000 (07:24 +0000)]
* elfread.c (record_minimal_symbol_and_info):  Kludged to put
extra info in the minimal symbol.
(elf_symtab_read):  The extra info is the size of an ELF object,
which was kludged to us in the `udata' field of the BFD symbol.
Gag me with a crowbar...
(elf_symfile_read):  Keep track of both the absolute load address,
and the offset between load addr and symbols.  Handle STABS as
well as DWARF sections, passing the absolute load address to
elfstab_build_psymtabs.

* objfiles.c (free_objfile):  Eliminate storage leaks.  Contributed
by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
* symfile.c (symfile_bfd_open):  Comment where name is freed.
* symmisc.c (extend_psymbol_list):  Comment where list is freed.

32 years ago* dbxread.c: Add symbol_size to struct dbx_symfile_info.
John Gilmore [Sat, 13 Jun 1992 06:39:27 +0000 (06:39 +0000)]
* dbxread.c:  Add symbol_size to struct dbx_symfile_info.
Add symbol_size and file offsets to struct symloc.
Add static symbol_table_offset, string_table_offset,
file_string_table_offset, next_file_string_table_offset,
last_function_name.
(add_old_header_file):  Convert error() to complain()t.
(dbx_symfile_read):  Get symbol size via the objfile.
Also get symbol_table_offset.
(dbx_symfile_init):  Record symbol size and count via the objfile.
(dbx_next_symbol_text):  Always add file_string_table_offset when
accessing string table.
(read_dbx_symtab):  Initialize file_string_table_offset to 0.
(SET_NAMESTRING):  Use the offset.
(end_psymtab):  Large kludge to determine addresses where source
files start and end (for the psymtab header).
(psymtab_to_symtab_1):  Set file_string_table_offset before reading.
Get this, symbol size, and symbol offset, from psymtab.
(read_ofile_symtab):  Don't back up one symbol for Solaris2.
Patch up last_source_start_addr if zero in N_SO.
(process_one_symbol):  Add variable function_start_offset.
( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE):  Add ifdef for
BLOCK_ADDRESS_FUNCTION_RELATIVE.
( "", N_OBJ, N_OPT):  Ignore.
(elfstab_build_psymtabs):  New function to read stabs out of
an ELF file.

* Makefile.in:  Accept $(BISON) even though we really want $(YACC).
(gdb):  use GLOBAL_CFLAGS when linking, too.
* partial-stab.h (N_UNDF):  Deal with Sol2 relative stringtab offsets.
(N_OBJ, N_OPT):  Ignore.
('f', 'F'):  Save last function name.

* symfile.h:  Prototype elfstab_build_psymtabs.
* symfile.c:  Add almost-OK debug versions of add_psymbol_*to_list.

* xm-sysv4.h:  Add <limits.h> to avoid conflicting defns in defs.h.

32 years agoRemove reg_names decl (now in defs.h).
John Gilmore [Sat, 13 Jun 1992 06:08:09 +0000 (06:08 +0000)]
Remove reg_names decl (now in defs.h).

32 years agoAvoid ANSI C "empty translation unit" idiocy.
John Gilmore [Sat, 13 Jun 1992 06:04:03 +0000 (06:04 +0000)]
Avoid ANSI C "empty translation unit" idiocy.

32 years ago* section.c (STD_SECTION): Remove extra semicolon in declarations.
John Gilmore [Sat, 13 Jun 1992 05:58:49 +0000 (05:58 +0000)]
* section.c (STD_SECTION):  Remove extra semicolon in declarations.
* configure.in:  Rewrite target parsing to use simple format.
Handle sparc-sun-solaris2 configuration.
* aout64.h:  Avoid ANSI C brain death warning.
* elf.c:  Avoid trigraph (???) or /* in comments.

32 years agoLint
John Gilmore [Sat, 13 Jun 1992 05:56:15 +0000 (05:56 +0000)]
Lint

32 years agoLint
John Gilmore [Sat, 13 Jun 1992 05:24:22 +0000 (05:24 +0000)]
Lint

32 years agoAdd sun4sol2 => sparc-sun-solaris2.
John Gilmore [Sat, 13 Jun 1992 05:23:04 +0000 (05:23 +0000)]
Add sun4sol2 => sparc-sun-solaris2.

32 years ago* buildsym.h: Add processing_acc_compilation flag.
John Gilmore [Sat, 13 Jun 1992 02:18:44 +0000 (02:18 +0000)]
* buildsym.h:  Add processing_acc_compilation flag.
* buildsym.c (read_sun_builtin_type, read_sun_floating_type):  New.
(define_symbol):  Skip arg types in function entries.  Resolve
overloaded 'P' which acc uses for prototypes of functions called
by this file.
(read_type: 'b', 'r'):  Handle Solaris2 builtin types.

* minsyms.c (prim_record_minimal_symbol_and_info):  Hack to
save size of ELF symbols.  FIXME.
* tm-sun4os5.h:  Rename to tm-sun4sol2.h.  Update defines for Sol2.
* xm-sun4os5.h:  Rename to xm-sun4sol2.h.  Hack more defines.

* config/sun4os5.m[ht]:  Rename to config/sun4sol2.m[ht]; new xm, tm.

32 years ago* configure.in: Solaris config is sparc-sun-solaris2.
John Gilmore [Sat, 13 Jun 1992 01:56:41 +0000 (01:56 +0000)]
* configure.in:  Solaris config is sparc-sun-solaris2.
* config/sun4os5.m[ht]:  Rename to config/sun4sol2.m[ht].

32 years agochange to new solaris naming system, add sysv4 host config
David D. Zuhn [Sat, 13 Jun 1992 00:43:08 +0000 (00:43 +0000)]
change to new solaris naming system, add sysv4 host config

32 years ago * expprint.c (print_subexp): Add missing ']'.
Fred Fish [Fri, 12 Jun 1992 20:51:42 +0000 (20:51 +0000)]
* expprint.c (print_subexp):  Add missing ']'.
* defs.h (reg_names):  Fix declaration to match that in infcmd.c
* stack.c (reg_names):  Delete redundant (and inconsistent) decl.
* WHATS.NEW:  Point out improved C++ function name handling.
* gdbtypes.c (lookup_fundamental_type):  For now, use the same
type names for both implicitly and explicitly signed integral
types.  See comment in the source code.

32 years agoTwo `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
John Gilmore [Thu, 11 Jun 1992 19:34:56 +0000 (19:34 +0000)]
Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
* defs.h (longest_to_int):  Avoid void arm of ?: in error case.
* expprint.c (print_subexp):  Fix printing of register names.

32 years agoLatest and greatest, many bug fixes, value annotations, stack frame
Stu Grossman [Thu, 11 Jun 1992 17:35:58 +0000 (17:35 +0000)]
Latest and greatest, many bug fixes, value annotations, stack frame
annotations, etc...

32 years ago* objdump.1, binutils.texi: Update for --stabs. Also fix
John Gilmore [Thu, 11 Jun 1992 09:18:44 +0000 (09:18 +0000)]
* objdump.1, binutils.texi:  Update for --stabs.  Also fix
objdump's doc to use -- rather than + for long options.
(FIXME:  Not yet fixed everywhere in binutils.texinfo.)

32 years agoSmall changes from Solaris port. The big stuff is not all working yet.
John Gilmore [Thu, 11 Jun 1992 08:43:29 +0000 (08:43 +0000)]
Small changes from Solaris port.  The big stuff is not all working yet.

* inferior.h (register_valid):  Declare.
* remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h:  Remove decl.
* objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}):  Add
macros for traversing the data structures in a single objfile.
* tm-m88k.h, tm-sparc.h (REGISTER_NAMES):  Remove extra semicolon.
* tm-i960.h (REGISTER_NAMES):  Cosmetic change.
* infcmd.c:  Lint.

32 years ago#undef PC, which Solaris2 defines in sys/types.h, clobbering the
John Gilmore [Thu, 11 Jun 1992 08:29:01 +0000 (08:29 +0000)]
#undef PC, which Solaris2 defines in sys/types.h, clobbering the
termcap global variable PC.

32 years agoNew feature: --stabs prints out a .stab section from an ELF file.
John Gilmore [Thu, 11 Jun 1992 08:23:11 +0000 (08:23 +0000)]
New feature: --stabs prints out a .stab section from an ELF file.
Installed under #ifdef ELF_STAB_DISPLAY so it can be easily disabled,
since it requires bfd-internals header files and such.

32 years agoAdd N_OBJ and N_OPT from Solaris-2.
John Gilmore [Thu, 11 Jun 1992 08:15:03 +0000 (08:15 +0000)]
Add N_OBJ and N_OPT from Solaris-2.

32 years agoRegen'd from bfd.c after removing elf_core_tdata_struct.
John Gilmore [Thu, 11 Jun 1992 08:12:01 +0000 (08:12 +0000)]
Regen'd from bfd.c after removing elf_core_tdata_struct.

32 years ago* elf.c (elf_obj_tdata): Merge elf_obj_tdata_struct and
John Gilmore [Thu, 11 Jun 1992 08:10:04 +0000 (08:10 +0000)]
* elf.c (elf_obj_tdata):  Merge elf_obj_tdata_struct and
elf_core_tdata_struct into a single common struct.  Core files
wouldn't have worked at all without this.
(bfd_elf_find_section):  New function for GDB's undercover use
to find string sections that BFD hides from it.
(elf_get_str_section):  Avoid multiple alloc&reads for same data; lint.
(elf_object_p, elf_core_file_p):  Allocate internal file header
storage dynamically.
* bfd.c (union {...} tdata):  Remove elf_core_tdata_struct.
* demo64.c:  Prevent "empty translation unit" warnings from idiots.

32 years ago * i386.h: a.out magic numbers from
Steve Chamberlain [Wed, 10 Jun 1992 14:59:16 +0000 (14:59 +0000)]
* i386.h: a.out magic numbers from
mohring@informatik.tu-muenchen.de

32 years agoWed Jun 10 07:53:24 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Steve Chamberlain [Wed, 10 Jun 1992 14:57:25 +0000 (14:57 +0000)]
Wed Jun 10 07:53:24 1992  Steve Chamberlain  (sac@thepub.cygnus.com)

* objdump.c(display_info), patches from
mohring@informatik.tu-muenchen.de to print the table much more
nicely.

32 years agoKeep this just in case
Steve Chamberlain [Wed, 10 Jun 1992 14:44:52 +0000 (14:44 +0000)]
Keep this just in case

32 years ago * Everywhere: Change RANLIB=echo>/dev/null (which confuses
Per Bothner [Wed, 10 Jun 1992 06:32:35 +0000 (06:32 +0000)]
* Everywhere: Change RANLIB=echo>/dev/null (which confuses
some shells - and I don't blame them) to RANLIB=true.
* mh-solaris:  Use /usr/ucb/install for INSTALL.

32 years ago * config/{mh-ncr3000, mh-sysv4}: Add INSTALL.
Fred Fish [Wed, 10 Jun 1992 02:20:25 +0000 (02:20 +0000)]
* config/{mh-ncr3000, mh-sysv4}:  Add INSTALL.