Mark Kettenis [Wed, 5 Nov 2003 23:32:17 +0000 (23:32 +0000)]
* dwarf2-frame.c (execute_cfa_program): Mark register as
REG_SAVED_REG for DW_CFA_register opcode.
Alan Modra [Wed, 5 Nov 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Mark Kettenis [Wed, 5 Nov 2003 22:54:46 +0000 (22:54 +0000)]
* amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
%rsp, %rip and %eflags to match ABI-change.
Jeff Johnston [Wed, 5 Nov 2003 20:32:42 +0000 (20:32 +0000)]
2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
* ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
(ia64_gdbarch_init): Don't bother calculating the os.
Instead use the gdbarch_info struct and look at the osabi field.
Also use gdbarch_list_lookup_by_info() to look for a
candidate gdbarch.
Kevin Buettner [Wed, 5 Nov 2003 16:44:12 +0000 (16:44 +0000)]
* frv-tdep.c (frv_register_byte): Delete.
(frv_extract_return_value, frv_store_return_value)
(frv_extract_struct_value_address): Don't call frv_register_byte().
Convert to non-deprecated form.
(frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
Convert calls to set_gdbarch_deprecated_extract_return_value(),
set_gdbarch_deprecated_store_return_value(), and
set_gdbarch_deprecated_extract_struct_value_address() into
non-deprecated forms.
Andrew Cagney [Wed, 5 Nov 2003 16:42:35 +0000 (16:42 +0000)]
2003-11-05 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_dump_tdep): Do not print
PRINT_EXTRA_FRAME_INFO.
* config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
Rename PRINT_EXTRA_FRAME_INFO.
* mips-tdep.c (mips_print_extra_frame_info): Delete function.
* config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
(mips_print_extra_frame_info): Delete declaration.
* stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
Elena Zannoni [Wed, 5 Nov 2003 15:30:35 +0000 (15:30 +0000)]
2003-11-05 Elena Zannoni <ezannoni@redhat.com>
* coffread.c (coff_symtab_read): Remove passing of info parameter
to prim_record_minimal_symbol_and_info.
Elena Zannoni [Wed, 5 Nov 2003 15:27:31 +0000 (15:27 +0000)]
2003-11-05 Elena Zannoni <ezannoni@redhat.com>
* coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
(decode_base_type): Delete ifdeffed out code.
Alan Modra [Wed, 5 Nov 2003 13:17:09 +0000 (13:17 +0000)]
* elf.c (_bfd_elf_rela_local_sym): Accept asection **, and return
updated section in case of merged section.
* elf-bfd.h (_bfd_elf_rela_local_sym): Update declaration.
* elf-hppa.h (elf_hppa_relocate_section): Adjust call.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section) Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Don't recalculate symbol
section for reloc output.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Don't recalculate everything
for R_PPC_RELAX32 reloc. Don't bother checking ppc_elf_install_value
return value.
* elf64-ppc.c (ppc64_elf_relocate_section <R_PPC64_TOC>): Sanity check
sec->id.
Alan Modra [Wed, 5 Nov 2003 01:23:55 +0000 (01:23 +0000)]
* elf32-d10v.c (extract_rel_addend, insert_rel_addend): New functions.
(elf32_d10v_relocate_section): Use them to handle -r reloc
adjustments, and in place of _bfd_elf_rela_local_sym.
H.J. Lu [Wed, 5 Nov 2003 01:14:25 +0000 (01:14 +0000)]
2003-11-04 H.J. Lu <hongjiu.lu@intel.com>
* gas/m68k/mcf-mov3q.d: Support 64bit BFD.
gdbadmin [Wed, 5 Nov 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 4 Nov 2003 23:58:06 +0000 (23:58 +0000)]
* cpu-iq2000.c (arch_info_struct): Warning fix.
Alan Modra [Tue, 4 Nov 2003 23:52:58 +0000 (23:52 +0000)]
* elf32-hppa.c (ELIMINATE_COPY_RELOCS): Define.
(elf32_hppa_copy_indirect_symbol): Don't copy NON_GOT_REF on
weakdefs.
(elf32_hppa_check_relocs): Use ELIMINATE_COPY_RELOCS.
(elf32_hppa_adjust_dynamic_symbol): Likewise. Copy weakdef
NON_GOT_REF.
(allocate_dynrelocs): Use ELIMINATE_COPY_RELOCS and
SYMBOL_CALLS_LOCAL. Discard relocs for undef weak syms with
non-default visibility.
(elf32_hppa_relocate_section): Use ELIMINATE_COPY_RELOCS and
SYMBOL_CALLS_LOCAL.
Alan Modra [Tue, 4 Nov 2003 23:36:21 +0000 (23:36 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Only do
pe_dll_extra_pe_debug stuff when DLL_SUPPORT defined.
(pr_sym): Move inside #ifdef DLL_SUPPORT.
Alan Modra [Tue, 4 Nov 2003 23:35:54 +0000 (23:35 +0000)]
* config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
Alan Modra [Tue, 4 Nov 2003 23:11:23 +0000 (23:11 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Zap
unused variable.
Alan Modra [Tue, 4 Nov 2003 23:08:03 +0000 (23:08 +0000)]
* emulparams/elf32_i860.sh (TEXT_START_ADDR): Define.
Alan Modra [Tue, 4 Nov 2003 23:00:06 +0000 (23:00 +0000)]
daily update
Andrew Cagney [Tue, 4 Nov 2003 22:22:31 +0000 (22:22 +0000)]
2003-11-04 Andrew Cagney <cagney@redhat.com>
* symtab.c (find_active_alias): Delete function.
(lookup_block_symbol): Delete alias code.
* stabsread.c (resolve_live_range): Delete function.
(add_live_range): Delete function.
(resolve_symbol_reference): Delete function.
(define_symbol): Delete live range and alias code.
(scan_file_globals): Delete alias code.
* symtab.h (SYMBOL_RANGES): Delete macro.
(struct range_list): Delete structure.
(struct symbol): Delete field "ranges".
(SYMBOL_ALIASES): Delete macro.
(struct alias_list): Delete structure.
(struct symbol): Delete field "aliases".
Michael Snyder [Tue, 4 Nov 2003 20:01:16 +0000 (20:01 +0000)]
2003-11-04 Michael Snyder <msnyder@redhat.com>
* MAINTAINERS: Remove myself as owner of breakpoints and
of sparc/solaris.
Alan Modra [Tue, 4 Nov 2003 11:30:54 +0000 (11:30 +0000)]
* aout-target.h, aoutf1.h, bfdio.c, bfdwin.c: Update copyright date.
* coff-apollo.c, coff-sparc.c, coff-w65.c, coff-we32k.c: Ditto.
* coff-z8k.c, coffgen.c, cpu-frv.c, cpu-h8500.c, cpu-hppa.c: Ditto.
* cpu-ia64-opc.c, cpu-m10300.c, cpu-mips.c, cpu-msp430.c: Ditto.
* cpu-rs6000.c, cpu-z8k.c, efi-app-ia32.c, elf32-am33lin.c: Ditto.
* gen-aout.c, hash.c, hp300hpux.c, init.c, mach-o.c: Ditto.
* nlm-target.h, nlm.c, som.h, stabs.c, sysdep.h, xsym.h: Ditto.
Alan Modra [Tue, 4 Nov 2003 10:45:54 +0000 (10:45 +0000)]
* elf-m10300.c (_bfd_mn10300_elf_create_got_section): Fix
"dereferencing type-punned pointer" warnings.
Alan Modra [Tue, 4 Nov 2003 10:41:52 +0000 (10:41 +0000)]
* aout-adobe.c (aout_adobe_set_section_contents): Constify location.
* aoutx.h (NAME(aout,set_section_contents)): Ditto.
* bfd-in2.h: Regenerate.
* binary.c (binary_set_section_contents): Ditto.
* bout.c (b_out_set_section_contents): Ditto.
* coff-tic54x.c (tic54x_set_section_contents): Ditto.
* coffcode.h (coff_set_section_contents): Ditto.
* ecoff.c (_bfd_ecoff_set_section_contents): Ditto.
* elf-bfd.h (_bfd_elf_set_section_contents): Ditto.
* elf.c (_bfd_elf_set_section_contents): Ditto.
* elfxx-mips.c (_bfd_mips_elf_set_section_contents): Ditto.
* elfxx-mips.h (_bfd_mips_elf_set_section_contents): Ditto.
* i386msdos.c (msdos_set_section_contents): Ditto.
* ieee.c (ieee_set_section_contents): Ditto.
* ihex.c (ihex_set_section_contents): Ditto.
* libaout.h (NAME(aout,set_section_contents)): Ditto.
* libbfd-in.h (_bfd_nowrite_set_section_contents): Ditto.
(_bfd_generic_set_section_contents): Ditto.
* libbfd.h: Regenerate.
* libbfd.c (_bfd_generic_set_section_contents): Ditto.
* libecoff.h (_bfd_ecoff_set_section_contents): Ditto.
* libnlm.h (nlmNAME(set_section_contents)): Ditto.
(struct nlm_backend_data <nlm_mangle_relocs>): Ditto.
* mmo.c (mmo_set_section_contents): Ditto.
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Ditto.
* nlm32-i386.c (nlm_i386_mangle_relocs): Ditto.
* nlm32-ppc.c (nlm_powerpc_mangle_relocs): Ditto.
* nlm32-sparc.c (nlm_sparc_mangle_relocs): Ditto.
* nlmcode.h (nlm_set_section_contents): Ditto.
* oasys.c (oasys_set_section_contents): Ditto.
* pdp11.c (NAME(aout,set_section_contents)): Ditto.
* ppcboot.c (ppcboot_set_section_contents): Ditto.
* srec.c (srec_set_section_contents): Ditto.
* targets.c (BFD_JUMP_TABLE_WRITE <_bfd_set_section_contents>): Ditto.
* tekhex.c (tekhex_set_section_contents): Ditto.
(move_section_contents): Ditto.
* versados.c (versados_set_section_contents): Ditto.
* vms-misc.c (_bfd_save_vms_section): Ditto.
* vms.c (vms_set_section_contents): Ditto.
* vms.h (_bfd_save_vms_section): Ditto.
Alan Modra [Tue, 4 Nov 2003 08:51:36 +0000 (08:51 +0000)]
* elf64-ppc.c (ppc_size_one_stub): Size relbrlt. Accept info arg
rather than htab.
(ppc64_elf_size_stubs): Adjust ppc_size_one_stub traversal. Zero
relbrlt size.
(ppc64_elf_build_stubs): Allocate space for relbrlt.
Alan Modra [Tue, 4 Nov 2003 06:16:39 +0000 (06:16 +0000)]
* bfd-in.h (_bfd_elf_tls_setup): Declare.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct elf_link_tls_segment): Delete.
(struct elf_link_hash_table): Add tls_sec and tls_size.
* elf.c (_bfd_elf_link_hash_table_init): Init tls_sec and tls_size.
* elflink.c (_bfd_elf_tls_setup): New function.
* elflink.h (struct elf_final_link_info): Remove first_tls_sec.
(elf_bfd_final_link): Don't set first_tls_sec here. Update code
saving tls segment info, round segment size up.
(elf_link_output_extsym): Adjust code using tls segment info.
(elf_link_input_bfd): Likewise.
* elf32-i386.c (dtpoff_base, tpoff): Likewise.
* elf32-s390.c (dtpoff_base, tpoff): Likewise.
* elf32-sh.c (dtpoff_base, tpoff): Likewise.
* elf32-sparc.c (dtpoff_base, tpoff): Likewise.
* elf64-s390.c (dtpoff_base, tpoff): Likewise.
* elf64-x86-64.c (dtpoff_base, tpoff): Likewise.
* elfxx-ia64.c (elfNN_ia64_tprel_base): Likewise.
(elfNN_ia64_dtprel_base): Likewise.
* elf64-alpha.c (alpha_get_dtprel_base): Likewise.
(alpha_get_tprel_base): Likewise.
(struct alpha_relax_info): Remove tls_segment.
(elf64_alpha_relax_got_load): Adjust invocation of
alpha_get_dtprel_base and alpha_get_tprel_base.
(elf64_alpha_relax_tls_get_addr): Likewise.
(elf64_alpha_relax_section): Likewise.
(elf64_alpha_relocate_section): Likewise.
(elf64_alpha_relax_find_tls_segment): Delete.
* elf32-ppc.c (struct ppc_elf_link_hash_table): Remove tls_sec.
(ppc_elf_tls_setup): Call _bfd_elf_tls_setup. Return section.
(ppc_elf_relocate_section): Adjust to use elf.tls_sec.
* elf32-ppc.h (ppc_elf_tls_setup): Update.
* elf64-ppc.c (struct ppc_link_hash_table): Remove tls_sec.
(ppc64_elf_tls_setup): Call _bfd_elf_tls_setup. Return section.
(ppc64_elf_tls_optimize): Adjust to use elf.tls_sec.
(ppc64_elf_relocate_section): Likewise.
* elf64-ppc.h (ppc64_elf_tls_setup): Update.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Call
_bfd_elf_tls_setup.
gdbadmin [Tue, 4 Nov 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 3 Nov 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Dave Brolley [Mon, 3 Nov 2003 18:29:57 +0000 (18:29 +0000)]
2003-11-03 Dave Brolley <brolley@redhat.com>
* cache.c (address_interference): Check for higher priority requests
in the same pipeline.
Kris Warkentin [Mon, 3 Nov 2003 17:42:52 +0000 (17:42 +0000)]
Added new SH4 testcases
Corinna Vinschen [Mon, 3 Nov 2003 17:08:23 +0000 (17:08 +0000)]
* sh-tdep.c (sh_sh4_nofpu_register_name): New function.
(sh_sh4al_dsp_register_name): Ditto.
(sh4_nofpu_show_regs): Ditto.
(sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
Andrew Cagney [Mon, 3 Nov 2003 17:03:11 +0000 (17:03 +0000)]
* 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.
Daniel Jacobowitz [Mon, 3 Nov 2003 15:17:40 +0000 (15:17 +0000)]
* 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.
Daniel Jacobowitz [Mon, 3 Nov 2003 14:47:37 +0000 (14:47 +0000)]
* 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.
Daniel Jacobowitz [Mon, 3 Nov 2003 14:47:22 +0000 (14:47 +0000)]
* arm-dis.c (print_arm_insn): Print "-" after "#".
Andrew Cagney [Mon, 3 Nov 2003 14:44:08 +0000 (14:44 +0000)]
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.
Joern Rennecke [Mon, 3 Nov 2003 14:14:15 +0000 (14:14 +0000)]
* 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.
gdbadmin [Mon, 3 Nov 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 2 Nov 2003 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 2 Nov 2003 00:00:06 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 1 Nov 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Kevin Buettner [Sat, 1 Nov 2003 01:42:48 +0000 (01:42 +0000)]
* 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.
Kevin Buettner [Sat, 1 Nov 2003 01:33:25 +0000 (01:33 +0000)]
* sim-frv.h: New file.
gdbadmin [Sat, 1 Nov 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Andrew Cagney [Fri, 31 Oct 2003 23:47:17 +0000 (23:47 +0000)]
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.
Alan Modra [Fri, 31 Oct 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Jim Blandy [Fri, 31 Oct 2003 22:47:48 +0000 (22:47 +0000)]
* elfread.c (elf_symtab_read): Allocate correct number of tail
elements to sectinfo structure. (Fix from Woody LaRue.)
Andrew Cagney [Fri, 31 Oct 2003 22:38:22 +0000 (22:38 +0000)]
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.
Mark Kettenis [Fri, 31 Oct 2003 22:26:29 +0000 (22:26 +0000)]
* 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.
Andrew Cagney [Fri, 31 Oct 2003 22:19:12 +0000 (22:19 +0000)]
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.
Mark Kettenis [Fri, 31 Oct 2003 22:04:44 +0000 (22:04 +0000)]
* i386-linux-nat.c (fetch_core_registers): Remove.
(linux_elf_core_fns): Remove.
(_initialize_i386_linux_nat): Remove.
Christian Groessler [Fri, 31 Oct 2003 21:33:59 +0000 (21:33 +0000)]
* config/tc-i860.c (md_pcrel_from): Fix typo in comment.
Andrew Cagney [Fri, 31 Oct 2003 21:13:45 +0000 (21:13 +0000)]
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.
Andrew Cagney [Fri, 31 Oct 2003 19:19:51 +0000 (19:19 +0000)]
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.
Dave Brolley [Fri, 31 Oct 2003 18:31:36 +0000 (18:31 +0000)]
Fix more typos
Dave Brolley [Fri, 31 Oct 2003 18:25:05 +0000 (18:25 +0000)]
Fix typos.
Dave Brolley [Fri, 31 Oct 2003 18:23:47 +0000 (18:23 +0000)]
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.
Andrew Cagney [Fri, 31 Oct 2003 16:37:03 +0000 (16:37 +0000)]
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.
Andrew Cagney [Fri, 31 Oct 2003 15:25:34 +0000 (15:25 +0000)]
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".
DJ Delorie [Fri, 31 Oct 2003 13:10:32 +0000 (13:10 +0000)]
merge from gcc
Nick Clifton [Fri, 31 Oct 2003 10:27:34 +0000 (10:27 +0000)]
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.
Nick Clifton [Fri, 31 Oct 2003 08:59:18 +0000 (08:59 +0000)]
Minor text corrections
Andrew Cagney [Fri, 31 Oct 2003 05:32:46 +0000 (05:32 +0000)]
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.
gdbadmin [Fri, 31 Oct 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Thu, 30 Oct 2003 23:03:36 +0000 (23:03 +0000)]
* i386-tdep.c (i386_supply_fpregset): Support floating-point
registers in `fxsave' format.
(i386_regset_from_core_section): Deal with ".reg-xfp" sections.
Alan Modra [Thu, 30 Oct 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Mark Kettenis [Thu, 30 Oct 2003 22:25:54 +0000 (22:25 +0000)]
* 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.
DJ Delorie [Thu, 30 Oct 2003 21:31:43 +0000 (21:31 +0000)]
merge from gcc
Mark Kettenis [Thu, 30 Oct 2003 21:22:13 +0000 (21:22 +0000)]
* 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.
Mark Kettenis [Thu, 30 Oct 2003 19:41:40 +0000 (19:41 +0000)]
* config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
* config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
core-regset.o.
Mark Kettenis [Thu, 30 Oct 2003 19:29:40 +0000 (19:29 +0000)]
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
DJ Delorie [Thu, 30 Oct 2003 18:39:13 +0000 (18:39 +0000)]
merge from gcc
Jakub Jelinek [Thu, 30 Oct 2003 14:41:37 +0000 (14:41 +0000)]
* 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.
Nick Clifton [Thu, 30 Oct 2003 14:24:02 +0000 (14:24 +0000)]
Do not dump the contents of SHT_NOBITS sections - they have no file space
assigned to their contents.
Alan Modra [Thu, 30 Oct 2003 14:13:50 +0000 (14:13 +0000)]
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Modify versioned
symbol string in place.
Nick Clifton [Thu, 30 Oct 2003 12:01:08 +0000 (12:01 +0000)]
Check the correct arch_info object's mach field: all PowerPC machines are
supersets of the original rs6000, but not later rs6000 machines.
Nick Clifton [Thu, 30 Oct 2003 10:03:03 +0000 (10:03 +0000)]
Add second argument to rcpp instruction.
Nick Clifton [Thu, 30 Oct 2003 09:56:26 +0000 (09:56 +0000)]
oops - use correct version of automake to regenerate Makefile.in
Alan Modra [Thu, 30 Oct 2003 09:50:02 +0000 (09:50 +0000)]
* 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.
Nick Clifton [Thu, 30 Oct 2003 09:47:15 +0000 (09:47 +0000)]
Switch to ELF targeted VxWorks targets
Nick Clifton [Thu, 30 Oct 2003 09:05:14 +0000 (09:05 +0000)]
Remove separate vxworks stanza; merge withother common ELF triples.
gdbadmin [Thu, 30 Oct 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 29 Oct 2003 23:00:04 +0000 (23:00 +0000)]
daily update
Alan Modra [Wed, 29 Oct 2003 22:59:37 +0000 (22:59 +0000)]
* merge.c (struct sec_merge_sec_info): Update comment.
(struct sec_merge_hash_entry): Remove entsize.
(sec_merge_hash_lookup): Only adjust alignment when creating.
(sec_merge_emit): Remove register keyword.
(cmplengthentry, last4_eq, last_eq): Delete.
(strrevcmp, strrevcmp_align, is_suffix): New.
(merge_strings): Use them to implement fast suffix merging.
* elf-strtab.c (struct elf_strtab_hash_entry): Update comments.
Make "len" signed.
(_bfd_elf_strtab_add): Lose on >2G strings.
(_bfd_elf_strtab_emit): Don't emit strings with len < 0.
(cmplengthentry, last4_eq): Delete.
(strrevcmp, is_suffix): New.
(_bfd_elf_strtab_finalize): Rework to implement fast suffix merging.
Mark Kettenis [Wed, 29 Oct 2003 22:53:08 +0000 (22:53 +0000)]
* config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
* config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
core-regset.o.
Mark Kettenis [Wed, 29 Oct 2003 22:47:37 +0000 (22:47 +0000)]
* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
Phil Blundell [Wed, 29 Oct 2003 22:33:26 +0000 (22:33 +0000)]
2003-10-29 Daniel Jacobowitz <drow@mvista.com>
* elf32-arm.h (elf32_arm_final_link_relocate): Move check for
SEC_ALLOC.
2003-10-29 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_plt0_entry, elf32_arm_plt_entry): New
code sequence.
(PLT_HEADER_SIZE): New.
(struct elf32_arm_pcrel_relocs_copied): Rename to ...
(struct elf32_arm_relocs_copied): ... this. Count both
pcrel and non-pcrel relocs. All uses updated.
(struct elf32_arm_link_hash_table): Add pointers to dynamic linker
sections and symbol/section mapping cache.
(create_got_section): New.
(elf32_arm_create_dynamic_sections): New.
(elf_backend_create_dynamic_sections): Use it.
(elf32_arm_final_link_relocate): Support garbage collection of relocs.
(elf32_arm_check_relocs): Likewise.
(elf32_arm_adjust_dynamic_symbol): Likewise.
(elf32_arm_copy_indirect_symbol): New.
(elf32_arm_link_hash_table_create): Initialise new fields.
(elf32_arm_gc_sweep_hook): Implement.
(elf32_arm_discard_copies): Delete.
(elf32_arm_finish_dynamic_symbol): Use new PLT code.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf_backend_can_refcount): Define.
(elf_backend_copy_indirect_symbol): Likewise.
(elf_backend_plt_header_size): Set to PLT_HEADER_SIZE.
Mark Kettenis [Wed, 29 Oct 2003 20:59:07 +0000 (20:59 +0000)]
* corelow.c: Include "arch-utils.h", "regset.h" and
"gdb_assert.h".
(core_gdbarch): New variable.
(sniff_core_bfd): Don't sniff if we have support for register sets
in CORE_GDBARCH.
(core_close): Reset CORE_GDBARCH.
(core_open): Initialize CORE_GDBARCH.
(get_core_register_section): Use register sets if they are
supported by CORE_GDBARCH.
(get_core_registers): Don't print error message if we have support
for register sets in CORE_GDBARCH.
Nick Clifton [Wed, 29 Oct 2003 19:48:00 +0000 (19:48 +0000)]
Make a generic VxWorks entry
Andrew Cagney [Wed, 29 Oct 2003 19:24:52 +0000 (19:24 +0000)]
2003-10-29 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
Mark Kettenis [Wed, 29 Oct 2003 18:29:07 +0000 (18:29 +0000)]
* objfiles.h (clear_objfile_data): New prototype.
* objfiles.c (clear_objfile_data): New function.
* symfile.c (reread_symbols): Clear per-objfile data.
Nick Clifton [Wed, 29 Oct 2003 18:21:10 +0000 (18:21 +0000)]
Update documentation
Alan Modra [Wed, 29 Oct 2003 13:06:06 +0000 (13:06 +0000)]
* elf64-ppc.c (elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Define.
(ppc64_elf_grok_prstatus, ppc64_elf_grok_psinfo): New functions.
Alan Modra [Wed, 29 Oct 2003 11:15:24 +0000 (11:15 +0000)]
* elf.c (_bfd_elfcore_make_pseudosection): Allow multiple
sections with the same name.
(elfcore_grok_lwpstatus): Likewise.
(elfcore_grok_win32pstatus): Likewise.
(elfcore_grok_note): Likewise.
(elfcore_grok_nto_status): Likewise.
(elfcore_grok_nto_gregs): Likewise.
gdbadmin [Wed, 29 Oct 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 28 Oct 2003 23:00:05 +0000 (23:00 +0000)]
daily update
Jim Blandy [Tue, 28 Oct 2003 22:04:47 +0000 (22:04 +0000)]
* gdb.texinfo (The F request packet, The F reply packet): Renamed
from "The `F' request packet" and "The `F' reply packet", to make
texi2dvi happy.
(File-I/O remote protocol extension): Update menu entries, too.
Jeff Johnston [Tue, 28 Oct 2003 17:09:12 +0000 (17:09 +0000)]
2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
printf_unfiltered instead of printf_filtered for output messages.
(add_symbol_file_command): Ditto.
(reread_symbols): Ditto.
(overlay_auto_command): Ditto.
(overlay_manual_command): Ditto.
(overlay_off_command): Ditto.
gdbadmin [Tue, 28 Oct 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 27 Oct 2003 23:00:05 +0000 (23:00 +0000)]
daily update