aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1995-02-14 * objdump.c (with_source_code): New global variable.Ian Lance Taylor2-1/+16
(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.
1995-02-14 * elf32-mips.c (struct mips_elf_find_line): Define.Ian Lance Taylor1-0/+6
(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.
1995-02-14 * expression.h: Move declaration of evaluate_subexp_with_coercionJim Kingdon1-0/+7
from here... * value.h: ...to here. * expression.h: Don't include value.h
1995-02-14 * expression.h: Move include of value.h until after declaration ofJim Kingdon2-2/+7
enum exp_opcode.
1995-02-14Reconize old versions of the PowerPC machine code (EM_PPC_OLD and ↵Michael Meissner4-2/+45
EM_CYGNUS_POWERPC).
1995-02-14 * aoutf1.h (MACHTYPE_OK): Don't define if already defined. Don'tIan Lance Taylor1-0/+8
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.
1995-02-14 * aoutx.h (NAME(aout,swap_ext_reloc_in)): Don't return a pointerIan Lance Taylor1-0/+6
to garbage if the symbol index is out of range. (NAME(aout,swap_std_reloc_in)): Likewise.
1995-02-13 * config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.Ian Lance Taylor1-0/+23
* 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.
1995-02-13 * arc.h (ARC_OPERAND_LIMM): New flag.David Edelsohn1-0/+4
1995-02-13Revert this patch, since it breaks linking PIC code with no dynamicIan Lance Taylor1-3/+6
objects: * elfcode.h (elf_bfd_final_link): Add assertion to make sure that dynamic and dynobj are in synch.
1995-02-13 * remote-e7000.c: Comprehensive cleanup; removal of dead code,Stan Shebs1-0/+7
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.
1995-02-12 * irix5-nat.c (string.h): Include near beginning of file.Stan Shebs2-1/+5
1995-02-12 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE onJim Kingdon3-0/+20
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.
1995-02-12 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passingJim Kingdon1-0/+3
floats, chars, and shorts where there are ANSI-style function definitions.
1995-02-12 * pr-6292.ch, pr-6292.exp, Makefile.in: New test case.Per Bothner5-1/+84
1995-02-12 * language.h (struct language_defn): New field evaluate_exp.Per Bothner9-55/+119
* 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.
1995-02-12 * ch-exp.y (maybe_expression_list): New non-terminal.Per Bothner2-1/+13
(primitive_value): Allow empty parameter list.
1995-02-12 * symtab.c (add_param_to_type): Remove (commented-out) function,Per Bothner3-27/+7
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.
1995-02-12 * valops.c (value_arg_coerce): Now takes param_type argument.Per Bothner6-741/+103
(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.
1995-02-12 * buildsym.c (finish_block): If finishing a function without knownPer Bothner7-29/+92
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.
1995-02-12 * gdb.base/langs.exp, gdb.base/langs*: New test.Jim Kingdon7-0/+105
* gdb.base/Makefile.in: Build it. * TODO: Remove item about checking that C names don't get C++ demangling applied; this test tests it.
1995-02-12* buildsym.c (start_subfile): Set language for f2c like for cfront.Jim Kingdon2-4/+15
1995-02-11 * gdb.texinfo (Setting): Talk about the language of a source fileJim Kingdon2-27/+69
versus the working language. The old documentation did not match what GDB did.
1995-02-10 * config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERNIan Lance Taylor1-0/+5
rather than !S_IS_LOCAL. You might think they would be equivalent, but....
1995-02-10E_ARC_CPU_XXX renamed to E_ARC_MACH_XXX for consistency with rest of BFD.David Edelsohn1-10/+10
1995-02-10(arc_get_disassembler): Renamed from arc_disassembler.David Edelsohn2-3/+3
1995-02-10 * dis-asm.h (print_insn_arc): Deleted.David Edelsohn1-0/+7
(arc_get_disassembler): Declare.
1995-02-10 * disassemble.c (disassembler, case bfd_arch_arc): CallDavid Edelsohn2-1/+21
arc_disassembler to get disassembler routine.
1995-02-10Lotsa arc stuff.David Edelsohn1-0/+20
1995-02-10 * arc-opc.c (MULTSHIFT operand): Delete.David Edelsohn1-69/+184
(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.
1995-02-10 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.David Edelsohn1-11/+95
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.
1995-02-10 * op50n-rom.c: Add the control registers.Rob Savoye1-5/+5
1995-02-10 * arc.h (ARC_MACH_{BASE,HOST,GRAPHICS,AUDIO}): Define.David Edelsohn2-0/+230
(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.
1995-02-10 * config/tc-arc.c (md_pseudo_table): Add .cpu.David Edelsohn1-237/+230
(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.
1995-02-10 * config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works aroundDavid Edelsohn1-0/+47
dwarfout.c quirk.
1995-02-10Lotsa arc stuff.David Edelsohn1-0/+22
1995-02-10Regenerated.David Edelsohn1-0/+4
1995-02-10 * archures (bfd_mach_arc_base): #define.David Edelsohn2-14/+110
(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.
1995-02-10* Makefile.in (BFD32_BACKENDS): Add i386msdos.o.Ken Raeburn1-0/+4
1995-02-10 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition toStan Shebs4-5/+13
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.
1995-02-09keep tm-pro.hStan Shebs1-0/+1
1995-02-09keep est.mtStan Shebs1-0/+1
1995-02-09* Makefile.in (distclean): Do recursive deletion, since ldscripts is a ↵Ken Raeburn1-0/+5
directory.
1995-02-09 * config/tc-i386.c (md_assemble): Adjust conditions for changingIan Lance Taylor1-0/+10
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.
1995-02-09 * gdb.stabs/weird.exp: Remove "Haven't examined" comment whichJim Kingdon1-0/+3
went with the const70 xfail. The xfail went away a year ago.
1995-02-09 * i960-dis.c (struct tabent, struct sparse_tabent): Change theStan Shebs1-0/+5
signed char fields to shorts, more portable.
1995-02-09* gdb.base/signals.exp: Rename a bunch of tests to give unique names.Jim Kingdon1-0/+2
1995-02-09 * ldmain.c (main): If trace_file_tries is true, and we are usingIan Lance Taylor1-0/+5
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.
1995-02-09 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.Ian Lance Taylor2-0/+15
(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.
1995-02-09 * gdb.base/corefile.exp: Give backtrace test unique name. xfailJim Kingdon1-0/+3
for hp300.