binutils-gdb.git
30 years ago * TODO: Remove note about fast watchpoints and remove obsolete
Jean Marie Diaz [Thu, 4 Aug 1994 19:48:25 +0000 (19:48 +0000)]
* TODO: Remove note about fast watchpoints and remove obsolete
Mach stuff.

30 years ago * ldlex.l (yy_create_string_buffer): Handle change to internal
Jean Marie Diaz [Thu, 4 Aug 1994 18:56:04 +0000 (18:56 +0000)]
* ldlex.l (yy_create_string_buffer): Handle change to internal
interface in flex 2.4.7.

30 years ago * config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
Stan Shebs [Thu, 4 Aug 1994 18:17:59 +0000 (18:17 +0000)]
* config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
config/sparc/xm-sun4sol2.h (NORETURN): Don't define.
* config/m88k/tm-cxux.h (ARCH_NUM_REGS): Undefine before defining.

30 years ago * target.c (add_target): Don't call clean_target on target
Stu Grossman [Thu, 4 Aug 1994 17:45:26 +0000 (17:45 +0000)]
* target.c (add_target):  Don't call clean_target on target
vectors anymore.
* (unpush_target):  Test for to_close being set before calling.
* (target_xfer_memory, target_info):  Check for to_has_memory
before playing with memory.

30 years ago * remote.c (remote_open): Set inferior_pid to make kill command
Stu Grossman [Thu, 4 Aug 1994 17:32:09 +0000 (17:32 +0000)]
* remote.c (remote_open):  Set inferior_pid to make kill command
happy.
* inflow.c (kill_command):  Revert change of Aug 2.  Use
inferior_pid to determine whether to print out "The program is not
being run." message.

30 years ago * coff-m68k.c (_bfd_coff_m68k_reloc_type_lookup): New function.
Jean Marie Diaz [Thu, 4 Aug 1994 16:38:05 +0000 (16:38 +0000)]
* coff-m68k.c (_bfd_coff_m68k_reloc_type_lookup): New function.
(coff_bfd_reloc_type_lookup): Define.

30 years ago* os9k.h: Comment out apparently-unused declarations.
Jean Marie Diaz [Thu, 4 Aug 1994 16:22:44 +0000 (16:22 +0000)]
* os9k.h: Comment out apparently-unused declarations.

30 years ago * config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
Jean Marie Diaz [Thu, 4 Aug 1994 16:20:45 +0000 (16:20 +0000)]
* config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
* m3-nat.c, config/nm-m3.h: #if 0 REQUEST_QUIT stuff.
* m3-nat.c: Pass argument to return_to_top_level.
Declare m3_kill_inferior before use.
(port_chain_insert): In "can't happen" case, abort rather than
setting `mid' to large decimal constant (which gcc warns about).
(get_thread_name): Use cast to convert const char * to char *.
(add_mach_specific_commands): #if 0 "thread break" command.
(m3_trace_him): Call push_target.
(mach_really_wait): New argument pid; remove unused
variable pid.
(intercept_exec_calls): Call target_terminal_init and
target_terminal_inferior once the child execs.
* infrun.c (proceed): Pass argument to PREPARE_TO_PROCEED.

30 years ago * elfcode.h (elf_bfd_final_link): Force the vma of sections which
Jean Marie Diaz [Thu, 4 Aug 1994 16:10:23 +0000 (16:10 +0000)]
* elfcode.h (elf_bfd_final_link): Force the vma of sections which
do not have SEC_ALLOC set to be 0.  This is needed to handle
relocs against debugging sections.

30 years ago * ch-lang.c (chill_language_defn): Ditto.
Stan Shebs [Thu, 4 Aug 1994 00:38:39 +0000 (00:38 +0000)]
* ch-lang.c (chill_language_defn): Ditto.

30 years ago * breakpoint.c (breakpoint_1): Improve pluralization in display
Stan Shebs [Thu, 4 Aug 1994 00:21:16 +0000 (00:21 +0000)]
* breakpoint.c (breakpoint_1): Improve pluralization in display
of breakpoint hit counts.

30 years ago * coff-i960.c (coff_i960_relocate): Rewrote to change relocs
Jean Marie Diaz [Wed, 3 Aug 1994 20:51:59 +0000 (20:51 +0000)]
* coff-i960.c (coff_i960_relocate): Rewrote to change relocs
against locally defined symbols into relocs against section
symbols, for VxWorks 5.1.

30 years ago * language.h (struct language_defn): Remove unused field
Stan Shebs [Wed, 3 Aug 1994 19:15:42 +0000 (19:15 +0000)]
* language.h (struct language_defn): Remove unused field
la_longest_float.
(longest_float): Remove, no longer used.
* language.c (unknown_language_defn, auto_language_defn,
local_language_defn): Remove init of la_longest_float field.
* c-lang.c (c_language_defn, cplus_language_defn,
asm_language_defn): Ditto.
* m2-lang.c (m2_language_defn): Ditto.

30 years agoWed Aug 3 10:34:37 1994 Eric Youngdale (ericy@cais.cais.com)
Jean Marie Diaz [Wed, 3 Aug 1994 14:43:42 +0000 (14:43 +0000)]
Wed Aug  3 10:34:37 1994  Eric Youngdale  (ericy@cais.cais.com)

* i386linux.c (linux_add_one_symbol): Only handle
SHARABLE_CONFLICTS specially if BSF_CONSTRUCTOR is set.  Set hashp
for a GOT or PLT symbol.  Set jump field of fixup for a PLT symbol.
(linux_tally_symbols): Check section of real symbol.  When looking
for a builtin fixup, check builtin and jump flags.  Create no more
than one fixup, and always create one if the real symbol is in the
absolute section.  Only strip absolute symbols.

30 years agoLynxOS changes
David Henkel-Wallace [Wed, 3 Aug 1994 13:45:11 +0000 (13:45 +0000)]
LynxOS changes

30 years ago * defs.h (bfd_read, bfd_seek): Remove declarations.
Stan Shebs [Tue, 2 Aug 1994 20:27:44 +0000 (20:27 +0000)]
* defs.h (bfd_read, bfd_seek): Remove declarations.
* os9kread.c, rs6000-nat.c (libbfd.h): Don't include.

30 years ago * hp300hpux.c (BMAGIC): Define as HPUX_DOT_O_MAGIC, to make test
Jean Marie Diaz [Tue, 2 Aug 1994 19:16:36 +0000 (19:16 +0000)]
* hp300hpux.c (BMAGIC): Define as HPUX_DOT_O_MAGIC, to make test
in aoutx.h work correctly.

30 years ago* config/netware.exp: New file.
J.T. Conklin [Tue, 2 Aug 1994 17:27:18 +0000 (17:27 +0000)]
* config/netware.exp: New file.

30 years ago* inflow.c (kill_command): Fix a bug which prevented target
J.T. Conklin [Tue, 2 Aug 1994 16:53:31 +0000 (16:53 +0000)]
* inflow.c (kill_command): Fix a bug which prevented target
  programs to be killed.

30 years agoTue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
Jean Marie Diaz [Tue, 2 Aug 1994 16:01:56 +0000 (16:01 +0000)]
Tue Aug  2 11:52:06 1994  Eric Youngdale  (ericy@cais.cais.com)

* emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
New function; add 0x20 to any use of -Ttext.
(gld${EMULATION_NAME}_create_output_section_statements): New
function.
(ld_${EMULATION_NAME}_emulation): Use the new function
gld${EMULATION_NAME}_create_output_section_statements.

30 years ago * coff-i960.c (coff_i960_relocate): New function.
Jean Marie Diaz [Tue, 2 Aug 1994 15:26:26 +0000 (15:26 +0000)]
* coff-i960.c (coff_i960_relocate): New function.
(howto_rellong, howto_iprmed): Use it as special_function.

30 years ago * libbfd-in.h: Move declarations of bfd_read, bfd_write, bfd_seek,
Jean Marie Diaz [Tue, 2 Aug 1994 14:48:21 +0000 (14:48 +0000)]
* libbfd-in.h: Move declarations of bfd_read, bfd_write, bfd_seek,
bfd_tell, bfd_flush, and bfd_stat from here...
* bfd-in.h: ...to here, to make them visible to programs which
know more about the object file format than BFD does.
* libbfd.h, bfd-in2.h: Rebuilt.

30 years ago * defs.h: Change two-line declarations to one-line form.
Stan Shebs [Tue, 2 Aug 1994 02:02:39 +0000 (02:02 +0000)]
* defs.h: Change two-line declarations to one-line form.
(NORETURN): Define as "volatile" only for older GCCs.
(ATTR_NORETURN): Define for newer GCCs.
* procfs.c (proc_init_filed): Add ATTR_NORETURN to declaration.

30 years ago * breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
Jean Marie Diaz [Tue, 2 Aug 1994 00:44:24 +0000 (00:44 +0000)]
* breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
* breakpoint.c (delete_breakpoint, enable_breakpoint,
disable_breakpoint): Don't call breakpoints_changed; it is now
called via the *_breakpoint_hook functions.
* annotate.c (_initialize_annotate, breakpoint_changed): New functions.

30 years agoForgot to check this in.
Jean Marie Diaz [Mon, 1 Aug 1994 23:45:51 +0000 (23:45 +0000)]
Forgot to check this in.

30 years ago * elfcode.h (map_program_segments): Check DYNAMIC as well as EXEC_P.
Jean Marie Diaz [Mon, 1 Aug 1994 23:37:22 +0000 (23:37 +0000)]
* elfcode.h (map_program_segments): Check DYNAMIC as well as EXEC_P.
(assign_file_positions_except_relocs): Likewise.

30 years ago * elf64-sparc.c (ELF_MAXPAGESIZE): Define.
Jean Marie Diaz [Mon, 1 Aug 1994 23:29:31 +0000 (23:29 +0000)]
* elf64-sparc.c (ELF_MAXPAGESIZE): Define.

30 years ago * nlmheader.y: Per current NetWare docs, accept a revision number
Jean Marie Diaz [Mon, 1 Aug 1994 23:25:53 +0000 (23:25 +0000)]
* nlmheader.y: Per current NetWare docs, accept a revision number
of 0 and treat a revision number greater than 26 as 0.

30 years ago ELF linker patches from Eric Youngdale <ericy@cais.cais.com>.
Jean Marie Diaz [Mon, 1 Aug 1994 23:11:18 +0000 (23:11 +0000)]
ELF linker patches from Eric Youngdale <ericy@cais.cais.com>.
* elfcode.h (elf_link_create_dynamic_sections): Set type of
_DYNAMIC to STT_OBJECT.
(NAME(bfd_elf,record_link_assignment)): Always create hash table
entry.  Set type to STT_OBJECT.
(elf_link_output_extsym): Don't set type of weak defined symbol to
STB_WEAK if symbol was referenced.
* elf32-i386.c (elf_i386_create_dynamic_sections): Set type of
_GLOBAL_OFFSET_TABLE to STT_OBJECT.
(elf_i386_check_relocs): Ignore local PLT32 relocs.
(elf_i386_relocate_section): Treat local PLT32 relocs as PC32.

30 years ago * gdbint.texinfo: Remove references to BROKEN_LARGE_ALLOCA and
Jean Marie Diaz [Mon, 1 Aug 1994 22:47:25 +0000 (22:47 +0000)]
* gdbint.texinfo: Remove references to BROKEN_LARGE_ALLOCA and
SET_STACK_LIMIT_HUGE; they were removed from GDB 14 May 1994.

30 years ago * gdbint.texinfo: Put regex conditionals in their own table.
Stan Shebs [Mon, 1 Aug 1994 22:13:35 +0000 (22:13 +0000)]
* gdbint.texinfo: Put regex conditionals in their own table.

30 years agoMon Aug 1 17:55:53 1994 Fred Fish (fnf@cygnus.com)
Jean Marie Diaz [Mon, 1 Aug 1994 22:00:19 +0000 (22:00 +0000)]
Mon Aug  1 17:55:53 1994  Fred Fish  (fnf@cygnus.com)

* ptrace-core.c (ptrace_unix_core_file_p):  Convert zalloc usage
to bfd_zalloc.

30 years ago * elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
Ian Lance Taylor [Mon, 1 Aug 1994 20:53:48 +0000 (20:53 +0000)]
* elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
handling again.

30 years agoModified Files:
Kung Hsu [Mon, 1 Aug 1994 20:41:11 +0000 (20:41 +0000)]
Modified Files:
stabsread.c ChangeLog

        * stabsread.c (read_type): Fix a bug in enum size calculation.

30 years ago * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
Jeff Law [Mon, 1 Aug 1994 20:12:41 +0000 (20:12 +0000)]
    * config/tc-hppa.c (create_new_space): Initialize sd_subspaces
        field in the space chain.

30 years ago * scripttempl/mips.sc: Redo script to set . outside of sections
Ian Lance Taylor [Mon, 1 Aug 1994 19:55:21 +0000 (19:55 +0000)]
* scripttempl/mips.sc: Redo script to set . outside of sections
and not bother to explicitly specify section addresses.

30 years ago * configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
Ian Lance Taylor [Mon, 1 Aug 1994 16:35:40 +0000 (16:35 +0000)]
* configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
* hosts/solaris2.h: Remove.
* config/solaris2.mh: Remove.

30 years ago * elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
Ian Lance Taylor [Mon, 1 Aug 1994 16:34:09 +0000 (16:34 +0000)]
* elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
if there aren't any.

30 years ago * configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
Ian Lance Taylor [Mon, 1 Aug 1994 16:16:47 +0000 (16:16 +0000)]
* configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
* hosts/solaris2.h: Remove.
* config/solaris2.mh: Remove.

30 years ago * hppa-tdep.c (compare_unwind_entries): Add "const" to both
Jeff Law [Mon, 1 Aug 1994 08:46:51 +0000 (08:46 +0000)]
* hppa-tdep.c (compare_unwind_entries): Add "const" to both
argument types to shut up GCC.

30 years ago * config/tc-hppa.c (tc_gen_reloc): Cast return value from
Jeff Law [Mon, 1 Aug 1994 08:46:08 +0000 (08:46 +0000)]
    * config/tc-hppa.c (tc_gen_reloc): Cast return value from
        hppa_gen_reloc_type.

30 years ago * config/tc-hppa.c (tc_gen_reloc): Cast return value from
Jeff Law [Mon, 1 Aug 1994 08:44:02 +0000 (08:44 +0000)]
* config/tc-hppa.c (tc_gen_reloc): Cast return value from
hppa_gen_reloc_type.

30 years ago * hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
Jeff Law [Mon, 1 Aug 1994 07:49:59 +0000 (07:49 +0000)]
* hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
linker stub, then return the address the stub will return to.
(frame_saved_pc): Correctly restart the search for the saved
pc when a linker stub is encountered.

* hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
register stores emitted by the version 9 HP compilers.
(inst_saves_fr): Relax test for a specific base register (%r1);
this avoids losing with the version 9 HP compilers.
(skip_prologue): Try to skip argument stores emitted by the HP
compilers.  It's not perfect, but it's better than before.

30 years ago * elf32-hppa.c, elf32-hppa.h: Update comment reflecting which
Jeff Law [Sun, 31 Jul 1994 20:29:19 +0000 (20:29 +0000)]
* elf32-hppa.c, elf32-hppa.h: Update comment reflecting which
HPPA ELF spec the code implements.

30 years ago * findvar.c (write_pc write_pc_pid): Remove casts to long when
Stu Grossman [Sat, 30 Jul 1994 06:23:58 +0000 (06:23 +0000)]
* findvar.c (write_pc write_pc_pid):  Remove casts to long when
calling write_register_pid.
* (write_register_pid):  Add prototype.

30 years ago * remote.c (read_frame): Split readchar/checksum calculation into
Steve Chamberlain [Sat, 30 Jul 1994 05:04:03 +0000 (05:04 +0000)]
* remote.c (read_frame):  Split readchar/checksum calculation into
two parts since evaluation order is undefined.

30 years ago From Kevin A. Buettner (kev@cujo.geg.mot.com).
Fred Fish [Fri, 29 Jul 1994 21:04:27 +0000 (21:04 +0000)]
    From Kevin A. Buettner (kev@cujo.geg.mot.com).
* Makefile.in (coredep.o):  Add inferior.h as dependency.
* inflow.c:  Add F_SETOWN to list of defines to check
around code that uses F_SETOWN.

30 years agoKeep gdbtk.c and gdbtk.tcl.
Stu Grossman [Fri, 29 Jul 1994 18:08:50 +0000 (18:08 +0000)]
Keep gdbtk.c and gdbtk.tcl.

30 years ago* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
J.T. Conklin [Fri, 29 Jul 1994 17:08:25 +0000 (17:08 +0000)]
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
  set the -L and -B directory prefixes so we can link with it.

30 years agoObsolete file.
J.T. Conklin [Fri, 29 Jul 1994 00:41:04 +0000 (00:41 +0000)]
Obsolete file.

30 years ago* sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
Ken Raeburn [Thu, 28 Jul 1994 23:46:19 +0000 (23:46 +0000)]
* sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.

* sparc-opc.c: Added sparclite extended FP operations, and versions of v9
impdep* instructions permitting specification of the OPF field.

30 years agoupdate doc for sparclite 934 opcode table changes
Ken Raeburn [Thu, 28 Jul 1994 23:42:55 +0000 (23:42 +0000)]
update doc for sparclite 934 opcode table changes

30 years ago* tc-sparc.c (sparc_ip): Check more carefully for conflicting architectures.
Ken Raeburn [Thu, 28 Jul 1994 23:36:16 +0000 (23:36 +0000)]
* tc-sparc.c (sparc_ip): Check more carefully for conflicting architectures.
(md_parse_option) [NO_V9]: Complain if v9 was selected.
(md_show_usage): Derive architecture list in usage message from
architecture_pname array.
(cypress): Macro deleted.
(op_hash): Don't initialize.
(s_common): Use bfd_und_section_ptr instead of bfd_und_section.
(BSR): New function.
(sparc_ip): Use it for right-shift operations of 32 bits or more.
(sparc_ip): Implement new operand type 'x'.

30 years ago* config/mt-slite (LDFLAGS): If using the newlib in the tree, set
J.T. Conklin [Thu, 28 Jul 1994 23:00:42 +0000 (23:00 +0000)]
* config/mt-slite (LDFLAGS): If using the newlib in the tree, set
  the -B and -L prefixes so we can find the debugging stub.

30 years ago * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
Stu Grossman [Thu, 28 Jul 1994 22:07:02 +0000 (22:07 +0000)]
* Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES):  Add support for
--enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
where appropriate.

* General hackery to support alternate user-interface.
* breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
disable_breakpoint):  Call hooks for alternate user-interface.
* defs.h:  Add declarations for alternate user-interface hooks.
* main.c (main):  Add --nw (and --nowindows) options to disable
the GUI.
* (near call to command_loop):  Call command_loop_hook if set.
* (fputs_unfiltered):  Call fputs_unfiltered_hook if set.
* stack.c:  Call print_frame_info_listing_hook if set.
* top.c (gdb_init):  Initialize targets.c and utils.c prior to
other files to make sure that calls to error and warning will
work.  Call init_ui_hook after everything else.
* utils.c (query):  Call query_hook if set.
* (gdb_flush):  Call flush_hook if set.
* Change _initialize_utils to initialize_utils cuz we don't use
automatic initialization of utils.c anymore.

* Support for TK GUI.
* Makefile.in:  Add rule for gdbtk.o.
* configure.in:  Add support for --enable-gdbtk.
* gdbtk.c:  New file.  Contains support routines for TK interface.
* gdbtk.tcl:  New file.  Implements GUI policy.

* remote.c:  Get rid of #ifdef DONT_USE_REMOTE.  It's no longer
necessary.

30 years ago* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
J.T. Conklin [Thu, 28 Jul 1994 21:57:31 +0000 (21:57 +0000)]
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
  there and we are using the gcc from the tree.
  (LD_FOR_TARGET): Look for ld in ../ld/ld.new.

30 years agoFix typo
J.T. Conklin [Thu, 28 Jul 1994 21:33:56 +0000 (21:33 +0000)]
Fix typo

30 years ago* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
J.T. Conklin [Thu, 28 Jul 1994 21:23:28 +0000 (21:23 +0000)]
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
  there and we are using the gcc from the tree.

* gdb.base/types.c: Removed.

30 years ago* gdb.base/configure.in: Look for makefile fragments in ../config.
J.T. Conklin [Thu, 28 Jul 1994 20:38:45 +0000 (20:38 +0000)]
* gdb.base/configure.in: Look for makefile fragments in ../config.
  Recognize i386-*-netware.
* gdb.c++/configure.in: Likewise.

30 years ago * Makefile.in (annotate.o): Add dependencies.
Fred Fish [Thu, 28 Jul 1994 18:24:07 +0000 (18:24 +0000)]
* Makefile.in (annotate.o):  Add dependencies.

30 years ago* sparclite/aload.c: Added new -q (quiet) option.
J.T. Conklin [Thu, 28 Jul 1994 01:33:45 +0000 (01:33 +0000)]
* sparclite/aload.c: Added new -q (quiet) option.
  return 0 exit status if file was successfully downloaded.

30 years ago* nlm/gdbserve.c: merge in command line argument parsing changes
J.T. Conklin [Wed, 27 Jul 1994 22:05:46 +0000 (22:05 +0000)]
* nlm/gdbserve.c: merge in command line argument parsing changes
  and bug fixes made to i386-nlmstub.c.

30 years ago* i386-nlmstub.c: The returnLength field must be initialized
J.T. Conklin [Wed, 27 Jul 1994 21:46:06 +0000 (21:46 +0000)]
* i386-nlmstub.c: The returnLength field must be initialized
  before portConfig is passed to AIOGetPortConfiguration.
  Compare command line arguments with strnicmp(); args are
  case insensitive on netware.

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.