binutils-gdb.git
30 years ago * op50-rom.c, w89k-rom.c, monitor.c: Modify to use two variables
Rob Savoye [Tue, 15 Nov 1994 08:13:05 +0000 (08:13 +0000)]
* op50-rom.c, w89k-rom.c, monitor.c: Modify to use two variables
to set remote load type and protocol.
* rom68k-rom.c: Add to_stop in target_ops.

30 years agoFixed keep_these_too/lose_these_too for mpw and hpread
Angela Marie Thomas [Tue, 15 Nov 1994 05:27:19 +0000 (05:27 +0000)]
Fixed keep_these_too/lose_these_too for mpw and hpread

30 years agoRemoved remote-mon.c, and add it's replacement rom68k-rom.c.
Rob Savoye [Mon, 14 Nov 1994 22:57:40 +0000 (22:57 +0000)]
Removed remote-mon.c, and add it's replacement rom68k-rom.c.

30 years agoAdd copyright message.
Rob Savoye [Mon, 14 Nov 1994 22:55:52 +0000 (22:55 +0000)]
Add copyright message.

30 years ago * Makefile.in: Install gdbtk.tcl.
Stu Grossman [Mon, 14 Nov 1994 16:59:16 +0000 (16:59 +0000)]
* Makefile.in:  Install gdbtk.tcl.
* configure.in:  Add ENABLE_GDBTK flag.
* gdbtk.c (gdb_sourcelines):  Returns list of source lines
containing code.  (gdb_regnames):  Returns list of register names.

30 years agoKeep ld-shared.
Ian Lance Taylor [Mon, 14 Nov 1994 16:57:14 +0000 (16:57 +0000)]
Keep ld-shared.

30 years agoKeep i386lynx.mh.
Ian Lance Taylor [Mon, 14 Nov 1994 16:54:44 +0000 (16:54 +0000)]
Keep i386lynx.mh.

30 years ago * configure.in: Remove tk from native_only list.
Stu Grossman [Mon, 14 Nov 1994 16:50:50 +0000 (16:50 +0000)]
* configure.in:  Remove tk from native_only list.

30 years ago * somsolib.c: Add TODO list.
Jeff Law [Sun, 13 Nov 1994 05:06:20 +0000 (05:06 +0000)]
* somsolib.c: Add TODO list.
(som_solib_add): Immediately return if $SHLIB_INFO$ sections does
not exist or has size zero.  Slightly simplify error handling.
Keep an internal list of all the loaded shared libraries and
various tidbits of information about the loaded shared libraries.
Build section tables for each loaded shared library and add those
tables to the core target if necessary.
(som_solib_create_inferior_hook): Force re-reading of shared
libraries at exec time.
(som_sharedlibrary_info_command): New function for dumping
information about the currently loaded shared libraries.
(_initialize_som_solib): New function.

30 years ago * elfcode.h (elf_export_symbol): Also export symbols which are
Ian Lance Taylor [Sun, 13 Nov 1994 04:51:53 +0000 (04:51 +0000)]
* elfcode.h (elf_export_symbol): Also export symbols which are
referenced by a regular file.

30 years ago * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
Ian Lance Taylor [Sat, 12 Nov 1994 20:59:18 +0000 (20:59 +0000)]
* scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
_start.

30 years ago * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add
Ian Lance Taylor [Sat, 12 Nov 1994 20:55:33 +0000 (20:55 +0000)]
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add
export_dynamic argument, and handle it.
(elf_export_symbol): New function.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
(bfd_elf64_size_dynamic_sections): Update declaration.
* bfd-in2.h: Rebuild.

30 years ago * ld.h (args_type): Add field export_dynamic.
Ian Lance Taylor [Sat, 12 Nov 1994 20:54:09 +0000 (20:54 +0000)]
* ld.h (args_type): Add field export_dynamic.
* lexsup.c (parse_args): Recognize --export-dynamic.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.

30 years ago * Makefile.in (copying.o, f-exp.tab.o, dpx2-nat.o, dstread.o,
Peter Schauer [Sat, 12 Nov 1994 11:22:47 +0000 (11:22 +0000)]
* Makefile.in (copying.o, f-exp.tab.o, dpx2-nat.o, dstread.o,
i386aix-nat.o, i386m3-nat.o, irix5-nat.o, lynx-nat.o, m3-nat.o,
mipsm3-nat.o, ns32km3-nat.o, remote-e7000.o, remote-os9k.o):
Add dependencies.
(copying.o, os9kread.o, remote.o):  Update dependencies.

* valarith.c (value_sub):  When subtracting pointers, only
check for a match of the pointed to element lengths.
Cast element length to LONGEST to obtain a signed result for
pointer subtractions.

30 years ago * build-all.mk: Add mips-ncd-elf target to sun4 targets
Bill Cox [Fri, 11 Nov 1994 23:33:23 +0000 (23:33 +0000)]
* build-all.mk: Add mips-ncd-elf target to sun4 targets
  for special NCD build.

30 years ago * ch-exp.y (yylex): Fix off-by-one error when converting string to
Jeff Law [Fri, 11 Nov 1994 19:17:41 +0000 (19:17 +0000)]
* ch-exp.y (yylex): Fix off-by-one error when converting string to
lowercase.  Null terminate new string.

30 years ago * hppa-tdep.c (rp_saved): Handle IMPORT stubs too.
Jeff Law [Fri, 11 Nov 1994 17:55:38 +0000 (17:55 +0000)]
* hppa-tdep.c (rp_saved): Handle IMPORT stubs too.

* somsolib.c (som_solib_add): Check the value of __dld_flags, if
it indicates __dld_list is not valid return an error.  If it
indicates that libraries were not mapped privately, issue a
warning.

30 years ago * hpux-core.c (hpux_core_struct): Delete handles for the
Jeff Law [Fri, 11 Nov 1994 17:40:27 +0000 (17:40 +0000)]
* hpux-core.c (hpux_core_struct): Delete handles for the
data, reg and stack sections.  They're never used.  Delete
accessor macros.
(make_bfd_asection): Use bfd_make_section_anyway since debugging
cores from dynamic executables may have several sections with the
same logical name.
(hpux_core_core_file_p): Don't save handles to data, reg and
stack sections.  Handle CORE_TEXT, CORE_MMF and CORE_SHM.

30 years ago * symfile.c (syms_from_objfile): Only call find_lowest_section if
Jeff Law [Fri, 11 Nov 1994 06:21:50 +0000 (06:21 +0000)]
* symfile.c (syms_from_objfile): Only call find_lowest_section if
no ".text" section exists.

30 years ago * rom68k-rom.c: New file. Replaces the old remote-mon.c and uses
Rob Savoye [Thu, 10 Nov 1994 23:20:03 +0000 (23:20 +0000)]
* rom68k-rom.c: New file. Replaces the old remote-mon.c and uses
the new generic ROM interface in monitor.c.
* config/m68k/monitor.mt: Use new ROM support.
* monitor.c: Add support for xmodem download protocol.

30 years ago * findvar.c (find_saved_register): Fix a frame variable name.
Stan Shebs [Thu, 10 Nov 1994 03:11:23 +0000 (03:11 +0000)]
* findvar.c (find_saved_register): Fix a frame variable name.
* infcmd.c (finish_command): Ditto.

30 years agoadd delta68 config
Ken Raeburn [Wed, 9 Nov 1994 19:57:37 +0000 (19:57 +0000)]
add delta68 config

30 years ago * config/tc-ppc.c (ppc_bf): Always set coff_line_base.
Ian Lance Taylor [Wed, 9 Nov 1994 19:53:58 +0000 (19:53 +0000)]
* config/tc-ppc.c (ppc_bf): Always set coff_line_base.
PR 5830.

30 years ago * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
Ian Lance Taylor [Wed, 9 Nov 1994 17:48:24 +0000 (17:48 +0000)]
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
we allocate common symbols.

30 years agoTue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
Ian Lance Taylor [Tue, 8 Nov 1994 22:57:13 +0000 (22:57 +0000)]
Tue Nov  8 17:50:43 1994  Eric Youngdale  (eric@aib.com)

* scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
.rela.fini to the list of .rel* sections.

30 years ago * ldlang.c (load_symbols): Add new argument place. Only accept
Ian Lance Taylor [Tue, 8 Nov 1994 22:54:07 +0000 (22:54 +0000)]
* ldlang.c (load_symbols): Add new argument place.  Only accept
linker scripts if place is not NULL.  Put commands found in an
assumed linker script into place.
(lookup_name): Pass NULL as place argument to load_symbols.
(open_input_bfds): In lang_input_statement_enum case, pass a place
argument to load_symbols, and store any new statements after the
current one.
PR 5917.

30 years ago * TODO: Remove "Watchpoints seem not entirely reliable, though
Jim Kingdon [Tue, 8 Nov 1994 21:40:14 +0000 (21:40 +0000)]
* TODO: Remove "Watchpoints seem not entirely reliable, though
they haven't failed me recently." item--this old (4.6 at least)
item is too vague to be useful (some watchpoint bugs have been
fixed since then).
* TODO: Add explanation of "RPC interface" item.

30 years agoDelete gasp tests when sanitizing, at least until they're actually run by
Ken Raeburn [Tue, 8 Nov 1994 20:16:13 +0000 (20:16 +0000)]
Delete gasp tests when sanitizing, at least until they're actually run by
"make check".

30 years ago * .Sanitize: Add gasp subdirectory to the keepers list.
Bill Cox [Tue, 8 Nov 1994 19:48:17 +0000 (19:48 +0000)]
* .Sanitize: Add gasp subdirectory to the keepers list.

30 years ago * .Sanitize: New file for gasp testcases.
Bill Cox [Tue, 8 Nov 1994 19:46:44 +0000 (19:46 +0000)]
* .Sanitize: New file for gasp testcases.

30 years ago * objcopy.c (copy_archive): Keep a list of the names of the
Ian Lance Taylor [Tue, 8 Nov 1994 18:16:10 +0000 (18:16 +0000)]
* objcopy.c (copy_archive): Keep a list of the names of the
        temporary files we created.  Close each input BFD after we open
        its successor.
PR 5915.

30 years ago * bout.c (callj_callback): Add new argument shrinking. Change all
Ian Lance Taylor [Tue, 8 Nov 1994 18:05:43 +0000 (18:05 +0000)]
* bout.c (callj_callback): Add new argument shrinking.  Change all
callers.  Handle relocs against section symbols correctly.  If not
shrinking, don't subtract out dstidx; the subtraction is already
in the object file.
PR 5883.

30 years agoSmall blurb on support for debugging dynamic executables on HPPAs running
Jeff Law [Tue, 8 Nov 1994 06:39:33 +0000 (06:39 +0000)]
Small blurb on support for debugging dynamic executables on HPPAs running
hpux9.

30 years ago * hppa-tdep.c (read_unwind_info): Use "text_offset" for linker
Jeff Law [Tue, 8 Nov 1994 06:06:35 +0000 (06:06 +0000)]
* hppa-tdep.c (read_unwind_info): Use "text_offset" for linker
stub unwind descriptors too.

30 years ago * Enable backtracing from inside a SOM shared library back into
Jeff Law [Tue, 8 Nov 1994 05:31:33 +0000 (05:31 +0000)]
* Enable backtracing from inside a SOM shared library back into
user code.
* hppa-tdep.c (internalize_unwinds): Accept and use new
"text_offset" argument for dynamic relocation of
region_{start,end} fields in the unwind descriptor.
(read_unwind_info): Pass text_offset to internalize unwinds.

30 years agoVarious changes to support building shared lib{g,stdc}++
Jason Merrill [Tue, 8 Nov 1994 02:16:18 +0000 (02:16 +0000)]
Various changes to support building shared lib{g,stdc}++

30 years ago* Makefile.in (DEVO_SUPPORT): Remove configure.bat and makeall.bat, they're
Ken Raeburn [Tue, 8 Nov 1994 02:04:00 +0000 (02:04 +0000)]
* Makefile.in (DEVO_SUPPORT): Remove configure.bat and makeall.bat, they're
only useful for binutils snapshots.
(binutils.tar.gz, gas+binutils.tar.gz): Add configure.bat and makeall.bat to
specified SUPPORT_FILES.

30 years ago * build-all.mk: Add Ericsson targets to sun4 and solaris
Bill Cox [Tue, 8 Nov 1994 01:32:51 +0000 (01:32 +0000)]
* build-all.mk: Add Ericsson targets to sun4 and solaris
  hosts.  Add  BNR's sun4 target to solaris host, so their
  build-from-source will be tested in-house first.

30 years ago * m3-nat.c: Remove comments about arbitrary limit in
Jim Kingdon [Mon, 7 Nov 1994 22:39:34 +0000 (22:39 +0000)]
* m3-nat.c: Remove comments about arbitrary limit in
printf_filtered; that limit is gone.

30 years ago* configure.in: Compare generic cpu name against "sparc", not "sparc*", since
Ken Raeburn [Mon, 7 Nov 1994 20:29:46 +0000 (20:29 +0000)]
* configure.in: Compare generic cpu name against "sparc", not "sparc*", since
sparc variants should be changed to "sparc".
* configure: Regenerated with autoconf 2.1.

30 years ago * Beginnings of SOM shared library support. Breakpoints and
Jeff Law [Mon, 7 Nov 1994 07:51:47 +0000 (07:51 +0000)]
* Beginnings of SOM shared library support.  Breakpoints and
single frame backtracing within the library only.  Only works when
using the HPUX 9 dynamic linker.  More functionality to be added
soon.

* somsolib.c, somsolib.h: New files.
* Makefile.in (HFILES_NO_SRCDIR): Add somsolib.h
(ALLDEPFILES): Add somsolib.c.
(somsolib.o): Add some dependencies.
* mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
(ALLDEPFILES): Add somsolib.c.
(somsolib.o): Add some dependencies.
* somread.c (som_symtab_read): Accept multiple section offsets.
All callers changed.  Adjust all text symbols with the first
section offset.
* symfile.c (find_lowest_section): Enable this function.  Add some
tie-breaking logic when sections have the same vma.
(syms_from_objfile): Use find_lowest_section rather than looking
for ".text" by name.  Relax warning to only warn if the lowest
section is not a code section.
* config/pa/{hppabsd.mh, hppahpux.mh} (NATDEPFILES): Add somsolib.o
* config/pa/{nm-hppab.h, nm-hppah.h}: Include somsolib.h.

30 years agotc-a29k.c: some cleanup; range-checking on JUMPTARG relocs
Ken Raeburn [Mon, 7 Nov 1994 07:04:09 +0000 (07:04 +0000)]
tc-a29k.c: some cleanup; range-checking on JUMPTARG relocs

30 years agokeep ns32k stuff
Ken Raeburn [Mon, 7 Nov 1994 06:52:58 +0000 (06:52 +0000)]
keep ns32k stuff

30 years ago * partial-stab.h (N_TEXT): Put back GDB_TARGET_IS_HPPA kludge,
Jeff Law [Sun, 6 Nov 1994 20:16:34 +0000 (20:16 +0000)]
* partial-stab.h (N_TEXT): Put back GDB_TARGET_IS_HPPA kludge,
it is still needed for GCC-2.6 compiled code.
* TODO (GDB_TARGET_IS_HPPA): Note this kludge can be nuked
sometime after GCC-2.7 has been released.

30 years ago * hppa-tdep.c (frame_saved_pc): Mask off low two bits when
Jeff Law [Sun, 6 Nov 1994 20:02:31 +0000 (20:02 +0000)]
* hppa-tdep.c (frame_saved_pc): Mask off low two bits when
retrieving the PC from a signal handler caller.  Fix thinko
in Stan's last change ("frame", should have been "frame->next").
If the next frame is a signal handler caller and it's a system
call which has entered the kernel ((PSW & 0x2) != 0), then the
saved pc is in %r2 instead of %r31.

30 years ago * configure.in (target_libs): Include libstdc++ again.
Per Bothner [Sat, 5 Nov 1994 23:44:38 +0000 (23:44 +0000)]
* configure.in (target_libs):  Include libstdc++ again.
* config.guess:  Update from FSF (for FreeBSD).

30 years ago * hppa-tdep.c (hppa_frame_find_saved_regs): Change "frame" to
Jeff Law [Sat, 5 Nov 1994 06:56:43 +0000 (06:56 +0000)]
* hppa-tdep.c (hppa_frame_find_saved_regs): Change "frame" to
"frame_info" throughout.

30 years ago * sparcl-stub.c: get rid of defs.h.
Kung Hsu [Sat, 5 Nov 1994 00:33:27 +0000 (00:33 +0000)]
    * sparcl-stub.c: get rid of defs.h.

30 years ago * gdbserver/Makefile.in (MMALLOC_CFLAGS): Add -I${MMALLOC_DIR}.
Jim Kingdon [Fri, 4 Nov 1994 22:57:19 +0000 (22:57 +0000)]
* gdbserver/Makefile.in (MMALLOC_CFLAGS): Add -I${MMALLOC_DIR}.
Correct definition of MMALLOC_DIR to reflect fact this is
gdb/gdbserver/Makefile.in, not gdb/Makefile.in.

* gdbserver/server.c (main): After we kill the inferior in
response to a 'k' request, exit.

30 years agonote go32 file additions, keep ppc nw
Ken Raeburn [Fri, 4 Nov 1994 21:43:00 +0000 (21:43 +0000)]
note go32 file additions, keep ppc nw

30 years ago * remote.c (remote_kill): Use catch_errors when calling putpkt.
Jim Kingdon [Fri, 4 Nov 1994 21:28:40 +0000 (21:28 +0000)]
* remote.c (remote_kill): Use catch_errors when calling putpkt.
(putpkt): Return int, not void, to match catch_errors calling
convention.

30 years agoMakefile.in: fix tipo in e*nbsd.c dependencies
Ken Raeburn [Fri, 4 Nov 1994 20:14:03 +0000 (20:14 +0000)]
Makefile.in: fix tipo in e*nbsd.c dependencies

30 years ago * rs6000-tdep.c (pop_frame): Correct a variable name.
Stan Shebs [Fri, 4 Nov 1994 18:55:51 +0000 (18:55 +0000)]
* rs6000-tdep.c (pop_frame): Correct a variable name.

30 years ago * TODO: Re-write item about SIGINT handling to reflect the fact
Jim Kingdon [Fri, 4 Nov 1994 17:50:50 +0000 (17:50 +0000)]
* TODO: Re-write item about SIGINT handling to reflect the fact
that target_stop now exists.

30 years agonote file deletions, additions
Ken Raeburn [Fri, 4 Nov 1994 16:44:58 +0000 (16:44 +0000)]
note file deletions, additions

30 years agokeep new dos-related files
Ken Raeburn [Fri, 4 Nov 1994 16:23:49 +0000 (16:23 +0000)]
keep new dos-related files

30 years ago Replace useless FRAME, FRAME_ADDR types with struct frame_info *
Stan Shebs [Fri, 4 Nov 1994 01:32:34 +0000 (01:32 +0000)]
Replace useless FRAME, FRAME_ADDR types with struct frame_info *
and CORE_ADDR, respectively.
* frame.h (FRAME, FRAME_INFO_ID, FRAME_ADDR): Remove.
* blockframe.c (get_frame_info): Remove.
* a29k-tdep.c, alpha-tdep.c, blockframe.c, breakpoint.c,
breakpoint.h, energize.c, findvar.c, gdbtk.c, gould-pinsn.c,
h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, i386-tdep.c, i960-tdep.c,
infcmd.c, inferior.h, infrun.c, m68k-tdep.c, m88k-tdep.c,
mips-tdep.c, nindy-tdep.c, printcmd.c, pyr-tdep.c, rs6000-tdep.c,
sh-tdep.c, sparc-tdep.c, stack.c, valops.c, z8k-tdep.c,
config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
config/gould/tm-pn.h, config/h8300/tm-h8300.h,
config/h8500/tm-h8500.h, config/mips/tm-mips.h,
config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
config/pyr/tm-pyr.h, config/sparc/tm-sparc.h): Replace FRAME with
struct frame_info * everywhere, replace FRAME_ADDR with CORE_ADDR,
rename variables consistently (using `frame' or `fi'), remove
calls to get_frame_info and FRAME_INFO_ID, remove comments about
FRAME and FRAME_ADDR cruftiness.

30 years agoremove unused file config/go32.mh
Ken Raeburn [Fri, 4 Nov 1994 01:29:10 +0000 (01:29 +0000)]
remove unused file config/go32.mh

30 years ago* read.c (get_absolute_expression): Indicate that the error may merely be that
Ken Raeburn [Fri, 4 Nov 1994 01:22:47 +0000 (01:22 +0000)]
* read.c (get_absolute_expression): Indicate that the error may merely be that
the expression can't currently be reduced.

30 years agoregenerated after jt's netbsd changes
Ken Raeburn [Fri, 4 Nov 1994 01:20:06 +0000 (01:20 +0000)]
regenerated after jt's netbsd changes

30 years ago Replace useless FRAME, FRAME_ADDR types with struct frame_info *
Stan Shebs [Fri, 4 Nov 1994 01:19:29 +0000 (01:19 +0000)]
Replace useless FRAME, FRAME_ADDR types with struct frame_info *
and CORE_ADDR, respectively.
* frame.h (FRAME, FRAME_INFO_ID, FRAME_ADDR): Remove.
* blockframe.c (get_frame_info): Remove.
* a29k-tdep.c, alpha-tdep.c, blockframe.c, breakpoint.c,
breakpoint.h, energize.c, findvar.c, gdbtk.c, gould-pinsn.c,
h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, i386-tdep.c, i960-tdep.c,
infcmd.c, inferior.h, infrun.c, m68k-tdep.c, m88k-tdep.c,
mips-tdep.c, nindy-tdep.c, printcmd.c, pyr-tdep.c, rs6000-tdep.c,
sh-tdep.c, sparc-tdep.c, stack.c, valops.c, z8k-tdep.c,
config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
config/gould/tm-pn.h, config/h8300/tm-h8300.h,
config/h8500/tm-h8500.h, config/mips/tm-mips.h,
config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
config/pyr/tm-pyr.h, config/sparc/tm-sparc.h): Replace FRAME with
struct frame_info * everywhere, replace FRAME_ADDR with CORE_ADDR,
rename variables consistently (using `frame' or `fi'), remove
calls to get_frame_info and FRAME_INFO_ID, remove comments about
FRAME and FRAME_ADDR cruftiness.

30 years ago* Makefile.in (check): Add missing "else true" clause.
Ken Raeburn [Fri, 4 Nov 1994 00:39:49 +0000 (00:39 +0000)]
* Makefile.in (check): Add missing "else true" clause.

* emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".

* scripttempl/go32coff.sc: Changes from DJ Delorie: Change default entry point
to "start".  Align at end of each section to 0x200.  Start .text section 0x1000
later.  Add _etext, _edata, _end symbols.

30 years ago* config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
J.T. Conklin [Fri, 4 Nov 1994 00:13:13 +0000 (00:13 +0000)]
* config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as
  "a.out-m68k-netbsd".
* config/tc-sparc.h (TARGET_FORMAT): If TE_NetBSD define as
  "a.out-sparc-netbsd".

* config/te-nbsd.h: New file, NetBSD target emulation
* config/te-netbsd.h: Removed.
* configure.in (i[345]86-*-netbsd*,m68*-*-netbsd*,sparc*-*-netbsd*):
  Set bfd_gas.  Use nbsd emulation.

30 years ago* printgprof.c (flatprofheader): Always set totime to 1.0 if not greater than
Ken Raeburn [Fri, 4 Nov 1994 00:08:34 +0000 (00:08 +0000)]
* printgprof.c (flatprofheader): Always set totime to 1.0 if not greater than
0.0.  Suggested by Harold Assink <carlo@sg.tn.tudelft.nl>.

30 years agoChanges from binutils-2.5.2 net release:
Ken Raeburn [Fri, 4 Nov 1994 00:07:02 +0000 (00:07 +0000)]
Changes from binutils-2.5.2 net release:

* Makefile.in (install-info): Install info files from whatever directory they
were found in.

Patch from DJ Delorie:
* configure.bat: do c++filt -> cxxfilt right

* sysinfo.y: Include system header files early, so any potential declaration of
abort() occurs before its use.

* strings.c (strings_file): Try opening the file in binary mode first.

30 years agoconfigure.in: fix ns32knetbsd_vec -> pc532netbsd_vec
Ken Raeburn [Fri, 4 Nov 1994 00:02:18 +0000 (00:02 +0000)]
configure.in: fix ns32knetbsd_vec -> pc532netbsd_vec

30 years agoaoutx.h fixes from net
Ken Raeburn [Thu, 3 Nov 1994 23:52:52 +0000 (23:52 +0000)]
aoutx.h fixes from net

30 years agogo32 patches from dj
Ken Raeburn [Thu, 3 Nov 1994 23:50:48 +0000 (23:50 +0000)]
go32 patches from dj

30 years agoMakefile.in (ALL_MACHINES): Include m68knetbsd.o.
Ken Raeburn [Thu, 3 Nov 1994 23:49:17 +0000 (23:49 +0000)]
Makefile.in (ALL_MACHINES): Include m68knetbsd.o.

30 years agoi386linux.mh: include -lm in EXTRALIBS
Ken Raeburn [Thu, 3 Nov 1994 23:21:32 +0000 (23:21 +0000)]
i386linux.mh: include -lm in EXTRALIBS

30 years agoChanges from net 2.5.2 release branch:
Ken Raeburn [Thu, 3 Nov 1994 23:15:54 +0000 (23:15 +0000)]
Changes from net 2.5.2 release branch:

* configure.in: Put AC_DEFINE(sparcv9) on its own line, so that the shell
variable settings associated with it are permanent.  For CPUs requiring
bfd_gas=yes, select it based on CPU only, not individual target names.  Handle
m68k-hp-hpux*, not just -hpux.

* config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument to match
prototype in obj-coff.h.

* configure.in: Skip tests for defining WANT_FOPEN_BIN and IBM_COMPILER_SUX.
* acconfig.h: Deleted them.
* configure, conf.in: Rebuild with autoconf 2.0.
* config/go32.cfg, config/vms-conf.h: Updated.

* config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
IBM_COMPILER_SUX version of code, with comments indicating why.

* listing.c (file_info): Use text mode when opening file for read.  Use "r"
directly, no macro.
* input-file.c (input_file_open): Don't use FOPEN_RT, just use "r".
* read.c (s_include): Ditto.
* output-file.c (output_file_create): Try both "wb" and "w", don't bother with
FOPEN_* macros.
* as.h: Don't include fopen-*.h.

* config/alpha-opcode.h: Make "ret" with no operands equivalent to "ret
zero,(ra)", to match OSF1 and to be consistent with both one-operand forms.

Patches from DJ Delorie:
* as.h (alloca): undef alloca before defining it just in case
* config/go32.cfg: new file for autoconf values
* config/te-go32.h: new file
* configure.bat: new for autoconf

* config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had = for ==.

* configure.in: If target_frag doesn't exist, use /dev/null.

* as.c (parse_args): For non-VMS systems, re-add `v' to std_shortopts.  Add
"verbose" to list of long options.

* write.c (adjust_reloc_syms): When generating an absolute section symbol as a
placeholder, don't mark it as used in a relocation entry, here.

* Makefile.in (comparison): Compare using makefile code from gcc, stripped down
to discard subdir stuff and adapted to give a non-zero exit status if either
file differs.

30 years ago * corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
Stu Grossman [Thu, 3 Nov 1994 22:41:12 +0000 (22:41 +0000)]
* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c,
remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c,
remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c,
remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c,
w89k-rom.c, target.c, target.h:  Add support for target_stop().
* gdbtk.c (gdb_stop):  Switch to target_stop().

30 years ago * corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
Stu Grossman [Thu, 3 Nov 1994 22:40:14 +0000 (22:40 +0000)]
* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c,
remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c,
remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c,
remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c,
w89k-rom.c, target.c, target.h:  Add support for target_stop().
* gdbtk.c (gdb_stop):  Switch to target_stop().
* ChangeLog:  Fix comment to make shebs happy...

30 years agoadd some options to default CC to make bfd & linker compile
Ken Raeburn [Thu, 3 Nov 1994 22:29:54 +0000 (22:29 +0000)]
add some options to default CC to make bfd & linker compile

30 years agoChanges from binutils net release:
Ken Raeburn [Thu, 3 Nov 1994 21:35:37 +0000 (21:35 +0000)]
Changes from binutils net release:

* Makefile.in (DEVO_SUPPORT): Include configure.bat and makeall.bat.
(DISTDOCDIRS): Add `etc'.
(ETC_SUPPORT_PFX): New variable.
(taz): Include anything from etc starting with a word in ETC_SUPPORT_PFX.

30 years ago * gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d, gas/mips/usw.d:
Ian Lance Taylor [Thu, 3 Nov 1994 20:52:11 +0000 (20:52 +0000)]
* gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d, gas/mips/usw.d:
Correct test cases.

30 years ago * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
Ian Lance Taylor [Thu, 3 Nov 1994 20:50:07 +0000 (20:50 +0000)]
* config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments for
NO_PIC case.

30 years ago * osfsolib.c (solib_map_sections, first_link_map_member,
Peter Schauer [Thu, 3 Nov 1994 09:27:23 +0000 (09:27 +0000)]
* osfsolib.c (solib_map_sections, first_link_map_member,
next_link_map_member, xfer_link_map_member):  Retrieve and use
shared library relocation offset from runtime loader structures.
Use libxproc.a routines to get a working version if
USE_LDR_ROUTINES is defined.
* README:  Remove item about shared library relocation for
Alpha OSF/1.

30 years ago * c-exp.y (yylex): scan template names, and scan nested class
Kung Hsu [Wed, 2 Nov 1994 23:11:47 +0000 (23:11 +0000)]
    * c-exp.y (yylex): scan template names, and scan nested class
        names.

30 years ago * ar.c (main): Treat ar qs like ar rs.
Ian Lance Taylor [Wed, 2 Nov 1994 20:45:02 +0000 (20:45 +0000)]
* ar.c (main): Treat ar qs like ar rs.

30 years ago * archive.c (normalize): Change to take a BFD as an argument.
Ian Lance Taylor [Wed, 2 Nov 1994 20:29:18 +0000 (20:29 +0000)]
* archive.c (normalize): Change to take a BFD as an argument.
Change VMS version to use bfd_alloc rather than malloc, so that we
don't lose the memory forever.
(_bfd_construct_extended_name_table): Check the name of an archive
entry which is not being extended, and correct it if it is wrong.
This is necessary in case the archive was constructed by another
program which put an entry in the extended name table which we
don't plan to put in ourselves.  From jjc@jclark.com (James
Clark).
(bfd_dont_truncate_arname): Check return value of normalize.

30 years ago* nlm/Makefile.in: install gdbserve.nlm.
J.T. Conklin [Wed, 2 Nov 1994 19:04:22 +0000 (19:04 +0000)]
* nlm/Makefile.in: install gdbserve.nlm.

30 years ago * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
Ian Lance Taylor [Wed, 2 Nov 1994 17:22:28 +0000 (17:22 +0000)]
* ldctor.c (ldctor_add_set_entry): Don't permit a set to be
composed of different object file formats.
(ldctor_build_sets): If the output format does not support the
reloc, and we are not generating a relocateable link, try getting
the reloc from the input format.

30 years ago * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
Stu Grossman [Wed, 2 Nov 1994 00:50:12 +0000 (00:50 +0000)]
* Makefile.in:  Use $(objdir)/tcl and $(objdir)/tk if they are
available.
* configure.in (ENABLE_CLIBS):  Use $(TCL) and $(TK) instead of
-ltcl and -ltk.
* gdbtk.c:  Get rid of lots of unnecessary #includes.
* (gdbtk_init):  Use ConnectionNumber macro instead of referencing
Display structure directly.
* gdbtk.tcl:  Change exit button to quit button (makes shebs
happy).

30 years ago * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
Ian Lance Taylor [Tue, 1 Nov 1994 22:07:46 +0000 (22:07 +0000)]
* config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
switching to the readonly data section.

30 years ago * ecoff.c (ecoff_directive_type): Fix warning message.
Ian Lance Taylor [Tue, 1 Nov 1994 21:39:38 +0000 (21:39 +0000)]
* ecoff.c (ecoff_directive_type): Fix warning message.

30 years ago * c-valprint.c (c_value_print): Check for plain literal `char'
Peter Schauer [Tue, 1 Nov 1994 21:04:11 +0000 (21:04 +0000)]
* c-valprint.c (c_value_print):  Check for plain literal `char'
target type when suppressing `(char *)' output for strings.

30 years ago* Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
J.T. Conklin [Tue, 1 Nov 1994 18:33:35 +0000 (18:33 +0000)]
* Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
  (em68knbsd.c): New target.

* config/m68k-nbsd.mt: New file.
* emulparams/m68knbsd.sh: New file.
* configure.in (m68*-*-netbsd*): Use above configs.

30 years ago * elf32-hppa.c (ELF32_PARISC_SX_SIZE): Define.
Ian Lance Taylor [Tue, 1 Nov 1994 04:46:07 +0000 (04:46 +0000)]
* elf32-hppa.c (ELF32_PARISC_SX_SIZE): Define.
(ELF32_PARISC_SX_GET, ELF32_PARISC_SX_PUT): Define.
(symextn_entry): Don't define.
(symext_chain_size): Change type to bfd_size_type.
(symextn_contents): Change type to bfd_byte *.
(elf32_hppa_backend_begin_write_processing): Use
ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS).
(elf32_hppa_size_symext): Likewise.  Also, change type of sizep to
bfd_size_type *.
(elf_hppa_tc_make_sections): Cast symextn_contents assignment to
bfd_byte *.  Use ELF32_PARISC_SX_PUT instead of direct assignment.
(elf32_hppa_backend_symbol_table_processing): Use
ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS).  Use
ELF32_PARISC_SX_GET insetad of direct assignment.
(elf32_hppa_read_symext_info): Change type of contents, and its
assignment cast, to bfd_byte *.  Use ELF32_PARISC_SX_SIZE instead
of sizeof (symextn_entry).  Use symext_entryS instead of
symextn_entry.  Use ELF32_PARISC_SX_GET instead of direct
assignment.

30 years ago * coffread.c (coff_symfile_init): Remove unused local abfd.
Stan Shebs [Tue, 1 Nov 1994 03:28:08 +0000 (03:28 +0000)]
* coffread.c (coff_symfile_init): Remove unused local abfd.
* utils.c [NO_MMALLOC] (mmalloc, mrealloc): Define and use size_t
instead of long, for compatibility with mmalloc.h.

30 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
Ian Lance Taylor [Tue, 1 Nov 1994 00:37:05 +0000 (00:37 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
appropriately named static library, stop the search at that
directory.

30 years ago * hppa-dis.c (print_insn_hppa): Read the instruction using
Ian Lance Taylor [Tue, 1 Nov 1994 00:02:52 +0000 (00:02 +0000)]
* hppa-dis.c (print_insn_hppa): Read the instruction using
bfd_getb32, so that it works on a little endian or 64 bit host.
Remove unused local variable op.

30 years ago * archive.c (bfd_dont_truncate_arname): Add the ar padding
Ian Lance Taylor [Mon, 31 Oct 1994 20:23:47 +0000 (20:23 +0000)]
* archive.c (bfd_dont_truncate_arname): Add the ar padding
character, if there is room for it, even if the name is the
maximum length.
PR 5859.

30 years ago * elfcode.h (assign_file_positions_except_relocs): Sort the ELF
Ian Lance Taylor [Mon, 31 Oct 1994 19:21:40 +0000 (19:21 +0000)]
* elfcode.h (assign_file_positions_except_relocs): Sort the ELF
headers by section address when assigning file positions.
(elf_sort_hdrs): New static function.

30 years ago * lib/ld.exp (default_ld_compile): Remove the output file before
Ian Lance Taylor [Mon, 31 Oct 1994 00:05:09 +0000 (00:05 +0000)]
* lib/ld.exp (default_ld_compile): Remove the output file before
compiling.

30 years ago * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Create DT_INIT
Ian Lance Taylor [Mon, 31 Oct 1994 00:04:03 +0000 (00:04 +0000)]
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Create DT_INIT
and DT_FINI dynamic entries based on the existence of _init and
_fini symbols, not on the .init and .fini sections.  This is
compatible with some SVR4 linkers.
(elf_bfd_final_link): Corresponding change.

30 years ago * config/tc-hppa.c (pa_proc): Delete disabled code to put each
Jeff Law [Sun, 30 Oct 1994 07:00:14 +0000 (07:00 +0000)]
* config/tc-hppa.c (pa_proc): Delete disabled code to put each
proc in its own subspace, we're not going to use it.

30 years ago * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't move a
Ian Lance Taylor [Sun, 30 Oct 1994 03:41:50 +0000 (03:41 +0000)]
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't move a
symbol with a PLT entry into the .plt section if it is defined in
a regular file.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.

30 years ago * linker.c (_bfd_generic_link_add_archive_symbols): It's not an
Ian Lance Taylor [Sat, 29 Oct 1994 16:20:41 +0000 (16:20 +0000)]
* linker.c (_bfd_generic_link_add_archive_symbols): It's not an
error if an empty archive has no symbol table.
* ecoff.c (ecoff_link_add_archive_symbols): Likewise.
* elfcode.h (elf_link_add_archive_symbols): Likewise.

30 years ago * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
Peter Schauer [Sat, 29 Oct 1994 09:58:01 +0000 (09:58 +0000)]
* gdb.base/a1-selftest.exp:  Remove RS/6000 xfail for backtrace
through signal handler.