binutils-gdb.git
29 years ago* messages.c (as_abort): New function.
Ken Raeburn [Wed, 8 Feb 1995 23:57:26 +0000 (23:57 +0000)]
* messages.c (as_abort): New function.
* as.h (as_abort): Declare it.
(abort): New macro.

29 years agoThu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu)
Ken Raeburn [Wed, 8 Feb 1995 23:52:51 +0000 (23:52 +0000)]
Thu Jan 19 18:10:05 1995  Pat Rankin  (rankin@eql.caltech.edu)

* config/vms-conf.h (HAVE_UNISTD_H):  define it unconditionally.
* config-gas.com:  test for availability of <unistd.h>; create a rudimentary
one if necessary.

29 years ago * linker.c (generic_link_check_archive_element): Allocate common
Ian Lance Taylor [Wed, 8 Feb 1995 22:57:48 +0000 (22:57 +0000)]
* linker.c (generic_link_check_archive_element): Allocate common
symbol information structure.  Don't bother to check for common
symbol size overflow.
(_bfd_generic_link_add_one_symbol): Likewise.
* aoutx.h (aout_link_check_ar_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Adjust references
to common symbol information for new structure.
(_bfd_generic_link_add_one_symbol): Likewise.
* aoutx.h (aout_link_check_ar_symbols): Likewise.
(aout_link_add_symbols): Likewise.
* ecoff.c (ecoff_link_add_externals): Likewise.
* elfcode.h (elf_link_add_object_symbols): Likewise.
(elf_link_output_extsym): Likewise.
* sunos.c (sunos_add_one_symbol): Likewise.

29 years ago * ldlang.c (lang_one_common): Adjust references to common symbol
Ian Lance Taylor [Wed, 8 Feb 1995 22:56:15 +0000 (22:56 +0000)]
* ldlang.c (lang_one_common): Adjust references to common symbol
information for new structure.

29 years agokeep utils.{c,h}
Ken Raeburn [Wed, 8 Feb 1995 22:55:11 +0000 (22:55 +0000)]
keep utils.{c,h}

29 years ago * bfdlink.h (struct bfd_link_hash_entry): Change format of common
Ian Lance Taylor [Wed, 8 Feb 1995 22:53:50 +0000 (22:53 +0000)]
* bfdlink.h (struct bfd_link_hash_entry): Change format of common
symbol information, to remove restrictions on maximum size and
alignment power, by using a pointer to a structure instead.

29 years agoelfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.
David Edelsohn [Wed, 8 Feb 1995 20:58:01 +0000 (20:58 +0000)]
elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.

29 years agoran "indent -gnu"; have not fixed block comment style
Ken Raeburn [Wed, 8 Feb 1995 02:35:44 +0000 (02:35 +0000)]
ran "indent -gnu"; have not fixed block comment style

29 years ago * som.c (som_bfd_find_nearest_line): Just return false, don't
Jeff Law [Tue, 7 Feb 1995 23:29:08 +0000 (23:29 +0000)]
* som.c (som_bfd_find_nearest_line): Just return false, don't
abort.

29 years agoupdated for added/removed files
Ken Raeburn [Tue, 7 Feb 1995 22:59:13 +0000 (22:59 +0000)]
updated for added/removed files

29 years agoLots of changes from David Mosberger-Tang; see ChangeLog and NOTES for details:
Ken Raeburn [Tue, 7 Feb 1995 22:34:18 +0000 (22:34 +0000)]
Lots of changes from David Mosberger-Tang; see ChangeLog and NOTES for details:
Alpha support.
Long options.
New file format to support more information; backwards compatibility.
Line-level profiling, on systems where bfd_find_nearest_line works.
Selective display of data.

29 years agoclean up mechanics of mosberger-tang's changes
Ken Raeburn [Tue, 7 Feb 1995 20:06:28 +0000 (20:06 +0000)]
clean up mechanics of mosberger-tang's changes

29 years ago * ecoffswap.h (ecoff_swap_pdr_in): Zero out intern before setting
Ian Lance Taylor [Tue, 7 Feb 1995 19:22:43 +0000 (19:22 +0000)]
* ecoffswap.h (ecoff_swap_pdr_in): Zero out intern before setting
any of the fields.

29 years agokeep new msdos files
Ken Raeburn [Tue, 7 Feb 1995 19:14:32 +0000 (19:14 +0000)]
keep new msdos files

29 years agoAdd support for powerpc-*-eabi in configure.in, rebuild configure.
Michael Meissner [Tue, 7 Feb 1995 18:42:04 +0000 (18:42 +0000)]
Add support for powerpc-*-eabi in configure.in, rebuild configure.

29 years agoApparently I forgot to commit this change:
Jeff Law [Tue, 7 Feb 1995 18:20:57 +0000 (18:20 +0000)]
Apparently I forgot to commit this change:
        * config/tc-hppa.c (md_apply_fix): Go ahead and call
        hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL
        relocations in SOM.
        (hppa_fix_adjustable): Refine somewhat.

29 years agoFix it so whitespace works out right even with sanitization
Jim Kingdon [Tue, 7 Feb 1995 04:46:18 +0000 (04:46 +0000)]
Fix it so whitespace works out right even with sanitization

29 years ago * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
Stan Shebs [Tue, 7 Feb 1995 03:01:16 +0000 (03:01 +0000)]
* i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
        line, so init.c generation works correctly.
start-sanitize-arc
* arc-tdep.c (_initialize_arc_tdep): Ditto.
end-sanitize-arc

29 years agovarious ChangeLog housekeeping, and
Stan Shebs [Tue, 7 Feb 1995 02:44:25 +0000 (02:44 +0000)]
various ChangeLog housekeeping, and

Sat Feb  4 13:29:52 1995  Stan Shebs  <shebs@andros.cygnus.com>

* config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.

29 years agoecoff gprof related fixes & improvements from David Mosberger-Tang
Ken Raeburn [Tue, 7 Feb 1995 01:06:25 +0000 (01:06 +0000)]
ecoff gprof related fixes & improvements from David Mosberger-Tang

29 years ago * ldmain.c (undefined_symbol): Handle section being NULL.
Ian Lance Taylor [Mon, 6 Feb 1995 23:24:20 +0000 (23:24 +0000)]
* ldmain.c (undefined_symbol): Handle section being NULL.

29 years ago * libelf.h (struct elf_link_hash_table): Add saw_needed field.
Ian Lance Taylor [Mon, 6 Feb 1995 23:23:37 +0000 (23:23 +0000)]
* libelf.h (struct elf_link_hash_table): Add saw_needed field.
* elfcode.h (elf_link_add_object_symbols): Set saw_needed if
DT_NEEDED seen in .dynamic section.
(elf_link_output_extsym): Warn if an undefined symbol is
only referenced from a dynamic object, and not making a shared
object, and saw_needed is false.
* elf.c (_bfd_elf_link_hash_table_init): Initialize saw_needed.

29 years agoupdate comment
Ian Lance Taylor [Mon, 6 Feb 1995 23:19:34 +0000 (23:19 +0000)]
update comment

29 years agoFix string signifing the right target name.
Rob Savoye [Mon, 6 Feb 1995 22:09:35 +0000 (22:09 +0000)]
Fix string signifing the right target name.

29 years ago * config/mips/idt.mt: Add support for the lsi33k target.
Rob Savoye [Mon, 6 Feb 1995 22:00:10 +0000 (22:00 +0000)]
* config/mips/idt.mt: Add support for the lsi33k target.
* config/sparc/sun4sol2.mh: Add support for ser-tcp.

29 years ago * config/mips/idt.mt: Add support for ser-tcp and the lsi33k
Rob Savoye [Mon, 6 Feb 1995 21:48:44 +0000 (21:48 +0000)]
* config/mips/idt.mt: Add support for ser-tcp and the lsi33k
target.
* array-rom.c: Finish the rest of the support commands needed by
GDB.
* mips-tdep.c: Add LSI33k register names and processor type.

29 years agoAdd the rest of the commands needed by GDB.
Rob Savoye [Mon, 6 Feb 1995 21:43:21 +0000 (21:43 +0000)]
Add the rest of the commands needed by GDB.

29 years agoAdd support for ser-tcp and the Array lsi33k target.
Rob Savoye [Mon, 6 Feb 1995 21:41:28 +0000 (21:41 +0000)]
Add support for ser-tcp and the Array lsi33k target.

29 years ago * libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Don't define.
Ian Lance Taylor [Mon, 6 Feb 1995 21:34:44 +0000 (21:34 +0000)]
* libelf.h (ELF_LINK_HASH_DEFINED_WEAK): Don't define.
* elfcode.h (elf_link_add_object_symbols): Don't clear or set
ELF_LINK_HASH_DEFINED_WEAK.
(elf_link_output_extsym): Don't check ELF_LINK_HASH_DEFINED_WEAK.

29 years agotipo
Ian Lance Taylor [Mon, 6 Feb 1995 20:12:54 +0000 (20:12 +0000)]
tipo

29 years ago * ldctor.c (ldctor_build_sets): Handle bfd_link_hah_defweak.
Ian Lance Taylor [Mon, 6 Feb 1995 20:01:38 +0000 (20:01 +0000)]
* ldctor.c (ldctor_build_sets): Handle bfd_link_hah_defweak.
* ldexp.c (fold_name): Likewise.
* ldlang.c (print_one_symbol): Likewise.
(lang_finish): Likewise.
* ldmain.c (multiple_common): Likewise.
* ldwrite.c (print_symbol): Likewise.  Also, bfd_link_hash_weak
renamed to bfd_link_hash_undefweak.

29 years ago Distinguish a weak defined symbol from a regular defined symbol.
Ian Lance Taylor [Mon, 6 Feb 1995 20:01:08 +0000 (20:01 +0000)]
Distinguish a weak defined symbol from a regular defined symbol.
* linker.c (enum link_action): Add DEFW.
(link_action): Add bfd_link_hash_defweak column.
(_bfd_generic_link_add_one_symbol): Add DEFW case.  Handle
bfd_link_hash_defweak in a few other cases.
* Many files (bfd_link_hash_undefweak): Renamed from
bfd_link_hash_weak.
* aoutx.h (aout_link_write_symbols): Handle bfd_link_hash_defweak.
(aout_link_write_other_symbol): Likewise.
(aout_link_input_section_std): Likewise.
(aout_link_input_section_ext): Likewise.
* bout.c (get_value): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Likewise.
* coff-alpha.c (alpha_convert_external_reloc): Likewise.
(alpha_relocate_section): Likewise.
* coff-mips.c (mips_relocate_section): Likewise.
(mips_relax_section): Likewise.
(bfd_mips_ecoff_create_embedded_relocs): Likewise.
* cofflink.c (coff_write_global_sym): Likewise.
(_bfd_coff_generic_relocate_section): Likewise.
* ecoff.c (ecoff_link_add_externals): Likewise.
(ecoff_link_write_external): LIkewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
(elf32_hppa_size_stubs): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
* elf32-mips.c (mips_elf_output_extsym): Likewise.
(mips_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
(elf32_sparc_relocate_section): Likewise.
* elfcode.h (elf_link_add_object_symbols): Likewise.
(elf_adjust_dynamic_symbol): Likewise.
(elf_bfd_final_link): Likewise.
(elf_link_output_extsym): Likewise.
* i386linux.c (linux_add_one_symbol): Likewise.
(linux_tally_symbols): Likewise.
(linux_finish_dynamic_link): Likewise.
* linker.c (_bfd_generic_link_output_symbols): Likewise.
(set_symbol_from_hash): Likewise.
* reloc16.c (bfd_coff_reloc16_get_value): Likewise.
(bfd_perform_slip): Likewise.
* sunos.c (sunos_add_one_symbol): Likewise.
(sunos_scan_std_relocs): Likewise.
(sunos_scan_ext_relocs): Likewise.
(sunos_scan_dynamic_symbol): Likewise.
(sunos_write_dynamic_symbol): Likewise.

29 years ago * bfdlink.h (enum bfd_link_hash_type): Rename bfd_link_hash_weak
Ian Lance Taylor [Mon, 6 Feb 1995 19:56:27 +0000 (19:56 +0000)]
* bfdlink.h (enum bfd_link_hash_type): Rename bfd_link_hash_weak
to bfd_link_hash_undefweak.  Add bfd_link_hash_defweak.

29 years ago* i386.h: added cpuid instruction , and dr[0-7] aliases for the
J.T. Conklin [Mon, 6 Feb 1995 19:00:40 +0000 (19:00 +0000)]
* i386.h: added cpuid instruction , and dr[0-7] aliases for the
  debug registers.  From Charles Hannum (mycroft@netbsd.org).

29 years ago* i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
J.T. Conklin [Mon, 6 Feb 1995 18:56:53 +0000 (18:56 +0000)]
* i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
  (mycroft@netbsd.org).

29 years ago * scripttempl/alpha.sc: Set address of .data section correctly
Ian Lance Taylor [Mon, 6 Feb 1995 17:18:57 +0000 (17:18 +0000)]
* scripttempl/alpha.sc: Set address of .data section correctly
when -n or -N is used.  Patch from Chris G Demetriou
<Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.

29 years agoBryan Ford's changes for 16-bit i386 support, and i386-msdos support.
Ken Raeburn [Mon, 6 Feb 1995 08:53:05 +0000 (08:53 +0000)]
Bryan Ford's changes for 16-bit i386 support, and i386-msdos support.

29 years agoi386 16-bit mode support from bryan ford
Ken Raeburn [Mon, 6 Feb 1995 08:38:27 +0000 (08:38 +0000)]
i386 16-bit mode support from bryan ford

29 years agomsdos .exe file support from bryan ford
Ken Raeburn [Mon, 6 Feb 1995 08:31:27 +0000 (08:31 +0000)]
msdos .exe file support from bryan ford

29 years ago * gdbtk.c (gdb_disassemble): Deference pointer to function before
Jim Kingdon [Mon, 6 Feb 1995 04:39:14 +0000 (04:39 +0000)]
* gdbtk.c (gdb_disassemble): Deference pointer to function before
calling it (pre-ANSI compilers generally require this).

29 years ago * Makefile.in (site.exp): Set host_alias and target_alias as well
Jim Kingdon [Sun, 5 Feb 1995 01:02:40 +0000 (01:02 +0000)]
* Makefile.in (site.exp): Set host_alias and target_alias as well
as host_triplet and target_triplet.

29 years ago * config.guess (IRIX): Sed - to _.
Jim Wilson [Sat, 4 Feb 1995 20:12:40 +0000 (20:12 +0000)]
* config.guess (IRIX): Sed - to _.

29 years ago * arc.mt: add SER_HARDWIRE=ser-go32-para.o, to overwrite host .mh.
Kung Hsu [Sat, 4 Feb 1995 00:55:51 +0000 (00:55 +0000)]
* arc.mt: add SER_HARDWIRE=ser-go32-para.o, to overwrite host .mh.

29 years ago * go32.mh, xm-go32.h: redundant files, not needed.
Kung Hsu [Sat, 4 Feb 1995 00:54:15 +0000 (00:54 +0000)]
* go32.mh, xm-go32.h: redundant files, not needed.

29 years ago * ser-go32-para.c (dos_read): fix syntax errors.
Kung Hsu [Sat, 4 Feb 1995 00:51:30 +0000 (00:51 +0000)]
    * ser-go32-para.c (dos_read): fix syntax errors.

29 years ago* objdump.c (disassemble_data): Pass section offset, not absolute address, to
Ken Raeburn [Sat, 4 Feb 1995 00:11:07 +0000 (00:11 +0000)]
* objdump.c (disassemble_data): Pass section offset, not absolute address, to
bfd_find_nearest_line.

* nlmconv.c (powerpc_mangle_relocs): Don't use const with reloc_howto_type.

29 years ago* Makefile.in (source-vault, binary-vault): New targets.
J.T. Conklin [Fri, 3 Feb 1995 19:56:27 +0000 (19:56 +0000)]
* Makefile.in (source-vault, binary-vault): New targets.

29 years ago * core.c (dis_asm_read_memory), defs.h, gdbtk.c (gdb_disassemble),
Stu Grossman [Fri, 3 Feb 1995 19:35:54 +0000 (19:35 +0000)]
* core.c (dis_asm_read_memory), defs.h, gdbtk.c (gdb_disassemble),
top.c :  Get rid of dis_asm_read_memory_hook.  We can now call the
disassemblers directly and have no need for this hook anymore.
* defs.h, printcmd.c:  Make print_insn be static.

* ser-go32.c (dos_comisr):  Make this 8 bit clean.
* (dos_open dos_close):  Allow multiple opens to the same device.
Use a ref count to prevent unwanted deallocations.
* sparcl-tdep.c:  Put #ifdefs around all socket stuff to make GO32
happy.
* (sparclite_ops):  Switch to download_stratum.
* target.h (enum strata):  Move download_stratum before
process_stratum so that executable targets get pushed on top of
download targets.

29 years ago * array-rom.c: Remove the non GDB remote protocol config stuff.
Rob Savoye [Fri, 3 Feb 1995 02:08:08 +0000 (02:08 +0000)]
* array-rom.c: Remove the non GDB remote protocol config stuff.
* monitor.c: All reading/writing functions for memory and
registers work.

29 years ago * For arc specific changes.
Kung Hsu [Fri, 3 Feb 1995 00:25:02 +0000 (00:25 +0000)]
* For arc specific changes.

29 years ago * arc-tdep.c: new target dependent codes for arc processor.
Kung Hsu [Fri, 3 Feb 1995 00:23:22 +0000 (00:23 +0000)]
    * arc-tdep.c: new target dependent codes for arc processor.
        * remote-arc.c: new file for arc-specific protocol through
        parallel line.
        * ser-go32-para.c: new file for go32 parallel port communication.
        * .Sanitize: sanitize arc specific files out.

29 years ago * config/arc/.Sanitize: New file for config/arc directory.
Kung Hsu [Fri, 3 Feb 1995 00:19:19 +0000 (00:19 +0000)]
    * config/arc/.Sanitize: New file for config/arc directory.
        * config/arc/arc.mt: new target makefile for arc processor.
        * config/arc/tm-arc.h: new target header for arc processor.
        * config/arc/go32.mh: new go32 host makefile for arc processor.
        * config/arc/xm-go32.h: new go32 host header for arc processor.

29 years ago * Makefile.in (VERSION): Bump to 4.13.2.
Stan Shebs [Thu, 2 Feb 1995 22:02:20 +0000 (22:02 +0000)]
* Makefile.in (VERSION): Bump to 4.13.2.

29 years agovms fixes from pat rankin
Ken Raeburn [Thu, 2 Feb 1995 21:33:40 +0000 (21:33 +0000)]
vms fixes from pat rankin

29 years agounder m68k description, indicate that only a subset of moto syntax is handled
Ken Raeburn [Thu, 2 Feb 1995 20:54:14 +0000 (20:54 +0000)]
under m68k description, indicate that only a subset of moto syntax is handled

29 years ago* config/tc-m68k.c (cpu32_control_regs): New macro.
Ken Raeburn [Thu, 2 Feb 1995 20:23:15 +0000 (20:23 +0000)]
* config/tc-m68k.c (cpu32_control_regs): New macro.
(m68k_init_after_args): Use it, for cpu32 processors.

29 years agoupdate copyright
Ken Raeburn [Thu, 2 Feb 1995 20:11:43 +0000 (20:11 +0000)]
update copyright

29 years ago * gas/hppa/reloc/picreloc.c: New test.
Jeff Law [Thu, 2 Feb 1995 07:39:23 +0000 (07:39 +0000)]
    * gas/hppa/reloc/picreloc.c: New test.
* gas/hppa/reloc/reloc.exp (do_pic_relocation_test): Run it.

29 years ago * f-typeprint.c (f_type_print_varspec_suffix): Print array index
Per Bothner [Thu, 2 Feb 1995 05:23:51 +0000 (05:23 +0000)]
* f-typeprint.c (f_type_print_varspec_suffix):  Print array index
ranges in reverse order.
* f-valprint.c (f77_create_arrayprint_offset_tbl):  Fix calculation.

* eval.c (evaluate_subscript):  Don't call value_subscript, since
it adjusts for lower bound and enforces ranges.

* expression.h (exp_code):  Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
* eval.c, parse.c:  Removed uses of removed opcodes.

29 years ago * stabs.texinfo (Source Files): Document N_SO used to mark the end
Jim Kingdon [Thu, 2 Feb 1995 04:31:24 +0000 (04:31 +0000)]
* stabs.texinfo (Source Files): Document N_SO used to mark the end
of a source file.

29 years ago * eval.c (evaluate_subexp): Clean up handling of
Per Bothner [Thu, 2 Feb 1995 03:37:26 +0000 (03:37 +0000)]
* eval.c (evaluate_subexp):  Clean up handling of
OP_UNDETERMINED_ARGLIST (no backtracking, more general).

* f-valprint.c (f_val_print):  Print TYPE_CODE_STRING using
LA_PRINT_STRING, and not val_print_string (which reads from inferior).

* ch-lang.c (chill_is_varying_struct), ch-lang.h:  Remve function
duplicate function made redundant by chill_varying_type.

Re-write of f77 string and complex number support:

* language.h (struct language_defn):  New fields string_lower_bound
and string_char_type.
* c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
language.c (unknown_language_defn, auto_language_defn,
local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
(f_language_defn), ch-lang.c (chill_language_defn):  Set new fields.
* gdbtypes.c (create_string_type):  Use new string_char_type field.
* valops.c (value_string):  Use new string_lower_bound field.

* defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT):  Removed.
* f-lang.c (f_create_fundamental_type, _initialize_f_language),
m2-lang.c (m2_create_fundamental_type),
gdbtypes.c (_initialize_gdbtypes):  Set TYPE_TARGET_TYPE of complex
types.  Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
* mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
Removed.  Use builtin_type_complex and builtin_type_double_complex.

* gdbtypes.h (enum type_code):  Removed TYPE_CODE_LITERAL_STRING
and TYPE_CODE_LITERAL_COMPLEX.
* c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c:  Removed uses of
TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
* gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
f77_create_literal_string_type):  Removed.
* value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
VALUE_SUBSTRING_MYADDR):  Removed.

* expression.h (enum exp_opcode):  Rename OP_F77_LITERAL_COMPLEX to
OP_COMPLEX.
* parse.c:  Update accordingly.

* f-valprint.c (f77_print_cmplx):  Removed.
(f_val_print case TYPE_CODE_COMPLEX):  Re-write to use print_floating.

* f-exp.y (STRING_LITERAL):  Use OP_STRING instead of OP_ARRAY.
* eval.c (evaluate_subexp):  For case OP_ARRAY, don't call
f77_value_literal_string.
* valops.c, value.h (f77_value_literal_string, f77_value_substring,
f77_assign_from_literal_string, f77_assign_from_literal_complex):
Removed.
(value_assign):  No longer need to handle literal types.
* valops.c (f77_value_literal_complex), value.h:  Re-written and
renamed to value_literal_complex.  Last arg is now a (complex) type.
* valops.c (f77_cast_into_complex):  Re-written and renamed to
cast_into_complex.
* eval.c (evaluate_subexp):  Update accordingly.

29 years ago * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
Per Bothner [Thu, 2 Feb 1995 03:32:52 +0000 (03:32 +0000)]
* ch-valprint.c (chill_val_print):  On TYPE_CODE_STRING, don't
print address for non-'s'-formats.
* ch-typeprint.c, ch-valprint.c:  Use chill_varying_type instead
of chill_is_varying_struct.

29 years ago gcc -Wall lint.
Stan Shebs [Thu, 2 Feb 1995 00:10:50 +0000 (00:10 +0000)]
gcc -Wall lint.
* alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
(after_prologue): Remove unused local b.
* procfs.c (thread.h): Include.
(pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
nested braces in initializer.
* top.c (initialize_targets, initialize_utils): Declare.
(locate_arg, insert_args): Add parens around tested assignments.
* remote-utils.c (sr_scan_args): Remove decl of strtol.
* remote.c (thread.h): Include.
(remote_wait): Remove unused local p2.
* sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
registers array.

defs.h (stdlib.h): Include.
(exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
(fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
strtok, strerror): Don't specify parameter types in declaration.

29 years ago * tuples.ch, tuples.exp, Makefile.in: New test case.
Per Bothner [Wed, 1 Feb 1995 21:08:52 +0000 (21:08 +0000)]
* tuples.ch, tuples.exp, Makefile.in:  New test case.

29 years ago * ch-exp.y (value_string_element, string_primitive_value,
Per Bothner [Wed, 1 Feb 1995 21:02:51 +0000 (21:02 +0000)]
* ch-exp.y (value_string_element, string_primitive_value,
start_element, left_element, right_element, slice_size,
lower_element, upper_element, first_element):  Removed.
(value_string_slice, value_array_slice):  Replaced by ...
(slice):  New non-terminal, with working slice support.
(primitive_value_lparen, rparen):  New non-terminals.
(maybe_tuple_elements):  New non-terminal, to allow empty tuples.
(idtokentab):  Added "up".

* value.h (COERCE_VARYING_ARRAY):  New macro.
* valarith.c (value_subscript):  Use it.
* valops.c (value_cast):  Likewise.  Also, do nothing if already
correct type, and allow converting from/to range to/from scalar.

* valops.c, value.h (varying_to_slice, value_slice):  New functions.
* eval.c (OP_ARRAY):  Add cast for array element.
* expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT):  New exp_opcodes.
* valops.c (chill_varying_type):  Moved function frp, here ...
* gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
* parse.c (length_of_subexp, prefixify_subexp):  Add support
for TERNOP_SLICE, TERNOP_SLICE_COUNT.
* expprint.c (print_subexp, dump_expression):  Likewise.
* eval.c (evaluate_subexp):  Likewise.

* eval.c (evaluate_subexp case MULTI_SUBSCRIPT):  Don't call
value_x_binop on a Chill varying string.

29 years agokeep h8300 tests
Ken Raeburn [Wed, 1 Feb 1995 19:11:10 +0000 (19:11 +0000)]
keep h8300 tests

29 years ago * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
Jim Kingdon [Wed, 1 Feb 1995 18:21:30 +0000 (18:21 +0000)]
* gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
places as other ecoff systems).

29 years ago * gdb.base/nodebug.exp: Add xfails for ultrix (same places as
Jim Kingdon [Wed, 1 Feb 1995 17:08:16 +0000 (17:08 +0000)]
* gdb.base/nodebug.exp: Add xfails for ultrix (same places as
other ecoff systems).

29 years ago * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
Jim Kingdon [Wed, 1 Feb 1995 16:11:07 +0000 (16:11 +0000)]
* gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
ultrix.

29 years ago * som.c (som_object_setup): More heruistics to detect the
Jeff Law [Wed, 1 Feb 1995 08:35:40 +0000 (08:35 +0000)]
* som.c (som_object_setup): More heruistics to detect the
braindamaged HP OSF1 linker.
(setup_sections): Don't forget to free subspace_sections if we get
an error.
(som_slurp_string_table): Allocate strings on this bfd's obstack
rather than directly out of the heap.
(som_slurp_symbol_table): Likewise for the saved copy of the
canonical symbols.
(som_slurp_reloc_table): Likewise for the saved copy of the
canonical relocations.  Free the native relocations when we're
done with them.

29 years ago * libelf.h (struct elf_obj_tdata): New member program_header_size.
David Edelsohn [Wed, 1 Feb 1995 05:56:53 +0000 (05:56 +0000)]
* libelf.h (struct elf_obj_tdata): New member program_header_size.
* elfcode.h (get_program_header_size): New parameters sorted_hdrs,
count, and maxpagesize.  All callers updated.
If sorted_hdrs is non-NULL, use it to compute the number of segments.
Save result in case called again.
(assign_file_positions_except_relocs): Sort headers before calling
get_program_header_size.

29 years ago * ldlang.c (lang_size_sections): Clarify error message when user
David Edelsohn [Wed, 1 Feb 1995 00:23:47 +0000 (00:23 +0000)]
* ldlang.c (lang_size_sections): Clarify error message when user
specified start addr conflicts with region.  Fix resetting of
region pointer.

29 years ago * config/m68k/monitor.mt,
Jim Kingdon [Tue, 31 Jan 1995 22:00:59 +0000 (22:00 +0000)]
* config/m68k/monitor.mt,
config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
depfiles in TDEPFILES not REMOTE_O.

29 years ago * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
Jim Kingdon [Tue, 31 Jan 1995 21:01:09 +0000 (21:01 +0000)]
* gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
remove them.
* gdb.base/nodebug.exp: Accept "function" in addition to "text
variable and "variable" in addition to "data variable".
* gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.

29 years ago * elfcode.h (map_program_segments): Add sorted_hdrs parameter.
Ian Lance Taylor [Tue, 31 Jan 1995 20:55:25 +0000 (20:55 +0000)]
* elfcode.h (map_program_segments): Add sorted_hdrs parameter.
Search through it rather than through unsorted section headers.
(assign_file_positions_except_relocs): Pass sorted_hdrs to
map_program_segments.

29 years ago From nigel@algor.co.uk.
Steve Chamberlain [Tue, 31 Jan 1995 19:30:27 +0000 (19:30 +0000)]
From nigel@algor.co.uk.
* ser-go32.c (dos_close): Don't crash if scb null.
(dos_sendbreak): New function.
(dos_ops): Point to dos_sendbreak.
(dos_info): Calculate COM number correctly.

29 years ago * xcoffread.c (process_xcoff_symbol): Use new variables
Jim Kingdon [Tue, 31 Jan 1995 18:38:06 +0000 (18:38 +0000)]
* xcoffread.c (process_xcoff_symbol): Use new variables
func_symbol_type and var_symbol_type as type of functions and
variables which don't have any stabs associated with them.
Reindent most of function.
(_initialize_xcoffread): Initialize *_symbol_type.

* xcoffread.c (read_xcoff_symtab): Reindent most of function.
Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
them (this part commented out as I didn't quite get it to work).
(cs_to_section, find_targ_sec): New functions, to support above code.
* xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
actually present.

29 years ago * ldexp.c (fold_name): In case NAME, permit an absolute symbol
Ian Lance Taylor [Tue, 31 Jan 1995 17:40:50 +0000 (17:40 +0000)]
* ldexp.c (fold_name): In case NAME, permit an absolute symbol
in lang_allocating_phase_enum.
PR 6259.

29 years ago* ecoff.c (_bfd_ecoff_find_nearest_line): Fix problems in range checking.
Ken Raeburn [Tue, 31 Jan 1995 03:57:31 +0000 (03:57 +0000)]
* ecoff.c (_bfd_ecoff_find_nearest_line): Fix problems in range checking.
Expect argument OFFSET to be section-relative.  From David Mosberger-Tang,
davidm@piston.cs.arizona.edu.

29 years ago * gdbtk.tcl (create_file_win): Disable old popup menu for source
Stu Grossman [Tue, 31 Jan 1995 01:41:55 +0000 (01:41 +0000)]
* gdbtk.tcl (create_file_win):  Disable old popup menu for source
window.

29 years ago * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
Stu Grossman [Tue, 31 Jan 1995 01:38:44 +0000 (01:38 +0000)]
* sparcl-tdep.c:  Add `sparclite' target for doing serial and udp
downloads to SPARClite demo boards.

29 years ago * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
Jim Kingdon [Mon, 30 Jan 1995 19:53:35 +0000 (19:53 +0000)]
* gdb.base/list.exp (test_forward_search): Set listsize to 4 not
2.
* gdb.base/list1.c (long_line): Add additional statement at start
of function.
* gdb.base/list.exp (test_forward_search): Update line number to
reflect new statement.

29 years agotipo
Ian Lance Taylor [Mon, 30 Jan 1995 04:23:50 +0000 (04:23 +0000)]
tipo

29 years ago * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
Jim Kingdon [Sun, 29 Jan 1995 17:51:58 +0000 (17:51 +0000)]
* remote.c, remote-pa.c: Remove #if 0'd icache code.  It has had
no hope of working as is for a long time (in particular, shebs' 27
Jan 95 change confuses the issue further--target_read_memory and
xfer_core_file do *not* do the same thing in this context).
Revise comment.

29 years ago(arc.h): New file, contains ARC specific ELF definitions.
David Edelsohn [Sun, 29 Jan 1995 08:00:08 +0000 (08:00 +0000)]
(arc.h): New file, contains ARC specific ELF definitions.

29 years ago * som.c (compare_subspaces): New function to sort subspaces by
Jeff Law [Sun, 29 Jan 1995 06:37:35 +0000 (06:37 +0000)]
* som.c (compare_subspaces): New function to sort subspaces by
their location in the object file.
(setup_sections): When computing the index for each subspace,
handle case where setup_sections reads the subspaces in a
different order that they appear in the object file.
(som_is_space): Also examine the output section for the containing
section.
(som_is_subspace, som_is_container): Likewise.
(som_begin_writing): Don't prepare or write fixups here.  When
writing the symbol strings, use the unsorted symbol table.
(som_write_object_contents): Don't write the symbol table here.
(som_finish_writing): Prepare and write the fixups here.  Likewise
for the symbol table.
(som_bfd_derive_misc_symbol_info): Undefined symbols always have
type SS_UNSAT regardless of BSF_EXPORT.
(som_set_reloc_info): Unpack and attach argument location
information for R_PCREL_CALL and R_ABS_CALL relocations.

29 years ago * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
Peter Schauer [Sat, 28 Jan 1995 21:43:51 +0000 (21:43 +0000)]
* elfread.c (elf_symtab_read):  Do not test BSF_GLOBAL for
procedure linkage table symbols, it is no longer set due to the
Jan 6 BFD change in bfd/elfcode.h.

29 years ago * som.c (som_object_setup): New heuristic to determine if the
Jeff Law [Sat, 28 Jan 1995 19:50:52 +0000 (19:50 +0000)]
* som.c (som_object_setup): New heuristic to determine if the
entry and flags fields are switched in the exec header.

29 years ago * gdb.disasm/Makefile.in (clean): Delete "errs" file.
Jeff Law [Sat, 28 Jan 1995 08:42:31 +0000 (08:42 +0000)]
* gdb.disasm/Makefile.in (clean): Delete "errs" file.
* gdb.stabs/Makefile.in: Likewise.

* gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
change.  Instead split the tests into smaller pieces.
* gdb.disasm/hppa.s: Corresponding changes.

29 years ago * elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
Ian Lance Taylor [Sat, 28 Jan 1995 05:17:04 +0000 (05:17 +0000)]
* elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
of h if we might not be doing an ELF link.

29 years ago * top.c (use_windows): Clarify comments.
Stan Shebs [Sat, 28 Jan 1995 01:38:39 +0000 (01:38 +0000)]
* top.c (use_windows): Clarify comments.

29 years ago * convex-tdep.c (xfer_core_file): Comment out.
Stan Shebs [Sat, 28 Jan 1995 01:32:10 +0000 (01:32 +0000)]
* convex-tdep.c (xfer_core_file): Comment out.
* config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
* remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
        references to target_read_memory.
* gdbcore.h (xfer_core_file, core_open, core_detach): Remove
declarations.
* corelow.c (core_open, core_detach): Make static.

29 years ago * arm-tdep.c: Make it compile.
Stan Shebs [Sat, 28 Jan 1995 01:17:33 +0000 (01:17 +0000)]
* arm-tdep.c: Make it compile.
(exec_file_command, xfer_core_file): Comment out.
(arm_print_insn): Remove, now in libopcodes.
(skip_prologue): Comment out most of body.
(arm_frame_find_saved_regs): Move here from tm-arm.h.
(_initialize_arm_tdep): Set tm_print_insn.
* config/arm/tm-arm.h: Remove old refs to first_object_file_end.
(XFER_CORE_FILE): Remove.
(FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
Ian Lance Taylor [Fri, 27 Jan 1995 21:28:52 +0000 (21:28 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
a MIPS target, clobber the size of all but the first input
.reginfo section to be 0, so that lang_size_sections sets the
correct size for the output .reginfo section.

29 years ago * elf32-mips.c (mips_elf_final_link): If the size of an input
Ian Lance Taylor [Fri, 27 Jan 1995 21:27:33 +0000 (21:27 +0000)]
* elf32-mips.c (mips_elf_final_link): If the size of an input
.reginfo section is zero, force it to the correct size, since the
linker emulation code may have clobbered it.

29 years ago * elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
Ian Lance Taylor [Fri, 27 Jan 1995 21:24:28 +0000 (21:24 +0000)]
* elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
(assign_file_positions_except_relocs): Free sorted_hdrs.

29 years agoadded two h8300 tests
Ken Raeburn [Fri, 27 Jan 1995 19:06:56 +0000 (19:06 +0000)]
added two h8300 tests

29 years ago * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Jim Kingdon [Fri, 27 Jan 1995 18:22:15 +0000 (18:22 +0000)]
* gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Quote ^C when passing it to stty.  For some shells ^ is a pipe.

29 years ago * gdb.base/funcargs.exp: Modify many tests so that every test
Jim Kingdon [Fri, 27 Jan 1995 17:29:52 +0000 (17:29 +0000)]
* gdb.base/funcargs.exp: Modify many tests so that every test
either passes or fails.  Make some test names unique.

29 years ago* Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
Jim Kingdon [Fri, 27 Jan 1995 16:53:21 +0000 (16:53 +0000)]
* Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.