Commit Graph

41765 Commits

Author SHA1 Message Date
Andrew Cagney 2160782c82 * bcache.c: Include "gdb_assert.h".
(struct bcache): Add fields "expand_count" and
	"expand_hash_count".
	(expand_hash_table): Update the expand counts.
	(print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
	on object sizes and hashes.
	* Makefile.in (bcache.o): Update dependencies.
2003-11-03 17:03:11 +00:00
Daniel Jacobowitz 6f2f2c9d16 * elf-bfd.h (struct elf_backend_data): Remove plt_header_size.
* elf-m10300.c (elf_backend_plt_header_size): Don't define.
	* elf32-arm.h (elf_backend_plt_header_size): Don't define.
	* elf32-cris.c (elf_backend_plt_header_size): Don't define.
	* elf32-i386.c (elf_backend_plt_header_size): Don't define.
	* elf32-mips.c (elf_backend_plt_header_size): Don't define.
	* elf32-ppc.c (elf_backend_plt_header_size): Don't define.
	* elf32-s390.c (elf_backend_plt_header_size): Don't define.
	* elf32-sh.c (elf_backend_plt_header_size): Don't define.
	* elf32-sparc.c (elf_backend_plt_header_size): Don't define.
	* elf64-alpha.c (elf_backend_plt_header_size): Don't define.
	* elf64-hppa.c (elf_backend_plt_header_size): Don't define.
	* elf64-mips.c (elf_backend_plt_header_size): Don't define.
	* elf64-ppc.c (elf_backend_plt_header_size): Don't define.
	* elf64-s390.c (elf_backend_plt_header_size): Don't define.
	* elf64-sh64.c (elf_backend_plt_header_size): Don't define.
	* elf64-sparc.c (elf_backend_plt_header_size): Don't define.
	* elf64-x86-64.c (elf_backend_plt_header_size): Don't define.
	* elfn32-mips.c (elf_backend_plt_header_size): Don't define.
	* elfxx-ia64.c (elf_backend_plt_header_size): Don't define.
	* elfxx-target.h (elf_backend_plt_header_size): Don't define
	or include in target initializer.
2003-11-03 15:17:40 +00:00
Daniel Jacobowitz eb4286fcfb * gas/arm/arm7t.d: Replace '-#' with '#-'.
* gas/arm/copro.d: Likewise.
	* gas/arm/fpa-mem.d: Likewise.
	* gas/arm/maverick.c: Likewise.
	* gas/arm/maverick.d: Likewise.
	* gas/arm/vfp1.d: Likewise.
	* gas/arm/vfp1xD.d: Likewise.
	* gas/arm/xscale.d: Likewise.
2003-11-03 14:47:37 +00:00
Daniel Jacobowitz 8e6446ff53 * arm-dis.c (print_arm_insn): Print "-" after "#". 2003-11-03 14:47:22 +00:00
Andrew Cagney 8530209598 2003-11-03 Andrew Cagney <cagney@redhat.com>
* section.c (bfd_set_section_contents): Make the "location" buffer
	constant.
	* bfd-in2.h: Re-generate.

Index: gdb/ChangeLog
2003-11-03  Andrew Cagney  <cagney@redhat.com>

	* exec.c (xfer_memory): Eliminate xfer_fn.
2003-11-03 14:44:08 +00:00
Joern Rennecke 794cd17b28 * interp.c (fsca_s, fsrra_s): New functions.
* gencode.c (tab): Add entries for fsca and fsrra.
	(expand_opcode): Allow variable length n / m fields.
2003-11-03 14:14:15 +00:00
gdbadmin d36d13b0e1 *** empty log message *** 2003-11-03 00:00:01 +00:00
Alan Modra 8211433f2c daily update 2003-11-02 23:00:05 +00:00
gdbadmin 100b6c20f1 *** empty log message *** 2003-11-02 00:00:06 +00:00
Alan Modra 9759a9ac06 daily update 2003-11-01 23:00:05 +00:00
Kevin Buettner 526eef8952 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
(opcodes/frv-desc.h): Include.
	(iacc0h_regnum, iacc0l_regnum): Define.
	(last_spr_regnum, frv_num_regs): Update.
	(new_variant): Don't supply default names for holes in the SPRs.
	Supply names for iacc0h_regnum and iacc0l_regnum.
	(frv_register_type): Use symbolic constants first_fpr_regnum and
	last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
	builtin_type_int instead of builtin_type_int32.
	(frv_register_sim_regno): New function.
	(frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
	* Makefile.in (gdb_sim_frv_h): Define.
	(frv-tdep.o): Update dependencies.
2003-11-01 01:42:48 +00:00
Kevin Buettner e4418cab6f * sim-frv.h: New file. 2003-11-01 01:33:25 +00:00
gdbadmin f51abb02cd *** empty log message *** 2003-11-01 00:00:02 +00:00
Andrew Cagney 9e815ec299 2003-10-31 Andrew Cagney <cagney@redhat.com>
* avr-tdep.c (avr_frame_this_id): Do not call
	deprecated_inside_entry_file.
	* m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
	* m32r-tdep.c (m32r_frame_this_id): Ditto.
	* d10v-tdep.c (d10v_frame_this_id): Ditto.
	* arm-tdep.c (arm_prologue_this_id): Ditto.
	* alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
2003-10-31 23:47:17 +00:00
Alan Modra b1ace735e1 daily update 2003-10-31 23:00:05 +00:00
Jim Blandy e372db4988 * elfread.c (elf_symtab_read): Allocate correct number of tail
elements to sectinfo structure.  (Fix from Woody LaRue.)
2003-10-31 22:47:48 +00:00
Andrew Cagney e8bcf01f1b 2003-10-31 Andrew Cagney <cagney@redhat.com>
* stack.c (return_command): Use get_frame_type, instead of
	CALL_DUMMY_HAS_COMPLETED.
	* inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
	* config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
2003-10-31 22:38:22 +00:00
Mark Kettenis 4c05fe5325 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
explicitly specify size of array.
(x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
TDEP->sc_num_regs.
2003-10-31 22:26:29 +00:00
Andrew Cagney c8b91b893c 2003-10-31 Andrew Cagney <cagney@redhat.com>
* s390-tdep.c (s390_cannot_extract_struct_value_address): New
	function.
	(s390_gdbarch_init): Set extract_struct_value_address.
	* arch-utils.c (generic_cannot_extract_struct_value_address):
	Delete function.
	* arch-utils.h (generic_cannot_extract_struct_value_address):
	Delete definition.
2003-10-31 22:19:12 +00:00
Mark Kettenis fdfb6fc861 * i386-linux-nat.c (fetch_core_registers): Remove.
(linux_elf_core_fns): Remove.
(_initialize_i386_linux_nat): Remove.
2003-10-31 22:04:44 +00:00
Christian Groessler eb9618da3b * config/tc-i860.c (md_pcrel_from): Fix typo in comment. 2003-10-31 21:33:59 +00:00
Andrew Cagney 2f4950cde9 2003-10-31 Andrew Cagney <cagney@redhat.com>
* solib-svr4.c: Update copyright.  Include "bfd-target.h" and
	"exec.h".
	(exec_entry_point): New function.
	(enable_break): Create a "tmp_bfd_target", use that and
	entry_point_address when computing the relocation offset.
	(svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
	* Makefile.in (solib-svr4.o): Update dependencies.
2003-10-31 21:13:45 +00:00
Andrew Cagney bba2d28ded 2003-10-31 Andrew Cagney <cagney@redhat.com>
* defs.h (XZALLOC): Define.
	* target.h (struct target_ops): Add "to_data";
	* bfd-target.h, bfd-target.c: New files.
	* Makefile.in (SFILES): Add "bfd-target.c".
	(COMMON_OBS): Add "bfd-target.o".
	(bfd-target.o): Specify dependencies.
	(bfd_target_h): Define.
	* defs.h (XZALLOC): Define.
2003-10-31 19:19:51 +00:00
Dave Brolley 162cec1b31 Fix more typos 2003-10-31 18:31:36 +00:00
Dave Brolley 073926e5c3 Fix typos. 2003-10-31 18:25:05 +00:00
Dave Brolley 9a29f3cae5 2003-10-31 Dave Brolley <brolley@redhat.com>
* frv-sim.h (REGNUM_LR): Removed.
        (REGNUM_SPR_MIN,REGNUM_SPR_MAX): New macros.
        * frv.c (frvbf_fetch_register): Fetch SPR registers based on
        REGNUM_SPR_MIN and REGNUM_SPR_MAX. Check whether SPRs are implemented.
        Return 0 for an unimplemented register. Return the length of the data
        for an implemented register.
        (frvbf_store_register): Ditto.
2003-10-31 18:23:47 +00:00
Andrew Cagney 6066c3de51 2003-10-31 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
	adjust_breakpoint_address.
	* Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
	* ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
	* ppc-sysv-tdep.c: Include "target.h".  Update copyright.
	(ppc64_sysv_abi_adjust_breakpoint_address): New function.
2003-10-31 16:37:03 +00:00
Andrew Cagney 4b8a223fcb 2003-10-31 Andrew Cagney <cagney@redhat.com>
* target.h (struct target_ops): Replace "to_read_partial" and
	"to_write_partial" with "to_xfer_partial".  Update comments.
	* target.c (debug_to_write_partial): Delete function.
	(debug_to_xfer_partial): Replace debug_to_read_partial.
	(add_target, update_current_target, setup_target_debug): Set
	"to_xfer_partial" instead of "to_read_partial" and
	"to_write_partial".
	(default_xfer_partial): Replace "default_write_partial".
	(default_read_partial): Delete.
	(target_read_partial, target_write_partial): Call
	"to_xfer_partial".
	* remote.c (init_remote_ops): Set "to_xfer_partial".
	(init_remote_async_ops): Ditto.
	(remote_xfer_partial): Replace "remote_read_partial".
2003-10-31 15:25:34 +00:00
DJ Delorie e7e6980b7e merge from gcc 2003-10-31 13:10:32 +00:00
Nick Clifton 0013291dce When looking for a previously loaded file compare the local_sym_name not the
filename, as the filename might have been transformed via the search directory
path lookup.  If the sought-for file has not been found in the input file
chain then create a new node with the search_dirs_flag set so that the entire
set of directory paths will be scanned for it.
2003-10-31 10:27:34 +00:00
Nick Clifton 83b6e7e845 Minor text corrections 2003-10-31 08:59:18 +00:00
Andrew Cagney fc0a224429 Index: sim/frv/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

	* traps.c: Replace "struct symbol_cache_entry" with "struct
	bfd_symbol".

Index: sim/d10v/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

	* simops.c: Replace "struct symbol_cache_entry" with "struct
	bfd_symbol".

Index: sim/common/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

	* sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
	with "struct bfd_symbol".

Index: ld/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

	* emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
	with "struct bfd_symbol".

Index: bfd/ChangeLog
2003-10-30  Andrew Cagney  <cagney@redhat.com>

	* syms.c: Replace "struct symbol_cache_entry" with "struct
	bfd_symbol".
	* vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto.
	* mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto.
	* cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto.
	* bfd-in2.h: Re-generate.
2003-10-31 05:32:46 +00:00
gdbadmin 7cb8d4eab6 *** empty log message *** 2003-10-31 00:00:31 +00:00
Mark Kettenis 66a72d250d * i386-tdep.c (i386_supply_fpregset): Support floating-point
registers in `fxsave' format.
(i386_regset_from_core_section): Deal with ".reg-xfp" sections.
2003-10-30 23:03:36 +00:00
Alan Modra 3084807aa6 daily update 2003-10-30 23:00:05 +00:00
Mark Kettenis e9f1aad5b5 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
(i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and tdep->sizeof_gregset.
2003-10-30 22:25:54 +00:00
DJ Delorie 2382c03f5a merge from gcc 2003-10-30 21:31:43 +00:00
Mark Kettenis bb489b3c99 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
specify size of array.
(i386_linux_init_abi): Remove initialization of
TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
2003-10-30 21:22:13 +00:00
Mark Kettenis da285bc432 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
* config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
core-regset.o.
2003-10-30 19:41:40 +00:00
Mark Kettenis 9a12a2a0ed * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
2003-10-30 19:29:40 +00:00
DJ Delorie 686e72d729 merge from gcc 2003-10-30 18:39:13 +00:00
Jakub Jelinek 0aa92b58af * elfxx-ia64.c: Include objalloc.h, hashtab.h.
(struct elfNN_ia64_local_hash_entry): Remove root. Add id and r_sym
	fields.
	(struct elfNN_ia64_local_hash_table): Remove.
	(struct elfNN_ia64_link_hash_table): Change loc_hash_table's type
	to htab_t.  Add loc_hash_memory field.
	(elfNN_ia64_local_hash_table_init, elfNN_ia64_new_loc_hash_entry):
	Removed.
	(elfNN_ia64_local_htab_hash, elfNN_ia64_local_htab_eq): New
	functions.
	(elfNN_ia64_hash_table_create): Use hashtab.h hashtable for
	loc_hash_table.  Initialize loc_hash_memory.
	(elfNN_ia64_hash_table_free): New function.
	(elfNN_ia64_local_hash_lookup): Remove.
	(elfNN_ia64_local_dyn_sym_thunk): Change into htab_traverse
	callback.
	(elfNN_ia64_dyn_sym_traverse): Use htab_traverse.
	(get_local_sym_hash): Use hashtab.h hashtable for loc_hash_table.
	(bfd_elfNN_bfd_link_hash_table_free): Define.
2003-10-30 14:41:37 +00:00
Nick Clifton e69f2d2194 Do not dump the contents of SHT_NOBITS sections - they have no file space
assigned to their contents.
2003-10-30 14:24:02 +00:00
Alan Modra 68b6ddd08f * elflink.c (_bfd_elf_link_record_dynamic_symbol): Modify versioned
symbol string in place.
2003-10-30 14:13:50 +00:00
Nick Clifton 3f8b3ef37b Check the correct arch_info object's mach field: all PowerPC machines are
supersets of the original rs6000, but not later rs6000 machines.
2003-10-30 12:01:08 +00:00
Nick Clifton f46a9fbb7a Add second argument to rcpp instruction. 2003-10-30 10:03:03 +00:00
Nick Clifton 2b282e8b22 oops - use correct version of automake to regenerate Makefile.in 2003-10-30 09:56:26 +00:00
Alan Modra 482e2e3726 * dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
Add "val" and "sval" fields.
	(DW_STRING, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR): Delete.
	(read_attribute_value): Expand and adjust DW_* occurrences.
	(scan_unit_for_functions, parse_comp_unit): Likewise.
2003-10-30 09:50:02 +00:00
Nick Clifton 325fab4e4e Switch to ELF targeted VxWorks targets 2003-10-30 09:47:15 +00:00
Nick Clifton 257e20bc32 Remove separate vxworks stanza; merge withother common ELF triples. 2003-10-30 09:05:14 +00:00