binutils-gdb.git
31 years ago * gdb.stabs/hppa.mt: A makefile fragment for the PA.
Jeff Law [Sun, 14 Nov 1993 07:20:53 +0000 (07:20 +0000)]
* gdb.stabs/hppa.mt: A makefile fragment for the PA.
* gdb.stabs/configure.in (hppa*-*-*): Use it.
* gdb.stabs/hppa.sed: New sed script for the PA.

31 years ago * gdb.stabs: Re-write weird.def and configuration to use sed
Jim Kingdon [Sun, 14 Nov 1993 06:50:42 +0000 (06:50 +0000)]
* gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.

31 years ago * stabsread.c (read_type): Skip the colon when reading a
Jim Kingdon [Sun, 14 Nov 1993 06:40:47 +0000 (06:40 +0000)]
* stabsread.c (read_type): Skip the colon when reading a
cross-reference.  Only complain, not error_type, on unrecognized
cross-reference types.  error_type, not dump core, if the colon is
missing.

31 years ago * stabs.texinfo (Nested Symbols): New node.
Jim Kingdon [Sun, 14 Nov 1993 06:33:55 +0000 (06:33 +0000)]
* stabs.texinfo (Nested Symbols): New node.
(String Field, Symbol Descriptors, Cross-References): Refer to it.

31 years ago * gdb.stabs: Re-write weird.def and configuration to use sed
Jim Kingdon [Sun, 14 Nov 1993 05:57:47 +0000 (05:57 +0000)]
* gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.

31 years ago * gdb.stabs: Re-write weird.def and configuration to use sed
Jim Kingdon [Sun, 14 Nov 1993 05:35:22 +0000 (05:35 +0000)]
* gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.

31 years ago * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
Jeff Law [Sun, 14 Nov 1993 01:32:09 +0000 (01:32 +0000)]
    * som.c (som_bfd_reloc_type_lookup): Add missing prototype.  Returns
        a pointer to constant data.  Delete bogus #define which made the
        function useless.

31 years ago * som.c (som_begin_writing): New function.
Jeff Law [Sun, 14 Nov 1993 00:56:58 +0000 (00:56 +0000)]
* som.c (som_begin_writing): New function.

31 years ago * som.c (som_write_space_strings): New function.
Jeff Law [Sun, 14 Nov 1993 00:33:00 +0000 (00:33 +0000)]
* som.c (som_write_space_strings): New function.
(som_write_symbol_strings): New function.

31 years ago * som.c (som_write_fixups): New function.
Jeff Law [Sun, 14 Nov 1993 00:00:05 +0000 (00:00 +0000)]
* som.c (som_write_fixups): New function.

31 years ago * som.c (som_prep_for_fixups): New function.
Jeff Law [Sat, 13 Nov 1993 23:28:34 +0000 (23:28 +0000)]
    * som.c (som_prep_for_fixups): New function.

31 years agofix NAME hyphen
David MacKenzie [Sat, 13 Nov 1993 15:16:23 +0000 (15:16 +0000)]
fix NAME hyphen

31 years ago * som.c (som_write_object_contents): Do not abort. Flesh out.
Jeff Law [Sat, 13 Nov 1993 08:57:07 +0000 (08:57 +0000)]
    * som.c (som_write_object_contents): Do not abort.  Flesh out.
        (som_set_section_contents): Do not abort.  Flesh out.

31 years ago * som.c (som_build_and_write_symbol_table): New function.
Jeff Law [Sat, 13 Nov 1993 08:37:14 +0000 (08:37 +0000)]
* som.c (som_build_and_write_symbol_table): New function.

31 years ago * som.c (som_write_headers): New function.
Jeff Law [Sat, 13 Nov 1993 08:02:43 +0000 (08:02 +0000)]
    * som.c (som_write_headers): New function.

31 years ago * som.c (som_reloc_call): New function.
Jeff Law [Sat, 13 Nov 1993 07:22:06 +0000 (07:22 +0000)]
* som.c (som_reloc_call): New function.

31 years ago * som.c (som_sizeof_headers): Add missing prototype.
Jeff Law [Sat, 13 Nov 1993 06:52:07 +0000 (06:52 +0000)]
    * som.c (som_sizeof_headers): Add missing prototype.
        (som_set_arch_mach): Do not abort.

31 years ago * som.c (som_prep_headers): New function.
Jeff Law [Sat, 13 Nov 1993 06:44:29 +0000 (06:44 +0000)]
* som.c (som_prep_headers): New function.

31 years ago * config/tc-hppa.[ch]: Fix assorted trivial indention problems.
Jeff Law [Sat, 13 Nov 1993 01:08:50 +0000 (01:08 +0000)]
    * config/tc-hppa.[ch]: Fix assorted trivial indention problems.

31 years ago * config/obj-som.c (obj_som_version): Add missing ';'.
Jeff Law [Sat, 13 Nov 1993 00:54:15 +0000 (00:54 +0000)]
    * config/obj-som.c (obj_som_version): Add missing ';'.
        (som_frob_file): Delete whitespace at EOL.

31 years ago * som.c (som_count_spaces): New function.
Jeff Law [Sat, 13 Nov 1993 00:39:20 +0000 (00:39 +0000)]
    * som.c (som_count_spaces): New function.
        (som_count_subspaces): New function.
        (compare_syms): New function.
        (som_compute_checksum): New function.

31 years ago * som.c (hppa_som_gen_reloc_type): New function.
Jeff Law [Sat, 13 Nov 1993 00:28:06 +0000 (00:28 +0000)]
    * som.c (hppa_som_gen_reloc_type): New function.
        (som_bfd_reloc_type_lookup): New function.

31 years ago * config/m68k/tm-sun3.h: Disable use of alternate breakpoint insn
Stu Grossman [Sat, 13 Nov 1993 00:26:06 +0000 (00:26 +0000)]
* config/m68k/tm-sun3.h:  Disable use of alternate breakpoint insn
when doing remote stuff.

31 years ago * som.c (try_prev_fixup): New function.
Jeff Law [Sat, 13 Nov 1993 00:16:17 +0000 (00:16 +0000)]
* som.c (try_prev_fixup): New function.
(som_reloc_skip): New function.
(som_reloc_addend): New function.

31 years ago * som.c (som_initialize_reloc_queue): New function.
Jeff Law [Sat, 13 Nov 1993 00:07:20 +0000 (00:07 +0000)]
* som.c (som_initialize_reloc_queue): New function.
(som_reloc_queue_insert): Likewise.
(som_reloc_queue_fix): Likewise.
(som_reloc_queue_find): Likewise.

31 years ago* c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab.
Jim Kingdon [Sat, 13 Nov 1993 00:06:49 +0000 (00:06 +0000)]
* c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab.

31 years ago * som.c (som_hppa_howto_table): SOM howto relocation table.
Jeff Law [Fri, 12 Nov 1993 23:49:58 +0000 (23:49 +0000)]
    * som.c (som_hppa_howto_table): SOM howto relocation table.
        (hppa_som_reloc): New function.

31 years agoversion number updated following 2.2 release
Ken Raeburn [Fri, 12 Nov 1993 23:44:55 +0000 (23:44 +0000)]
version number updated following 2.2 release

31 years ago * som.c (struct reloc_queue): New structure to keep track of
Jeff Law [Fri, 12 Nov 1993 23:43:24 +0000 (23:43 +0000)]
* som.c (struct reloc_queue): New structure to keep track of
the last four multibyte relocations emitted.
(enum pa_symbol_type): Type to fully describe the symbol types
associated with .import/.export assembler directives.

31 years ago * som.c: Include libhppa.h
Jeff Law [Fri, 12 Nov 1993 23:39:35 +0000 (23:39 +0000)]
* som.c: Include libhppa.h

31 years ago * som.c (bfd_som_set_section_attributes): New function.
Jeff Law [Fri, 12 Nov 1993 23:36:04 +0000 (23:36 +0000)]
* som.c (bfd_som_set_section_attributes): New function.
(bfd_som_set_subsection_attributes): Likewise.
(bfd_som_set_symboL_type): Likewise.
(bfd_som_attach_unwind_info): Likewise.
* som.h: Declare new exported functions.

31 years ago * som.h (struct som_symbol): Add new fields to hold additional
Jeff Law [Fri, 12 Nov 1993 23:08:13 +0000 (23:08 +0000)]
* som.h (struct som_symbol): Add new fields to hold additional
information needed to build/write symbol tables and fixup streams.
(struct som_section_data_struct): Add new fields to hold additional
information needed to build/write space and subspace headers.
(som_symbol_data): New accessor macro for SOM symbol information.
(R_HPPA_*): Basic relocation types to be used by the assembler.

31 years ago * config/tc-hppa.c (hppa_fix_struct): Use a real type for the
Jeff Law [Fri, 12 Nov 1993 22:54:41 +0000 (22:54 +0000)]
* config/tc-hppa.c (hppa_fix_struct): Use a real type for the
field selector, rather than an int.  All uses of field selectors
fixed.
(tc_gen_reloc): For SOM PLABELs, always set addend to zero for now.
(md_apply_fix_1): Do not call hppa_field_adjust for any PLABEL
field.

31 years ago * partial-stab.h: Ignore ':' symbol descriptors. Same case as
Jim Kingdon [Fri, 12 Nov 1993 22:30:05 +0000 (22:30 +0000)]
* partial-stab.h: Ignore ':' symbol descriptors.  Same case as
Kung's stabsread.c change.

31 years ago * stabs.texinfo (Nested Symbols): New node.
Jim Kingdon [Fri, 12 Nov 1993 22:18:29 +0000 (22:18 +0000)]
* stabs.texinfo (Nested Symbols): New node.
(String Field, Symbol Descriptors): Refer to it.

31 years ago* gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
Jim Kingdon [Fri, 12 Nov 1993 21:32:42 +0000 (21:32 +0000)]
* gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.

31 years agoModified Files:
Kung Hsu [Fri, 12 Nov 1993 19:34:24 +0000 (19:34 +0000)]
Modified Files:
ChangeLog stabsread.c

        * stabsread.c (patch_block_stabs, define_symbol, read_type): in
        g++ template instantiation, nested class can be part of the
        params, and '::' can gets into symbol or type names. This is
        to fix the problem. (fix pr3837)

31 years agoModified Files:
Kung Hsu [Fri, 12 Nov 1993 19:21:13 +0000 (19:21 +0000)]
Modified Files:
gdbtypes.c ChangeLog

        * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer
        to struct/union case. (fix pr3857)

31 years ago * coff-solib.c (coff_solib_add): Cast result of alloca().
Stu Grossman [Fri, 12 Nov 1993 18:59:43 +0000 (18:59 +0000)]
* coff-solib.c (coff_solib_add):  Cast result of alloca().
* m68k-tdep.c (m68k_saved_pc_after_call):  Get rid of
GDB_TARGET_IS_SUN3.  Use more general SYSCALL_TRAP macro.
* config/m68k/m68klynx.mh (NATDEPFILES):  Remove exec.o (it's
already in TDEPFILES).
* config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL):  Use
m68k_saved_pc_after_call.
* Remove all Sun3 specific stuff.
* (FIX_CALL_DUMMY):  Cast arg to bfd_putb32 to unsigned char *.
* config/m68k/tm-m68klynx.h:  Define SYSCALL_TRAP as trap #10.
Disable REMOTE_BREAKPOINT mechanism.
* config/m68k/tm-sun3.h:  Get rid of GDB_TARGET_IS_SUN3.
* Protect from multiple includion.
* Move Sun3 specific stuff from tm-m68k.h to here.
* Define SYSCALL_TRAP as trap #0.
* Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h).
* gdbserver/low-lynx.c:  Redo all register store/fetch stuff to
make it portable for 386 and 68k.

31 years ago * trad-core.c (trad_unix_core_file_p): If new hook
Jim Kingdon [Fri, 12 Nov 1993 17:10:56 +0000 (17:10 +0000)]
* trad-core.c (trad_unix_core_file_p): If new hook
TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
corefile being too big.
* hosts/i386sco.h: Define it.

31 years ago * mips-tdep.c (init_extra_frame_info): Check to see whether the
Jim Kingdon [Fri, 12 Nov 1993 16:35:59 +0000 (16:35 +0000)]
* mips-tdep.c (init_extra_frame_info): Check to see whether the
registers mentioned in the proc_desc have been saved.  This
generalizes mips_in_lenient_prologue in the sense that we keep
searching until we've found saves for all the registers, not just
look for a "lenient prologue" pattern.
* mips-tdep.c: #if 0 lenient prologue code.

* mips-tdep.c (heuristic_proc_desc): Don't assume a host short
is 16 bits.

31 years ago* config/i386/i386sol2.mh: Comment out corelow.o.
Jim Kingdon [Fri, 12 Nov 1993 05:33:56 +0000 (05:33 +0000)]
* config/i386/i386sol2.mh: Comment out corelow.o.

31 years ago * printcmd.c (address_info): Use filtered, not unfiltered functions.
Jim Kingdon [Fri, 12 Nov 1993 02:06:50 +0000 (02:06 +0000)]
* printcmd.c (address_info): Use filtered, not unfiltered functions.
We should be able to deal with a QUIT here.

31 years agoMore correct m68k LynxOS support
Stan Shebs [Fri, 12 Nov 1993 00:37:00 +0000 (00:37 +0000)]
More correct m68k LynxOS support

31 years ago * config/tc-hppa.c (pa_type_args): For .import statements,
Jeff Law [Thu, 11 Nov 1993 23:51:20 +0000 (23:51 +0000)]
    * config/tc-hppa.c (pa_type_args): For .import statements,
        silently ignore attempt to change the symbol type for a function
        from ST_ENTRY to ST_CODE on .import

31 years ago * bfd.c (struct _bfd): Add hppabsd_core_data.
Jeff Law [Thu, 11 Nov 1993 23:44:36 +0000 (23:44 +0000)]
* bfd.c (struct _bfd): Add hppabsd_core_data.
* targets.c (target_vector): Add hppabsd_core_vec.
* hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
section is encountered during core section scanning.
* hppabsd-core.c: New file.
* config/hppabsd.mh: Enable HPPA BSD core files.

31 years ago * printcmd.c (address_info): Use fprintf_symbol_filtered
Jeff Law [Thu, 11 Nov 1993 23:27:21 +0000 (23:27 +0000)]
* printcmd.c (address_info): Use fprintf_symbol_filtered
to print the symbol name.

* stabsread.c (define_symbol): Handle cfront lossage for
struct/union/enums and typedefs.

* partial-stab.h (case N_BINCL): Update psymtab_language
as appropriate when changing subfiles.
(case N_SOL): Update psymtab_language as appropriate when
changing subfiles.  Add typedef for structs, unions, and enums
when processing C++ files.

31 years ago * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
Jeff Law [Thu, 11 Nov 1993 23:17:51 +0000 (23:17 +0000)]
* elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud.  Remove code
which is either commented out or ifdef'd out.  Add, update and
clean comments.  Fix various indention and spacing problems.  Handle
problems related to using "ble" to jump to a stub rather than "bl"
(%r31 is trashed by "ble", but not by "bl").
(NEW_INSTRUCTION): Put inside curly braces.
(CURRENT_STUB_OFFSET): Fix indention problems.
(hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
Add, update and clean comments.  Handle "ble" %r31 lossage problems.
(hppa_elf_build_long_branch_stub): Likewise.
(hppa_look_for_stubs_in_section): Likewise.
(hppa_elf_stub_check): Remove obsolete function.

* hppa_stubs.h: Add new instructions to deal with %r31 lossage
problems.  Delete unused instructions.

31 years ago * stabs.texinfo (Stabs in ELF): Clarify how Bbss.bss work with respect
Jim Kingdon [Thu, 11 Nov 1993 21:35:07 +0000 (21:35 +0000)]
* stabs.texinfo (Stabs in ELF): Clarify how Bbss.bss work with respect
to picking which Bbss.bss symbol to use, and (because there seems to
be no good way of doing it) re-write some of the text to make it
sound like Bbss.bss isn't such a great idea after all (as currently
designed).

31 years agoif we're on lynx, set up GNU_MAKE and CONFIG_SHELL in FLAGS_TO_PASS to
Mark Eichin [Thu, 11 Nov 1993 20:35:30 +0000 (20:35 +0000)]
if we're on lynx, set up GNU_MAKE and CONFIG_SHELL in FLAGS_TO_PASS to
override "generic" (ie. incorrect) values of "" and /usr/latest/bin/make

31 years agokeep run.1
David D. Zuhn [Thu, 11 Nov 1993 20:07:08 +0000 (20:07 +0000)]
keep run.1

31 years ago * gdb.texinfo (C): In addition to saying people have to use g++ for
Jim Kingdon [Thu, 11 Nov 1993 19:58:00 +0000 (19:58 +0000)]
* gdb.texinfo (C): In addition to saying people have to use g++ for
good results, say they have to use stabs.  Specifically say cfront
doesn't work well.
(Summary): Merge in information on Modula-2, Pascal, and Chill from
the gdb README.  Add xrefs to places where the support for the various
languages is described in detail.

31 years ago * README: Remove information on languages and just cite the (newly
Jim Kingdon [Thu, 11 Nov 1993 19:52:49 +0000 (19:52 +0000)]
* README: Remove information on languages and just cite the (newly
updated) information in doc/gdb.texinfo instead.

31 years agokeep pagas and utils
David D. Zuhn [Thu, 11 Nov 1993 19:50:02 +0000 (19:50 +0000)]
keep pagas and utils

31 years ago* delta68-nat.c: Fix typos (add missing ");" and stuct -> struct).
Jim Kingdon [Thu, 11 Nov 1993 19:24:46 +0000 (19:24 +0000)]
* delta68-nat.c: Fix typos (add missing ");" and stuct -> struct).

31 years ago* config.guess: Recognize Sony news mips running newsos.
Jim Kingdon [Thu, 11 Nov 1993 18:07:50 +0000 (18:07 +0000)]
* config.guess: Recognize Sony news mips running newsos.

31 years agoremove sh-hms from hppa
David D. Zuhn [Thu, 11 Nov 1993 03:09:24 +0000 (03:09 +0000)]
remove sh-hms from hppa

31 years agoremove mh-unixware; we always use svr4 now.
David Henkel-Wallace [Wed, 10 Nov 1993 22:59:47 +0000 (22:59 +0000)]
remove mh-unixware; we always use svr4 now.

31 years ago * write.h (fixS): Rename fx_callj field to fx_tcbit.
Ian Lance Taylor [Wed, 10 Nov 1993 22:06:06 +0000 (22:06 +0000)]
* write.h (fixS): Rename fx_callj field to fx_tcbit.
* write.c, config/obj-coff.c, config/obj-coffbfd.c,
config/tc-i960.c: Corresponding changes.

31 years agochangelog for build-all.mk semicolon change
Mark Eichin [Wed, 10 Nov 1993 21:58:34 +0000 (21:58 +0000)]
changelog for build-all.mk semicolon change

31 years agoall-cygnus, build-cygnus: "fi else" needs to be "fi ; else"
Mark Eichin [Wed, 10 Nov 1993 21:56:23 +0000 (21:56 +0000)]
all-cygnus, build-cygnus: "fi else" needs to be "fi ; else"

31 years ago * dbxread.c (process_one_symbol, N_RBRAC): Don't clear
Jim Kingdon [Wed, 10 Nov 1993 21:05:38 +0000 (21:05 +0000)]
* dbxread.c (process_one_symbol, N_RBRAC): Don't clear
within_function just because local_symbols is NULL.  It appears
that this bug has existed since the 10 Apr 89 change which started
clearing within_function here.

31 years ago * dbxread.c: Remove BELIEVE_PCC_PROMOTION define. The code which
Jim Kingdon [Wed, 10 Nov 1993 19:42:31 +0000 (19:42 +0000)]
* dbxread.c: Remove BELIEVE_PCC_PROMOTION define.  The code which
used this was moved to stabsread.c a long time ago.

31 years ago * config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
Jim Kingdon [Wed, 10 Nov 1993 19:32:22 +0000 (19:32 +0000)]
* config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
* config/m68k/{tm-hp300bsd.h,tm-hp300hpux.h,tm-m68k-em.h,
tm-monitor.h,tm-sun3.h,tm-vx68.h}, config/sparc/tm-sparc.h:
Define BELIEVE_PCC_PROMOTION.

31 years ago * dstread.c (dst_sym_fns): Update for flavours.
Jim Kingdon [Wed, 10 Nov 1993 16:31:17 +0000 (16:31 +0000)]
* dstread.c (dst_sym_fns): Update for flavours.
* symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
* dstread.c (dst_symfile_offsets): Set objfile->num_sections.

31 years ago gcc -Wall lint:
Jim Kingdon [Wed, 10 Nov 1993 15:58:48 +0000 (15:58 +0000)]
gcc -Wall lint:
* thread.c: Include "gdbcmd.h" and <ctype.h>.
* Makefile.in: Update dependency.
* thread.c (thread_command): Remove unused variable p.
* values.c (unpack_double): Use len instead of TYPE_LENGTH (type).
* valprint.c (print_floating): Correctly check sign bit now that
we are using unsigned arithmetic.
* symtab.c (find_pc_line_range): Remove unused variables exact_match,
ind, and l.

31 years agoModified Files:
Kung Hsu [Wed, 10 Nov 1993 01:47:09 +0000 (01:47 +0000)]
Modified Files:
valarith.c ChangeLog

        * valarith.c (value_x_binop): fix search operator in class bug
        * valarith.c (value_x_unop): fix search operator in class bug

31 years ago * Makefile.in (init.c): Add udi2go32.o to list of files that we
Jim Kingdon [Wed, 10 Nov 1993 01:34:39 +0000 (01:34 +0000)]
* Makefile.in (init.c): Add udi2go32.o to list of files that we
should not try to search for _initialize_* functions.

* remote-udi.c (udi_wait): Change UDIGdb_StdoutReady back to
UDIStdoutReady.  It accidentally got changed on 24 Oct 93 when
stdout was changed to gdb_stdout.  Likewise for UDIGetStdout,
UDIStderrReady, and UDIGetStderr.

31 years agodon't ever use sh explicitly
Mark Eichin [Tue, 9 Nov 1993 23:32:04 +0000 (23:32 +0000)]
don't ever use sh explicitly
for lynxos, set SHELL=/bin/bash

31 years agoadd patsubst %-lynxos to subst-from-hell in stamp-[34]stage-compared.
Mark Eichin [Tue, 9 Nov 1993 22:07:50 +0000 (22:07 +0000)]
add patsubst %-lynxos to subst-from-hell in stamp-[34]stage-compared.
Maybe someday I'll learn enough of gnumake to turn this into something
reasonable...

31 years agoSame as last time (putc_unfiltered) only this time having saved the
Thomas Lord [Tue, 9 Nov 1993 21:29:50 +0000 (21:29 +0000)]
Same as last time (putc_unfiltered) only this time having saved the
modified source before checking it in.

31 years agoEntries for several checkins.
Ian Lance Taylor [Tue, 9 Nov 1993 21:28:19 +0000 (21:28 +0000)]
Entries for several checkins.

31 years agoFixed too many args to putc_unfiltered.
Thomas Lord [Tue, 9 Nov 1993 21:15:55 +0000 (21:15 +0000)]
Fixed too many args to putc_unfiltered.

31 years ago * elfcode.h (elf_object_p): Rather than looking through an array
Ian Lance Taylor [Tue, 9 Nov 1993 21:08:58 +0000 (21:08 +0000)]
* elfcode.h (elf_object_p): Rather than looking through an array
of architectures, get the ELF EM_xxx code from the backend
information.  Let the generic ELF target match any EM_xxx code not
matched by another ELF target.  Call elf_backend_object_p to let
the backend do more checks and set global information.
* libelf.h (struct elf_backend_data): Added elf_machine_code and
elf_backend_object_p fields.
(struct bfd_elf_arch_map): Removed.
(bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
* elf32-target.h, elf64-target.h: Initialize elf_machine_code
field with ELF_MACHINE_CODE.  Initialize elf_backend_object_p
field with elf_backend_object_p (if it is defined).
* elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
elf64-gen.c (ELF_MACHINE_CODE): Defined.
* elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
routines.
(mips_elf_object_p): Set the right machine number.
(mips_elf_ecoff_debug_swap): Defined.
(elf_backend_object_p): Defined to be mips_elf_object_p.
(elf_backend_ecoff_debug_swap): Defined to be
mips_elf_ecoff_debug_swap.
* elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.

* elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
for R_MIPS_26.  Correct overflow detection requires matching the
upper four bits of the destination against the PC.  From Ted Lemon
<mellon@pepper.ncd.com>.

* elf32-hppa.c (elf_hppa_reloc_type_lookup): Return type
should point to const data.

31 years ago * Makefile.in (BASE_FLAGS_TO_PASS): pass SHELL.
Mark Eichin [Tue, 9 Nov 1993 20:57:07 +0000 (20:57 +0000)]
* Makefile.in (BASE_FLAGS_TO_PASS): pass SHELL.

(needed for CONFIG_SHELL to actually work)

31 years ago * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
Ian Lance Taylor [Tue, 9 Nov 1993 20:23:47 +0000 (20:23 +0000)]
* nlmconv.c (i386_mangle_relocs): Adjust reloc address by
section output_offset.

31 years agoFix a braino
Stan Shebs [Tue, 9 Nov 1993 19:43:51 +0000 (19:43 +0000)]
Fix a braino

31 years agoFixed a few regular typos (@var for @value).
Roland Pesch [Tue, 9 Nov 1993 19:07:05 +0000 (19:07 +0000)]
Fixed a few regular typos (@var for @value).

31 years ago* utils.c (quit): Also call gdb_flush on standard output and error.
Jim Kingdon [Tue, 9 Nov 1993 18:50:22 +0000 (18:50 +0000)]
* utils.c (quit): Also call gdb_flush on standard output and error.

31 years ago * .gdbinit: Remove "source /.gdbinit". It causes a spurious error
Jim Kingdon [Tue, 9 Nov 1993 18:28:04 +0000 (18:28 +0000)]
* .gdbinit: Remove "source /.gdbinit".  It causes a spurious error
if /.gdbinit doesn't exist (and I know of no convention of putting
something in /.gdbinit).

31 years ago * libelf.h: Added some comments.
Ian Lance Taylor [Tue, 9 Nov 1993 16:33:28 +0000 (16:33 +0000)]
* libelf.h: Added some comments.
(struct elf_backend_data): Added elf_backend_ecoff_debug_swap
field.  Removed unused write_relocs field.
* elf32-target.h: Adjusted elf_backend_data initialization
accordingly.
* elf64-target.h: Corrected elf_backend_data initialization to
fill in all fields and to set elf_64_p to 1.

31 years ago * Makefile.in (distclean): Delete config-stamp and config.h
Jeff Law [Tue, 9 Nov 1993 09:57:02 +0000 (09:57 +0000)]
    * Makefile.in (distclean): Delete config-stamp and config.h

31 years ago * config/tc-hppa.c (evaluate_absolute): Avoid relying on
Jeff Law [Tue, 9 Nov 1993 09:52:59 +0000 (09:52 +0000)]
    * config/tc-hppa.c (evaluate_absolute): Avoid relying on
        ANSI-C features.

31 years ago * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
Jeff Law [Tue, 9 Nov 1993 08:51:02 +0000 (08:51 +0000)]
    * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
        Accept new argument "is_export".  All callers changed.  When
        processing a .export directive for a function, do not allow
        the user to set the type to "CODE", instead warn and set the
        type to "ENTRY".

31 years agoModified Files:
Kung Hsu [Tue, 9 Nov 1993 02:22:12 +0000 (02:22 +0000)]
Modified Files:
cp-valprint.c ChangeLog

        * cp-valprint.c (cp_print_value_fields): change output from <no
        value> to <optimized out or zero length>

31 years agoRUNTEST = test for existance of a runtest in the source tree first.
Jeffrey Wheat [Tue, 9 Nov 1993 01:42:17 +0000 (01:42 +0000)]
RUNTEST = test for existance of a runtest in the source tree first.

31 years ago * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
Ian Lance Taylor [Mon, 8 Nov 1993 23:33:56 +0000 (23:33 +0000)]
* elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
to filepos in SHT_STRTAB case.
(assign_file_position_for_section): Set BFD section filepos as
well as ELF section sh_offset.

31 years ago * reloc.c: Use const instead of CONST.
Ian Lance Taylor [Mon, 8 Nov 1993 23:22:49 +0000 (23:22 +0000)]
* reloc.c: Use const instead of CONST.
(bfd_perform_relocation): Make variable howto a const pointer.
* bfd-in2.h, libbfd.h: Rebuilt.

31 years ago * Makefile.in: Remove unused variable GCC. Remove "#CC=cc" line
Jim Kingdon [Mon, 8 Nov 1993 23:18:46 +0000 (23:18 +0000)]
* Makefile.in: Remove unused variable GCC.  Remove "#CC=cc" line
which doesn't really relate to anything.

31 years ago * Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
Jim Kingdon [Mon, 8 Nov 1993 23:12:38 +0000 (23:12 +0000)]
* Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
for existence of gcc/Makefile.

31 years ago* gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
Jim Kingdon [Mon, 8 Nov 1993 22:58:34 +0000 (22:58 +0000)]
* gdb.t20/gdbme.cc: Add comment about pmi being optimized out.

31 years agoupdate for datasheet
David D. Zuhn [Mon, 8 Nov 1993 21:20:52 +0000 (21:20 +0000)]
update for datasheet

31 years ago * inflow.c (terminal_init_inferior), infptrace.c (child_resume):
Jim Kingdon [Mon, 8 Nov 1993 18:16:06 +0000 (18:16 +0000)]
* inflow.c (terminal_init_inferior), infptrace.c (child_resume):
Add comments about use of Lynx PIDGET and how we will want to
clean it up.

31 years ago * stabs.texinfo: Clean up stuff about visibility and virtual
Jim Kingdon [Mon, 8 Nov 1993 17:54:29 +0000 (17:54 +0000)]
* stabs.texinfo: Clean up stuff about visibility and virtual
characters.

* stabs.texinfo (N_M2C): Cite Sun doc.

31 years ago * stabsread.c (read_one_struct_field): Don't give up on unknown
Jim Kingdon [Mon, 8 Nov 1993 17:27:48 +0000 (17:27 +0000)]
* stabsread.c (read_one_struct_field): Don't give up on unknown
visibility character, just shove it in fip->list->visibility.
(read_baseclasses): Don't give up on unknown virtual or visibility
characters, just assume a reasonable default, complain, and keep
going.
(attach_fields_to_type): Complain on unrecognized visibility.
One result of all this is that '9' (VISIBILITY_IGNORE) can be used
in a stab as well as being something which GDB uses internally.

31 years ago * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
Ian Lance Taylor [Mon, 8 Nov 1993 17:09:18 +0000 (17:09 +0000)]
* config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
Lemon <mellon@pepper.ncd.com>).
(mips_ip): Permit odd numbered floating point registers if -mips3.

31 years ago * stabsread.c: Remove long_kludge_name code (it was already #if 0).
Jim Kingdon [Mon, 8 Nov 1993 17:02:08 +0000 (17:02 +0000)]
* stabsread.c: Remove long_kludge_name code (it was already #if 0).
* stabsread.c (read_one_struct_field): Clean up comments to reflect
Kung's change of 5 Nov 93.

31 years ago* configure.in: Remove h8300h, we have multilib now.
David Edelsohn [Mon, 8 Nov 1993 16:00:17 +0000 (16:00 +0000)]
* configure.in: Remove h8300h, we have multilib now.

31 years ago* configure.in: Remove h8300h, we have multilib now.
David Edelsohn [Mon, 8 Nov 1993 15:48:42 +0000 (15:48 +0000)]
* configure.in: Remove h8300h, we have multilib now.

31 years agonetware target support.
David Henkel-Wallace [Mon, 8 Nov 1993 14:28:46 +0000 (14:28 +0000)]
netware target support.