binutils-gdb.git
30 years ago* TODO: Add notes about printing of fancy types and GDB expressions.
Jim Kingdon [Sat, 15 Jan 1994 16:30:04 +0000 (16:30 +0000)]
* TODO: Add notes about printing of fancy types and GDB expressions.

30 years ago * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Jim Kingdon [Sat, 15 Jan 1994 15:27:49 +0000 (15:27 +0000)]
* c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Print our "()" first, then recurse for the target type.

30 years ago* TODO: Add note about printing of fancy types.
Jim Kingdon [Sat, 15 Jan 1994 14:58:41 +0000 (14:58 +0000)]
* TODO: Add note about printing of fancy types.

30 years ago* remote-udi.c (udi_create_inferior): Quote empty execfile argument.
Jim Kingdon [Sat, 15 Jan 1994 04:28:18 +0000 (04:28 +0000)]
* remote-udi.c (udi_create_inferior): Quote empty execfile argument.

30 years ago* gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h.
Jim Kingdon [Sat, 15 Jan 1994 03:51:40 +0000 (03:51 +0000)]
* gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h.

30 years ago * utils.c (request_quit): Re-establish signal handler regardless
Jim Kingdon [Sat, 15 Jan 1994 03:43:01 +0000 (03:43 +0000)]
* utils.c (request_quit): Re-establish signal handler regardless
of USG.

* config/mips/xm-irix4.h: Define HAVE_TERMIOS.

30 years ago* i960-tdep.c: Include target.h.
Jim Kingdon [Sat, 15 Jan 1994 02:56:47 +0000 (02:56 +0000)]
* i960-tdep.c: Include target.h.

30 years agoFri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 15 Jan 1994 01:15:55 +0000 (01:15 +0000)]
Fri Jan 14 17:12:28 1994  Stan Shebs  (shebs@andros.cygnus.com)

* lynx-nat.c (sys/wait.h): Don't use absolute pathname.

30 years ago * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
Ian Lance Taylor [Fri, 14 Jan 1994 22:35:41 +0000 (22:35 +0000)]
* elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
the DYNAMIC flag for the BFD.
(NAME(bfd_elf,write_object_contents)): Don't try to write out a
BFD with the DYNAMIC flag set, since we don't generate the program
header table correctly.

30 years ago * objcopy.c (strip_main, copy_main): Don't clobber the input file
Ian Lance Taylor [Fri, 14 Jan 1994 21:44:44 +0000 (21:44 +0000)]
* objcopy.c (strip_main, copy_main): Don't clobber the input file
if copy_file fails.

30 years ago * nlmconv.c (main): Warn about an attempt to use a shared library
Ian Lance Taylor [Fri, 14 Jan 1994 20:58:43 +0000 (20:58 +0000)]
* nlmconv.c (main): Warn about an attempt to use a shared library
with uninitialized data.

30 years ago Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe
Ian Lance Taylor [Fri, 14 Jan 1994 20:43:07 +0000 (20:43 +0000)]
Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe
De Muyter).
* configure.in (m68k-motorola-sysv*) New target.
* config/delta68.mt: New file.
* emulparams/delta68.sh: New file.
* scripttempl/delta68.sc: New file.
* Makefile.in (ALL_EMULATIONS): Added em_delta68.o.
(em_delta68.c): New target.

30 years ago * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
Jim Kingdon [Fri, 14 Jan 1994 19:57:50 +0000 (19:57 +0000)]
* lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
changes (status -> ourstatus; declare status, etc.).
* config/nm-lynx.h: Fix child_wait prototype and include target.h.

30 years ago * nlmconv.c (setup_sections): Make sure that we align the
Ian Lance Taylor [Fri, 14 Jan 1994 19:55:42 +0000 (19:55 +0000)]
* nlmconv.c (setup_sections): Make sure that we align the
output_offset of each input section appropriately.

30 years ago* Makefile.in (ALLPARAM): Add config/nm-lynx.h.
Jim Kingdon [Fri, 14 Jan 1994 19:19:56 +0000 (19:19 +0000)]
* Makefile.in (ALLPARAM): Add config/nm-lynx.h.

30 years ago * remote-mips.c (mips_request, mips_wait): Correct prototypes.
Ian Lance Taylor [Fri, 14 Jan 1994 16:52:22 +0000 (16:52 +0000)]
* remote-mips.c (mips_request, mips_wait): Correct prototypes.

30 years ago* config/i386/xm-linux.h: Define HAVE_TERMIOS.
Jim Kingdon [Fri, 14 Jan 1994 16:41:35 +0000 (16:41 +0000)]
* config/i386/xm-linux.h: Define HAVE_TERMIOS.

30 years ago * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
Peter Schauer [Fri, 14 Jan 1994 09:22:44 +0000 (09:22 +0000)]
* config/alpha/tm-alpha.h (CALL_DUMMY):  Improve comment.

30 years ago * ecoff.c (ecoff_link_write_external): An ifd can be -1.
Ian Lance Taylor [Fri, 14 Jan 1994 04:10:44 +0000 (04:10 +0000)]
* ecoff.c (ecoff_link_write_external): An ifd can be -1.

30 years agoecoff.c, as.c changes
Ken Raeburn [Fri, 14 Jan 1994 02:05:28 +0000 (02:05 +0000)]
ecoff.c, as.c changes

30 years ago(ecoff_set_gp_prolog_size): New function.
Ken Raeburn [Fri, 14 Jan 1994 02:01:52 +0000 (02:01 +0000)]
(ecoff_set_gp_prolog_size): New function.
(current_file_idx): New static variable.
(add_file): Use and increment current_file_idx instead of indx parameter.

Also removed trailing whitespace from lines.

30 years agoOops. Didn't mean to change reject_dev_configs.
Ken Raeburn [Fri, 14 Jan 1994 01:55:59 +0000 (01:55 +0000)]
Oops.  Didn't mean to change reject_dev_configs.

30 years agoDon't include config.h directly any more.
Ken Raeburn [Fri, 14 Jan 1994 01:54:01 +0000 (01:54 +0000)]
Don't include config.h directly any more.

30 years ago* struc-symbol.h (struct symbol): Make all bitfields unsigned.
Ken Raeburn [Fri, 14 Jan 1994 01:28:19 +0000 (01:28 +0000)]
* struc-symbol.h (struct symbol): Make all bitfields unsigned.

30 years ago * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
Jim Kingdon [Thu, 13 Jan 1994 23:06:03 +0000 (23:06 +0000)]
* remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
is defined.  Otherwise just report TARGET_SIGNAL_UNKNOWN.

30 years ago * som.c (som_set_reloc_info): Provide a default symbol for
Jeff Law [Thu, 13 Jan 1994 22:53:03 +0000 (22:53 +0000)]
    * som.c (som_set_reloc_info): Provide a default symbol for
        relocations which don't actually have an associated symbol.

30 years ago * objdump.c (dump_relocs): Don't crash if section name is NULL.
Ian Lance Taylor [Thu, 13 Jan 1994 22:34:51 +0000 (22:34 +0000)]
* objdump.c (dump_relocs): Don't crash if section name is NULL.

30 years agoChanges for i960_validate_fix, i386-netbsd* configs, BFDDEF handling, literal
Ken Raeburn [Thu, 13 Jan 1994 21:34:15 +0000 (21:34 +0000)]
Changes for i960_validate_fix, i386-netbsd* configs, BFDDEF handling, literal
pool offset bugs, config.h handling.

30 years ago(add_to_literal_pool): Take symbol and addend as arguments, instead of
Ken Raeburn [Thu, 13 Jan 1994 21:31:50 +0000 (21:31 +0000)]
(add_to_literal_pool): Take symbol and addend as arguments, instead of
expression, for now.  Fix calculation of offset to return.

30 years ago(segment_info_type) [NEED_LITERAL_POOL]: Add field literal_pool_size.
Ken Raeburn [Thu, 13 Jan 1994 21:30:18 +0000 (21:30 +0000)]
(segment_info_type) [NEED_LITERAL_POOL]: Add field literal_pool_size.

30 years ago* as.h: Include config.h. Added forward declaration for struct symbol.
Ken Raeburn [Thu, 13 Jan 1994 21:27:49 +0000 (21:27 +0000)]
* as.h: Include config.h.  Added forward declaration for struct symbol.
(add_to_literal_pool): Fix declaration.

30 years ago* configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
Ken Raeburn [Thu, 13 Jan 1994 21:24:27 +0000 (21:24 +0000)]
* configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
(i386-*-netbsd0.8): New target, like 386bsd.

* configure.in: Set BFDDEF in Makefile to "define" or "undef".
* Makefile.in (config.h): Protect against multiple inclusions.  Define or undef
BFD_ASSEMBLER as specified by $(BFDDEF).
(ALL_CFLAGS): Omit $(BFDDEF).

30 years ago * som.c (hppa_som_reloc): Add new "error message" argument.
Jeff Law [Thu, 13 Jan 1994 20:34:25 +0000 (20:34 +0000)]
    * som.c (hppa_som_reloc): Add new "error message" argument.

30 years ago * config/obj-som.c (som_frob_file): Call adjust_code_sections
Jeff Law [Thu, 13 Jan 1994 20:17:39 +0000 (20:17 +0000)]
    * config/obj-som.c (som_frob_file): Call adjust_code_sections
        for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.

30 years ago * subsegs.c (subseg_get): Accept new argument "force_new". If
Jeff Law [Thu, 13 Jan 1994 20:17:07 +0000 (20:17 +0000)]
    * subsegs.c (subseg_get): Accept new argument "force_new".  If
        set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.

        * config/obj-som.c (som_frob_file): Call adjust_code_sections
        for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.

30 years ago * subsegs.c (subseg_get): Accept new argument "force_new". If
Jeff Law [Thu, 13 Jan 1994 20:16:44 +0000 (20:16 +0000)]
    * subsegs.c (subseg_get): Accept new argument "force_new".  If
        set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.

30 years ago * gas/all/gas.exp: No longer expect difference of forward
Jeff Law [Thu, 13 Jan 1994 20:01:22 +0000 (20:01 +0000)]
    * gas/all/gas.exp: No longer expect difference of forward
        references to fail.
        * gas/all/x930509.s: Fix testcase to match how the expect code was
        written.

30 years ago Add search to target vector (#if 0'd until after 4.12):
Jim Kingdon [Thu, 13 Jan 1994 18:44:06 +0000 (18:44 +0000)]
Add search to target vector (#if 0'd until after 4.12):
* target.h (to_search, target_search): Add.
* gdbcore.h, core.c (generic_search): Add.
* remote.c (remote_search): Add.
* a29k-tdep.c (init_frame_info): Use target_search to find traceback
tag.

30 years ago * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
Jim Kingdon [Thu, 13 Jan 1994 17:41:40 +0000 (17:41 +0000)]
* printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
is on, call find_pc_function rather than relying just on the minimal
symbols (probably only matters for symbol readers which don't put
statics in the minimal symbols, but changing this strikes me as
not conservative enough).
Initialize name_location in all cases.
If no symbol and no msymbol, don't print anything symbolic.

30 years ago* a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
Jim Kingdon [Thu, 13 Jan 1994 15:38:00 +0000 (15:38 +0000)]
* a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.

30 years ago * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
Jeff Law [Thu, 13 Jan 1994 06:06:35 +0000 (06:06 +0000)]
    * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
        (hppa_fix_new): Initialize segment field.
        (md_apply_fix): Do nothing for pc-relative fixup which involves
        crossing a segment boundary.
        (pa_procend): Undefine the current label after handling .PROC
        and .PROCEND directives.
        (dummy_symbol): Make type "symbolS *".  Change references as
        appropriate.

30 years ago* gdb.texinfo (Print Settings): Document `set print
John Gilmore [Thu, 13 Jan 1994 05:35:48 +0000 (05:35 +0000)]
* gdb.texinfo (Print Settings): Document `set print
fast-symbolic-addr' and improve the doc for some other
`set print's.

30 years ago* printcmd.c (print_address_symbolic): Make it search the
John Gilmore [Thu, 13 Jan 1994 05:04:40 +0000 (05:04 +0000)]
* printcmd.c (print_address_symbolic):  Make it search the
symtabs for variables as well as functions.  Add `set print
fast-symbolic-addr' and default it to fast (the old way).
Print line numbers for data items as well as functions.

* symtab.c (find_addr_symbol):  Return the symtab and the symbol
address, if a symbol is found (take two more args pointing to
where to store these results).

* symtab.h (find_addr_symbol):  Add prototype.

30 years ago * objfiles.h: Fix comments to reflect the fact that the phrase
Jim Kingdon [Thu, 13 Jan 1994 00:34:18 +0000 (00:34 +0000)]
* objfiles.h: Fix comments to reflect the fact that the phrase
"top of stack" always refers to where the pushing and popping takes
place, regardless of whether it is at the highest or lowest address.

30 years ago * gas/hppa/more.parse/procbug.s: Add test for another bug relating
Jeff Law [Wed, 12 Jan 1994 21:42:55 +0000 (21:42 +0000)]
    * gas/hppa/more.parse/procbug.s: Add test for another bug relating
        to having a function's label follow the .PROC directive.

30 years ago Enable gdb to write to core files on more core file readers.
Peter Schauer [Wed, 12 Jan 1994 21:40:42 +0000 (21:40 +0000)]
Enable gdb to write to core files on more core file readers.
* libbfd.c (bfd_generic_set_section_contents):  Remove range check
for section size, it is already done in bfd_set_section_contents
with bfd_get_section_size_now.
* aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
Use bfd_generic_set_section_contents instead of bfd_false.

30 years ago * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
Peter Schauer [Wed, 12 Jan 1994 21:27:51 +0000 (21:27 +0000)]
* mdebugread.c (parse_symbol):  Do not set TYPE_TAG_NAME for
compiler generated tag names.
* mdebugread.c (parse_type):  Handle cross references to qualified
aggregate types.
* valops.c (value_struct_elt):  Improve error message if the
address of a method is requested from an object instance.
* valops.c (search_struct_method):  Make name_matched non-static
to get it initialized correctly.

30 years ago * linker.c (default_indirect_link_order): Don't expect space for
Ian Lance Taylor [Wed, 12 Jan 1994 20:33:30 +0000 (20:33 +0000)]
* linker.c (default_indirect_link_order): Don't expect space for
output relocations if there aren't any input relocations.

30 years ago * go32-xdep.c: Remove unused function uerror.
Jim Kingdon [Wed, 12 Jan 1994 19:47:27 +0000 (19:47 +0000)]
* go32-xdep.c: Remove unused function uerror.
(sigsetmask): Declare return type.  Declare argument (to match the
way it is called).  Explicitly return 0.

30 years agoRemove CVS merge markers.
Ian Lance Taylor [Wed, 12 Jan 1994 19:18:56 +0000 (19:18 +0000)]
Remove CVS merge markers.

30 years ago * read.c (read_a_source_file): Cast array argument to unsigned
Ian Lance Taylor [Wed, 12 Jan 1994 18:40:11 +0000 (18:40 +0000)]
* read.c (read_a_source_file): Cast array argument to unsigned
char.
* write.c (adjust_reloc_syms): Remove unused variable symseginfo.
(write_object_file): Don't define punt_it if it won't be used.
(fixup_segment): Don't define skip if it won't be used.

30 years ago* symtab.h (struct symbol, general_symbol_info, minimal_symbol,
John Gilmore [Wed, 12 Jan 1994 09:53:06 +0000 (09:53 +0000)]
* symtab.h (struct symbol, general_symbol_info, minimal_symbol,
partial_symbol):  Shrink the storage sizes of symbols, by making
enums into 1-byte bitfields when compiled __GNUC__, moving all the
enums and small ints to the end of each struct to improve
alignment, and switching the section number from int to unsigned short.

30 years ago* symtab.c (find_addr_symbol): New routine that will find the nearest
John Gilmore [Wed, 12 Jan 1994 08:18:55 +0000 (08:18 +0000)]
* symtab.c (find_addr_symbol):  New routine that will find the nearest
symbol associated with an address.  It does so by exhaustive
search of the symtabs, so it's slow but complete.

30 years ago* coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
John Gilmore [Wed, 12 Jan 1994 08:02:26 +0000 (08:02 +0000)]
* coffread.c (read_coff_symtab):  Set PC bounds of _globals_ symtab
to [0,0] rather than [0, end of first source file].  This avoids
problems with other parts of GDB looking for linetables in the
_globals_ symtab.  Eliminate variables num_object_files and
first_object_file_end.

Fixes PR gdb/4072.

30 years ago* a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
John Gilmore [Wed, 12 Jan 1994 07:47:14 +0000 (07:47 +0000)]
* a29k-tdep.c (init_frame_info):  Cast null arg to examine_tag.
(pop_frame):  Restore PC2 and LR0 from dummy frames.
(push_dummy_frame):  Save PC2 and LR0 into dummy frames.
(setup_arbitrary_frame):  Handle 3 args and set up real frames.
* config/a29k/tm-a29k.h (FRAME_NUM_ARGS):  Update comments.
(DUMMY_FRAME_RSIZE):  Add 2 longwords for PC2 and LR0.
(SETUP_ARBITRARY_FRAME):  Define.

30 years ago * app.c (do_scrub_next_char): Another attempt to fix bugs
Jeff Law [Wed, 12 Jan 1994 05:55:09 +0000 (05:55 +0000)]
    * app.c (do_scrub_next_char): Another attempt to fix bugs
        dealing with labels without colons (for HPPA and MRI).

30 years ago * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
Jeff Law [Wed, 12 Jan 1994 05:49:12 +0000 (05:49 +0000)]
    * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
        found while working on multiple $CODE$ subspace support.

30 years ago* config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
David Edelsohn [Wed, 12 Jan 1994 01:11:26 +0000 (01:11 +0000)]
* config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.

30 years ago* expr.c (integer_constant): Fix computation of too_many_digits. Variable
David Edelsohn [Wed, 12 Jan 1994 01:04:10 +0000 (01:04 +0000)]
* expr.c (integer_constant): Fix computation of too_many_digits.  Variable
digit_2 renamed to start.  Fix check for whether number will fit in 32 bits.
* read.c (emit_expr): Use valueT instead of long.

30 years ago * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
Ian Lance Taylor [Tue, 11 Jan 1994 22:35:16 +0000 (22:35 +0000)]
* config/obj-elf.c: If TC_MIPS, include elf/mips.h.
(special_sections): Define.
(obj_elf_special_section): Get default types and attributes from
list of special sections.
* config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.

30 years ago * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
Ian Lance Taylor [Tue, 11 Jan 1994 21:31:30 +0000 (21:31 +0000)]
* config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
sections to be close together.

30 years ago * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
Ian Lance Taylor [Tue, 11 Jan 1994 20:58:30 +0000 (20:58 +0000)]
* aoutx.h (NAME(aout,final_link)): Set a_entry before computing
file offsets.

30 years ago * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
Jim Kingdon [Tue, 11 Jan 1994 20:24:02 +0000 (20:24 +0000)]
* gdb.t12/scope.exp: Add xfails for rs6000.  Remove 1806 from existing
xfails; I'm not sure why they are failing, but not because of PR 1806.

30 years ago* infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
Jim Kingdon [Tue, 11 Jan 1994 20:15:55 +0000 (20:15 +0000)]
* infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.

30 years agolog for netbsd changes checked in a couple of days ago
Ken Raeburn [Tue, 11 Jan 1994 19:53:28 +0000 (19:53 +0000)]
log for netbsd changes checked in a couple of days ago

30 years ago * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
Ian Lance Taylor [Tue, 11 Jan 1994 19:39:28 +0000 (19:39 +0000)]
* elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
STT_NOTYPE.

30 years ago * remote-udi.c (udi_resume): Correct prototype.
Ian Lance Taylor [Tue, 11 Jan 1994 19:28:31 +0000 (19:28 +0000)]
* remote-udi.c (udi_resume): Correct prototype.

30 years ago * config/tc-mips.c (macro): Corrected $at warnings in a couple of
Ian Lance Taylor [Tue, 11 Jan 1994 19:18:45 +0000 (19:18 +0000)]
* config/tc-mips.c (macro): Corrected $at warnings in a couple of
spots.

30 years ago * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
Jeff Law [Tue, 11 Jan 1994 19:14:11 +0000 (19:14 +0000)]
    * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
        hppa_frame_find_saved_regs.
        * hppa-tdep.c (dig_fp_from_stack): Delete function.
        (prologue_inst_adjust_sp): New function.
        (is_branch, inst_saves_gr, inst_saves_fr): New functions.
        (skip_prologue): Completely rewrite to use unwind information.
        (hppa_frame_find_saved_regs): Likewise.

30 years ago * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
Jim Kingdon [Tue, 11 Jan 1994 18:45:05 +0000 (18:45 +0000)]
* remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
to convert a signal number with appropriate bounds checking.

30 years ago * scripttempl/elf.sc: Correct typo.
Ian Lance Taylor [Tue, 11 Jan 1994 18:22:51 +0000 (18:22 +0000)]
* scripttempl/elf.sc: Correct typo.

30 years ago * listing.c (listing_prev_line): New function.
Ian Lance Taylor [Tue, 11 Jan 1994 18:06:01 +0000 (18:06 +0000)]
* listing.c (listing_prev_line): New function.
* listing.c: Include subsegs.h.
(listing_prev_line): New function.
(calc_hex): Reset byte_in_frag to zero for each new frag.
* config/tc-mips.c (append_insn): Call listing_prev_line after
emitting nop instructions.
* Makefile.in (listing.o): Depends upon subsegs.h.

30 years ago * ecofflink.c: Extensive changes to compress and merge debugging
Ian Lance Taylor [Tue, 11 Jan 1994 16:23:41 +0000 (16:23 +0000)]
* ecofflink.c: Extensive changes to compress and merge debugging
information, and to write some of out directly rather than saving
it in memory.  Several new functions and structures, and new
arguments to existing functions.
* ecoff.c (ecoff_compute_reloc_file_positions): Compute
sym_filepos as well.
(ecoff_get_extr): Use ifdmap instead of ifdbase.
(ecoff_write_object_contents): Don't compute sym_filepos here.
Only output symbols if outsymbols is not NULL.
(ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and
bfd_ecoff_debug functions.  Write out debugging information here.
(ecoff_final_link_debug_accumulate): Adjust for changes in
bfd_ecoff_debug functions.
(ecoff_link_write_external): Use ifdmap rather than ifdbase.
* elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols
first, to put them in the first memory buffer.  Clear fdr field.
(mips_elf_get_extr): Use pointer to unswapped external symbol.
(mips_elf_final_link): Adjust for changes in bfd_ecoff functions.
Preserve .text, .data and .bss even if they are empty.  Save
pointer to unswapped external symbol rather than copying it.
Don't free up the external symbols.
* libelf.h (elf_symbol_type): Change mips_extr to PTR.
* bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare.
(bfd_ecoff_debug_accumulate): Update declaration.
(bfd_ecoff_debug_accumulate_other): Rename declaration from
bfd_ecoff_debug_link_other and update.
(bfd_ecoff_write_accumulated_debug): Declare.
* bfd-in2.h: Rebuilt.
* Makefile.in: Rebuilt dependencies.

30 years ago* remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
Jim Kingdon [Tue, 11 Jan 1994 15:04:02 +0000 (15:04 +0000)]
* remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).

30 years ago * config.bfd: Use ELF, not COFF for m88*-*-dgux*.
Jim Kingdon [Tue, 11 Jan 1994 14:13:55 +0000 (14:13 +0000)]
* config.bfd: Use ELF, not COFF for m88*-*-dgux*.
Combine m88k-*-* and m88110-*-* cases into m88*-*-*.

30 years ago* stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
John Gilmore [Tue, 11 Jan 1994 09:20:37 +0000 (09:20 +0000)]
* stack.c (frame_info):  If FRAME_FIND_SAVED_REGS isn't defined,
print a newline to end the display anyway.

30 years ago[Revise prev change -- this is how it's been running at Adobe, and it works
John Gilmore [Tue, 11 Jan 1994 09:13:25 +0000 (09:13 +0000)]
[Revise prev change -- this is how it's been running at Adobe, and it works
 there.]

* sparc-tdep.c (sparc_pop_frame):  Pop the fsr and csr (float and
coprocessor status regs) when popping a frame.  This fixes
float exceptions that occur after calling inferior functions.

* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Read and write the fsr (float status register) to/from the child
process along with the float regs.  Remove Peter Schauer's change
of May 24 '93, which has higher overhead and doesn't solve the
real problem (which was that FSR wasn't being set).

30 years ago* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
John Gilmore [Tue, 11 Jan 1994 08:59:41 +0000 (08:59 +0000)]
* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Read and write the fsr (float status register) to/from the child
process.  This avoids random float exceptions when running under
GDB, and probably obsoletes Peter Schauer's change of May 24 '93
(which remains for safety).

30 years ago* a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
John Gilmore [Tue, 11 Jan 1994 07:45:48 +0000 (07:45 +0000)]
* a29k-tdep.c (examine_prologue):  Don't worry if the ASGEQ
stack overflow check isn't right after the register stack
adjustment instruction.  Metaware R2.3u compiler moves other
things in front of it.  This fix isn't perfect but is what's
running.

30 years ago * config/unix-gdb.exp: Remove gdb_unload cause it's already
Rob Savoye [Tue, 11 Jan 1994 05:16:50 +0000 (05:16 +0000)]
* config/unix-gdb.exp: Remove gdb_unload cause it's already
defined in lib/gdb.exp

30 years agoTweaked to work with either version of expect. removed gdb_unload proc
Rob Savoye [Tue, 11 Jan 1994 05:14:08 +0000 (05:14 +0000)]
Tweaked to work with either version of expect. removed gdb_unload proc
cause it's already in lib/gdb.exp.

30 years agoTweaked to work with either version of expect.
Rob Savoye [Tue, 11 Jan 1994 05:09:44 +0000 (05:09 +0000)]
Tweaked to work with either version of expect.

30 years ago* c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
Jim Kingdon [Tue, 11 Jan 1994 04:54:53 +0000 (04:54 +0000)]
* c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.

30 years agoAdd alpha-nw.mt to things to keep
Jim Kingdon [Tue, 11 Jan 1994 04:14:32 +0000 (04:14 +0000)]
Add alpha-nw.mt to things to keep

30 years agoAdd udi2go32.c to things to keep
Jim Kingdon [Tue, 11 Jan 1994 04:14:15 +0000 (04:14 +0000)]
Add udi2go32.c to things to keep

30 years agoAdd TODO to things to keep
Jim Kingdon [Tue, 11 Jan 1994 04:13:54 +0000 (04:13 +0000)]
Add TODO to things to keep

30 years ago * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
Jim Kingdon [Tue, 11 Jan 1994 04:12:20 +0000 (04:12 +0000)]
* config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
character filenames.
* configure.in: Change accordingly.

30 years ago * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
David MacKenzie [Tue, 11 Jan 1994 03:59:49 +0000 (03:59 +0000)]
* ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
their arguments optional, for compatibility with the old GNU ld.

30 years agoSet lose_these_too correctly
Stan Shebs [Tue, 11 Jan 1994 02:55:30 +0000 (02:55 +0000)]
Set lose_these_too correctly

30 years ago * Makefile.in (install): Remove "@" which follows a backslash. In
Jim Kingdon [Tue, 11 Jan 1994 01:54:37 +0000 (01:54 +0000)]
* Makefile.in (install): Remove "@" which follows a backslash.  In
this position it just causes errors, not suppresses echoes.

30 years agoSet lose_these_too correctly
Stan Shebs [Tue, 11 Jan 1994 01:15:02 +0000 (01:15 +0000)]
Set lose_these_too correctly

30 years ago * m68k-stub.c, sparc-stub.c: removed spurious introduction of
Thomas Lord [Mon, 10 Jan 1994 23:56:49 +0000 (23:56 +0000)]
* m68k-stub.c, sparc-stub.c: removed spurious introduction of
_filtered io routines from these two files.

30 years agoRemove mt-hppa since it's no longer used/needed.
Jeff Law [Mon, 10 Jan 1994 21:58:43 +0000 (21:58 +0000)]
Remove mt-hppa since it's no longer used/needed.

30 years ago * gas/hppa/more.parse/parse.exp: procbug.s is no longer expected
Jeff Law [Mon, 10 Jan 1994 17:55:19 +0000 (17:55 +0000)]
    * gas/hppa/more.parse/parse.exp: procbug.s is no longer expected
        to fail.
        * gas/hppa/more.parse/procbug.s: Add missing .procend.

30 years ago * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
Jeff Law [Mon, 10 Jan 1994 17:54:01 +0000 (17:54 +0000)]
    * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
        here.  Handle case where label may be defined after the .PROC.
        (pa_proc): It is not an error if the procedure's label isn't
        defined before the .PROC directive.

30 years ago * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
Jeff Law [Mon, 10 Jan 1994 17:07:52 +0000 (17:07 +0000)]
    * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
        field selectors.

30 years agokeep te-netbsd.h
Ken Raeburn [Sun, 9 Jan 1994 21:03:39 +0000 (21:03 +0000)]
keep te-netbsd.h

30 years agote-netbsd.h: New file.
Ken Raeburn [Sun, 9 Jan 1994 20:49:23 +0000 (20:49 +0000)]
te-netbsd.h: New file.
tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use a.out-netbsd-386 for this config.

30 years ago* bucomm.c (xmalloc, xrealloc): Deleted.
Ken Raeburn [Sun, 9 Jan 1994 20:37:30 +0000 (20:37 +0000)]
* bucomm.c (xmalloc, xrealloc): Deleted.
* bucomm.h (xmalloc, xrealloc): Prototypes fixed to correspond to libiberty
versions.

30 years ago* config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec, for compatibility
Ken Raeburn [Sun, 9 Jan 1994 20:30:00 +0000 (20:30 +0000)]
* config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec, for compatibility
with 386bsd and netbsd0.8.