binutils-gdb.git
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.

29 years ago * srec.c (srec_set_section_contents): Fix off by
Steve Chamberlain [Fri, 27 Jan 1995 16:41:11 +0000 (16:41 +0000)]
* srec.c (srec_set_section_contents): Fix off by
one end address calculation.

29 years ago * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Jim Kingdon [Fri, 27 Jan 1995 05:40:50 +0000 (05:40 +0000)]
* gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Call stty to set interrupt character.

29 years ago * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
Jim Kingdon [Fri, 27 Jan 1995 04:24:09 +0000 (04:24 +0000)]
* gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of
$(CC), rather than assuming that $(AS) is always the GNU assembler.

29 years ago* TODO: Suggest a few more stepping tests.
Jim Kingdon [Fri, 27 Jan 1995 03:22:42 +0000 (03:22 +0000)]
* TODO: Suggest a few more stepping tests.

29 years ago * symtab.c (find_pc_line): When subtracting one to get a line
Jim Kingdon [Fri, 27 Jan 1995 03:15:20 +0000 (03:15 +0000)]
* symtab.c (find_pc_line): When subtracting one to get a line
number, make sure not to end up with zero.

29 years ago * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
Jim Kingdon [Fri, 27 Jan 1995 03:10:00 +0000 (03:10 +0000)]
* remote-vx.c: Revert all of Kung's changes of 16 Jan.  The
problems with those changes were (a) the file didn't compile, (b)
they changed memset to bzero--memset is correct, (c) they took out
code to deal with boards lacking floating point, (d) who knows
what I didn't discover in a quick read.

29 years ago * sparcl-tdep.c: Clean up formatting and indentation.
Stu Grossman [Fri, 27 Jan 1995 01:34:48 +0000 (01:34 +0000)]
* sparcl-tdep.c:  Clean up formatting and indentation.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Ian Lance Taylor [Fri, 27 Jan 1995 00:54:51 +0000 (00:54 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove unused variable is.

29 years ago* config/tc-h8300.c (get_specific): Add parens around | inside &.
Ken Raeburn [Fri, 27 Jan 1995 00:05:09 +0000 (00:05 +0000)]
* config/tc-h8300.c (get_specific): Add parens around | inside &.
(skip_colonthing): Set L_8 if ":8" is specified.

29 years ago * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
Ian Lance Taylor [Thu, 26 Jan 1995 23:41:12 +0000 (23:41 +0000)]
* config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
601.  Check that the error return from hash_insert is "exists".

29 years ago * ppc-opc.c: Changes based on patch from David Edelsohn
Ian Lance Taylor [Thu, 26 Jan 1995 23:35:32 +0000 (23:35 +0000)]
* ppc-opc.c: Changes based on patch from David Edelsohn
<edelsohn@npac.syr.edu>.
(powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
SPR.
(FXM_MASK): Define.
(insert_tbr): New static function.
(extract_tbr): New static function.
(XFXFXM_MASK, XFXM): Define.
(XSPRBAT_MASK, XSPRG_MASK): Define.
(powerpc_opcodes): Add instructions to access special registers by
name.  Add mtcr and mftbu.

29 years ago * elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
Ian Lance Taylor [Thu, 26 Jan 1995 21:48:14 +0000 (21:48 +0000)]
* elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
we are using an ELF hash table.

29 years ago * remote-hms.c (hms_ops): Change ref of hr_load_image
Steve Chamberlain [Thu, 26 Jan 1995 19:57:09 +0000 (19:57 +0000)]
* remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.
(dcache_flush, dcache_hit, dcache_value, dcache_fetch,
dcache_poke, dcache_init):  Deleted.
(hms_open, hms_resume, hms_fetch_word, hms_store_word):
Use dcache routines provided by remote-util.h

29 years ago * remote-hms.c (hms_ops): Change ref of hr_load_image
Steve Chamberlain [Thu, 26 Jan 1995 18:53:20 +0000 (18:53 +0000)]
* remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.

29 years agoAdd embedded PowerPC ELF support.
Michael Meissner [Thu, 26 Jan 1995 17:59:08 +0000 (17:59 +0000)]
Add embedded PowerPC ELF support.

29 years agoNew file.
Steve Chamberlain [Thu, 26 Jan 1995 17:41:48 +0000 (17:41 +0000)]
New file.

29 years ago * config.bfd: (m68*-est-coff): New configuration.
Steve Chamberlain [Thu, 26 Jan 1995 17:37:31 +0000 (17:37 +0000)]
  * config.bfd: (m68*-est-coff): New configuration.

29 years agoAdd powerpc-*-eabi support.
Michael Meissner [Thu, 26 Jan 1995 17:27:56 +0000 (17:27 +0000)]
Add powerpc-*-eabi support.

29 years agoAdd support for PowerPC embedded ABI.
Michael Meissner [Thu, 26 Jan 1995 17:07:03 +0000 (17:07 +0000)]
Add support for PowerPC embedded ABI.

29 years ago * aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
Ian Lance Taylor [Thu, 26 Jan 1995 16:43:54 +0000 (16:43 +0000)]
* aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
the start address is in the .text section, even if STAT_FOR_EXEC
is set.  Just use STAT_FOR_EXEC as an additional test.

29 years agoAllow configuration of PowerPC embedded ABI.
Michael Meissner [Thu, 26 Jan 1995 16:39:26 +0000 (16:39 +0000)]
Allow configuration of PowerPC embedded ABI.

29 years agoAdd new relocs for PowerPC Elf support.
Michael Meissner [Thu, 26 Jan 1995 16:31:24 +0000 (16:31 +0000)]
Add new relocs for PowerPC Elf support.
Add eabi support.

29 years ago * coff-sh.c (CALC_ADDEND): Don't define.
Ian Lance Taylor [Thu, 26 Jan 1995 04:27:50 +0000 (04:27 +0000)]
* coff-sh.c (CALC_ADDEND): Don't define.
(coff_sh_relocate_section): Remove.
(coff_relocate_section): Use _bfd_coff_generic_relocate_section.

29 years ago * language.h (struct language_defn): New field c_style_arrays.
Per Bothner [Thu, 26 Jan 1995 02:32:25 +0000 (02:32 +0000)]
* language.h (struct language_defn):  New field c_style_arrays.
* language.c (unknown_language_defn, auto_language_defn,
local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
asm_language_defn):  Set c_style_arrays to true.
* m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
f-lang.c (f_language_defn):  Set c_style_arrays to false.
* valops.c (value_string):  If c_style_array is not set,
allocate string in gdb (not inferior) using allocate_value.

* value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
Only call value_coerce_array if current_language->c_style_arrays.
* values.c:  Add #include "language.h".  (Needed for COERCE_ARRAY.)

* valops.c (chill_varying_type):  New predicate.
* valops.c (value_cast):  Support assigning a fixed string or array
to a variable string/array structure.

* valarith.c (value_subscripted_rvalue):  Extra parameter lowerbound.
Check index>=lowerbound, and then add lowerbound to index here,
instead of in caller.  Generalize to arbitrary lval_types.
(value_subscript):  Use enhanced value_subscripted_rvalue if
c_style_arrays is false (and index is in range).

29 years ago * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
Stu Grossman [Thu, 26 Jan 1995 02:27:06 +0000 (02:27 +0000)]
* gdbtk.c (gdbtk_init):  Prevent segfault when gdbtk.tcl can't be
found.
* gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
popping up expression window for the first time.

29 years ago * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
Per Bothner [Thu, 26 Jan 1995 02:19:13 +0000 (02:19 +0000)]
* eval.c (evaluate_subexp case OP_ARRAY):  Fix calls to memset:
TYPE_LENGTH is length in bytes, not bits.

29 years ago * tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
Jim Wilson [Thu, 26 Jan 1995 00:26:11 +0000 (00:26 +0000)]
* tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
(md_pseudo_table): Add space for consistent formatting.
(COND8_RANGE, COND12_RANGE): Delete unused macros.
(COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
Correct minimum and maximum branch offsets.  Add comments explaining
why these numbers are correct.

29 years ago * gdb.base/default.exp: xfail no-stack backtraces for h8300,
Stan Shebs [Thu, 26 Jan 1995 00:02:46 +0000 (00:02 +0000)]
* gdb.base/default.exp: xfail no-stack backtraces for h8300,
restart GDB for h8300 after a continue.
(return): Add pattern to match a29k-udi behavior.
* gdb.base/nodebug.exp: Remove obsolete comment.
* gdb.base/regs.exp: New file, testing of register displays.
* gdb.base/return.exp: Fix typo in reference to $objdir.
* gdb.base/whatis.exp: Always start with a fresh GDB.