binutils-gdb.git
30 years agoadd hp700 -x- m68k-coff for DSC
Karen Christiansen [Wed, 27 Jul 1994 18:23:43 +0000 (18:23 +0000)]
add hp700 -x- m68k-coff for DSC

30 years ago * Makefile.in (DISTSTUFF): Add definition.
Fred Fish [Wed, 27 Jul 1994 16:32:01 +0000 (16:32 +0000)]
* Makefile.in (DISTSTUFF):  Add definition.
(diststuff):  Add for new distribution support.
(gdb.tar.Z, make-proto-gdb.dir, setup-to-dist,
gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir):
Remove old distribution building rules, now uses standard
distribution support in parent directory Makefile.in.

30 years ago * Makefile.in (GDB_SUPPORT_FILES): Remove
Fred Fish [Wed, 27 Jul 1994 16:18:17 +0000 (16:18 +0000)]
* Makefile.in (GDB_SUPPORT_FILES): Remove
(setup-dirs-gdb, gdb.tar.gz, make-gdb.tar.gz):  Remove old rules.
(gdb.tar.gz): Add new rule to use standard distribution building
mechanism.

(Also, changed taz rule to abort building of unsanitary
distributions - not recorded in ChangeLog)

30 years ago* target.c (push_target): Cast result from xmalloc.
Jim Kingdon [Wed, 27 Jul 1994 05:10:52 +0000 (05:10 +0000)]
* target.c (push_target): Cast result from xmalloc.

30 years ago * gdbint.texinfo: Removed mentions of many obsolete conditionals,
Stan Shebs [Wed, 27 Jul 1994 01:35:46 +0000 (01:35 +0000)]
* gdbint.texinfo: Removed mentions of many obsolete conditionals,
described or fixed the descriptions of many others.

30 years agoI80960XL support (sanitized), misc cleanup:
Ken Raeburn [Wed, 27 Jul 1994 00:58:19 +0000 (00:58 +0000)]
I80960XL support (sanitized), misc cleanup:

* config/tc-i960.h (TC_COFF_SET_MACHINE): New macro.  Calls tc_headers_hook.

* config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX was used
previously.
(tc_headers_hook): If I_CX2 is found, set flags to F_I960CA.

* config/tc-i960.c (po_hash): Declaration deleted.
(next_object_file_charP): Ditto.
(regnames, aregs, coj): Now const.
(parse_memop): Static array def_scale now const.
(md_begin): Cast away const when passing hash routines addresses of values in
regnames or aregs.
(md_longopts): Added "link-relax" and "no-relax" hyphenated forms.  Continue to
accept one-word forms.
(struct tabentry, arch_tab): Moved to top level from inside md_parse_option.
Now const.
(md_show_usage): Use arch_tab to generate usage message.  Print hyphenated
forms of relax options.

* config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC,
TC_S_FORCE_TO_*): Moved from here...
* config/tc-i960.c: ... to here.  Changed DEFINE_I960_AOUT stuff to test
OBJ_AOUT and OBJ_BOUT directly.

* config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ, M1-M3, REG_OPC,
R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F, {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK,
FP_OK, REG_ALIGN, MEMOP, I_*): Macros deleted.

* config/tc-i960.c (ARCH_XL): Define.
(arch_tab): Include XL.
(targ_has_sfr, targ_has_iclass): Handle XL.
(tc_headers_hook): Set flags to F_I960XL for i960XL.

30 years agoSome bits of COFF cleanup, and i960-coff support:
Ken Raeburn [Wed, 27 Jul 1994 00:37:46 +0000 (00:37 +0000)]
Some bits of COFF cleanup, and i960-coff support:

* config/obj-coff.h: Moved common includes and TARGET_FORMAT definitions
together.
(WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD, OBJ_COFF_OMIT_OPTIONAL_HEADER,
BFD_HEADERS, BFD) [!BFD_ASSEMBLER]: Moved these definitions to the start of the
file, before the includes.
(SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always define these.
(S_GET_ZEROES): Deleted.
(S_SET_ZEROES): Moved to obj-coff.c.

* config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted forward declarations.
(obj_pseudo_table): Moved to one version end of file, conditionalized
internally.
(stack typedef, stack_init, stack_delete, stack_push, stack_pop, tag_hash,
tag_init, tag_insert, tag_find, tag_find_or_make): Moved to one combined
version at top of file, unconditional.  Deleted forward declarations.
(s_get_name): Moved one copy of declarations to start of file.
(def_symbol_in_progress): Ditto.  Don't initialize.
(S_SET_ZEROES): Moved here from obj-coff.h.
(write_object_file): If TC_COFF_SET_MACHINE is defined, call it on the file
headers.

* config/obj-coff.c (seg_info_off_by_4): Now const and static.
(SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted.
(previous_file_symbol, def_symbol_in_progress, symbol_externP,
symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't bother explicitly
initializing to zero value.

* config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME and
SF_GET_CALLNAME instead of the TC_S_IS_ versions.

30 years agoi960xl changes (sanitized)
Ken Raeburn [Wed, 27 Jul 1994 00:21:43 +0000 (00:21 +0000)]
i960xl changes (sanitized)

30 years ago(howto_rellong, howto_iprmed, howto_optcall): Use HOWTO macro.
Ken Raeburn [Wed, 27 Jul 1994 00:11:56 +0000 (00:11 +0000)]
(howto_rellong, howto_iprmed, howto_optcall): Use HOWTO macro.

30 years agoi960xl sanitization; keep some more ns32k related files
Ken Raeburn [Wed, 27 Jul 1994 00:10:18 +0000 (00:10 +0000)]
i960xl sanitization; keep some more ns32k related files

30 years agoi960xl changes (sanitized); keep ns32k-dis.c
Ken Raeburn [Tue, 26 Jul 1994 23:13:34 +0000 (23:13 +0000)]
i960xl changes (sanitized); keep ns32k-dis.c

30 years agoi960xl support (sanitized)
Ken Raeburn [Tue, 26 Jul 1994 23:07:08 +0000 (23:07 +0000)]
i960xl support (sanitized)

30 years agoi960xl opcode table changes (sanitized)
Ken Raeburn [Tue, 26 Jul 1994 23:06:41 +0000 (23:06 +0000)]
i960xl opcode table changes (sanitized)

30 years agoTue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
Stan Shebs [Tue, 26 Jul 1994 22:22:38 +0000 (22:22 +0000)]
Tue Jul 26 18:20:46 1994  Paul Flinders  (ptf@smee)

* elfread.c (elf_symtab_read): Discard compiler labels generated
by the Solaris 2.1/Intel SunPro compiler.

30 years agons32k files; i960xl sanitization
Ken Raeburn [Tue, 26 Jul 1994 22:20:48 +0000 (22:20 +0000)]
ns32k files; i960xl sanitization

30 years ago * elfcode.h (elf_adjust_dynamic_symbol): When handling a weak
Ian Lance Taylor [Tue, 26 Jul 1994 19:34:14 +0000 (19:34 +0000)]
* elfcode.h (elf_adjust_dynamic_symbol): When handling a weak
symbol, correct check to see whether the equivalent normal symbol
was referenced.

30 years ago Add support for creating shared libraries under i386 ELF and SPARC
Ian Lance Taylor [Tue, 26 Jul 1994 17:18:37 +0000 (17:18 +0000)]
Add support for creating shared libraries under i386 ELF and SPARC
ELF.  Based on patches by Eric Youngdale <ericy@cais.cais.com>.
* libelf.h (struct elf_link_hash_entry): Remove copy_offset field.
Add got_offset and plt_offset fields.
(ELF_LINK_HASH_REF_DYNAMIC_MULTIPLE): Don't define.
(ELF_LINK_HASH_DEF_DYNAMIC_MULTIPLE): Don't define.
(ELF_LINK_HASH_NEEDS_COPY): Define.
(struct elf_backend_data): Add check_relocs field.
(struct bfd_elf_section_data): Change relocs from PTR to
Elf_Internal_Rela *.
(struct elf_obj_tdata): Add local_got_offsets field.
(elf_local_got_offsets): Define accessor macro.
(bfd_elf32_link_create_dynamic_sections): Declare.
(bfd_elf32_link_record_dynamic_symbol): Declare.
(bfd_elf64_link_create_dynamic_sections): Declare.
(bfd_elf64_link_record_dynamic_symbol): Declare.
* elfcode.h (elf_slurp_reloc_table): Don't use the section data
relocs field.
(elf_link_record_dynamic_symbol): Make globally visible.  Use
macro to rename to NAME(bfd_elf,link_record_dynamic_symbol).
(elf_link_add_object_symbols): If creating a shared library, put
make all local symbols dynamic.  Don't bother with the
DYNAMIC_MULTIPLE flags.  Call the check_relocs backend function if
it is defined.
(elf_link_create_dynamic_sections): Make globally visible.  Use
macro to rename to NAME(bfd_elf,link_create_dynamic_sections).  If
creating a shared library, make sure that _DYNAMIC is added as a
dynamic symbol.
(elf_link_read_relocs): New function.
(NAME(bfd_elf,record_link_assignment)): If creating a shared
library, always create symbols, and always make them dynamic.
(elf_bfd_final_link): Permit creation of shared libraries.
(elf_link_input_bfd): Use elf_link_read_relocs to get the relocs.
* elf.c (_bfd_elf_link_hash_newfunc): Don't initialize
copy_offset.  Initialize got_offset and plt_offset.
* elf32-target.h (elf_backend_check_relocs): Define as 0 if not
defined.
(elf32_bed): Initialize check_relocs field.
* elf64-target.h (elf_backend_check_relocs): Define as 0 if not
defined.
(elf64_bed): Initialize check_relocs field.
* elf32-i386.c (elf_howto_table): Change R_386_PLT32 and
R_386_GOTPC to be pc_relative and pcrel_offset.
(elf_i386_pic_plt0_entry): Define.
(elf_i386_pic_plt_entry): Define.
(elf_i386_create_dynamic_sections): Create a .got.plt section, and
define _GLOBAL_OFFSET_TABLE_ at the start of it.  If creating a
shared library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a
dynamic symbol.  Don't create .rel.bss if creating a shared
library.
(elf_i386_check_relocs): New function.
(elf_i386_adjust_dynamic_symbol): Don't make a PLT entry if the
symbol already has one.  When making a PLT entry, set plt_offset.
Don't create a copy reloc when creating a shared library.  Don't
set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY.
(elf_i386_allocate_dynamic_section): Remove.
(elf_i386_size_dynamic_sections): Look through all the sections
rather than assuming we know their names.  Remove any empty reloc
or plt sections.  Only add a DT_DEBUG entry if not creating a
shared library.  Only add a DT_PLTGOT entry if there is a PLT.
Add a DT_TEXTREL entry if required.
(elf_i386_relocate_section): Permit undefined symbols when
creating a shared library.  Handle the special relocation types
specially.
(elf_i386_finish_dynamic_symbol): Create a PLT entry if plt_offset
is set.  If creating a shared library, produce a PIC PLT entry.
Only mark a PLT symbol as undefined if it was not defined by a
regular object file.  Create a GOT entry if got_offset is set.
Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set.
(elf_i386_finish_dynamic_sections): Change the handling of
DT_RELSZ to simply subtract out the size of .rel.plt.  If creating
a shared library, produce PIC PLT code.
(elf_backend_check_relocs): Define.
* elf32-sparc.c (elf_sparc_howto_table): Change R_SPARC_GOT10,
R_SPARC_GOT22, and R_SPARC_PC10 to not warn about reloc overflow.
(elf32_sparc_create_dynamic_sections): If creating a shared
library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a
        dynamic symbol, and set the type to STT_OBJECT.  Likewise for
        _PROCEDURE_LINKAGE_TABLE_.  Don't create .rel.bss if creating a
        shared library.
(elf32_sparc_check_relocs): New function.
(elf32_sparc_adjust_dynamic_symbol): Don't make a PLT entry if the
symbol already has one.  When making a PLT entry, set plt_offset.
Don't create a copy reloc when creating a shared library.  Don't
set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY.
(elf32_sparc_allocate_dynamic_section): Remove.
(elf32_sparc_size_dynamic_sections): Look through all the sections
rather than assuming we know their names.  Only add a DT_DEBUG
entry if not creating a shared library.  Add a DT_TEXTREL entry if
required.
(elf32_sparc_relocate_section): Permit undefined symbols when
creating a shared library.  Handle the special relocation types
specially.
(elf32_sparc_finish_dynamic_symbol): Create a PLT entry if plt_offset
is set.  Only mark a PLT symbol as undefined if it was not defined
by a regular object file.  Create a GOT entry if got_offset is
set.  Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set.
(elf32_sparc_finish_dynamic_sections): Store dynobj in a local
variable.
(elf_backend_check_relocs): Define.

30 years ago * scripttempl/elf.sc: Copy several more relocation sections into
Ian Lance Taylor [Tue, 26 Jul 1994 15:04:40 +0000 (15:04 +0000)]
* scripttempl/elf.sc: Copy several more relocation sections into
the output.  Put .got.plt sections into .got.

30 years ago * gdb.base/corefile.exp: Change `else if' to `elseif', which is
Peter Schauer [Tue, 26 Jul 1994 06:52:38 +0000 (06:52 +0000)]
* gdb.base/corefile.exp:  Change `else if' to `elseif', which is
the correct TCL syntax.

30 years ago * target.c (nomemory): Fix prototype and routine to take correct
Stu Grossman [Tue, 26 Jul 1994 01:21:04 +0000 (01:21 +0000)]
* target.c (nomemory):  Fix prototype and routine to take correct
args.

30 years ago* gdb.base/opaque.exp: use runto instead of messing around with
J.T. Conklin [Mon, 25 Jul 1994 23:35:10 +0000 (23:35 +0000)]
* gdb.base/opaque.exp: use runto instead of messing around with
  breakpoints.

* gdb.base/bitfields.exp: restart between tests on netware targets
  because breakpoints aren't relocated after target death.  Run
  processes to completion.

* gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.

30 years ago* gdb.base/opaque.exp: use runto instead of messing around with
J.T. Conklin [Mon, 25 Jul 1994 23:34:23 +0000 (23:34 +0000)]
* gdb.base/opaque.exp: use runto instead of messing around with
  breakpoints.

30 years ago* Makefile.in (clean): Remove libgdb-files.
Jim Kingdon [Mon, 25 Jul 1994 22:43:29 +0000 (22:43 +0000)]
* Makefile.in (clean): Remove libgdb-files.

30 years agoUpdate to reflect comings and goings of ns32k and mach-related files
Stan Shebs [Mon, 25 Jul 1994 20:04:11 +0000 (20:04 +0000)]
Update to reflect comings and goings of ns32k and mach-related files

30 years ago * configure.in (pc532mach_vec): Change to pc532machaout_vec.
Stan Shebs [Mon, 25 Jul 1994 20:00:10 +0000 (20:00 +0000)]
* configure.in (pc532mach_vec): Change to pc532machaout_vec.
* config.bfd (ns32k-*-netbsd*): Use ns32k-nbsd as bfd_name.
* Makefile.in (ALL_MACHINES): Add cpu-ns32k.o.
(BFD32_BACKENDS): Add aout-ns32k.o, netbsd532.o, m88kmach3.o,
pc532-mach.o.
* targets.c (pc532machaout_vec): Use instead of pc532mach_vec.
* config/pc532-mach.mt (DEFAULT_VECTOR): Ditto.
(SELECT_VECS): Remove.
* config/ns32k-nbsd.mt: New file, was ns32k-netbsd.mt.
* config/ns32k-netbsd.mt: Remove, name too long.

30 years ago * coredep.c: Include inferior.h.
Stan Shebs [Mon, 25 Jul 1994 18:55:22 +0000 (18:55 +0000)]
* coredep.c: Include inferior.h.

30 years ago* Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
J.T. Conklin [Mon, 25 Jul 1994 18:45:14 +0000 (18:45 +0000)]
* Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.

* i386-nlmstub.c: Add support for NODE, PORT and BAUD command
  line arguments.

30 years ago * objdump.c (objdump_print_address): Correct handling of end of
Ian Lance Taylor [Mon, 25 Jul 1994 17:01:10 +0000 (17:01 +0000)]
* objdump.c (objdump_print_address): Correct handling of end of
symbols when looking for next symbol with a different value.

30 years ago * configure.in: Warn about use of /usr/ucb/cc on Solaris. From
Ian Lance Taylor [Mon, 25 Jul 1994 15:16:36 +0000 (15:16 +0000)]
* configure.in: Warn about use of /usr/ucb/cc on Solaris.  From
Bill Cox <bill@cygnus.com>.

30 years ago * Makefile.in: Remove extra tabs that confuse some versions
Fred Fish [Sun, 24 Jul 1994 16:56:45 +0000 (16:56 +0000)]
* Makefile.in:  Remove extra tabs that confuse some versions
of "make".  Use the newly built gdb to test with by default,
rather than the first one in the tester's search path.

30 years ago * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
Stan Shebs [Sat, 23 Jul 1994 23:24:05 +0000 (23:24 +0000)]
* gdb.base/whatis.exp (v_signed_short_array): Fix a typo.

30 years ago * symfile.c (deduce_language_from_filename): Recognize .S as asm,
Stan Shebs [Sat, 23 Jul 1994 22:56:46 +0000 (22:56 +0000)]
* symfile.c (deduce_language_from_filename): Recognize .S as asm,
.cp as C++, alphabetize better.

30 years ago * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
Stan Shebs [Sat, 23 Jul 1994 22:09:34 +0000 (22:09 +0000)]
* gdb.base/help.exp: Update expected add-symbol-file, ignore, and
condition help.

30 years ago * breakpoint.c (ignore, condition): Move usage note into body of
Stan Shebs [Sat, 23 Jul 1994 22:01:44 +0000 (22:01 +0000)]
* breakpoint.c (ignore, condition): Move usage note into body of
help text, so first line can be one-line summary.

30 years ago * config.guess: Recognize ISC. Patch from kwzh@gnu.ai.mit.edu.
Per Bothner [Sat, 23 Jul 1994 19:19:58 +0000 (19:19 +0000)]
* config.guess:  Recognize ISC.  Patch from kwzh@gnu.ai.mit.edu.

30 years ago * target.c (unpush_target): Fix handling of removal of top target.
Stu Grossman [Sat, 23 Jul 1994 08:01:09 +0000 (08:01 +0000)]
* target.c (unpush_target):  Fix handling of removal of top target.

30 years ago * configure: Search current dir first in .gdbinit.
Stu Grossman [Sat, 23 Jul 1994 00:54:57 +0000 (00:54 +0000)]
* configure:  Search current dir first in .gdbinit.

30 years ago * Makefile.in: Add stuff to build nlmstub.
Stu Grossman [Sat, 23 Jul 1994 00:53:28 +0000 (00:53 +0000)]
* Makefile.in: Add stuff to build nlmstub.
* Add rule for annotate.o to keep Sun make happy.
* configure.in:  Add config for powerpc/Netware.

* partial-stab.h (near N_SO):  Don't call START_PSYMTAB with null
filename.  This speeds up handling of trailing N_SO stabs (they
mark the end of a .o file).

* target.c, target.h:  Change the way pushing and popping of
targets work to support target overlays and inheritance.
* corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
Fixup references to current_target, due to previous changes.

* config/i386/tm-i386nw.h:  Enable longjmp support.  More work is
needed to get the address of longjmp out of the target.

30 years agoForgot to save my buffer before last check in.
Ian Lance Taylor [Fri, 22 Jul 1994 23:50:35 +0000 (23:50 +0000)]
Forgot to save my buffer before last check in.

30 years agoUpgraded to use gdb_test.
J.T. Conklin [Fri, 22 Jul 1994 21:14:03 +0000 (21:14 +0000)]
Upgraded to use gdb_test.

30 years ago* nm.c (numeric_forward): Treat undefined symbols as "less than" defined
Ken Raeburn [Fri, 22 Jul 1994 20:56:31 +0000 (20:56 +0000)]
* nm.c (numeric_forward): Treat undefined symbols as "less than" defined
symbols with zero values.  If numeric values are equal, or both symbols are
undefined, sort alphabetically.  Don't assume that the difference of two
bfd_vma values will truncate to "int" and still have the same sign.
(numeric_reverse): Call numeric_forward and negate the result.
(print_symbol_info_bsd): For undefined symbols, print leading spaces equivalent
to the width of a printed bfd_vma, rather than assuming that 8 will look right.

30 years ago * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
Ian Lance Taylor [Fri, 22 Jul 1994 20:55:45 +0000 (20:55 +0000)]
* scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.

Add a new script operator, PROVIDE, to define a symbol only if it
is needed.
* ldgram.y (PROVIDE): New token.
(assignment): Accept PROVIDE.
* ldlex.l (PROVIDE): New token.
* ldexp.h (node_type): Add etree_provide to node_class enum.
(exp_provide): Declare.
* ldexp.c (exp_fold_tree): Handle etree_provide.
(exp_provide): New function.
(exp_print_tree): Handle etree_provide.
* ld.texinfo: Document PROVIDE.

30 years ago * aoutx.h (aout_link_check_ar_symbols): When changing a symbol to
Ian Lance Taylor [Fri, 22 Jul 1994 18:53:23 +0000 (18:53 +0000)]
* aoutx.h (aout_link_check_ar_symbols): When changing a symbol to
common, set the alignment.
(aout_link_add_symbols): Restrict the alignment of a common symbol
to the alignment power given by the architecture.
* elf.c (_bfd_elf_link_hash_newfunc): Don't initialize align.  Do
initialize copy_offset.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use copy_offset
field rather than align field.  Get alignment using bfd_log2
rather than switch.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Use copy_offset,
not align.
* elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Likewise.

30 years ago * ldlang.c (lang_common): Pass desired alignment to
Ian Lance Taylor [Fri, 22 Jul 1994 18:46:28 +0000 (18:46 +0000)]
* ldlang.c (lang_common): Pass desired alignment to
        lang_one_common as power of two.
(lang_one_common): Get common symbol alignment from linker hash
table entry.  Treat desired alignment as a power of two.

30 years ago * bfdlink.h (struct bfd_link_hash_entry): Change u.c.size into a
Ian Lance Taylor [Fri, 22 Jul 1994 18:18:10 +0000 (18:18 +0000)]
* bfdlink.h (struct bfd_link_hash_entry): Change u.c.size into a
bitfield.  Add field u.c.alignment_power.

30 years ago * ldlang.c (wild_section): Attach all section with the given name,
Ian Lance Taylor [Fri, 22 Jul 1994 16:23:35 +0000 (16:23 +0000)]
* ldlang.c (wild_section): Attach all section with the given name,
not just the first one.  If there is no name, attach all sections
even if the SEC_IS_COMMON flag is set.

30 years ago * aoutx.h (NAME(aout,some_aout_object_p)): Just check
Ian Lance Taylor [Fri, 22 Jul 1994 15:13:33 +0000 (15:13 +0000)]
* aoutx.h (NAME(aout,some_aout_object_p)): Just check
STAT_FOR_EXEC, don't check MACH.
* m88kmach3.c (MACH): Don't define.
* config/i386-mach3.mt (TDEFINES): Define STAT_FOR_EXEC.
* config/m88k-mach3.mt (TDEFINES): Likewise.
* config/mips-mach3.mt (TDEFINES): Likewise.

30 years ago * i386mach3.c: Reverted to version from before Jul 5 1994 changes.
Stan Shebs [Fri, 22 Jul 1994 00:28:17 +0000 (00:28 +0000)]
* i386mach3.c: Reverted to version from before Jul 5 1994 changes.
Un-break gas/binutils/ld for FSF.

30 years ago * config.sub: Refer to NeXT's operating system as nextstep.
Per Bothner [Thu, 21 Jul 1994 21:43:17 +0000 (21:43 +0000)]
* config.sub:  Refer to NeXT's operating system as nextstep.

30 years ago * config.sub (case $basic_machine): Re-order the cases, to match
Per Bothner [Thu, 21 Jul 1994 21:11:57 +0000 (21:11 +0000)]
* config.sub (case $basic_machine):  Re-order the cases, to match
the order in the FSF version (which is mostly alphabethical).
Merge in some additions and changes from the FSF.

30 years ago * reloc.c (struct reloc_howto_struct): Remove special_function1.
Ian Lance Taylor [Thu, 21 Jul 1994 16:34:59 +0000 (16:34 +0000)]
* reloc.c (struct reloc_howto_struct): Remove special_function1.
It's the wrong way to do things.
(HOWTO): Change accordingly.
(HOWTO2): Remove.
(_bfd_final_link_relocate): Remove references to
special_function1.
* bfd-in2.h: Rebuilt.
* aoutx.h (aout_link_input_section_std): Remove references to
special_function1.
(aout_link_reloc_link_order): Likewise.

30 years ago * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
Ian Lance Taylor [Thu, 21 Jul 1994 14:27:45 +0000 (14:27 +0000)]
* config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
Remove; obsolete.

30 years ago * ld.h (args_type): Add field rpath.
Ian Lance Taylor [Wed, 20 Jul 1994 19:55:36 +0000 (19:55 +0000)]
* ld.h (args_type): Add field rpath.
* lexsup.c (S_ISDIR): Define if not already defined.
(parse_args): Add support for -rpath.  If -R is used to name a
directory, treat it as -rpath for Solaris compatibility.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
* ldmain.c (main): Initialize command_line.rpath to NULL.
* ld.texinfo: Document -rpath option.

30 years ago * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add rpath
Ian Lance Taylor [Wed, 20 Jul 1994 19:51:18 +0000 (19:51 +0000)]
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add rpath
argument.  If it is not NULL, use it to set DT_RPATH.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
(bfd_elf64_size_dynamic_sections): Likewise.
* bfd-in2.h: Rebuilt.

30 years agoUse gdb_run_cmd
J.T. Conklin [Wed, 20 Jul 1994 17:38:05 +0000 (17:38 +0000)]
Use gdb_run_cmd

30 years agoChanged pattern in gdb_run_cmd to match up to the first newline only.
J.T. Conklin [Wed, 20 Jul 1994 17:29:02 +0000 (17:29 +0000)]
Changed pattern in gdb_run_cmd to match up to the first newline only.
The old pattern used ".*$", which could, and did, swallow up output
that we were attempting to match elsewhere.

30 years agoNew implementation of gdb_run_cmd which fixes some subtle bugs.
J.T. Conklin [Wed, 20 Jul 1994 16:40:08 +0000 (16:40 +0000)]
New implementation of gdb_run_cmd which fixes some subtle bugs.

30 years agofix from dj delorie for disassembler config in djgpp
Ken Raeburn [Wed, 20 Jul 1994 16:34:25 +0000 (16:34 +0000)]
fix from dj delorie for disassembler config in djgpp

30 years agoTemporarily back out last change
J.T. Conklin [Wed, 20 Jul 1994 01:03:24 +0000 (01:03 +0000)]
Temporarily back out last change

30 years ago* lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
J.T. Conklin [Tue, 19 Jul 1994 22:57:49 +0000 (22:57 +0000)]
* lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.

30 years ago* gdb.base/funcargs.exp: Use gdb_run_cmd to start program.
J.T. Conklin [Tue, 19 Jul 1994 22:57:29 +0000 (22:57 +0000)]
* gdb.base/funcargs.exp: Use gdb_run_cmd to start program.

30 years ago* lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
J.T. Conklin [Tue, 19 Jul 1994 22:57:13 +0000 (22:57 +0000)]
* lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
* gdb.base/funcargs.exp: Use gdb_run_cmd to start program.

30 years ago * config/mt-mips-ecoff: Add -Tidp.ld option.
Bill Cox [Tue, 19 Jul 1994 22:25:03 +0000 (22:25 +0000)]
* config/mt-mips-ecoff: Add -Tidp.ld option.

30 years agoadded emacs19 whereever emacs was mentioned
Karen Christiansen [Tue, 19 Jul 1994 22:24:14 +0000 (22:24 +0000)]
added emacs19 whereever emacs was mentioned

30 years ago* lib/gdb.exp (gdb_run_cmd): New function, used to start program
J.T. Conklin [Tue, 19 Jul 1994 22:19:41 +0000 (22:19 +0000)]
* lib/gdb.exp (gdb_run_cmd): New function, used to start program
  running.

30 years ago* gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
J.T. Conklin [Tue, 19 Jul 1994 22:19:25 +0000 (22:19 +0000)]
* gdb.base/bitfields.exp: Use gdb_run_cmd to start program.

30 years ago* lib/gdb.exp (gdb_run_cmd): New function, used to start program
J.T. Conklin [Tue, 19 Jul 1994 22:18:48 +0000 (22:18 +0000)]
* lib/gdb.exp (gdb_run_cmd): New function, used to start program
  running.
* gdb.base/bitfields.exp: Use gdb_run_cmd to start program.

30 years agoMostly converted to use gdb_test proc.
J.T. Conklin [Tue, 19 Jul 1994 21:42:58 +0000 (21:42 +0000)]
Mostly converted to use gdb_test proc.

30 years agoThis config file didn't belong here
J.T. Conklin [Tue, 19 Jul 1994 21:33:15 +0000 (21:33 +0000)]
This config file didn't belong here

30 years ago * main.c: Include <ctype.h>.
Stan Shebs [Tue, 19 Jul 1994 20:28:00 +0000 (20:28 +0000)]
* main.c: Include <ctype.h>.

30 years ago* gdb.base/bitfields.exp: Simplify by using delete_breakpoints and
J.T. Conklin [Tue, 19 Jul 1994 17:33:52 +0000 (17:33 +0000)]
* gdb.base/bitfields.exp: Simplify by using delete_breakpoints and
  gdb_test.
* lib/gdb.exp (gdb_test): if match times out, don't call fail if
  message is "".

30 years agoModified Files:
Kung Hsu [Mon, 18 Jul 1994 22:35:33 +0000 (22:35 +0000)]
Modified Files:
remote-mips.c ChangeLog

        * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
        prompt.

30 years ago* gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
J.T. Conklin [Mon, 18 Jul 1994 22:27:07 +0000 (22:27 +0000)]
* gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
  return,signals,twice}.exp: Handle non-existant binaries
  consistantly.

30 years ago(is there an echo in here?)
Stan Shebs [Mon, 18 Jul 1994 21:37:18 +0000 (21:37 +0000)]
(is there an echo in here?)
* solib.c (look_for_base): Don't deref exec_bfd if NULL.

30 years ago* gdb.base/corefile.exp: Execute coremaker to generate core dump.
J.T. Conklin [Mon, 18 Jul 1994 19:25:50 +0000 (19:25 +0000)]
* gdb.base/corefile.exp: Execute coremaker to generate core dump.
* gdb.base/Makefile.in: Don't try to generate a core dump, we
  might testing a cross development system.

30 years ago(This is the change that should have gone in the main tree ...)
Fred Fish [Sun, 17 Jul 1994 23:08:07 +0000 (23:08 +0000)]
(This is the change that should have gone in the main tree ...)
* Makefile.in (VERSION):  Bump to 4.12.4.

30 years ago * Makefile.in (VERSION): Bump to 4.12.85.
Fred Fish [Sun, 17 Jul 1994 22:40:25 +0000 (22:40 +0000)]
* Makefile.in (VERSION):  Bump to 4.12.85.

30 years ago * gdb.texinfo: Add some more credits.
Stan Shebs [Sun, 17 Jul 1994 21:17:23 +0000 (21:17 +0000)]
* gdb.texinfo: Add some more credits.
* gdbint.texinfo: Capitalize GDB consistently, describe some
macros and remove some.

30 years ago * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
Stan Shebs [Sun, 17 Jul 1994 21:10:21 +0000 (21:10 +0000)]
* config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
* config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
consistently.

30 years ago Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
Stan Shebs [Sun, 17 Jul 1994 21:08:42 +0000 (21:08 +0000)]
Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
* configure.in (m88*-harris-cxux*): New configuration.
* cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
New files.
* config/m88k/tm-m88k.h: Add comment about Harris OS.
(TARGET_WRITE_PC): Pass pid through to register writers.

* configure.in (m68*): Put vendor-only-specified host configs
after vendor-and-os-specified configs.
(m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.

30 years ago * elfread.c (elf_symtab_read): Handle error return from
Peter Schauer [Sun, 17 Jul 1994 06:42:14 +0000 (06:42 +0000)]
* elfread.c (elf_symtab_read):  Handle error return from
bfd_get_dynamic_symtab_upper_bound gracefully.

30 years ago * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
Ian Lance Taylor [Sun, 17 Jul 1994 02:36:11 +0000 (02:36 +0000)]
* objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
even if the bfd is not marked DYNAMIC.  ELF executables are not
marked DYNAMIC, but do have dynamic symbols.

30 years ago * libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Define.
Ian Lance Taylor [Sun, 17 Jul 1994 02:15:24 +0000 (02:15 +0000)]
* libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Define.
* elfcode.h (elf_link_add_object_symbols): If symbol is defined as
weak, set ELF_LINK_HASH_DEFINED_WEAK.
(elf_link_output_extsym): If symbol is defined as weak, mark it
STB_WEAK.

30 years ago * libelf.h (struct bfd_elf_section_data): Add relocs field.
Ian Lance Taylor [Sun, 17 Jul 1994 01:15:42 +0000 (01:15 +0000)]
* libelf.h (struct bfd_elf_section_data): Add relocs field.
(shdr_name): Remove; unused.
* elfcode.h (elf_slurp_reloc_table): Rewrote to handle both REL
and RELA relocs.  Free up the unswapped relocs.  Permit the relocs
to be cached in the section_data.  Correct the reloc address.
(elf_slurp_reloca_table): Remove.
(elf_canonicalize_reloc): Rewrote.
(elf_link_input_bfd): Permit the relocs to be cached in the
section data.

30 years ago * inferior.h (ARCH_NUM_REGS): New macro, actual number of
Stan Shebs [Sun, 17 Jul 1994 00:00:36 +0000 (00:00 +0000)]
* inferior.h (ARCH_NUM_REGS): New macro, actual number of
registers in use by the inferior.
* coredep.c (fetch_core_registers, register_addr): Use it.
* findvar.c (registers_changed, registers_fetched,
read_register_bytes): Ditto.
* infcmd.c (do_registers_info, registers_info): Ditto.
* infptrace.c (fetch_inferior_registers,
store_inferior_registers): Ditto.
* stack.c (frame_info): Ditto.

* coredep.c (CORE_REGISTER_ADDR): New macro.
(fetch_core_registers): Use it.

30 years ago * breakpoint.c (ignore, condition): Add usage notes to help strings.
Stan Shebs [Sat, 16 Jul 1994 22:57:23 +0000 (22:57 +0000)]
* breakpoint.c (ignore, condition): Add usage notes to help strings.
* symfile.c (add-symbol-file): Add usage note to help string.
(add_shared_symbol_files_command): New command.

gcc -Wall lint.
* inferior.h (read_pc_pid): Declare.
* breakpoint.c (watchpoint_check): Cache breakpoint in local
variable b, remove unused variable other_type_used.
* main.c (inferior.h, call-cmds.h): Include.
(gdb_init): Declare.
* remote.c (remote_wait): Return 0 by default.

30 years ago * config.bfd (m88*-harris-cxux*): Recognize.
Stan Shebs [Sat, 16 Jul 1994 21:08:41 +0000 (21:08 +0000)]
* config.bfd (m88*-harris-cxux*): Recognize.
* hosts/harris.h (POSIX_UTIME, HAVE_PROCFS): Define.

30 years ago * configure.host (m68*-atari-sysv4*): New host.
Stan Shebs [Sat, 16 Jul 1994 21:02:53 +0000 (21:02 +0000)]
* configure.host (m68*-atari-sysv4*): New host.
(m68*-cbm-sysv4*): Use m68kv4 instead of amix.
* hosts/amix.h: Remove.
* hosts/m68kv4.h: New file, was amix.h.

30 years ago * configure.in (m88*-harris-cxux7*): Recognize.
Stan Shebs [Sat, 16 Jul 1994 20:33:21 +0000 (20:33 +0000)]
* configure.in (m88*-harris-cxux7*): Recognize.
* sysdep-cxux7.h: New file.

30 years ago * mh-cxux: New file, from Bob Rusk (rrusk@mail.csd.harris.com).
Stan Shebs [Sat, 16 Jul 1994 19:24:33 +0000 (19:24 +0000)]
* mh-cxux: New file, from Bob Rusk (rrusk@mail.csd.harris.com).

30 years ago * config.guess: Recognize m68k-atari-sysv4 and m88k-harris-csux7.
Stan Shebs [Sat, 16 Jul 1994 19:11:16 +0000 (19:11 +0000)]
* config.guess: Recognize m68k-atari-sysv4 and m88k-harris-csux7.
* config.sub: Recognize cxux7.
* configure.in: Use mh-cxux for m88k-harris-cxux*.

30 years ago Stop printing at null char option, from Oliver Meyer
Stan Shebs [Fri, 15 Jul 1994 23:53:04 +0000 (23:53 +0000)]
Stop printing at null char option, from Oliver Meyer
(omeyer@i3.informatik.rwth-aachen.de).
* valprint.h, valprint.c (stop_print_at_null): New global.
* valprint.c (_initialize_valprint): New print set subcommand
"null-stop".
* c-valprint.c (c_val_print): If stop_print_at_null is on, and
printing a char array, adjust the number of chars to print.

30 years agomore description on last change
Ken Raeburn [Fri, 15 Jul 1994 23:24:34 +0000 (23:24 +0000)]
more description on last change

30 years ago * lib/gas-defs.exp (run_dump_test): New routine for running the
Ken Raeburn [Fri, 15 Jul 1994 23:13:10 +0000 (23:13 +0000)]
* lib/gas-defs.exp (run_dump_test): New routine for running the
assembler, running objdump or nm (not fully supported) on the
resulting object file, and comparing the results against a file of
regular expressions in the test suite, all in one command.
(fail_phase, slurp_options): New auxiliary routines.
(regexp_diff): Always return a value.  Fix bugs in actually doing
the regexp test.

Should make it even easier to write gas test cases, giving Ian even less
excuse for not doing so. :-)

30 years agoremove atof-ns32k.c
Ken Raeburn [Fri, 15 Jul 1994 22:28:22 +0000 (22:28 +0000)]
remove atof-ns32k.c

30 years ago From Kevin A. Buettner (kev@cujo.geg.mot.com).
Stan Shebs [Fri, 15 Jul 1994 21:37:30 +0000 (21:37 +0000)]
    From Kevin A. Buettner (kev@cujo.geg.mot.com).
* m88k-tdep.c (examine_prologue): Modified to handle prologues for
pic code in addition to prologues where an instruction from the
prologue gets moved into the delay slot of a branch instruction
immediately following the prologue.  A table of potential prologue
instructions (prologue_insn_tbl) is now used for picking apart a
function prologue.
(frame_find_saved_regs): Changed the way in which limit gets set
so that the delay slot of branch instructions immediately
following the prologue gets examined.
(pushed_size, store_parm_word, store_parm, push_parameters,
collect_returned_value):  Deleted.

30 years ago * coffgrok.c (do_where): Make data with no type 'int'.
Steve Chamberlain [Fri, 15 Jul 1994 08:51:49 +0000 (08:51 +0000)]
* coffgrok.c (do_where): Make data with no type 'int'.
(do_define):  Keep info on source file of a symbol.
* coffgrok.h (coff_symbol): New field.
* srconv.c (PROGRAM_VERSION): Now 1.3
(wr_rl): Use external ref number for symbol.
(wr_dus): Only keep one source file per debug unit.
(wr_dln): Always emit line numbers for first source file,
(wr_globals):  Emit globals in the du of their owning source file.

30 years ago * infrun.c (wait_for_inferior): Handle stepping into leaf
Peter Schauer [Fri, 15 Jul 1994 08:15:13 +0000 (08:15 +0000)]
* infrun.c (wait_for_inferior):  Handle stepping into leaf
functions whose prologue consists of gp loading code only.

30 years ago * gdbint.texinfo: Removed mentions of many incorrectly placed and
Stan Shebs [Fri, 15 Jul 1994 01:48:01 +0000 (01:48 +0000)]
* gdbint.texinfo: Removed mentions of many incorrectly placed and
obsolete conditionals, described some others.

30 years ago * gdb.base/signals.exp: Allow for optionality of breakpoint
Stan Shebs [Thu, 14 Jul 1994 22:37:53 +0000 (22:37 +0000)]
* gdb.base/signals.exp: Allow for optionality of breakpoint
address.