platform/upstream/binutils.git
30 years agoAdd i386 SVR4 configuration files that I couldn't add remotely. See
Ian Lance Taylor [Fri, 17 Sep 1993 22:17:52 +0000 (22:17 +0000)]
Add i386 SVR4 configuration files that I couldn't add remotely.  See
ChangeLog.

30 years ago * config/obj-elf.h (S_GET_SIZE): Define.
Ian Lance Taylor [Fri, 17 Sep 1993 22:16:29 +0000 (22:16 +0000)]
* config/obj-elf.h (S_GET_SIZE): Define.
(obj_frob_forward_symbol): Define.
* config/tc-i386.c (line_comment_chars): Initialize in all cases.

30 years ago * reloc.c (bfd_perform_relocation): Don't return an error when
Ian Lance Taylor [Fri, 17 Sep 1993 22:13:33 +0000 (22:13 +0000)]
* reloc.c (bfd_perform_relocation): Don't return an error when
performing a reloc against an undefined weak symbol.
* syms.c (bfd_print_symbol_vandf): Show value of BSF_WEAK rather
than obsolete BSF_EXPORT.

30 years ago Finish up support for i386-sysv4 (without shared libraries):
Ian Lance Taylor [Fri, 17 Sep 1993 22:11:00 +0000 (22:11 +0000)]
Finish up support for i386-sysv4 (without shared libraries):
* ld.h (flag_is_weak): Define.
* ldlang.c (print_symbol): Mention whether symbol is weak.
(print_input_section): Print weak symbols as globals.
* ldmain.c (refize): Do not zero out BSF_WEAK flag.
(enter_global_ref): Do not warn if a weak symbol redefines a
global symbol.  Do not let a weak symbol redefine a common symbol.
(enter_file_symbols): Treat weak symbols as global symbols.
(subfile_wanted_p): Do not pull in an object file from a archive
just to resolve an undefined weak symbol.
* ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
error; the error might be that malloc has run out of space.
* ldsym.c (write_file_locals): Treat weak symbols as global.
* configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
use i386-elf.
* config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
* config/i386-elf.mt: New file; set EMUL to elf_i386.
* emulparams/elf_i386.sh: New file.
* scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
* Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
(ALL_EMULATIONS): Add em_elf_i386.o.
(GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
(em_elf_i386.c): New target, like other em_*.c targets.
($(LD_PROG)): Pass $(CFLAGS) to $(CC).
* genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument.  If
nonempty, and configured for native, add it to LIB_PATH.

30 years agoAdded statements for stab sections in coff files.
Stan Shebs [Fri, 17 Sep 1993 20:16:17 +0000 (20:16 +0000)]
Added statements for stab sections in coff files.

30 years ago * remote-sim.h: New file.
Jim Kingdon [Fri, 17 Sep 1993 17:27:43 +0000 (17:27 +0000)]
* remote-sim.h: New file.
* remote-sim.c: Add remote debug feature.  Rename stuff to distinguish
interface to simulator from gdb-specific stuff.  Other changes.
start-sanitize-v9
* remote-sp64sim.c: Renamed to remote-sim.c.
Use sr_get_debug instead of our own sim_verbose/simif_snoop.
Use gnutarget in call to bfd_openr.
Rename simif_* to gdbsim_*.
* config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
end-sanitize-v9

30 years ago * gdb.stabs/ecoff.mt: Remove STABSCC hack.
Peter Schauer [Fri, 17 Sep 1993 11:51:28 +0000 (11:51 +0000)]
    * gdb.stabs/ecoff.mt:  Remove STABSCC hack.
        * gdb.stabs/weird.exp:  Handle the case where weird.o is compiled
by mips cc and contains no stabs entries.

30 years ago * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
Peter Schauer [Fri, 17 Sep 1993 11:47:59 +0000 (11:47 +0000)]
* alpha-dis.c (print_insn_alpha), alpha-opc.h:  Fix bugs, use
info->fprintf_func for printing and info->print_address_func for
address output.

30 years ago * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
Peter Schauer [Fri, 17 Sep 1993 11:46:50 +0000 (11:46 +0000)]
* findvar.c (extract_signed_integer):  Cast *p to LONGEST before doing
the xor and subtract.  Otherwise it will not sign extend if the type
of LONGEST is larger than int.
* cp-valprint.c (cp_print_class_method):  Inhibit core dump if
domain is an undefined cross reference.
* valops.c (call_function_by_hand):  Set real_pc to correct

30 years ago* hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h,
John Gilmore [Fri, 17 Sep 1993 09:14:31 +0000 (09:14 +0000)]
* hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h,
decstation.h, delta88.h, dgux.h, dose.h, go32.h, harris.h,
hp300.h, hp300bsd.h, hppabsd.h, hppahpux.h, i386aix.h, i386bsd.h,
i386linux.h, i386lynx.h, i386v.h, i386v4.h, irix3.h, irix4.h,
mipsbsd.h, ncr3000.h, rs6000.h, rtbsd.h, solaris2.h, sparc-ll.h,
std-host.h, stratus.h, sun3.h, sysv4.h, tahoe.h, ultra3.h,
vaxult.h, vaxult2.h, we32k.h}:  Make sure that "offsetof" is
defined on all hosts, now that archive.c uses it.

30 years agoMake sure that "offsetof" is defined on all hosts, now that archive.c uses it.
John Gilmore [Fri, 17 Sep 1993 09:08:00 +0000 (09:08 +0000)]
Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.

30 years ago* config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
Jim Kingdon [Fri, 17 Sep 1993 04:54:52 +0000 (04:54 +0000)]
* config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.

30 years ago * sym.h, symconst.h: Add comment stating these files are not part
Jim Kingdon [Fri, 17 Sep 1993 03:32:10 +0000 (03:32 +0000)]
* sym.h, symconst.h: Add comment stating these files are not part
of GDB, GAS, etc.  In 1991, when we asked rms whether we could
include these files in GDB (although they are copyrighted by
someone besides the FSF), he said it was OK if they were not
considered part of GDB.

30 years ago * stabs.texinfo (Negative Type Numbers): Re-write discussions of
Jim Kingdon [Fri, 17 Sep 1993 00:50:09 +0000 (00:50 +0000)]
* stabs.texinfo (Negative Type Numbers): Re-write discussions of
names, sizes, and formats to suggest how not to lose.

30 years ago * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
Jim Kingdon [Thu, 16 Sep 1993 23:45:46 +0000 (23:45 +0000)]
* remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
to tm-a29k.h and a29k-tdep.c and make it an enum.
* a29k-tdep.c (a29k_get_processor_type): New function.  Fix many
aspects of how we detected the processor type.
* remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
rather than figuring out the type ourselves.

30 years ago * config/vx-gdb.exp: Use fake device to load files rather than
Rob Savoye [Thu, 16 Sep 1993 23:27:10 +0000 (23:27 +0000)]
* config/vx-gdb.exp: Use fake device to load files rather than
NFS.
* lib/gdb.exp: New proc to do "file" command.
* config/unix-gdb.exp: Use new "file" proc.

30 years agoUse new proc for "file" command to load symbol tables.
Rob Savoye [Thu, 16 Sep 1993 23:21:56 +0000 (23:21 +0000)]
Use new proc for "file" command to load symbol tables.

30 years ago * elfcode.h (elf_map_symbols): Create section symbols for all
Ian Lance Taylor [Thu, 16 Sep 1993 22:24:33 +0000 (22:24 +0000)]
* elfcode.h (elf_map_symbols): Create section symbols for all
sections, not just allocated sections; debugging sections can have
relocs.
(elf_symbol_from_bfd_symbol): If there is an output section, use
the section index from that rather than the input section.

30 years ago* infrun.c (wait_for_inferior): Allow user to single step within
Stu Grossman [Thu, 16 Sep 1993 20:18:26 +0000 (20:18 +0000)]
* infrun.c (wait_for_inferior):  Allow user to single step within
a stack dummy.

30 years ago * dbxread.c (copy_pending): Deal with END NULL.
Jim Kingdon [Thu, 16 Sep 1993 19:54:47 +0000 (19:54 +0000)]
* dbxread.c (copy_pending): Deal with END NULL.
(process_one_symbol): Add comments about what common_block NULL means.

30 years ago* sparc-stub.c (_trap_low): Do restore/save sequence after
Stu Grossman [Thu, 16 Sep 1993 19:16:19 +0000 (19:16 +0000)]
* sparc-stub.c (_trap_low):  Do restore/save sequence after
setting sp to ensure that we load the previous window from the
right place on the stack.

30 years ago * tc.h: Declare tc_gen_reloc differently depending upong
Ian Lance Taylor [Thu, 16 Sep 1993 18:26:36 +0000 (18:26 +0000)]
* tc.h: Declare tc_gen_reloc differently depending upong
RELOC_EXPANSION_POSSIBLE.
* config/obj-elf.c (obj_elf_section): Only set flags when first
creating the section.

30 years ago * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
Ian Lance Taylor [Thu, 16 Sep 1993 17:57:19 +0000 (17:57 +0000)]
* config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
Rework board rebooting slightly.
(gdb_exit): Don't exit from the remote shell; there isn't one.
* gdb.stabs/weird.exp: If a program is being debugged already,
kill it.
* gdb.t04/setvar.exp: Stop and restart gdb.
* gdb.t05/expr.exp: Likewise.
* gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
restart gdb and reload the program.
* gdb.t08/opaque.exp: Likewise.
* gdb.t12/scope.exp: Likewise.
* gdb.t13/bitfields.exp: Likewise.
* gdb.t15/funcargs.exp: Likewise.
* gdb.t20/classes.exp: Likewise.
* gdb.t03/ptype.exp: Increase timeout.
* gdb.t16/printcmds.exp (test_print_string_constants,
test_print_array_constants): Likewise.
* gdb.t17/callfuncs.exp (do_function_calls): Likewise.
* gdb.t20/classes.exp (do_tests): Likewise.
* gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.

30 years ago * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
Peter Schauer [Thu, 16 Sep 1993 07:39:41 +0000 (07:39 +0000)]
* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.

30 years ago * mipsread.c: Many changes for alpha ecoff format:
Peter Schauer [Thu, 16 Sep 1993 07:38:42 +0000 (07:38 +0000)]
* mipsread.c:  Many changes for alpha ecoff format:
Correct sizeof(int) == sizeof(long) assumptions.
Replace stParsed hack by putting the parsed types on the pending chain.
Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
provide default for cross debugging.
Swapping the symbol back is no longer needed as the symbol is not
modified anymore.
Add new alpha basic types, handle btTypedef, handle stStaticProc
external symbols .
Update and clean up cross_ref for alpha cc cross ref variations.
Allocate types on the type_obstack to inhibit storage leaks.
* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.
* gdbtypes.c (recursive_dump_type):  Dump TYPE_TAG_NAME if it is set.

30 years agoChange wierd to weird
Ian Lance Taylor [Wed, 15 Sep 1993 22:17:29 +0000 (22:17 +0000)]
Change wierd to weird

30 years ago * libbfd.h (COERCExx): Cast x to bfd_signed_vma before doing the
Ian Lance Taylor [Wed, 15 Sep 1993 20:57:47 +0000 (20:57 +0000)]
* libbfd.h (COERCExx): Cast x to bfd_signed_vma before doing the
xor and subtract.  Otherwise it will not sign extend if the type
of bfd_vma is larger than int.

30 years ago * remote-utils.[ch]: new files of functions collected from several
Jim Kingdon [Wed, 15 Sep 1993 20:20:23 +0000 (20:20 +0000)]
* remote-utils.[ch]: new files of functions collected from several
  different remote targets.

30 years ago * gdb.t13/bitfields.exp: Test for bad output rather than waiting
Jim Kingdon [Wed, 15 Sep 1993 17:39:33 +0000 (17:39 +0000)]
* gdb.t13/bitfields.exp: Test for bad output rather than waiting
for timeout.  Add "known gcc 2.4.5 bug" to failure message.

30 years ago * paread.c, coffread.c, elfread.c, dwarfread.c:
Jim Kingdon [Wed, 15 Sep 1993 16:45:44 +0000 (16:45 +0000)]
* paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> and <sys/types.h> before libbfd.h.

30 years ago * ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffset
Ian Lance Taylor [Wed, 15 Sep 1993 15:58:11 +0000 (15:58 +0000)]
* ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffset
and frameoffset as signed numbers.  From Peter Schauer.

30 years agofix replacement of multiline values for CC and CXX
David D. Zuhn [Wed, 15 Sep 1993 02:11:35 +0000 (02:11 +0000)]
fix replacement of multiline values for CC and CXX

30 years ago * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
Jim Kingdon [Wed, 15 Sep 1993 00:47:45 +0000 (00:47 +0000)]
* gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
(do_tests): Remove xfail for whatis on one_var and two_var.

30 years ago * stabsread.c (read_type): Process "s" (size) type attribute.
Jim Kingdon [Wed, 15 Sep 1993 00:46:55 +0000 (00:46 +0000)]
* stabsread.c (read_type): Process "s" (size) type attribute.
If type is defined to another type, copy the type.

30 years ago * paread.c, coffread.c, elfread.c, dwarfread.c:
Jim Kingdon [Tue, 14 Sep 1993 23:26:43 +0000 (23:26 +0000)]
* paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> before libbfd.h.

30 years ago * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
Ian Lance Taylor [Tue, 14 Sep 1993 22:41:49 +0000 (22:41 +0000)]
* config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
* config/i386/i386v4.mt (TDEPFILES): ...to here.

30 years ago * elf32-i386.c (elf_howto_table): Add bfd_elf_generic_reloc
Ian Lance Taylor [Tue, 14 Sep 1993 22:29:26 +0000 (22:29 +0000)]
* elf32-i386.c (elf_howto_table): Add bfd_elf_generic_reloc
special function for all reloc entries.
* elf32-target.h (TARGET_LITTLE_SYM): Add SEC_CODE to
section_flags.
* libelf.h (elf_symbol_type): Remove desc, type and other fields.
* Makefile.in (elf32-*.o): These depend upon elf32-target.h.

30 years ago * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
Ian Lance Taylor [Tue, 14 Sep 1993 22:28:22 +0000 (22:28 +0000)]
* config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
set previous_section and previous_subsection and then call s_data
and s_text, respectively.
(obj_pseudo_table): Add data and text.
(obj_elf_section): Add SEC_LOAD to default initialization of
flags.  Treat .rodata1 like .rodata.  Set SEC_LOAD as well as
SEC_ALLOC for "alloc" string.  Don't bother trying to find the
section; just use subseg_new.

30 years ago Tue Sep 14 14:34:45 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
Steve Chamberlain [Tue, 14 Sep 1993 21:39:33 +0000 (21:39 +0000)]
 Tue Sep 14 14:34:45 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)

  * libbfd-in.h (struct artdata):  Add armap_timestamp and
  armap_datepos here too.

30 years agofix serial.h inclusion
K. Richard Pixley [Tue, 14 Sep 1993 20:08:23 +0000 (20:08 +0000)]
fix serial.h inclusion

30 years agouse remote-utils facilities for baud_rate
K. Richard Pixley [Tue, 14 Sep 1993 19:34:15 +0000 (19:34 +0000)]
use remote-utils facilities for baud_rate

30 years ago* paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.
Jim Kingdon [Tue, 14 Sep 1993 18:10:42 +0000 (18:10 +0000)]
* paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.

30 years agoSome more gcc lint, and:
Ian Lance Taylor [Tue, 14 Sep 1993 17:58:35 +0000 (17:58 +0000)]
Some more gcc lint, and:

* read.c (change_to_section): Removed.  This is now done by
subseg_new.
(get_stab_string_offset): Rearranged somewhat.  Create the section
using subseg_new.  Store the string index in seg_info, rather than
in a static variable.  Force the first string to be empty.  Use
frag_more rather than FRAG_APPEND_1_CHAR.
(s_stab_generic): Rewrote.
* subsegs.h (segment_info_type): Added stabu union.
* subsegs.c (subseg_new): Initialize stab_string_size to 0.
* config/obj-aout.c: Don't include aout/stab_gnu.h.
(obj_aout_stab, obj_aout_desc): Removed.
(obj_pseudo_table): Removed desc and stabX entries.
* config/obj-bout.c: Same changes as config/obj-aout.c.
* config/obj-bout.h (S_SET_TYPE): Define.
(tc_bout_fix_to_chars): Declare.
* config/obj-coff.c (obj_coff_stab): Removed.
(obj_pseudo_table): Removed desc and stabX entries.
* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
* config/obj-coffbfd.c (current_stab_symbol): Removed.
* config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
n_other, n_desc and n_value fields.
(S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
(MAKE_STAB_SYMBOL): Removed.
* config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
Changed arguments and removed parsing code.
(obj_pseudo_table): Removed stabX entries.
* config/obj-ecoff.h (ecoff_stab): Declare.
(OBJ_PROCESS_STAB): Define.
* config/obj-elf.c: Don't include aout/stab_gnu.h.
(obj_elf_stab, obj_elf_xstab, obj_elf_desc,
elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
Removed.
(obj_pseudo_table): Removed desc, stabX and xstabs entries.
(obj_elf_version): Use subseg_new, not bfd_make_section.  Don't
set SEC_LOAD for .note section.
(adjust_stab_sections): Get frag pointer from seg_info, rather
than looking through frags.
* config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
(SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
Define.
* config/obj-vms.c (obj_aout_stab): Removed.
(obj_pseudo_table): Removed stabX entries.
* config/obj-vms.h (S_SET_TYPE): Define.

30 years ago * paread.c: Include <time.h> before libbfd.h.
Jim Kingdon [Tue, 14 Sep 1993 17:32:45 +0000 (17:32 +0000)]
* paread.c: Include <time.h> before libbfd.h.

* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.

30 years ago * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
Jim Kingdon [Tue, 14 Sep 1993 16:22:07 +0000 (16:22 +0000)]
* Makefile.in (a29k-tdep.o): Depend on $(defs_h).
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
if this is a transparent procedure.

30 years ago* remote-udi.c (udi_wait): Return inferior_pid not 0.
Jim Kingdon [Tue, 14 Sep 1993 16:19:30 +0000 (16:19 +0000)]
* remote-udi.c (udi_wait): Return inferior_pid not 0.

30 years agoAvoid minor warning in archive.c change.
John Gilmore [Tue, 14 Sep 1993 04:19:40 +0000 (04:19 +0000)]
Avoid minor warning in archive.c change.

30 years ago* hosts/std-host.h (offsetof): Define, if not already, for archive.c.
John Gilmore [Tue, 14 Sep 1993 04:15:23 +0000 (04:15 +0000)]
* hosts/std-host.h (offsetof):  Define, if not already, for archive.c.

30 years agoImprove timestamp support in BSD archive files to avoid linker
John Gilmore [Tue, 14 Sep 1993 04:13:43 +0000 (04:13 +0000)]
Improve timestamp support in BSD archive files to avoid linker
warnings.

* libbfd.h (struct artdata):  Add armap_timestamp and armap_datepos.
(bfd_flush, bfd_stat):  Add prototypes.
* libbfd.c (bfd_flush):  Add, does fflush on a BFD.
(bfd_stat):  Add, does fstat on a BFD.

* archive.c (_bfd_write_archive_contents): At end of file writing,
verify and possibly update the timestamp in the armap, if a BSD
archive.  FIXME!  Kludge recognizes BSD archive, rather than
vectoring properly.  Should add to xvec.
(compute_and_write_armap):  Move prototype to top, avoid PROTO.
(bsd_write_armap): Save timestamp and file location thereof, when
writing the armap in a BSD file.
(bsd_update_armap_timestamp):  New function to check and
rewrite the timestamp.

30 years ago * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
Jim Kingdon [Tue, 14 Sep 1993 01:08:22 +0000 (01:08 +0000)]
* remote.c: Define remote_debug to 0 and #if 0 baud_rate.  Temporary
hack so this file compiles again.

* remote-utils.c (gr_multi_scan): Cast return value from alloca.
(gr_multi_scan): #if 0 never-reached return(-1).

30 years agoadd comment
Jim Kingdon [Mon, 13 Sep 1993 23:06:17 +0000 (23:06 +0000)]
add comment

30 years agoadd som.c and som.h
Jim Kingdon [Mon, 13 Sep 1993 22:51:51 +0000 (22:51 +0000)]
add som.c and som.h

30 years agocollect some remote things into remote-utils
K. Richard Pixley [Mon, 13 Sep 1993 22:12:16 +0000 (22:12 +0000)]
collect some remote things into remote-utils

30 years ago * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
Ian Lance Taylor [Mon, 13 Sep 1993 21:32:07 +0000 (21:32 +0000)]
* subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
Wrote non-BFD_ASSEMBLER subseg_new.  Now subseg_new always takes a
section name, and subseg_set always takes a segT.  Changed all
callers as appropriate.
* config/obj-coffbfd.c  (change_to_section): Renamed to
obj_coff_add_segment.  Corrected.  Made callers use subseg_new.
* config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
Define.

Also some more gcc warning removal.

30 years ago * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
Jim Kingdon [Mon, 13 Sep 1993 20:54:00 +0000 (20:54 +0000)]
* inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
pc_changed.  If it was ever set to a non-zero value, it was before
GDB 2.8.  It doesn't seem to have any useful function.

30 years agoconfig/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
David Edelsohn [Mon, 13 Sep 1993 20:16:03 +0000 (20:16 +0000)]
config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.

30 years ago* defs.h: Don't define NORETURN (see comment).
Jim Kingdon [Mon, 13 Sep 1993 20:13:03 +0000 (20:13 +0000)]
* defs.h: Don't define NORETURN (see comment).

30 years agowhite space change to avoid nested comment
K. Richard Pixley [Mon, 13 Sep 1993 19:52:23 +0000 (19:52 +0000)]
white space change to avoid nested comment

30 years agodo not echo recursion lines
K. Richard Pixley [Mon, 13 Sep 1993 19:49:33 +0000 (19:49 +0000)]
do not echo recursion lines

30 years ago * m68k.h (two): Protect second argument with parentheses.
Ian Lance Taylor [Mon, 13 Sep 1993 19:47:41 +0000 (19:47 +0000)]
* m68k.h (two): Protect second argument with parentheses.

30 years agouse pagas instead of gas
David D. Zuhn [Mon, 13 Sep 1993 19:33:54 +0000 (19:33 +0000)]
use pagas instead of gas

30 years agouse mt-hppa, use 'gas ' instead of 'gas'
David D. Zuhn [Mon, 13 Sep 1993 19:29:54 +0000 (19:29 +0000)]
use mt-hppa, use 'gas ' instead of 'gas'

30 years agoAdd EMUL=h8300h.
David Edelsohn [Sun, 12 Sep 1993 23:12:31 +0000 (23:12 +0000)]
Add EMUL=h8300h.

30 years ago* ldmain.c (main): Call set_scripts_dir after argv has been processed.
David Edelsohn [Sun, 12 Sep 1993 23:07:40 +0000 (23:07 +0000)]
* ldmain.c (main): Call set_scripts_dir after argv has been processed.

30 years ago * hosts/i386sco.h: Define a bunch of stuff for core files.
Jim Kingdon [Sun, 12 Sep 1993 05:09:08 +0000 (05:09 +0000)]
* hosts/i386sco.h: Define a bunch of stuff for core files.
* sco-core.c: Remove, replace by trad-core.c.
* trad-core.c: If HOST_STACK_START_ADDR is defined, use it.
* config/i386sco.mh: Use trad-core not sco-core.
* hosts/i386isc.h, config/i386isc.mh: Remove.
* configure.host: Use i386sco for isc.
* config/i386-sco.mt: Remove, identical to i386-coff.mt.
* config.bfd: Use i386-coff not i386-sco.

30 years ago* gdb.texinfo: Clarify how well it works with Fortran.
Jim Kingdon [Sun, 12 Sep 1993 05:00:53 +0000 (05:00 +0000)]
* gdb.texinfo: Clarify how well it works with Fortran.

30 years ago * config.bfd: Recognize i[34]86-*-solaris2* specifically rather
Jim Kingdon [Sun, 12 Sep 1993 01:16:45 +0000 (01:16 +0000)]
* config.bfd: Recognize i[34]86-*-solaris2* specifically rather
than using *-*-solaris2* (i486-unknown-solaris2 is i386-elf, not
i486-elf which doesn't exist).

30 years ago* m88k-nat.c (fill_gregset): Set r31 and sfip.
Jim Kingdon [Sat, 11 Sep 1993 17:48:47 +0000 (17:48 +0000)]
* m88k-nat.c (fill_gregset): Set r31 and sfip.

30 years ago* stabs.texinfo (Methods): Fix typo.
Jim Kingdon [Sat, 11 Sep 1993 16:36:01 +0000 (16:36 +0000)]
* stabs.texinfo (Methods): Fix typo.

30 years agoMore gcc lint with harsher warning options.
Ian Lance Taylor [Sat, 11 Sep 1993 00:15:39 +0000 (00:15 +0000)]
More gcc lint with harsher warning options.

30 years agoSnapshot of current i386 NLM debugging stub.
Ian Lance Taylor [Fri, 10 Sep 1993 23:25:40 +0000 (23:25 +0000)]
Snapshot of current i386 NLM debugging stub.

30 years ago * coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, force
Ian Lance Taylor [Fri, 10 Sep 1993 21:54:32 +0000 (21:54 +0000)]
* coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, force
padding field to zero.

30 years ago * alpha.c (external_aouthdr): Need four bytes of padding between
Ian Lance Taylor [Fri, 10 Sep 1993 21:41:41 +0000 (21:41 +0000)]
* alpha.c (external_aouthdr): Need four bytes of padding between
vstamp and tsize.

30 years agoadd support for gash
David D. Zuhn [Fri, 10 Sep 1993 21:36:45 +0000 (21:36 +0000)]
add support for gash

30 years agoadd netbsd variants
David D. Zuhn [Fri, 10 Sep 1993 18:25:06 +0000 (18:25 +0000)]
add netbsd variants

30 years agoAdded gdb_exit to call default_gdb_exit.
Rob Savoye [Fri, 10 Sep 1993 17:35:11 +0000 (17:35 +0000)]
Added gdb_exit to call default_gdb_exit.

30 years ago * config.bfd (i[34]86-*-netbsd*): New target; use i386-netbsd.
Ian Lance Taylor [Fri, 10 Sep 1993 17:10:13 +0000 (17:10 +0000)]
* config.bfd (i[34]86-*-netbsd*): New target; use i386-netbsd.
* configure.in: Remove bogus netbsd386 handling.

30 years ago * coff-mips.c: Don't warn about overflow for MIPS_R_JMPADDR reloc.
Ian Lance Taylor [Fri, 10 Sep 1993 17:00:49 +0000 (17:00 +0000)]
* coff-mips.c: Don't warn about overflow for MIPS_R_JMPADDR reloc.
Correct overflow detection requires matching the upper four bits
of the destination against the PC.

30 years agoAdded CXXFLAGS to compile stage in ld.cdtest/cdtest.exp
Jeffrey Wheat [Fri, 10 Sep 1993 17:00:19 +0000 (17:00 +0000)]
Added CXXFLAGS to compile stage in ld.cdtest/cdtest.exp

30 years agoChanged CXX back to g++. Using ../gcc/xgcc breaks because of <assert.h>
Jeffrey Wheat [Fri, 10 Sep 1993 16:53:33 +0000 (16:53 +0000)]
Changed CXX back to g++. Using ../gcc/xgcc breaks because of <assert.h>

30 years agoChanged CXX back to g++. ../gcc/xgcc breaks the cdtest because of <assert.h>
Jeffrey Wheat [Fri, 10 Sep 1993 16:50:52 +0000 (16:50 +0000)]
Changed CXX back to g++. ../gcc/xgcc breaks the cdtest because of <assert.h>

30 years agoFixed RUNTEST* CXX CXXFLAGS macros and check rule.
Jeffrey Wheat [Fri, 10 Sep 1993 16:37:47 +0000 (16:37 +0000)]
Fixed RUNTEST* CXX CXXFLAGS macros and check rule.

30 years agogcc lint. See ChangeLog for details. Also:
Ian Lance Taylor [Fri, 10 Sep 1993 16:01:07 +0000 (16:01 +0000)]
gcc lint.  See ChangeLog for details.  Also:

* config/obj-elf.h (S_SET_SIZE): Actually set the size.

30 years ago* Makefile.in (install): Don't put strings in tooldir/bin.
David MacKenzie [Fri, 10 Sep 1993 15:13:05 +0000 (15:13 +0000)]
* Makefile.in (install): Don't put strings in tooldir/bin.

30 years ago* Makefile.in (TAGS): Use shell wildcards.
David MacKenzie [Fri, 10 Sep 1993 14:29:45 +0000 (14:29 +0000)]
* Makefile.in (TAGS): Use shell wildcards.

30 years agofix a few typos
David MacKenzie [Fri, 10 Sep 1993 13:36:07 +0000 (13:36 +0000)]
fix a few typos

30 years ago (chmodcmd): Set file to mode 755 by default (should also do default
Jason Merrill [Fri, 10 Sep 1993 00:04:38 +0000 (00:04 +0000)]
(chmodcmd): Set file to mode 755 by default (should also do default
chgrp and chown, but I don't feel like dealing with that now)

30 years ago * install.sh: Support -d option (in the manner of SunOS 4 install,
Jason Merrill [Thu, 9 Sep 1993 23:50:23 +0000 (23:50 +0000)]
* install.sh: Support -d option (in the manner of SunOS 4 install,
as it is more deterministic than that of GNU install)

30 years agogcc -Wall cleanups from Utah
Ken Raeburn [Thu, 9 Sep 1993 21:53:03 +0000 (21:53 +0000)]
gcc -Wall cleanups from Utah

30 years ago * i386.h (i386_optab): Properly bracket initializers.
Ian Lance Taylor [Thu, 9 Sep 1993 21:43:54 +0000 (21:43 +0000)]
* i386.h (i386_optab): Properly bracket initializers.

30 years ago* configure.in: Make 64-bit stuff work with "--with-targets=all".
Ken Raeburn [Thu, 9 Sep 1993 21:03:20 +0000 (21:03 +0000)]
* configure.in: Make 64-bit stuff work with "--with-targets=all".

30 years ago * read.c (get_stab_string_offset, s_stab_generic): If
Ian Lance Taylor [Thu, 9 Sep 1993 19:09:23 +0000 (19:09 +0000)]
* read.c (get_stab_string_offset, s_stab_generic): If
BFD_ASSEMBLER, call subseg_set rather than subseg_new.

30 years ago More gcc lint:
Jim Kingdon [Thu, 9 Sep 1993 18:33:44 +0000 (18:33 +0000)]
More gcc lint:
* exec.c (ignore): Return 0.
* stack.c (return_command): Fetch lazy value directly, not via
VALUE_CONTENTS, to avoid "value computed is not used".
* inflow.c (new_tty): Move osigttou inside #if.

* remote.c (remote_fetch_registers): If remote reply is short, just
note that fact and keep going (reading extra registers as all bits 0).
(remote_store_registers): Send number of registers that were found
by remote_fetch_registers.
* m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
HAVE_68881.  Define CANNOT_STORE_REGISTER if ptrace() can't write
floating registers.
* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
* Makefile.in, configure.in: Change accordingly.

30 years ago * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
Jim Kingdon [Thu, 9 Sep 1993 17:58:46 +0000 (17:58 +0000)]
* remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
getchar() (terminated only on '\n') instead of scanf.  Send the
'\n' which terminates it to the remote system.

30 years ago * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt}: Remove.
Jim Kingdon [Thu, 9 Sep 1993 16:09:37 +0000 (16:09 +0000)]
* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt}: Remove.
* config/m68k/{tm-m68k-fp.h,m68k-fp.mt}: Rename to
{tm-m68k-em.h,m68k-em.mt}.

30 years ago * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
Peter Schauer [Thu, 9 Sep 1993 12:02:59 +0000 (12:02 +0000)]
* mipsread.c (cross_ref):  Allow SGI extended symbol types as cross
reference targets.
* symmisc.c (print_symbol):  Use TYP_TAG_NAME not TYPE_NAME to avoid
printing of identities.

30 years agoMade cross testing work better.
Rob Savoye [Thu, 9 Sep 1993 05:12:46 +0000 (05:12 +0000)]
Made cross testing work better.

30 years ago* gdb.texinfo: Clarify how well it works with Fortran.
Jim Kingdon [Thu, 9 Sep 1993 01:53:36 +0000 (01:53 +0000)]
* gdb.texinfo: Clarify how well it works with Fortran.

30 years ago* breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
Jim Kingdon [Thu, 9 Sep 1993 00:33:22 +0000 (00:33 +0000)]
* breakpoint.c (breakpoint_1): Deal with step resume breakpoint.

30 years ago * stabs.texinfo (Stabs In ELF, Statics, ELF Transformations):
Jim Kingdon [Wed, 8 Sep 1993 23:05:46 +0000 (23:05 +0000)]
* stabs.texinfo (Stabs In ELF, Statics, ELF Transformations):
More on relocating stabs in ELF files.