Jim Kingdon [Thu, 9 Feb 1995 20:55:02 +0000 (20:55 +0000)]
* gdb.base/corefile.exp: Give backtrace test unique name. xfail
for hp300.
Jim Kingdon [Thu, 9 Feb 1995 20:51:13 +0000 (20:51 +0000)]
* gdb.base/interrupt.exp: Also xfail hpux (for hp300).
Jim Kingdon [Thu, 9 Feb 1995 20:46:53 +0000 (20:46 +0000)]
* gdb.base/a1-selftest.exp: Don't run on hp300.
Jim Kingdon [Thu, 9 Feb 1995 20:21:46 +0000 (20:21 +0000)]
* config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
* partial-stab.h: Call it.
* stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
get the address.
* sparc-tdep.c (solaris_static_transform_name): New function.
Ian Lance Taylor [Thu, 9 Feb 1995 19:21:01 +0000 (19:21 +0000)]
* libiberty.h (basename): Change argument to be const.
Jeff Law [Thu, 9 Feb 1995 19:16:47 +0000 (19:16 +0000)]
* somread.c (som_symtab_read): Handle dynamic relocation for both
text and data symbols.
(som_symfile_offsets): If objfile is a shared library, then get
text and data offsets from the shared library structures.
* somsolib.c (som_solib_add): Copy the bfd pointer from the
objfile rather than reopening the file again.
(som_solib_section_offsets): New function.
* somsolib.h (som_solib_section_offsets): Declare.
Jeff Law [Thu, 9 Feb 1995 17:58:59 +0000 (17:58 +0000)]
* gas/hppa/reloc/applybug.s: New test.
* gas/hppa/reloc/reloc.exp (do_applybug_test): Run it.
Jeff Law [Thu, 9 Feb 1995 17:44:30 +0000 (17:44 +0000)]
* config/tc-hppa.c (md_apply_fix): In some cases subtract the
value of the add symbol from valp. Offsets braindamage in the
"machine independent" fixup_segment.
Ian Lance Taylor [Thu, 9 Feb 1995 17:34:44 +0000 (17:34 +0000)]
update dependencies
Ian Lance Taylor [Thu, 9 Feb 1995 17:19:53 +0000 (17:19 +0000)]
* i386linux.c (NEEDS_SHRLIB): Define.
(linux_tally_symbols): Crash if a NEEDS_SHRLIB symbol is
undefined. From hjl@nynexst.com (H.J. Lu).
Ian Lance Taylor [Thu, 9 Feb 1995 17:03:47 +0000 (17:03 +0000)]
* elfcode.h (elf_bfd_final_link): Add assertion to make sure that
dynamic and dynobj are in synch.
Ian Lance Taylor [Thu, 9 Feb 1995 16:41:28 +0000 (16:41 +0000)]
* lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
* ld.texinfo, ld.1: Update accordingly.
Ian Lance Taylor [Thu, 9 Feb 1995 16:31:54 +0000 (16:31 +0000)]
fix comments
Ian Lance Taylor [Thu, 9 Feb 1995 16:05:25 +0000 (16:05 +0000)]
* mh-linux (SYSV): Don't define.
(RANLIB): Don't define.
Jim Kingdon [Thu, 9 Feb 1995 07:00:45 +0000 (07:00 +0000)]
* config/sparc/tm-sun4sol2.h, dbxread.c: Rename
N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
* symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
filename field.
* elfread.c (record_minimal_symbol_and_info),
minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
newly created symbol.
* elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
Set filename field of minimal symbol.
* symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
Print filename field.
* minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
* symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
* dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Find address of function from minimal symbols.
* partial-stab.h, case 'f', 'F': Call find_stab_function_addr
instead of getting pst->textlow from the stab.
* minsyms.c (find_stab_function_addr): New function.
Rob Savoye [Thu, 9 Feb 1995 02:21:40 +0000 (02:21 +0000)]
* monitor.c: Fix so all the output shows up in the GUI command
window.
Stan Shebs [Thu, 9 Feb 1995 01:32:35 +0000 (01:32 +0000)]
* i960-dis.c (struct tabent, struct sparse_tabent): Declare the
char fields as signed chars, since they may have negative values.
Fixes PR 6290.
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.
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.
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.
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.
Ken Raeburn [Wed, 8 Feb 1995 22:55:11 +0000 (22:55 +0000)]
keep utils.{c,h}
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.
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.
Ken Raeburn [Wed, 8 Feb 1995 02:35:44 +0000 (02:35 +0000)]
ran "indent -gnu"; have not fixed block comment style
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.
Ken Raeburn [Tue, 7 Feb 1995 22:59:13 +0000 (22:59 +0000)]
updated for added/removed files
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.
Ken Raeburn [Tue, 7 Feb 1995 20:06:28 +0000 (20:06 +0000)]
clean up mechanics of mosberger-tang's changes
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.
Ken Raeburn [Tue, 7 Feb 1995 19:14:32 +0000 (19:14 +0000)]
keep new msdos files
Michael Meissner [Tue, 7 Feb 1995 18:42:04 +0000 (18:42 +0000)]
Add support for powerpc-*-eabi in configure.in, rebuild configure.
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.
Jim Kingdon [Tue, 7 Feb 1995 04:46:18 +0000 (04:46 +0000)]
Fix it so whitespace works out right even with sanitization
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
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.
Ken Raeburn [Tue, 7 Feb 1995 01:06:25 +0000 (01:06 +0000)]
ecoff gprof related fixes & improvements from David Mosberger-Tang
Ian Lance Taylor [Mon, 6 Feb 1995 23:24:20 +0000 (23:24 +0000)]
* ldmain.c (undefined_symbol): Handle section being NULL.
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.
Ian Lance Taylor [Mon, 6 Feb 1995 23:19:34 +0000 (23:19 +0000)]
update comment
Rob Savoye [Mon, 6 Feb 1995 22:09:35 +0000 (22:09 +0000)]
Fix string signifing the right target name.
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.
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.
Rob Savoye [Mon, 6 Feb 1995 21:43:21 +0000 (21:43 +0000)]
Add the rest of the commands needed by GDB.
Rob Savoye [Mon, 6 Feb 1995 21:41:28 +0000 (21:41 +0000)]
Add support for ser-tcp and the Array lsi33k target.
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.
Ian Lance Taylor [Mon, 6 Feb 1995 20:12:54 +0000 (20:12 +0000)]
tipo
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.
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.
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.
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).
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).
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>.
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.
Ken Raeburn [Mon, 6 Feb 1995 08:38:27 +0000 (08:38 +0000)]
i386 16-bit mode support from bryan ford
Ken Raeburn [Mon, 6 Feb 1995 08:31:27 +0000 (08:31 +0000)]
msdos .exe file support from bryan ford
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).
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.
Jim Wilson [Sat, 4 Feb 1995 20:12:40 +0000 (20:12 +0000)]
* config.guess (IRIX): Sed - to _.
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.
Kung Hsu [Sat, 4 Feb 1995 00:54:15 +0000 (00:54 +0000)]
* go32.mh, xm-go32.h: redundant files, not needed.
Kung Hsu [Sat, 4 Feb 1995 00:51:30 +0000 (00:51 +0000)]
* ser-go32-para.c (dos_read): fix syntax errors.
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.
J.T. Conklin [Fri, 3 Feb 1995 19:56:27 +0000 (19:56 +0000)]
* Makefile.in (source-vault, binary-vault): New targets.
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.
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.
Kung Hsu [Fri, 3 Feb 1995 00:25:02 +0000 (00:25 +0000)]
* For arc specific changes.
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.
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.
Stan Shebs [Thu, 2 Feb 1995 22:02:20 +0000 (22:02 +0000)]
* Makefile.in (VERSION): Bump to 4.13.2.
Ken Raeburn [Thu, 2 Feb 1995 21:33:40 +0000 (21:33 +0000)]
vms fixes from pat rankin
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
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.
Ken Raeburn [Thu, 2 Feb 1995 20:11:43 +0000 (20:11 +0000)]
update copyright
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.
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.
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.
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.
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.
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.
Per Bothner [Wed, 1 Feb 1995 21:08:52 +0000 (21:08 +0000)]
* tuples.ch, tuples.exp, Makefile.in: New test case.
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.
Ken Raeburn [Wed, 1 Feb 1995 19:11:10 +0000 (19:11 +0000)]
keep h8300 tests
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).
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Ian Lance Taylor [Mon, 30 Jan 1995 04:23:50 +0000 (04:23 +0000)]
tipo