binutils-gdb.git
29 years ago * syms.c (bfd_decode_symclass): Return 'W' for a weak symbol.
Ian Lance Taylor [Fri, 17 Feb 1995 17:26:48 +0000 (17:26 +0000)]
* syms.c (bfd_decode_symclass): Return 'W' for a weak symbol.

29 years ago * coffgen.c (coff_real_object_p): Set start address and flags
Ian Lance Taylor [Fri, 17 Feb 1995 16:57:18 +0000 (16:57 +0000)]
* coffgen.c (coff_real_object_p): Set start address and flags
before calling coff_mkobject_hook.  Restore them on failure.
* ecoff.c (_bfd_ecoff_mkobject_hook): If not ECOFF_AOUT_ZMAGIC,
clear D_PAGED.
PR 6341.

29 years ago * coffgen.c: Reindented.
Ian Lance Taylor [Fri, 17 Feb 1995 16:46:52 +0000 (16:46 +0000)]
* coffgen.c: Reindented.

29 years ago* config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
J.T. Conklin [Fri, 17 Feb 1995 00:54:00 +0000 (00:54 +0000)]
* config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
  (LDFLAGS): Set to -Xlinker -Ur.

29 years ago * lib/gdb.exp: Just use "file exists", rather than undocumented
Jim Kingdon [Fri, 17 Feb 1995 00:00:53 +0000 (00:00 +0000)]
* lib/gdb.exp: Just use "file exists", rather than undocumented
dejagnu procedure "findfile".

29 years ago* reloc.c (bfd_perform_relocation): Don't use bitpos in overflow calculations.
David Edelsohn [Thu, 16 Feb 1995 22:40:19 +0000 (22:40 +0000)]
* reloc.c (bfd_perform_relocation): Don't use bitpos in overflow calculations.
(bfd_install_relocation): Likewise.

29 years ago * expr.c (operand): Move md_operand handling to default case
David Edelsohn [Thu, 16 Feb 1995 22:35:50 +0000 (22:35 +0000)]
* expr.c (operand): Move md_operand handling to default case
(so it works).

29 years ago * mips-opc.c: Add r4650 mul instruction.
Ian Lance Taylor [Thu, 16 Feb 1995 22:35:36 +0000 (22:35 +0000)]
* mips-opc.c: Add r4650 mul instruction.

29 years agoRewrite insque/remque support to cast all pointers to PTR.
Michael Meissner [Thu, 16 Feb 1995 21:31:22 +0000 (21:31 +0000)]
Rewrite insque/remque support to cast all pointers to PTR.

29 years agoRewrite Linux insque/remque support again.
Michael Meissner [Thu, 16 Feb 1995 21:09:22 +0000 (21:09 +0000)]
Rewrite Linux insque/remque support again.

29 years agoadd 1995 to copyright
J.T. Conklin [Thu, 16 Feb 1995 18:42:42 +0000 (18:42 +0000)]
add 1995 to copyright

29 years ago* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
J.T. Conklin [Thu, 16 Feb 1995 18:41:54 +0000 (18:41 +0000)]
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
  Removed, these values are set by lib/gdb.exp.
* lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.

29 years ago * hosts/std-host.h: Remove all function declarations which return
Ian Lance Taylor [Thu, 16 Feb 1995 18:23:57 +0000 (18:23 +0000)]
* hosts/std-host.h: Remove all function declarations which return
int or void, except the one for free.

29 years ago* config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
J.T. Conklin [Thu, 16 Feb 1995 01:10:04 +0000 (01:10 +0000)]
* config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
  of replicating gdb startup code.

29 years ago* config/mt-vxworks (LDFLAGS): Set to -r.
J.T. Conklin [Thu, 16 Feb 1995 00:44:43 +0000 (00:44 +0000)]
* config/mt-vxworks (LDFLAGS): Set to -r.
  (CFLAGS_FOR_TARGET): Removed.
* config/vx-gdb.exp: always set prompt; gdb.exp sets it to
  (gdb) and gdb for vxworks uses (vxgdb).

29 years ago* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
J.T. Conklin [Thu, 16 Feb 1995 00:35:53 +0000 (00:35 +0000)]
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
  executable is not in the tree and host != target, use sed and
  program_transform_name to determine the gdb name used by the
  target.

29 years agokeep Windows GDB, believe it or not
Stan Shebs [Wed, 15 Feb 1995 23:19:55 +0000 (23:19 +0000)]
keep Windows GDB, believe it or not

29 years agoDeclare insque/remque as int funcs if not Linux.
Michael Meissner [Wed, 15 Feb 1995 22:59:36 +0000 (22:59 +0000)]
Declare insque/remque as int funcs if not Linux.

29 years agoOnly protect insque/remque on Linux.
Michael Meissner [Wed, 15 Feb 1995 22:57:53 +0000 (22:57 +0000)]
Only protect insque/remque on Linux.

29 years ago* configure.in, gdb.{base,c++,chill}/configure.in: changed so
J.T. Conklin [Wed, 15 Feb 1995 22:28:51 +0000 (22:28 +0000)]
* configure.in, gdb.{base,c++,chill}/configure.in: changed so
  *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.

29 years ago* all-cfg.texi: New flag, GDBSERVE, for NetWare's gdbserve.nlm.
J.T. Conklin [Wed, 15 Feb 1995 22:01:50 +0000 (22:01 +0000)]
* all-cfg.texi: New flag, GDBSERVE, for NetWare's gdbserve.nlm.
* remote.texi (NetWare): New node, how to use gdbserve.nlm on
  NetWare targets.  Mostly stolen from the Server node.

29 years agoWed Feb 15 16:08:47 1995 Jason Molenda <crash@cygnus.com>
Ian Lance Taylor [Wed, 15 Feb 1995 21:11:10 +0000 (21:11 +0000)]
Wed Feb 15 16:08:47 1995  Jason Molenda  <crash@cygnus.com>

* config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored
parameter, to match prototype.

29 years ago * config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
Ian Lance Taylor [Wed, 15 Feb 1995 21:08:05 +0000 (21:08 +0000)]
* config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
DWARF.  From gary@Intrepid.COM (Gary Funck).

29 years ago * mips-opc.c: Add uld and usd macros for unaligned double load and
Ian Lance Taylor [Wed, 15 Feb 1995 20:47:31 +0000 (20:47 +0000)]
* mips-opc.c: Add uld and usd macros for unaligned double load and
        store.

29 years ago * gas/mips/uld.d: New file.
Ian Lance Taylor [Wed, 15 Feb 1995 20:45:35 +0000 (20:45 +0000)]
* gas/mips/uld.d: New file.
* gas/mips/uld.s: New file.
* gas/mips/usd.d: New file.
* gas/mips/usd.s: New file.
* gas/mips/mips.exp: Run new tests.

29 years ago * config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
Ian Lance Taylor [Wed, 15 Feb 1995 20:43:57 +0000 (20:43 +0000)]
* config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
loads and stores).

29 years agoGas reloc handling reeks.
Ian Lance Taylor [Wed, 15 Feb 1995 20:34:32 +0000 (20:34 +0000)]
Gas reloc handling reeks.
PR 6343.

29 years agoAll ELF relocs.
Michael Meissner [Wed, 15 Feb 1995 20:15:07 +0000 (20:15 +0000)]
All ELF relocs.

29 years agoFix powerpc PC relative reloc & add some 16 bit relocs.
Michael Meissner [Wed, 15 Feb 1995 19:57:56 +0000 (19:57 +0000)]
Fix powerpc PC relative reloc & add some 16 bit relocs.

29 years agoDefine TEXT_SEGMENT_BASE as 1 for ppc-eabi; Make dcache.c compilable on Linux.
Michael Meissner [Wed, 15 Feb 1995 18:51:31 +0000 (18:51 +0000)]
Define TEXT_SEGMENT_BASE as 1 for ppc-eabi; Make dcache.c compilable on Linux.

29 years ago * mips.h (M_ULD, M_ULD_A, M_USD, M_USD_A): Define.
Ian Lance Taylor [Wed, 15 Feb 1995 17:20:35 +0000 (17:20 +0000)]
* mips.h (M_ULD, M_ULD_A, M_USD, M_USD_A): Define.

29 years ago * config/tc-mips.c (macro): Don't use the target register as a
Ian Lance Taylor [Wed, 15 Feb 1995 16:48:18 +0000 (16:48 +0000)]
* config/tc-mips.c (macro): Don't use the target register as a
base register when building the address for M_L{W,D}{L,R}_AB.

29 years agox
Ian Lance Taylor [Wed, 15 Feb 1995 05:19:44 +0000 (05:19 +0000)]
x

29 years ago * annotate.c, breakpoint.c, defs.h, gdbtk.c, top.c: Replace
Stu Grossman [Wed, 15 Feb 1995 01:45:39 +0000 (01:45 +0000)]
* annotate.c, breakpoint.c, defs.h, gdbtk.c, top.c:  Replace
enable/disable_breakpoint_hook with modify_breakpoint_hook.
* gdbtk.c:  General cleanups, get rid of unused variables.  Redo
handling of stdout/stderr to just return output as the result of
the tcl command that caused the output.  Cleanup -Wall stuff.
* (breakpoint_notify):  Now returns just action and breakpoint
number.
* (gdb_get_breakpoint_list):  New routine.  Does the obvious.
* (gdb_get_breakpoint_info):  Mostly derived from the old
breakpoint_notify, but returns lots more info.
* (dsprintf_append_element):  Helper routine, works like printf,
but appends a tcl element onto the specified DString.  Good for
building up lists as return values.
* (gdbtk_enable/disable_breakpoint):  Go away.  Replaced with
gdbtk_modify_breakpoint.
* (*many routines*):  Use new result protocol.
* (call_wrapper):  Make sure that recursive calls don't trash results.
* gdbtk.tcl:  New windows, autocmd, and breakpoints.
* (gdbtk_tcl_fputs):  Don't use $current_output_win redirection
anymore.  It's not needed (in fact, this routine may not be needed
anymore).
* (gdbtk_tcl_breakpoint):  Change to reflect new breakpoint
notification protocol.
* (gdbtk_tcl_busy gdbtk_tcl_idle):  Straighten out buttons, remove
catches.
* (interactive_cmd):  Use this wrapper around button invocations
of many commands.  This will catch errors and put the results into
the command window.  It also updates all the other windows.
* Also, change reliefs of most things to sunken.  This actually
looks better.
* (create_file_win):  Fix margin binding to allow breakpoints to
work again.
* (create_asm_win):  Use return value of gdb_disassemble instead
of implicit I/O to the command window.
* (create_command_window):  Use new result protocol to get output
from commands.

29 years ago * objdump.c (with_source_code): New global variable.
Ian Lance Taylor [Tue, 14 Feb 1995 23:07:21 +0000 (23:07 +0000)]
* objdump.c (with_source_code): New global variable.
(usage): Mention -S/--source.
(long_options): Add --source.
(prev_functionname, prev_line): New static variables.
(struct print_file_list): Define.
(print_files): New static variable.
(skip_to_line, show_line): New static functions.
(disassemble_data): Call show_line to handle -l and -S.
(main): Handle -S.
* binutils.texi, objdump.1: Document -S/--source.

29 years ago * elf32-mips.c (struct mips_elf_find_line): Define.
Ian Lance Taylor [Tue, 14 Feb 1995 23:03:45 +0000 (23:03 +0000)]
* elf32-mips.c (struct mips_elf_find_line): Define.
(mips_elf_find_nearest_line): New static function.
(bfd_elf32_find_nearest_line): Define.
* libelf.h (struct elf_obj_tdata): Add find_line_info field.

* ecoff.c (_bfd_ecoff_swap_tir_in): Move to ecofflink.c.
(_bfd_ecoff_swap_tir_out): Likewise.
(_bfd_ecoff_swap_rndx_in): Likewise.
(_bfd_ecoff_swap_rndx_out): Likewise.
(cmp_fdrtab_entry): Likewise.
(mk_fdrtab): Likewise.
(lookup): Likewise.
(_bfd_ecoff_find_nearest_line): Just call _bfd_ecoff_locate_line
to do most of the work.  Allocate find_line_info if necessary.
* ecofflink.c: Include "aout/stab_gnu.h".
(_bfd_ecoff_swap_tir_in): Move in from ecoff.c.
(_bfd_ecoff_swap_tir_out): Likewise.
(_bfd_ecoff_swap_rndx_in): Likewise.
(_bfd_ecoff_swap_rndx_out): Likewise.
(cmp_fdrtab_entry): Likewise.  Use PTR instead of void *.
(mk_fdrtab): Move in from ecoff.c.  Add debug_info, debug_swap,
and line_info arguments, and use them instead of ecoff_data.
(fdrtab_lookup): Move in from lookup in ecoff.c.  Remove abfd
argument, add line_info argument.  Use it instead of ecoff_data.
(_bfd_ecoff_locate_line): New function, mostly from the old
_bfd_ecoff_find_nearest_line in ecoff.c.
* libecoff.h (ecoff_data_type): Remove find_buffer, fdrtab_len and
fdrtab fields, replacing them find_line_info field.
(_bfd_ecoff_swap_tir_in): Declare.
(_bfd_ecoff_swap_tir_out): Declare.
(_bfd_ecoff_swap_rndx_in): Declare.
(_bfd_ecoff_swap_rndx_out): Declare.
* libbfd-in.h (_bfd_ecoff_locate_line): Declare.
* libbfd.h: Rebuild.
* configure.in: Don't use ecoff.o for bfd_elf32_bigmips_vec or
bfd_elf32_littlemips_vec.
* Makefile.in: Rebuild dependencies.

29 years ago * expression.h: Move declaration of evaluate_subexp_with_coercion
Jim Kingdon [Tue, 14 Feb 1995 22:02:49 +0000 (22:02 +0000)]
* expression.h: Move declaration of evaluate_subexp_with_coercion
from here...
* value.h: ...to here.
* expression.h: Don't include value.h

29 years ago * expression.h: Move include of value.h until after declaration of
Jim Kingdon [Tue, 14 Feb 1995 20:01:30 +0000 (20:01 +0000)]
* expression.h: Move include of value.h until after declaration of
enum exp_opcode.

29 years agoReconize old versions of the PowerPC machine code (EM_PPC_OLD and EM_CYGNUS_POWERPC).
Michael Meissner [Tue, 14 Feb 1995 19:20:16 +0000 (19:20 +0000)]
Reconize old versions of the PowerPC machine code (EM_PPC_OLD and EM_CYGNUS_POWERPC).

29 years ago * aoutf1.h (MACHTYPE_OK): Don't define if already defined. Don't
Ian Lance Taylor [Tue, 14 Feb 1995 17:49:30 +0000 (17:49 +0000)]
* aoutf1.h (MACHTYPE_OK): Don't define if already defined.  Don't
accept M_SPARC if bfd_arch_sparc is not in the list of supported
architectures, and don't accept a 680x0 machine type if
bfd_arch_m68k is not in the list of supported architectures.
* aout0.c (MACHTYPE_OK): Define.

29 years ago * aoutx.h (NAME(aout,swap_ext_reloc_in)): Don't return a pointer
Ian Lance Taylor [Tue, 14 Feb 1995 04:27:39 +0000 (04:27 +0000)]
* aoutx.h (NAME(aout,swap_ext_reloc_in)): Don't return a pointer
to garbage if the symbol index is out of range.
(NAME(aout,swap_std_reloc_in)): Likewise.

29 years ago * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
Ian Lance Taylor [Mon, 13 Feb 1995 21:18:22 +0000 (21:18 +0000)]
* config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
* config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the
value of a defined symbol; the value was added in by
fixup_segment.  This was previously corrected, if the reloc was
changed to be against a section symbol, in tc_gen_reloc.

29 years ago * arc.h (ARC_OPERAND_LIMM): New flag.
David Edelsohn [Mon, 13 Feb 1995 19:07:55 +0000 (19:07 +0000)]
* arc.h (ARC_OPERAND_LIMM): New flag.

29 years agoRevert this patch, since it breaks linking PIC code with no dynamic
Ian Lance Taylor [Mon, 13 Feb 1995 19:04:05 +0000 (19:04 +0000)]
Revert this patch, since it breaks linking PIC code with no dynamic
objects:
* elfcode.h (elf_bfd_final_link): Add assertion to make sure that
dynamic and dynobj are in synch.

29 years ago * remote-e7000.c: Comprehensive cleanup; removal of dead code,
Stan Shebs [Mon, 13 Feb 1995 00:26:39 +0000 (00:26 +0000)]
* remote-e7000.c: Comprehensive cleanup; removal of dead code,
simplify code, declare things, format to standards.
(inferior.h, value.h, command.h, remote-utils.h): Include.
(e7000_login): Rename to e7000_login_command.
(e7000_ftp): Rename to e7000_ftp_command.
(e7000_drain): Rename to e7000_drain_command.

29 years ago * irix5-nat.c (string.h): Include near beginning of file.
Stan Shebs [Sun, 12 Feb 1995 22:59:44 +0000 (22:59 +0000)]
* irix5-nat.c (string.h): Include near beginning of file.

29 years ago * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
Jim Kingdon [Sun, 12 Feb 1995 21:54:20 +0000 (21:54 +0000)]
* valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
arg, it is a value not a symbol.

gcc -Wall lint:
* eval.c: Move declaration of evaluate_subexp_with_coercion from here..
* expression.h: ..to here.
* expression.h: Include value.h.
* ch-lang.c (evaluate_subexp_chill): Add default case in switch.

29 years ago * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
Jim Kingdon [Sun, 12 Feb 1995 21:34:19 +0000 (21:34 +0000)]
* gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
floats, chars, and shorts where there are ANSI-style function
definitions.

29 years ago * pr-6292.ch, pr-6292.exp, Makefile.in: New test case.
Per Bothner [Sun, 12 Feb 1995 19:47:48 +0000 (19:47 +0000)]
* pr-6292.ch, pr-6292.exp, Makefile.in:  New test case.

29 years ago * language.h (struct language_defn): New field evaluate_exp.
Per Bothner [Sun, 12 Feb 1995 19:21:04 +0000 (19:21 +0000)]
* language.h (struct language_defn):  New field evaluate_exp.
* c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
f-lang.c (f_language_defn), language.c (unknown_language_defn,
auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
Set evaluate_exp to evaluate_subexp_standard.
* ch-lang.c (evaluate_subexp_chill):  New function.  Chill-specific
support for MULTI_SUBSCRIPT.
(chill_language_defn):  Set evaluate_exp to evaluate_subexp_chill.
* eval.c (enum noside):  Move from here ....
* expression.h (enum noside):  ... to here.
(evaluate_subexp_standard):  New prototype.
* eval.c (evaluate_subexp):  Renamed to evaluate_subexp_standard.
Removed lo-longer-needed test for chill_varying_type.
(evaluate_subexp):  New.  Calls exp->language_defn->evaluate_exp.

29 years ago * ch-exp.y (maybe_expression_list): New non-terminal.
Per Bothner [Sun, 12 Feb 1995 19:18:00 +0000 (19:18 +0000)]
* ch-exp.y (maybe_expression_list):  New non-terminal.
(primitive_value):  Allow empty parameter list.

29 years ago * symtab.c (add_param_to_type): Remove (commented-out) function,
Per Bothner [Sun, 12 Feb 1995 18:54:50 +0000 (18:54 +0000)]
* symtab.c (add_param_to_type):  Remove (commented-out) function,
since that functionality has been re-written.
* coffread.c:  Remove commented-out add_param_to_type support.
* mdebugread.c (parse_symbol):  Likewise.
* stabsread.c (define_symbol):  Likewise.

29 years ago * valops.c (value_arg_coerce): Now takes param_type argument.
Per Bothner [Sun, 12 Feb 1995 18:51:42 +0000 (18:51 +0000)]
* valops.c (value_arg_coerce):  Now takes param_type argument.
(call_function_by_hand):  Convert arguments with value_arg_coerce
early, and overwrite original args with converted args.
No longer need multiple calls to value_arg_coerce.
(value_arg_push):  Removed.
* hppa-tdep.c (hppa_push_arguments):  No longer call value_arg_coerce.
* mips-tdep.c (mips_push_arguments):  Likewise.
* alpha-tdep.c (alpha_push_arguments):  Likewise.
* rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
Likewise.
* value.h (value_arg_coerce):  Remove declaration.  (It's now static.)

* valops.c (value_cast):  Do COERCE_VARYING_ARRAY after COERCE_REF.

29 years ago * buildsym.c (finish_block): If finishing a function without known
Per Bothner [Sun, 12 Feb 1995 18:46:45 +0000 (18:46 +0000)]
* buildsym.c (finish_block):  If finishing a function without known
parameter type info, set that from parameter symbols.
* c-typeprint.c (c_type_print_varspec_suffix):  For TYPE_CODE_FUNC,
print parameter types, if available.
* ch-typeprint.c (chill_type_print_base):  Likewise.

* gdbtypes.h (struct type):  Remove function type field.
(TYPE_FUNCTION_TYPE):  Remove macro.  We can't as simply re-use
function types now that we're also storing parameter types.
And the payoff is much less.
* gdbtypes.c (make_function_type):  Don't use/set TYPE_FUNCTION_TYPE.
(recursive_dump_type):  Don't print TYPE_FUNCTION_TYPE.
* dwarfread.c (read_subroutine_type):  Don't set TYPE_FUNCTION_TYPE.

29 years ago * gdb.base/langs.exp, gdb.base/langs*: New test.
Jim Kingdon [Sun, 12 Feb 1995 17:55:09 +0000 (17:55 +0000)]
* gdb.base/langs.exp, gdb.base/langs*: New test.
* gdb.base/Makefile.in: Build it.
* TODO: Remove item about checking that C names don't get C++
demangling applied; this test tests it.

29 years ago* buildsym.c (start_subfile): Set language for f2c like for cfront.
Jim Kingdon [Sun, 12 Feb 1995 17:53:34 +0000 (17:53 +0000)]
* buildsym.c (start_subfile): Set language for f2c like for cfront.

29 years ago * gdb.texinfo (Setting): Talk about the language of a source file
Jim Kingdon [Sat, 11 Feb 1995 04:24:21 +0000 (04:24 +0000)]
* gdb.texinfo (Setting): Talk about the language of a source file
versus the working language.  The old documentation did not match
what GDB did.

29 years ago * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
Ian Lance Taylor [Fri, 10 Feb 1995 19:05:43 +0000 (19:05 +0000)]
* config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
rather than !S_IS_LOCAL.
You might think they would be equivalent, but....

29 years agoE_ARC_CPU_XXX renamed to E_ARC_MACH_XXX for consistency with rest of BFD.
David Edelsohn [Fri, 10 Feb 1995 04:34:36 +0000 (04:34 +0000)]
E_ARC_CPU_XXX renamed to E_ARC_MACH_XXX for consistency with rest of BFD.

29 years ago(arc_get_disassembler): Renamed from arc_disassembler.
David Edelsohn [Fri, 10 Feb 1995 03:55:34 +0000 (03:55 +0000)]
(arc_get_disassembler): Renamed from arc_disassembler.

29 years ago * dis-asm.h (print_insn_arc): Deleted.
David Edelsohn [Fri, 10 Feb 1995 03:48:27 +0000 (03:48 +0000)]
* dis-asm.h (print_insn_arc): Deleted.
(arc_get_disassembler): Declare.

29 years ago * disassemble.c (disassembler, case bfd_arch_arc): Call
David Edelsohn [Fri, 10 Feb 1995 03:42:43 +0000 (03:42 +0000)]
* disassemble.c (disassembler, case bfd_arch_arc): Call
arc_disassembler to get disassembler routine.

29 years agoLotsa arc stuff.
David Edelsohn [Fri, 10 Feb 1995 03:38:14 +0000 (03:38 +0000)]
Lotsa arc stuff.

29 years ago * arc-opc.c (MULTSHIFT operand): Delete.
David Edelsohn [Fri, 10 Feb 1995 03:37:57 +0000 (03:37 +0000)]
* arc-opc.c (MULTSHIFT operand): Delete.
(UNSIGNED, SATURATION): New operands.
(mac, mul, mul64, mulu64): New insns.
(ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
(padc, padd, pmov, pand, psbc, psub, swap): New insns.
(host,graphics,audio extended and auxiliary regs): Define.
(ss, sc, mh, ml): New suffixes.
(arc_opcode_supported, arc_opval_supported): New functions.
(insert_multshift, extract_multshift): Deleted.

29 years ago * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
David Edelsohn [Fri, 10 Feb 1995 03:23:16 +0000 (03:23 +0000)]
* arc-dis.c (print_insn_arc): Rename to print_insn and make static.
New argument `cpu', pass it to arc_opcode_init_tables.
Document byte order dependencies.  Ignore unsupported insns.
(arc_disassembler): New function.
(print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
print_insn_arc_audio): New functions.

29 years ago * op50n-rom.c: Add the control registers.
Rob Savoye [Fri, 10 Feb 1995 03:21:55 +0000 (03:21 +0000)]
* op50n-rom.c: Add the control registers.

29 years ago * arc.h (ARC_MACH_{BASE,HOST,GRAPHICS,AUDIO}): Define.
David Edelsohn [Fri, 10 Feb 1995 03:02:09 +0000 (03:02 +0000)]
* arc.h (ARC_MACH_{BASE,HOST,GRAPHICS,AUDIO}): Define.
(ARC_MACH_MASK, ARC_OPCODE_MACH, ARC_OPVAL_MACH): Define.
(ARC_HAVE_MULT_SHIFT): Delete.
(ARC_HAVE_MACH): Define.
(struct arc_opcode): New field `flags'.
(struct arc_operand_value): Ditto.
(arc_opcode_supported): New function.
(arc_opval_supported): Ditto.

29 years ago * config/tc-arc.c (md_pseudo_table): Add .cpu.
David Edelsohn [Fri, 10 Feb 1995 02:01:01 +0000 (02:01 +0000)]
* config/tc-arc.c (md_pseudo_table): Add .cpu.
(comment_chars): Add ';'.
(arc_mach_type, mach_type_specified, cpu_tables_init_p): New globals.
(md_parse_option): Delete support for -mmult.  Add -mcpu=xxx.
(md_begin): Current ARCs are little endian.
Call bfd_set_arch_mach to set the cpu type.
(init_opcode_tables): New function.
(md_begin): Ignore suffixes and registers not supported by cpu.
(md_assemble): Initialize opcode tables here.
Ignore opcodes not supported by selected cpu.
Always ask for more memory in one piece.
(arc_cpu): New function.
(md_numbers_to_chars): Support both endians (will probably be needed
eventually anyway).
(md_apply_fix): Likewise.

29 years ago * config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
David Edelsohn [Fri, 10 Feb 1995 02:00:43 +0000 (02:00 +0000)]
* config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
dwarfout.c quirk.

29 years agoLotsa arc stuff.
David Edelsohn [Fri, 10 Feb 1995 02:00:13 +0000 (02:00 +0000)]
Lotsa arc stuff.

29 years agoRegenerated.
David Edelsohn [Fri, 10 Feb 1995 01:41:57 +0000 (01:41 +0000)]
Regenerated.

29 years ago * archures (bfd_mach_arc_base): #define.
David Edelsohn [Fri, 10 Feb 1995 01:40:36 +0000 (01:40 +0000)]
* archures (bfd_mach_arc_base): #define.
(bfd_mach_arc_host, bfd_mach_arc_graphics, bfd_mach_arc_audio): Ditto.
* cpu-arc.c (arch_info_struct): Define entries for each cpu variant.
(bfd_arc_arch): Link each one in.
(arc_get_mach): New function.
* elf32-arc.c (arc_info_to_howto_rel): Renamed from arc_info_to_howto.
(elf_info_to_howto_rel): Update.
(arc_elf_object_p, arc_elf_final_write_processing): New functions.
(elf_backend_object_p): Define.
(elf_backend_final_write_processing): Define.
(USE_REL): Define.

29 years ago* Makefile.in (BFD32_BACKENDS): Add i386msdos.o.
Ken Raeburn [Fri, 10 Feb 1995 00:17:32 +0000 (00:17 +0000)]
* Makefile.in (BFD32_BACKENDS): Add i386msdos.o.

29 years ago * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
Stan Shebs [Fri, 10 Feb 1995 00:02:15 +0000 (00:02 +0000)]
* Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
after, any host/target/native libraries.
* dcache.c (insque, remque): Remove declarations.
* gdbtypes.h (type_code): Remove trailing comma.

From Peter Schauer:
* xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
STATIC_NODEBUG_VARS inside case.

29 years agokeep tm-pro.h
Stan Shebs [Thu, 9 Feb 1995 23:38:29 +0000 (23:38 +0000)]
keep tm-pro.h

29 years agokeep est.mt
Stan Shebs [Thu, 9 Feb 1995 23:37:11 +0000 (23:37 +0000)]
keep est.mt

29 years ago* Makefile.in (distclean): Do recursive deletion, since ldscripts is a directory.
Ken Raeburn [Thu, 9 Feb 1995 23:33:41 +0000 (23:33 +0000)]
* Makefile.in (distclean): Do recursive deletion, since ldscripts is a directory.

29 years ago * config/tc-i386.c (md_assemble): Adjust conditions for changing
Ian Lance Taylor [Thu, 9 Feb 1995 23:19:27 +0000 (23:19 +0000)]
* config/tc-i386.c (md_assemble): Adjust conditions for changing
BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags.
Patch originally from Rob Ryan <robr@cmu.edu>.

* config/tc-i386.c: Include subsegs.h.
(tc_i386_fix_adjustable): Declare return value.
(i386_operand): Don't use an assignment directly as a condition.

29 years ago * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
Jim Kingdon [Thu, 9 Feb 1995 22:49:51 +0000 (22:49 +0000)]
* gdb.stabs/weird.exp: Remove "Haven't examined" comment which
went with the const70 xfail.  The xfail went away a year ago.

29 years ago * i960-dis.c (struct tabent, struct sparse_tabent): Change the
Stan Shebs [Thu, 9 Feb 1995 22:46:54 +0000 (22:46 +0000)]
* i960-dis.c (struct tabent, struct sparse_tabent): Change the
        signed char fields to shorts, more portable.

29 years ago* gdb.base/signals.exp: Rename a bunch of tests to give unique names.
Jim Kingdon [Thu, 9 Feb 1995 22:45:51 +0000 (22:45 +0000)]
* gdb.base/signals.exp: Rename a bunch of tests to give unique names.

29 years ago * ldmain.c (main): If trace_file_tries is true, and we are using
Ian Lance Taylor [Thu, 9 Feb 1995 21:57:55 +0000 (21:57 +0000)]
* ldmain.c (main): If trace_file_tries is true, and we are using
an internal linker script, print out the script.
* ldfile.c (try_open): Reindent function.  Make the messages about
opening script files more informative.
PR 6309.

29 years ago * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
Ian Lance Taylor [Thu, 9 Feb 1995 21:18:01 +0000 (21:18 +0000)]
* objcopy.c (copy_usage): Rename parameter to avoid shadowing.
(strip_usage): Likewise.

* objcopy.c (struct section_add): Define.
(add_sections): New static variable.
(copy_options): Accept --add-section.
(copy_usage): Mention --add-section.
(copy_object): Add sections from the add_sections list.
(copy_main): Handle --add-section.
* binutils.texi, objcopy.1: Document --add-section.

29 years ago * gdb.base/corefile.exp: Give backtrace test unique name. xfail
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.

29 years ago* gdb.base/interrupt.exp: Also xfail hpux (for hp300).
Jim Kingdon [Thu, 9 Feb 1995 20:51:13 +0000 (20:51 +0000)]
* gdb.base/interrupt.exp: Also xfail hpux (for hp300).

29 years ago* gdb.base/a1-selftest.exp: Don't run on hp300.
Jim Kingdon [Thu, 9 Feb 1995 20:46:53 +0000 (20:46 +0000)]
* gdb.base/a1-selftest.exp: Don't run on hp300.

29 years ago * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
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.

29 years ago * libiberty.h (basename): Change argument to be const.
Ian Lance Taylor [Thu, 9 Feb 1995 19:21:01 +0000 (19:21 +0000)]
* libiberty.h (basename): Change argument to be const.

29 years ago * somread.c (som_symtab_read): Handle dynamic relocation for both
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.

29 years ago * gas/hppa/reloc/applybug.s: New test.
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.

29 years ago * config/tc-hppa.c (md_apply_fix): In some cases subtract the
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.

29 years agoupdate dependencies
Ian Lance Taylor [Thu, 9 Feb 1995 17:34:44 +0000 (17:34 +0000)]
update dependencies

29 years ago * i386linux.c (NEEDS_SHRLIB): Define.
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).

29 years ago * elfcode.h (elf_bfd_final_link): Add assertion to make sure that
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.

29 years ago * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
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.

29 years agofix comments
Ian Lance Taylor [Thu, 9 Feb 1995 16:31:54 +0000 (16:31 +0000)]
fix comments

29 years ago * mh-linux (SYSV): Don't define.
Ian Lance Taylor [Thu, 9 Feb 1995 16:05:25 +0000 (16:05 +0000)]
* mh-linux (SYSV): Don't define.
(RANLIB): Don't define.

29 years ago * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
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.

29 years ago * monitor.c: Fix so all the output shows up in the GUI command
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.

29 years ago * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
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.