external/binutils.git
28 years ago * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
Ian Lance Taylor [Wed, 24 Jan 1996 01:26:49 +0000 (01:26 +0000)]
* debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
(enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
* debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.

28 years ago * ieee.c: Various changes to handle C++ reference types.
Ian Lance Taylor [Wed, 24 Jan 1996 01:26:21 +0000 (01:26 +0000)]
* ieee.c: Various changes to handle C++ reference types.

28 years ago * enum.ch, enum.exp: New test case (covers PRs 8869 and 8870).
Per Bothner [Wed, 24 Jan 1996 00:59:02 +0000 (00:59 +0000)]
* enum.ch, enum.exp:  New test case (covers PRs 8869 and 8870).

28 years ago * ch-exp.c (parse_tuple): Error if invalid mode.
Per Bothner [Wed, 24 Jan 1996 00:50:11 +0000 (00:50 +0000)]
* ch-exp.c (parse_tuple):  Error if invalid mode.

This fixes PR chill/8870.

28 years ago * value.h (COERCE_ARRAY): Don't coerce enums.
Per Bothner [Wed, 24 Jan 1996 00:35:09 +0000 (00:35 +0000)]
* value.h (COERCE_ARRAY):  Don't coerce enums.
(COERCE_ENUM):  Don't COERCE_REF.
(COERCE_NUMBER):  New macro (same as COERCE_ARRAY then COERCE_ENUM).
* valops.c (value_assign):  Only do COERCE_ARRAY if internalvar (let
  value_cast handle it otherwise); do *not* COERCE_ENUM either way.
* valarith.c:  Use COERCE_NUMBER instead od COEREC_ARRAY.
Add COERCE_REF before COERCE_ENUM.
* values.c (value_as_long):  Simplify.
This fixes PR chill/8869.
* valops.c (value_array):  Create internalvar if !c_style_arrays.

28 years agoNote gdb.fortran/exprs.exp fix.
Per Bothner [Wed, 24 Jan 1996 00:30:56 +0000 (00:30 +0000)]
Note gdb.fortran/exprs.exp fix.

28 years ago * language.c (lang_bool_type): Add Fortran support.
Per Bothner [Wed, 24 Jan 1996 00:16:38 +0000 (00:16 +0000)]
* language.c (lang_bool_type):  Add Fortran support.
* eval.c (OP_BOOL):  Use LA_BOOL_TYPE.

28 years agoFix typo in comment.
Per Bothner [Tue, 23 Jan 1996 23:11:07 +0000 (23:11 +0000)]
Fix typo in comment.

28 years ago * gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
David Edelsohn [Tue, 23 Jan 1996 23:09:05 +0000 (23:09 +0000)]
* gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
Pass fprintf_unfiltered to INIT_DISASSEMBLE_INFO.
* printcmd.c (print_insn): Likewise.

28 years ago * objdump.c (disassemble_data): Pass fprintf to INIT_DISASSEMBLE_INFO.
David Edelsohn [Tue, 23 Jan 1996 22:56:05 +0000 (22:56 +0000)]
* objdump.c (disassemble_data): Pass fprintf to INIT_DISASSEMBLE_INFO.

28 years ago * dis-asm.h (INIT_DISASSEMBLE_INFO): New argument FPRINTF_FUNC.
David Edelsohn [Tue, 23 Jan 1996 22:53:45 +0000 (22:53 +0000)]
* dis-asm.h (INIT_DISASSEMBLE_INFO): New argument FPRINTF_FUNC.

28 years ago * gdb.base/corefile.exp: Recognize "not found" as failure
Jeff Law [Tue, 23 Jan 1996 22:44:10 +0000 (22:44 +0000)]
    * gdb.base/corefile.exp: Recognize "not found" as failure
        when trying to determine if a core file was generated.
        If no core file was generate the first time, try again without
        the ulimit -c to work around braindamaged shells.

Gets corefile.exp running again on the PA.

28 years ago * coffcode.h (coff_new_section_hook): Don't try to align the
Ian Lance Taylor [Tue, 23 Jan 1996 22:27:47 +0000 (22:27 +0000)]
* coffcode.h (coff_new_section_hook): Don't try to align the
.stabstr section.

28 years ago * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
Jeff Law [Tue, 23 Jan 1996 21:06:34 +0000 (21:06 +0000)]
    * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
        All references changed.
        * breakpoint.c (bpstat_what): Add shlib_event to the class types.
        Update state table.  Reformat so that it's still readable.
        When we hit the shlib_event breakpoint, set the calss of shlib_event.
        (breakpoint_1): Add "shlib events" as a breakpoint type.
        Print the shlib_event breakpoint like other breakpoints.
        (create_solib_event_breakpoint): New function.
        (breakpoint_re_set_one): Handle solib_event breakpoints.
        * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
        (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
        action.
        (create_solib_event_breakpoint): Declare.
        * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
        (normal_stop): Inform the user when the inferior stoped due
        to a shared library event.
        (_initialize_infrun): Add new set/show variable "stop_on-solib-events"
        to control whether or not gdb continues the inferior or stops it when
        a shared library event occurs.
        * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
        * somsolib.c (TODO list): Update.
        (som_solib_create_inferior_hook): Arrange for gdb to be notified
        when significant shared library events occur.
        * hppa-tdep.c (find_unwind_entry): No longer static.
First cut at the machine independent changes for 7363.  Also includes
code to automatically track shl_load/shl_unload calls on hpux.

28 years ago * ieee.c: Various changes to write out definitions of C++ classes.
Ian Lance Taylor [Tue, 23 Jan 1996 20:59:46 +0000 (20:59 +0000)]
* ieee.c: Various changes to write out definitions of C++ classes.

28 years ago * debug.c (debug_append_filename): Remove.
Ian Lance Taylor [Tue, 23 Jan 1996 20:59:18 +0000 (20:59 +0000)]
* debug.c (debug_append_filename): Remove.
* debug.h (debug_append_filename): Don't declare.

28 years ago * stabs.c (struct stab_handle): Remove last_type field. Add
Ian Lance Taylor [Tue, 23 Jan 1996 20:58:57 +0000 (20:58 +0000)]
* stabs.c (struct stab_handle): Remove last_type field.  Add
so_string and so_value fields.
(finish_stab): Call stab_emit_pending_vars before calling
debug_end_function.  Don't warn about pending variables.
(parse_stab): Accumulate N_SO strings until a non N_SO symbol is
seen, rather than calling debug_append_filename.  Call
stab_emit_pending_vars before calling debug_end_function.  Don't
set info->last_type.

28 years agotipo
Ian Lance Taylor [Tue, 23 Jan 1996 20:53:31 +0000 (20:53 +0000)]
tipo

28 years agoImplement R_PPC_EMB_{SDA21,RELSDA} relocations
Michael Meissner [Tue, 23 Jan 1996 20:11:13 +0000 (20:11 +0000)]
Implement R_PPC_EMB_{SDA21,RELSDA} relocations

28 years agoDo not complain if some objects have the embedded bit set and others do not.
Michael Meissner [Tue, 23 Jan 1996 19:35:11 +0000 (19:35 +0000)]
Do not complain if some objects have the embedded bit set and others do not.

28 years ago * coffcode.h (coff_set_section_contents): Fix the handling of the
Ian Lance Taylor [Tue, 23 Jan 1996 19:26:01 +0000 (19:26 +0000)]
* coffcode.h (coff_set_section_contents): Fix the handling of the
.lib section to work even if the entire section contents are
written at once.  From Gvran Uddeborg <gvran@uddeborg.pp.se> and
Robert Lipe <robertl@arnet.com>.

28 years ago * objdump.c (disassemble_data): Handle unknown endianness.
David Edelsohn [Tue, 23 Jan 1996 17:58:32 +0000 (17:58 +0000)]
* objdump.c (disassemble_data): Handle unknown endianness.

28 years ago * dis-asm.h (INIT_DISASSEMBLE_INFO): Set endian to BFD_ENDIAN_UNKNOWN.
David Edelsohn [Tue, 23 Jan 1996 17:53:04 +0000 (17:53 +0000)]
* dis-asm.h (INIT_DISASSEMBLE_INFO): Set endian to BFD_ENDIAN_UNKNOWN.

28 years ago * gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
David Edelsohn [Tue, 23 Jan 1996 17:21:16 +0000 (17:21 +0000)]
* gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.

28 years agoobsolete.
Steve Chamberlain [Tue, 23 Jan 1996 01:35:42 +0000 (01:35 +0000)]
obsolete.

28 years ago * remote.c (remotebreak): New GDB variable.
Stan Shebs [Tue, 23 Jan 1996 01:10:48 +0000 (01:10 +0000)]
* remote.c (remotebreak): New GDB variable.
(remote_break): New global.
(remote_interrupt): Send a break instead of ^C if remote_break.
* NEWS: Describe the new variable.

28 years ago * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
David Edelsohn [Tue, 23 Jan 1996 00:55:40 +0000 (00:55 +0000)]
* sparc-dis.c (print_insn_sparc): Renamed from print_insn.
If DISASM_RAW_INSN, print insn in hex.  Handle v9a as opcode
architecture.
(print_insn_sparc64): Deleted.
* disassemble.c (disassembler, case bfd_arch_sparc): Always use
print_insn_sparc.

28 years ago Add new option --show-raw-insn.
David Edelsohn [Tue, 23 Jan 1996 00:50:24 +0000 (00:50 +0000)]
Add new option --show-raw-insn.
* objdump.c (show_raw_insn): New global.
(usage): Update.
(long_options): Update.
(disassemble_data): Set disasm_info.flags if --show-raw-insn.

* objdump.c (disassemble_data): Set new arch,mach,endian fields in
disasm_info.

28 years ago * bfd-in2.h: Regenerated.
David Edelsohn [Tue, 23 Jan 1996 00:44:17 +0000 (00:44 +0000)]
* bfd-in2.h: Regenerated.

28 years ago * dis-asm.h (disassemble_info): New members arch, mach, endian.
David Edelsohn [Tue, 23 Jan 1996 00:39:54 +0000 (00:39 +0000)]
* dis-asm.h (disassemble_info): New members arch, mach, endian.
(INIT_DISASSEMBLE_INFO): Initialize them.
(DISASM_RAW_INSN{,FLAG}): Define.

28 years ago * ieee.c: Extensive changes to pass a single info argument around
Ian Lance Taylor [Tue, 23 Jan 1996 00:35:25 +0000 (00:35 +0000)]
* ieee.c: Extensive changes to pass a single info argument around
in the reading routines, rather than several arguments.  Add code
to read C++ debugging records.

28 years ago * debug.h (debug_get_type_size): Declare.
Ian Lance Taylor [Tue, 23 Jan 1996 00:34:58 +0000 (00:34 +0000)]
* debug.h (debug_get_type_size): Declare.
(debug_get_field_name): Declare.
(debug_get_field_bitpos): Declare.
(debug_get_field_bitsize): Declare.
(debug_get_field_visibility): Declare.
(debug_get_field_physname): Declare.
* debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
(debug_get_type_size): New function.
(debug_get_field_name): New function.
(debug_get_field_bitpos): New function.
(debug_get_field_bitsize): New function.
(debug_get_field_visibility): New function.
(debug_get_field_physname): New function.
(debug_write_type): Make sure we pass the real kind, not INDIRECT,
to tag_type.  Pass the name recursively for INDIRECT.

28 years ago * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
David Edelsohn [Tue, 23 Jan 1996 00:25:02 +0000 (00:25 +0000)]
* sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.

28 years agoMake 64k .sdata and .sdata2 sections work; fix typos
Michael Meissner [Mon, 22 Jan 1996 23:55:25 +0000 (23:55 +0000)]
Make 64k .sdata and .sdata2 sections work; fix typos

28 years ago * disassemble.c (disassembler, case bfd_arch_sparc): bfd_mach_sparc64
David Edelsohn [Mon, 22 Jan 1996 23:19:04 +0000 (23:19 +0000)]
* disassemble.c (disassembler, case bfd_arch_sparc): bfd_mach_sparc64
renamed to bfd_mach_sparc_v9.  Check for bfd_mach_sparc_v9a.

28 years ago (sparc_compatible): New function.
David Edelsohn [Mon, 22 Jan 1996 21:06:43 +0000 (21:06 +0000)]
(sparc_compatible): New function.

28 years agoFix typo in last change
Michael Meissner [Mon, 22 Jan 1996 20:10:51 +0000 (20:10 +0000)]
Fix typo in last change

28 years agoMon Jan 22 10:41:56 1996 Steve Chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Mon, 22 Jan 1996 19:28:13 +0000 (19:28 +0000)]
Mon Jan 22 10:41:56 1996  Steve Chamberlain  <sac@slash.cygnus.com>

* Makefile.in (DLLTOOL): New.
(DLLTOOL_FOR_TARGET): New.
(EXTRA_HOST_FLAGS): Pass down DLLTOOL.
(EXTRA_TARGET_FLAGS): Ditto.
(EXTRA_GCC_FLAGS): Ditto.
(CONFIGURE_TARGET_MODULES): Ditto.
(DO_X): Ditto.
* configure: Add DLLTOOL.

28 years ago * conf.in: Regenerated.
David Edelsohn [Mon, 22 Jan 1996 19:25:36 +0000 (19:25 +0000)]
* conf.in: Regenerated.

28 years agoMove v8plus stuff around so sanitized code works.
David Edelsohn [Mon, 22 Jan 1996 19:00:40 +0000 (19:00 +0000)]
Move v8plus stuff around so sanitized code works.

28 years ago * elflink.h (elf_finish_pointer_linker_section): Fix typo.
David Edelsohn [Mon, 22 Jan 1996 18:17:16 +0000 (18:17 +0000)]
* elflink.h (elf_finish_pointer_linker_section): Fix typo.

28 years ago(sparc_md_end): Fix leftover from earlier version.
David Edelsohn [Mon, 22 Jan 1996 18:09:08 +0000 (18:09 +0000)]
(sparc_md_end): Fix leftover from earlier version.

28 years agoMon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 22 Jan 1996 18:03:56 +0000 (18:03 +0000)]
Mon Jan 22 13:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
* genscripts.sh: Set host, target and target_alias variables.
Check for native compile by comparing ${target} and ${host}.
* emultempl/elf32.em: Likewise.
* scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.

28 years ago * symbols.c (resolve_symbol_value): If a symbol is equated to an
Ian Lance Taylor [Mon, 22 Jan 1996 18:00:01 +0000 (18:00 +0000)]
* symbols.c (resolve_symbol_value): If a symbol is equated to an
undefined symbol, preserve the X_op of O_symbol.
(S_GET_VALUE): Fix check to permit this case.
* write.c (write_relocs): If a reloc is against an undefined
symbol equated to another symbol, change the reloc to be against
the latter symbol.
* config/obj-coff.c (do_relocs_for): Likewise.
If the MRI assembler sees
foo EQU bar
call foo
where bar is not defined, it generates a reloc against bar rather than
against foo.  Since the gas documentation does not define this case,
this change makes gas compatible.

28 years ago * config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
David Edelsohn [Mon, 22 Jan 1996 17:53:34 +0000 (17:53 +0000)]
* config/tc-sparc.h (TARGET_FORMAT): Use #ifdef SPARC_ARCH64 instead of
#ifdef sparcv9 when choosing value.
(ENV64): Delete.
(md_end): Define.
(sparc_md_end): Declare.
* config/tc-sparc.c (SPARC_V9): Renamed from sparcv9.
(initial_architecture): New static local.
(can_bump_v9_p): Likewise.
(NO_V9): Delete all occurrences.
(sparc_md_end): New function.
(sparc_ip): New local v9_arg_p.  Rework fp reg number test.
Don't bump architecture to v9 unless can_bump_v9_p set.
(md_parse_option): -A<arch> passed, set can_bump_v9_p accordingly.
* configure.in (sparc64 target cpu): Don't set obj_format here.
(SPARC_V9): Renamed from sparcv9.
(sparc64-*-elf*): Define SPARC_ARCH64.
* configure: Regenerated.
* acconfig.h (SPARC_V9): Renamed from sparcv9.
(SPARC_ARCH64): Add.
* config/vmsconf.h: Update.

28 years agoMon Jan 22 17:24:47 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Mon, 22 Jan 1996 17:30:23 +0000 (17:30 +0000)]
Mon Jan 22 17:24:47 1996  James G. Smith  <jsmith@cygnus.co.uk>

* config/tc-mips.c (load_register): Optimise "dli" loads.
(md_show_usage): add "-mcpu=vr4100" to help text.

Provide code to check for either the hi32, or lo32 bits of a 64bit
"dli" constant being 0xffffffff. Also for bit15 of a 16bit constant
being set, so that sign-extension can be used to fill the higher order
bits if required.

28 years agoupdate copyright
Ian Lance Taylor [Mon, 22 Jan 1996 17:23:09 +0000 (17:23 +0000)]
update copyright

28 years ago* elf64-sparc.c (sparc64_elf_object_p): bfd_mach_sparc64 renamed to
David Edelsohn [Mon, 22 Jan 1996 17:18:05 +0000 (17:18 +0000)]
* elf64-sparc.c (sparc64_elf_object_p): bfd_mach_sparc64 renamed to
bfd_mach_sparc_v9.

28 years ago * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
David Edelsohn [Mon, 22 Jan 1996 17:15:49 +0000 (17:15 +0000)]
* archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
start-sanitize-v8plus
(bfd_mach_sparc_{v8plus,v8plusa}): Define.
end-sanitize-v8plus
(bfd_mach_sparc_v9a): Define.
* bfd-in2.h: Regenerated.
* aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
bfd_mach_sparc_v9.
* config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
to bfd_elf32_sparc_vec.
* cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
start-sanitize-v8plus
Add v8plus{,a} support.
end-sanitize-v8plus
Add v9a support.
start-sanitize-v8plus
* elf32-sparc.h: #include "elf/sparc.h".
(elf32_sparc_set_private_flags, elf32_sparc_copy_private_bfd_data,
elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
elf32_sparc_final_write_processing): New functions.
(bfd_elf32_bfd_set_private_flags, bfd_elf32_bfd_copy_private_bfd_data,
bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
elf_backend_final_write_processing): Define.
end-sanitize-v8plus

28 years ago * config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
Ian Lance Taylor [Mon, 22 Jan 1996 16:53:42 +0000 (16:53 +0000)]
* config/tc-ppc.c (ppc_csect): An unnamed csect is storage class
XMC_PR.

28 years agosnapshot of eabi relocation support.
Michael Meissner [Mon, 22 Jan 1996 16:43:35 +0000 (16:43 +0000)]
snapshot of eabi relocation support.

28 years ago(ARCHITECTURES_CONFLICT_P): Add ChangeLog entry for v9a addition and fix typo
David Edelsohn [Mon, 22 Jan 1996 16:41:31 +0000 (16:41 +0000)]
(ARCHITECTURES_CONFLICT_P): Add ChangeLog entry for v9a addition and fix typo
in macro.

28 years ago * sparc-opc.c (architecture_pname): Add v9a.
David Edelsohn [Mon, 22 Jan 1996 16:34:01 +0000 (16:34 +0000)]
* sparc-opc.c (architecture_pname): Add v9a.
The actual insns haven't been added yet.

28 years ago * sparc.h (enum sparc_architecture): Add v9a.
David Edelsohn [Mon, 22 Jan 1996 16:25:54 +0000 (16:25 +0000)]
* sparc.h (enum sparc_architecture): Add v9a.

28 years agoRefine eabi support
Michael Meissner [Mon, 22 Jan 1996 16:05:26 +0000 (16:05 +0000)]
Refine eabi support

28 years agoAdd support for eabi relocations and sections
Michael Meissner [Mon, 22 Jan 1996 16:02:29 +0000 (16:02 +0000)]
Add support for eabi relocations and sections

28 years agoLatest changes from Andrew
Michael Meissner [Mon, 22 Jan 1996 15:56:15 +0000 (15:56 +0000)]
Latest changes from Andrew

28 years agoUpdate copyright.
David Edelsohn [Sat, 20 Jan 1996 17:35:22 +0000 (17:35 +0000)]
Update copyright.

28 years agoUpdate copyright.
David Edelsohn [Sat, 20 Jan 1996 17:17:53 +0000 (17:17 +0000)]
Update copyright.

28 years agoOops. Forgot sanitization.
David Edelsohn [Sat, 20 Jan 1996 17:05:56 +0000 (17:05 +0000)]
Oops.  Forgot sanitization.

28 years ago * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
David Edelsohn [Sat, 20 Jan 1996 16:53:44 +0000 (16:53 +0000)]
* elf32-sparc.c (ELF_MACHINE_ALT1): Define.

28 years ago SCO OpenServer 5 changes from Robert Lipe <robertl@dgii.com>:
Stan Shebs [Fri, 19 Jan 1996 21:44:26 +0000 (21:44 +0000)]
SCO OpenServer 5 changes from Robert Lipe <robertl@dgii.com>:
* configure.in (i[345]86-*-sco3.2v5*): Use mh-sysv instead of
mh-sco, since old workarounds no longer needed, and don't
build ld, since libraries have weak symbols in COFF.

28 years ago * debug.h (struct debug_write_fns): Remove ellipsis_type. Add int
Ian Lance Taylor [Fri, 19 Jan 1996 19:44:00 +0000 (19:44 +0000)]
* debug.h (struct debug_write_fns): Remove ellipsis_type.  Add int
and boolean parameters to function_type.  Add boolean parameter to
method_type.
(debug_make_ellipsis_type): Don't declare.
(debug_make_function_type): Add debug_type * and boolean
parameters.  Change all callers.
(debug_make_method_type): Add boolean parameter.  Change all
callers.
(debug_get_parameter_types): Add boolean * parameter.  Change all
callers.
(debug_get_target_type): Declare.
* debug.c (struct debug_function_type): Add fields arg_types and
varargs.
(struct debug_method_type): Add field varargs.
(debug_ellipsis_type, ELLIPSIS_P): Remove.
(debug_make_ellipsis_type): Remove.
(debug_make_function_type): Add arg_types and varargs parameters.
(debug_make_method_type): Add varargs parameter.
(debug_get_parameter_types): Add pvarargs parameter.
(debug_get_target_type): New function.
(debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
types and pass count to function_type.  In DEBUG_KIND_METHOD, use
a signed int for the count, don't call ellipsis_type, and pass
varargs to method_type.
* stabs.c (struct stab_demangle_info): Add varargs field.
(stab_demangle_argtypes): Add pvarargs parameter.  Change all
callers.
(stab_demangle_args): Likewise.
(stab_demangle_type): In case 'F', pick up argument types.
* prdbg.c (pr_ellipsis_type): Remove.
(pr_function_type): Add argcount and varargs parameters.
(pr_method_type): Add varargs parameter.
* ieee.c (ieee_ellipsis_type): Remove.
(ieee_function_type): Add argcount and varargs parameters.
(ieee_method_type): Add varargs parameter.  Remove most of
function body, and just call ieee_function_type.

28 years ago * stabs.c: Include "demangle.h". Added several new static
Ian Lance Taylor [Fri, 19 Jan 1996 18:06:59 +0000 (18:06 +0000)]
* stabs.c: Include "demangle.h".  Added several new static
functions not listed below to demangle argument types; they are
all called via stab_demangle_argtypes.
(finish_stab): If the kind of an undefined tag is
DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead.  Warn if there
are any pending variable.
(parse_stab): Don't close the function when the block depth goes
to zero.  Pass value to debug_end_function.
(parse_stab_string): In case 'T', pass the name to
parse_stab_type.
(parse_stab_type): In case 'x', use stab_find_tagged_type.  In
case '#', handle functions with variable numbers of arguments.
(parse_stab_struct_type): Add tagname parameter.  Change all
callers.
(parse_stab_members): Add tagname and typenums parameters.  Change
all callers.  If the type of a method is a stub, call
parse_stab_argtypes to demangle the argument types and get the
physical name of the function.
(parse_stab_argtypes): New static function.
(stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
variable, call debug_record_variable immediately.
(stab_find_tagged_type): New static function.

28 years ago * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
Ian Lance Taylor [Fri, 19 Jan 1996 18:03:04 +0000 (18:03 +0000)]
* debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
(struct debug_write_fns): Add field ellipsis_type.  Add id
parameter to start_struct_type, start_class_type, and tag_type.
(debug_make_ellipsis_type): Declare.
(debug_find_named_type): Declare.
(debug_get_type_kind): Declare.
(debug_get_return_type): Declare.
(debug_get_parameter_types): Declare.
(debug_get_fields): Declare.
(debug_get_field_type): Declare.
* debug.c (struct debug_handle): Add fields class_id and base_id.
(struct debug_class_type): Add field id.
(struct debug_method_variant): Rename argtypes to physname.
Change all uses.
(debug_ellipsis_type): New static variable.
(ELLIPSIS_P): New macro.
(debug_make_ellipsis_type): New function.
(debug_make_method_variant): Rename argtypes to physname.
(debug_make_static_method_variant): Likewise.
(debug_name_type): Always put types in the global namespace.
(debug_find_named_type): New function.
(debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
rather than DEBUG_KIND_VOID.
(debug_get_real_type): New static function.
(debug_get_type_kind): New function.
(debug_get_return_type): New function.
(debug_get_parameter_types): New function.
(debug_get_fields): New function.
(debug_get_field_type): New function.
(debug_write): Initialize base_id.
(debug_write_type): Pass new id argument to tag_type.  Handle
DEBUG_KIND_ILLEGAL.  Use id for DEBUG_KIND_STRUCT and
DEBUG_KIND_UNION.  Handle ellipsis for method arguments.
(debug_write_class_type): Don't dereference kclass if it is NULL.
Use id.
* prdbg.c (pr_fns): Add pr_ellipsis_type.
(pr_ellipsis_type): New static function.
(pr_pointer_type): If this is a pointer to an array, parenthesize
it correctly.
(pr_start_struct_type): Add id parameter.
(pr_start_class_type): Likewise.
(pr_tag_type): Likewise.
(pr_fix_visibility): Add the visibility to the top of the stack,
not the second element on the stack.
(pr_struct_field): Pop the stack before calling pr_fix_visibility.
(pr_class_static_member): Likewise.
(pr_class_start_method): Don't push a type, just set the method
name in the type on the top of the stack.
(pr_class_end_method): Don't pop the stack.
(pr_class_method_variant): Rename argtypes parameter to physname.
Append const and volatile rather than prepending them.  Add a
space after the physname.
(pr_class_static_method_variant): Likewise.
* ieee.c (ieee_fns): Add ieee_ellipsis_type.
(ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
DEBUG_KIND_VOID.
(write_ieee_debugging_info): Likewise.
(ieee_typdef): Likewise.
(ieee_ellipsis_type): New static function.
(ieee_start_struct_type): Add id parameter.
(ieee_start_class_type): Likewise.
(ieee_tag_type): Likewise.
(ieee_class_method_variant): Rename name to physname.
(ieee_class_static_method_variant): Likewise.

28 years ago * hp300ux-nat.c (getpagesize): Remove unused function
Fred Fish [Fri, 19 Jan 1996 15:36:24 +0000 (15:36 +0000)]
* hp300ux-nat.c (getpagesize): Remove unused function
  fetch_core_registers.
(hp300ux_core_fns):  Remove, is unused.
(_initialize_core_hp300ux):  Remove, is unused.
(gdbcore.h):  Remove #include, no longer needed.

28 years ago * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
Jeff Law [Fri, 19 Jan 1996 08:00:39 +0000 (08:00 +0000)]
* rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
ptrace bug in aix4.1.3 on the rs6000.
Fixes inferior function call problem on rs6000-ibm-aix4.

28 years agoNumerous PowerPC PE fixes
Kim Knuttila [Fri, 19 Jan 1996 00:16:31 +0000 (00:16 +0000)]
Numerous PowerPC PE fixes

28 years agoChanged alignment on .pdata and .reldata
Kim Knuttila [Thu, 18 Jan 1996 23:03:48 +0000 (23:03 +0000)]
Changed alignment on .pdata and .reldata

28 years agoChanged section orders for alignment purposes
Kim Knuttila [Thu, 18 Jan 1996 22:48:53 +0000 (22:48 +0000)]
Changed section orders for alignment purposes

28 years ago * elfcore.h: Include <signal.h> before <sys/procfs.h>.
Ian Lance Taylor [Thu, 18 Jan 1996 22:42:41 +0000 (22:42 +0000)]
* elfcore.h: Include <signal.h> before <sys/procfs.h>.
PR 8807.

28 years ago * demangle.h (cplus_demangle_opname): Change opname parameter to
Ian Lance Taylor [Thu, 18 Jan 1996 16:33:36 +0000 (16:33 +0000)]
* demangle.h (cplus_demangle_opname): Change opname parameter to
const char *.
(cplus_mangle_opname): Change return type and opname parameter to
const char *.

28 years agoFix typo in comment.
Fred Fish [Wed, 17 Jan 1996 22:29:53 +0000 (22:29 +0000)]
Fix typo in comment.

28 years ago* srconv.c (wr_du): Set du.stackfrmt to 0.
J.T. Conklin [Wed, 17 Jan 1996 22:27:12 +0000 (22:27 +0000)]
* srconv.c (wr_du): Set du.stackfrmt to 0.
(wr_un, wr_sc): Emit all sections, even those with 0 size.

28 years ago * remote-hms.c (hms_ops): Add value for to_thread_alive.
Stan Shebs [Wed, 17 Jan 1996 21:26:28 +0000 (21:26 +0000)]
* remote-hms.c (hms_ops): Add value for to_thread_alive.
* remote-nindy.c (nindy_ops): Ditto.
* remote-udi.c (udi_ops): Ditto.
PR 8839.

28 years agoRemove temporary file when finished.
Jeff Law [Wed, 17 Jan 1996 21:16:59 +0000 (21:16 +0000)]
Remove temporary file when finished.

28 years agoThere's some question as to whether this stuff is NDA'd in the Ultrasparc
David Edelsohn [Wed, 17 Jan 1996 20:50:32 +0000 (20:50 +0000)]
There's some question as to whether this stuff is NDA'd in the Ultrasparc
Early Access Program agreement.  Sanitize v8plus stuff out for now.

28 years ago * cpu-powerpc.c (arch_info_struct): Change last entry to not point
Ian Lance Taylor [Wed, 17 Jan 1996 17:48:30 +0000 (17:48 +0000)]
* cpu-powerpc.c (arch_info_struct): Change last entry to not point
back to first.
(bfd_powerpc_arch): Point at first entry in arch_info_struct.

28 years ago(EM_SPARC32PLUS): Define.
David Edelsohn [Wed, 17 Jan 1996 17:13:25 +0000 (17:13 +0000)]
(EM_SPARC32PLUS): Define.
I have a question outstanding to Sun regarding EM_SPARC64.

28 years agoNew file.
David Edelsohn [Wed, 17 Jan 1996 17:10:32 +0000 (17:10 +0000)]
New file.
(Also delete arc.h ChangeLog entry, it's still sanitized).

28 years ago* srconv.c (wr_hd): Space size within segment was being
J.T. Conklin [Wed, 17 Jan 1996 00:17:13 +0000 (00:17 +0000)]
* srconv.c (wr_hd): Space size within segment was being
stored in segment identifier field.

28 years agoFix sanitize problems with new file ChangeLog-95.
Jim Wilson [Tue, 16 Jan 1996 22:40:45 +0000 (22:40 +0000)]
Fix sanitize problems with new file ChangeLog-95.

28 years ago * elf.c (assign_file_positions_for_segments): Don't increment file
Ian Lance Taylor [Tue, 16 Jan 1996 20:53:04 +0000 (20:53 +0000)]
* elf.c (assign_file_positions_for_segments): Don't increment file
offset for a segment which contains no loadable sections.

28 years ago * ldgram.y (%union): Add phdr field.
Ian Lance Taylor [Tue, 16 Jan 1996 20:51:22 +0000 (20:51 +0000)]
* ldgram.y (%union): Add phdr field.
(phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
(phdr_qualifiers): New nonterminal.  Add support for FLAGS.
(opt_hdrs, hdr): Remove.
(phdr_val): New nonterminal.
* ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
and phdrs parameters.  Add flags parameter.
(lang_record_phdrs): Update for changes to lang_phdr.  Pass flags
to bfd_record_phdr.
* ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
phdrs fields.  Add flags field.
(LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
(lang_new_phdr): Update declaration.
* ld.texinfo: Document FLAGS.

28 years agoRemove SH3e sanitization.
Jim Wilson [Tue, 16 Jan 1996 20:18:32 +0000 (20:18 +0000)]
Remove SH3e sanitization.

28 years agoRemove sh3e sanitization. Keep sh3e files.
Jim Wilson [Tue, 16 Jan 1996 20:16:41 +0000 (20:16 +0000)]
Remove sh3e sanitization.  Keep sh3e files.

28 years agoRemove SH3e sanitization.
Jim Wilson [Tue, 16 Jan 1996 20:13:27 +0000 (20:13 +0000)]
Remove SH3e sanitization.

28 years agoKeep SH3e testsuite.
Jim Wilson [Tue, 16 Jan 1996 20:12:24 +0000 (20:12 +0000)]
Keep SH3e testsuite.

28 years ago * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
Stan Shebs [Tue, 16 Jan 1996 20:12:17 +0000 (20:12 +0000)]
* mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
BUILD_DLLTOOL): Put definitions for these into makefile when
configuring, instead of always clearing in mpw-make.sed.
* mpw-make.sed: Edit out any host_alias or target_alias settings,
fix pathname to BFD internal include files, remove dependency
calculation rules.

28 years agoRemove sh3e sanitization.
Jim Wilson [Tue, 16 Jan 1996 19:59:48 +0000 (19:59 +0000)]
Remove sh3e sanitization.

28 years agoDelete obsolete SH3e sanitization.
Jim Wilson [Tue, 16 Jan 1996 19:55:27 +0000 (19:55 +0000)]
Delete obsolete SH3e sanitization.

28 years ago * Makefile.in (CLIBS): Add LIBS to allow libraries to be
Stu Grossman [Tue, 16 Jan 1996 19:53:13 +0000 (19:53 +0000)]
* Makefile.in (CLIBS):  Add LIBS to allow libraries to be
specified on the make command line (via make LIBS=xxx).
start-sanitize-gm
* configure.in (enable-gm):  magic.o -> gmagic.o.
end-sanitize-gm

28 years agoTue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Tue, 16 Jan 1996 18:24:44 +0000 (18:24 +0000)]
Tue Jan 16 18:00:35 1996  James G. Smith  <jsmith@cygnus.co.uk>

* remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
  pmon_checkset, pmon_make_fastrec, pmon_check_ack,
pmon_load_fast): New functions. Support for the PMON monitor world.
(common_open): New function to merge support for different monitors.
(mips_open): Use common_open().
(mips_send_command): New function.
(mips_send_packet): Scan out-of-sequence packets.
(mips_enter_debug, mips_exit_debug): New functions.
(pmon_ops): New target definition structure.

These changes provide the initial support for the PMON (3.0.83)
monitor that appears on the Cogent (CMA101) Vr4300 development
board. The changes do not affect the IDT monitor support, other than
in the area of dealing with out-of-sequence packets.

28 years agoMake {add to,subtract from} minus one; Make -t alu work better
Michael Meissner [Tue, 16 Jan 1996 16:21:17 +0000 (16:21 +0000)]
Make {add to,subtract from} minus one; Make -t alu work better

28 years ago * binutils-all/objcopy.exp: Use the lma, not the vma, when testing
Ian Lance Taylor [Mon, 15 Jan 1996 23:14:52 +0000 (23:14 +0000)]
* binutils-all/objcopy.exp: Use the lma, not the vma, when testing
address adjustments.

28 years agoAdd new PPC relocations
Michael Meissner [Mon, 15 Jan 1996 22:50:07 +0000 (22:50 +0000)]
Add new PPC relocations

28 years agoAdd more relocation suffixes
Michael Meissner [Mon, 15 Jan 1996 22:46:10 +0000 (22:46 +0000)]
Add more relocation suffixes

28 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Ian Lance Taylor [Mon, 15 Jan 1996 22:38:22 +0000 (22:38 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Don't make a shared library because of an undefined reference to
__GLOBAL_OFFSET_TABLE_.

28 years ago * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
Ian Lance Taylor [Mon, 15 Jan 1996 22:37:16 +0000 (22:37 +0000)]
* aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
entries.

28 years ago * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
Ian Lance Taylor [Mon, 15 Jan 1996 22:00:38 +0000 (22:00 +0000)]
* sunos.c (sunos_scan_ext_relocs): Don't fail assert if
        info->shared.