binutils-gdb.git
17 years agoFrom Craig Silverstein and Cary Coutant: fix assignment of section
Ian Lance Taylor [Wed, 7 Nov 2007 22:33:30 +0000 (22:33 +0000)]
From Craig Silverstein and Cary Coutant: fix assignment of section
indexes to sections which are not associated with segments.

17 years ago Fix crash when a variable object being deleted
Vladimir Prus [Wed, 7 Nov 2007 20:06:29 +0000 (20:06 +0000)]
Fix crash when a variable object being deleted
has any of its children deleted previously.

* varobj.c (delete_variable_1): Don't recurse
into deleted children.

17 years agoCheck that we don't set the output section index twice.
Ian Lance Taylor [Wed, 7 Nov 2007 18:29:34 +0000 (18:29 +0000)]
Check that we don't set the output section index twice.

17 years ago2007-11-07 Eric B. Weddington <eweddington@cso.atmel.com>
Eric B. Weddington [Wed, 7 Nov 2007 17:59:05 +0000 (17:59 +0000)]
2007-11-07  Eric B. Weddington  <eweddington@cso.atmel.com>

* config/tc-avr.c (mcu_types): Add ATtiny88 device.
* doc/c-avr.texi: Likewise.

17 years ago2007-11-07 Anatoly Sokolov <aesok@post.ru>
Eric B. Weddington [Wed, 7 Nov 2007 17:24:59 +0000 (17:24 +0000)]
2007-11-07  Anatoly Sokolov <aesok@post.ru>

* config/tc-avr.c (mcu_types): Add new devices: ATmega48P, ATmega88P,
ATmega168P, Atmega328P
* doc/c-avr.texi: Document new devices.

17 years agoPR gas/5228
Nick Clifton [Wed, 7 Nov 2007 16:37:44 +0000 (16:37 +0000)]
PR gas/5228
* m68k-opc.c (m68k_opcodes): Fix coldfire msac.w instructions with parallel loads.

17 years ago* ia64-dis.c (print_insn_ia64): Generate symbolic names for cr
Tristan Gingold [Wed, 7 Nov 2007 15:57:14 +0000 (15:57 +0000)]
* ia64-dis.c (print_insn_ia64): Generate symbolic names for cr
 registers instead of register number.

* gas/ia64/regs.d: Expect symbolic names for cr registers due to
 improved disassembler.

17 years ago* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on
Nick Clifton [Wed, 7 Nov 2007 14:52:44 +0000 (14:52 +0000)]
* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on
   .debug_frame for Irix.

17 years ago* arm-dis.c (arm_opcodes): Remove superflous escapes of percent operators.
Nick Clifton [Wed, 7 Nov 2007 14:40:40 +0000 (14:40 +0000)]
* arm-dis.c (arm_opcodes): Remove superflous escapes of percent operators.

17 years ago* gas/elf/elf.exp (run_elf_list_test): Fix typo.
Nick Clifton [Wed, 7 Nov 2007 14:32:54 +0000 (14:32 +0000)]
* gas/elf/elf.exp (run_elf_list_test): Fix typo.

17 years ago* config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
Tristan Gingold [Wed, 7 Nov 2007 14:10:49 +0000 (14:10 +0000)]
* config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
  within the TOC instead of the VMA.

* gas/ppc/test1xcoff32.d: Updated to match RTOC bug fix.

17 years ago ld/
Nathan Sidwell [Wed, 7 Nov 2007 12:10:33 +0000 (12:10 +0000)]
ld/
* emulparams/vxworks.sh (OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS): Add TLS sections.

ld/testsuite/
* ld-vxworks/tls-1.d: New.
* ld-vxworks/tls-1.s: New.

17 years ago* doc/binutils.texi: Update to FDL 1.2.
Nick Clifton [Wed, 7 Nov 2007 11:36:42 +0000 (11:36 +0000)]
* doc/binutils.texi: Update to FDL 1.2.
  (Top): consistent punctuation in menu entries.
  (Index): Rename from Binutils Index.
* doc/fdl.texi: Update from http://www.gnu.org/licenses/fdl.texi.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:58:31 +0000 (06:58 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
* gdbarch.{c,h}: Regenerate.
* arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
Replace current_gdbarch by gdbarch.
* m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
* mips-tdep.c (mips_virtual_frame_pointer): Likewise.
* spu-tdep.c (spu_virtual_frame_pointer): Likewise.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:53:41 +0000 (06:53 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
get_regcache_arch to get at the current architecture by regcache.
* xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
to get at the current architecture by frame_info.
* fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
at the current architecture by regcache.
* gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
the current architecture by frame_info.
(build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
* aix-thread.c (special_register_p): Add gdbarch as parameter.
(fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
caller of special_register_p.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:49:39 +0000 (06:49 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* infcall.c (call_function_by_hand): Use get_frame_arch to get at the
current architecture by frame_info.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:44:50 +0000 (06:44 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:36:57 +0000 (06:36 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
get at the current architecture by regcache.
(SUBOFF): Add gdbarch to macro definition.

17 years ago*** empty log message ***
Markus Deuling [Wed, 7 Nov 2007 06:33:01 +0000 (06:33 +0000)]
*** empty log message ***

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 06:10:23 +0000 (06:10 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
macro CURRENT_VARIANT by its expression.
(CURRENT_VARIANT): Remove.
(frv_check_watch_resources): Add gdbarch parameter.

17 years ago2007-11-07 Markus Deuling <deuling@de.ibm.com>
Markus Deuling [Wed, 7 Nov 2007 05:45:08 +0000 (05:45 +0000)]
2007-11-07  Markus Deuling  <deuling@de.ibm.com>

* MAINTAINERS (Write After Approval): Add self.

17 years agoFrom Craig Silverstein: Templatize the Dwarf reader.
Ian Lance Taylor [Wed, 7 Nov 2007 00:49:56 +0000 (00:49 +0000)]
From Craig Silverstein: Templatize the Dwarf reader.

17 years agoFrom Craig Silverstein: Handle a .so file in a .a file.
Ian Lance Taylor [Wed, 7 Nov 2007 00:45:05 +0000 (00:45 +0000)]
From Craig Silverstein: Handle a .so file in a .a file.

17 years agoFrom Craig Silverstein: Don't crash if we see a file we don't recognize.
Ian Lance Taylor [Wed, 7 Nov 2007 00:31:32 +0000 (00:31 +0000)]
From Craig Silverstein: Don't crash if we see a file we don't recognize.

17 years ago*** empty log message ***
gdbadmin [Wed, 7 Nov 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

17 years ago * ppc-opc.c (powerpc_opcodes): Remove the dcffix and dcffix. opcodes
Peter Bergner [Tue, 6 Nov 2007 23:14:07 +0000 (23:14 +0000)]
* ppc-opc.c (powerpc_opcodes): Remove the dcffix and dcffix. opcodes
which are not included in the "Preliminary Decimal Floating-Point
Architecture" document.

17 years agodaily update
Alan Modra [Tue, 6 Nov 2007 23:00:15 +0000 (23:00 +0000)]
daily update

17 years ago2007-11-06 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 6 Nov 2007 22:17:00 +0000 (22:17 +0000)]
2007-11-06  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (do_mull): Allow overlapping Rm for armv6.

gas/testsuite/
* gas/arm/mul-overlap.s: Add umull and smlal.
* gas/arm/mul-overlap.l: Update expected results.

17 years ago* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the...
Nick Clifton [Tue, 6 Nov 2007 17:15:10 +0000 (17:15 +0000)]
* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the optimizations should be applied.
* config/tc-mn10300.h (md_allow_eh_opt): Define.  Only allow call frame optimization if linker relaxation is not enabled.
* gas/elf/elf.exp: Disable ehopt test for mn10300.

17 years agobfd/
Alan Modra [Tue, 6 Nov 2007 13:49:19 +0000 (13:49 +0000)]
bfd/
* elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
(ppc64_elf_gc_sweep_hook): ..or here..
(ppc64_elf_tls_optimize): ..or here.  Make two passes through the
relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
(allocate_dynrelocs): Refcount tlsld_got here.
(ppc64_elf_size_dynamic_sections): Allocate local got and call
allocate_dynrelocs before allocating tlsld_got.
(ppc64_elf_relocate_section): Remove check that a tls_get_addr
call follows gd and ld relocs.
ld/testsuite/
* ld-powerpc/tlsso.d: Update for changed got alloc order.
* ld-powerpc/tlsso.r: Likewise.

17 years agoAdd __ImageBase symbol to pe.em and pep.em.
Kai Tietz [Tue, 6 Nov 2007 12:28:57 +0000 (12:28 +0000)]
Add __ImageBase symbol to pe.em and pep.em.

17 years agobfd/
Alan Modra [Tue, 6 Nov 2007 03:59:16 +0000 (03:59 +0000)]
bfd/
* elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here..
(ppc_elf_gc_sweep_hook): ..or here..
(ppc_elf_tls_optimize): ..or here.  Make two passes through the
relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
(allocate_dynrelocs): Refcount tlsld_got here.
(ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before
allocating tlsld_got.
(ppc_elf_relocate_section): Remove check that a tls_get_addr
call follows gd and ld relocs.
ld/testsuite/
* ld-powerpc/tlsso32.d: Update for changed got alloc order.

17 years ago*** empty log message ***
gdbadmin [Tue, 6 Nov 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

17 years agodaily update
Alan Modra [Mon, 5 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago * features/rs6000/power-core.xml: Use uint32 as register type.
Ulrich Weigand [Mon, 5 Nov 2007 21:55:39 +0000 (21:55 +0000)]
* features/rs6000/power-core.xml: Use uint32 as register type.
* features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
* features/rs6000/powerpc-32.c: Regenerate.
* features/rs6000/powerpc-403.c: Regenerate.
* features/rs6000/powerpc-403gc.c: Regenerate.
* features/rs6000/powerpc-505.c: Regenerate.
* features/rs6000/powerpc-602.c: Regenerate.
* features/rs6000/powerpc-603.c: Regenerate.
* features/rs6000/powerpc-604.c: Regenerate.
* features/rs6000/powerpc-64.c: Regenerate.
* features/rs6000/powerpc-7400.c: Regenerate.
* features/rs6000/powerpc-750.c: Regenerate.
* features/rs6000/powerpc-860.c: Regenerate.
* features/rs6000/powerpc-e500.c: Regenerate.

17 years ago * linux-low.c: Include <sched.h>.
Daniel Jacobowitz [Mon, 5 Nov 2007 19:22:08 +0000 (19:22 +0000)]
* linux-low.c: Include <sched.h>.

17 years ago * breakpoint.c (set_raw_breakpoint_without_location): Make static.
Joel Brobecker [Mon, 5 Nov 2007 18:24:29 +0000 (18:24 +0000)]
    * breakpoint.c (set_raw_breakpoint_without_location): Make static.

17 years ago * breakpoint.h (create_solib_load_event_breakpoint)
Joel Brobecker [Mon, 5 Nov 2007 18:18:47 +0000 (18:18 +0000)]
    * breakpoint.h (create_solib_load_event_breakpoint)
        (create_solib_unload_event_breakpoint)
        (create_fork_event_catchpoint, create_vfork_event_catchpoint)
        (create_exec_event_catchpoint): Delete declaration.
        * breakpoint.c (create_solib_load_event_breakpoint)
        (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
        (create_fork_event_catchpoint, create_vfork_event_catchpoint)
        (create_exec_event_catchpoint): Make static.

17 years ago * breakpoint.h (set_breakpoint_sal): Remove declaration.
Joel Brobecker [Mon, 5 Nov 2007 18:09:18 +0000 (18:09 +0000)]
    * breakpoint.h (set_breakpoint_sal): Remove declaration.
        * breakpoint.c (set_breakpoint_sal): Delete.

17 years ago * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
Joel Brobecker [Mon, 5 Nov 2007 18:06:10 +0000 (18:06 +0000)]
    * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
        (make_blockvector): Likewise. Remove FIXME comment.

17 years ago * printcmd.c: (printf_command): Add support for new DFP
Luis Machado [Mon, 5 Nov 2007 11:32:31 +0000 (11:32 +0000)]
* printcmd.c: (printf_command): Add support for new DFP
    modifiers %H, %D and %DD.
    * configure.ac: Add check for DECFLOAT printf support.
    * configure: Regenerated.
    * doc/gdb.texinfo: Update printf command's description.
    * testsuite/gdb.base/printcmds.exp: New function
    test_printf_with_dfp.

17 years ago * ld-elf/merge3.d, ld-elf/merge3.s: Delete.
Alan Modra [Mon, 5 Nov 2007 02:14:50 +0000 (02:14 +0000)]
* ld-elf/merge3.d, ld-elf/merge3.s: Delete.

17 years ago * merge.c (sec_merge_hash_lookup): Revert last change.
Alan Modra [Mon, 5 Nov 2007 02:13:46 +0000 (02:13 +0000)]
* merge.c (sec_merge_hash_lookup): Revert last change.
(record_section): Likewise.
(_bfd_merge_sections): Likewise.
(_bfd_merged_section_offset): Properly handle NULL secinfo.
(_bfd_add_merge_section): Allocate extra space for a zero
terminator on SEC_STRINGS sections.

17 years ago*** empty log message ***
gdbadmin [Mon, 5 Nov 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

17 years agoinclude
Danny Smith [Sun, 4 Nov 2007 23:49:09 +0000 (23:49 +0000)]
include
* coff/pe.h (COFF_ENCODE_ALIGNMENT) Define.

gas
* read.c (ALIGN_LIMIT): Rename to ...
(TC_ALIGN_LIMIT): Guard against prior definition.
* config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define.

bfd
* pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
 and .bss section use the default.
* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.

ld/testsuite
* ld-scripts/align.exp: Enable for PECOFF.
* ld-scripts/alignof.exp: Likewise.

17 years agodaily update
Alan Modra [Sun, 4 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago*** empty log message ***
gdbadmin [Sun, 4 Nov 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

17 years agodaily update
Alan Modra [Sat, 3 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago*** empty log message ***
gdbadmin [Sat, 3 Nov 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

17 years agoFrom Craig Silverstein: Add first version of generating error messages
Ian Lance Taylor [Fri, 2 Nov 2007 23:02:44 +0000 (23:02 +0000)]
From Craig Silverstein: Add first version of generating error messages
with file name and line number.

17 years agodaily update
Alan Modra [Fri, 2 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago * gdb.disasm/t01_mov.s: Remove carriage returns.
Doug Evans [Fri, 2 Nov 2007 20:33:12 +0000 (20:33 +0000)]
* gdb.disasm/t01_mov.s: Remove carriage returns.
* gdb.disasm/t02_mova.s: Ditto.
* gdb.disasm/t03_add.s: Ditto.
* gdb.disasm/t04_sub.s: Ditto.
* gdb.disasm/t05_cmp.s: Ditto.
* gdb.disasm/t06_ari2.s: Ditto.
* gdb.disasm/t07_ari3.s: Ditto.
* gdb.disasm/t08_or.s: Ditto.
* gdb.disasm/t09_xor.s: Ditto.
* gdb.disasm/t10_and.s: Ditto.
* gdb.disasm/t11_logs.s: Ditto.
* gdb.disasm/t12_bit.s: Ditto.
* gdb.disasm/t13_otr.s: Ditto.

17 years ago * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
Ulrich Weigand [Fri, 2 Nov 2007 19:35:19 +0000 (19:35 +0000)]
* gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
(TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
(HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
HP_ACC_TOP_OFFSET_OFFSET): Likewise.
(has_vtable, primary_base_class, virtual_base_list_length,
virtual_base_list_length_skip_primaries, virtual_base_index,
virtual_base_index_skip_primaries, class_index_in_primary_list,
count_virtual_fns): Remove prototypes.
* gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
virtual_base_list_length_skip_primaries, virtual_base_index,
virtual_base_index_skip_primaries, class_index_in_primary_list,
count_virtual_fns): Remove.

* cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
(hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
(cp_print_value_fields): Remove support for HP aCC vtables.
(cp_print_value): Likewise.
* c-typeprint.c (c_type_print_base): Likewise.

* value.h (find_rt_vbase_offset): Remove prototype.
* valops.c (find_rt_vbase_offset): Remove.
(search_struct_method): Remove support for HP aCC vtables.
(find_method_list): Likewise.

17 years ago * language.h (struct language_defn): Remove la_builtin_type_vector
Ulrich Weigand [Fri, 2 Nov 2007 19:34:11 +0000 (19:34 +0000)]
* language.h (struct language_defn): Remove la_builtin_type_vector
and string_char_type members.
* language.c (language_string_char_type): No longer consult
la->string_char_type.
(language_lookup_primitive_type_by_name): No longer consult
current_language->la_builtin_type_vector.

* language.c (unknown_language_defn, auto_language_defn,
local_language_defn): Adapt initializer.
* ada-lang.c (ada_language_defn): Likewise.
* c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* jv-lang.c (java_language_defn): Likewise.
* m2-lang.c (m2_language_defn): Likewise.
* objc-lang.c (objc_language_defn): Likewise.
* p-lang.c (pascal_language_defn): Likewise.
* scm-lang.c (scm_language_defn): Likewise.

17 years ago2007-11-02 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Fri, 2 Nov 2007 14:47:28 +0000 (14:47 +0000)]
2007-11-02  Markus Deuling  <deuling@de.ibm.com>

* frame.c (frame_id_inner): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
(frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
current architecture by frame_info.
* frame.h (frame_id_inner): Add gdbarch parameter.
* stack.c (return_command): Use get_frame_arch to get at the current
architecture by frame_info. Update call of frame_id_inner.
* infrun.c (handle_inferior_event): Likewise.
* dummy-frame.c (dummy_frame_push):  Use get_regcache_arch to get at the
current architecture by regcache. Update call of frame_id_inner.

17 years ago2007-11-02 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Fri, 2 Nov 2007 14:27:15 +0000 (14:27 +0000)]
2007-11-02  Markus Deuling  <deuling@de.ibm.com>

* gdbarch.sh (register_name): Add gdbarch parameter.
* gdbarch.{c,h}: Regenerate.

* target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
(tdesc_register_name): Replace current_gdbarch by gdbarch.
* target-descriptions.h (tdesc_register_name): Add gdbarch parameter.

* xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
* vax-tdep.c (vax_register_name): Add gdbarch parameter.
* spu-tdep.c (spu_register_name): Add gdbarch parameter.
* s390-tdep.c (s390_register_name): Add gdbarch parameter.
* mt-tdep.c (mt_register_name): Add gdbarch parameter.
(mt_registers_info): Replace current_gdbarch by gdbarch.
(mt_register_reggroup_p): Add gdbarch to mt_register_name call.
* mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
(mips_register_name): Add gdbarch to tdesc_register_name call.
* mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
(mep_register_reggroup_p): Add gdbarch to mep_register_name call.
* m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
* m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
* m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
* m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
(m32r_frame_unwind_cache): Use get_frame_arch to get at the current
architecture by frame_info.
* iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
* ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
* hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
parameter.
* h8300-tdep.c (h8300_register_name, h8300s_register_name)
(h8300sx_register_name): Add gdbarch parameter.
* cris-tdep.c (cris_register_name, crisv32_register_name): Add
gdbarch parameter. Replace current_gdbarch by gdbarch.
(cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
* avr-tdep.c (avr_register_name): Add gdbarch parameter.
* arm-tdep.c (arm_register_name): Add gdbarch paramete
* amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
caller.
* amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
* amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
* alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
(alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
of alpha_register_name.
* frv-tdep.c (frv_register_name): Add gdbarch parameter.
* i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
(i386_register_type): Replace ?current_gdbarch by gdbarch.
* i386-tdep.h (i386_register_name): Add gdbarch parameter.
* i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.

* m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
(m68hc11_register_reggroup_p): Add gdbarch to call of
m68hc11_register_name.
* mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
(am33_2_register_name): Add gdbarch parameter.
(mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
architecture by frame_info.
(mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
* rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
* score-tdep.c (score_register_name): Add gdbarch parameter.
(score_return_value, score_push_dummy_call): Replace current_gdbarch
by gdbarch.
* sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
(sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
(sh64_register_convert_to_raw, sh64_fv_reg_base_num)
(sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
and update caller. Replace current_gdbarch by gdbarch.
(sh64_extract_return_value, sh64_store_return_value): Use
get_regcache_arch to get at the current architecture by regcache.
* sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
(sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
(sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
(sh_sh3_dsp_register_name, sh_sh4_register_name)
(sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
parameter.
(fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
(sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
current_gdbarch by gdbarch.
(sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
get_regcache_arch to get at the current architecture by regcache.
* sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
* sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
* v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
parameter.
(v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
* xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
current_gdbarch by gdbarch.
(xtensa_pseudo_register_read, xtensa_pseudo_register_write)
(xtensa_frame_prev_register): Add gdbarch parameter to
xtensa_register_name call.

17 years agoFrom Cary Coutant: Correct generation of RELATIVE relocs.
Ian Lance Taylor [Fri, 2 Nov 2007 04:08:52 +0000 (04:08 +0000)]
From Cary Coutant: Correct generation of RELATIVE relocs.

17 years agoFrom Craig Silverstein: Add more DWARF info, add some i386 comments.
Ian Lance Taylor [Fri, 2 Nov 2007 03:31:41 +0000 (03:31 +0000)]
From Craig Silverstein: Add more DWARF info, add some i386 comments.

17 years agoReworked from Andrew Chatham: report error locations.
Ian Lance Taylor [Fri, 2 Nov 2007 03:28:52 +0000 (03:28 +0000)]
Reworked from Andrew Chatham: report error locations.

17 years ago * config/tc-xtensa.c (xtensa_symbol_new_hook): New.
Bob Wilson [Fri, 2 Nov 2007 00:45:34 +0000 (00:45 +0000)]
* config/tc-xtensa.c (xtensa_symbol_new_hook): New.
(xtensa_mark_difference_of_two_symbols): New.
(xtensa_post_relax_hook): Call xtensa_mark_difference_of_two_symbols.
* config/tc-xtensa.h (xtensa_symfield_type): Add next_expr_symbol.
(tc_symbol_new_hook): Define.

17 years ago*** empty log message ***
gdbadmin [Fri, 2 Nov 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

17 years agodaily update
Alan Modra [Thu, 1 Nov 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago * linux-low.c (linux_tracefork_grandchild): New.
Daniel Jacobowitz [Thu, 1 Nov 2007 19:19:39 +0000 (19:19 +0000)]
* linux-low.c (linux_tracefork_grandchild): New.
(linux_tracefork_child): Use clone.
(linux_test_for_tracefork): Use clone; allocate and free a stack.

17 years agogas/
H.J. Lu [Thu, 1 Nov 2007 19:06:54 +0000 (19:06 +0000)]
gas/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Replace no_xsuf with
no_ldsuf.
(match_template): Likewise.

opcodes/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Replace No_xSuf with
No_ldSuf.
* i386-opc.tbl: Likewise.

* i386-opc.h (No_xSuf): Renamed to ...
(No_ldSuf): This.
(FWait): Updated.

17 years ago2007-11-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 1 Nov 2007 18:40:53 +0000 (18:40 +0000)]
2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX): Use a non-ascii
letter.

17 years ago * gdb.cp/arg-reference.exp, gdb.cp/arg-reference.c: New files.
Jan Kratochvil [Thu, 1 Nov 2007 17:34:57 +0000 (17:34 +0000)]
* gdb.cp/arg-reference.exp, gdb.cp/arg-reference.c: New files.

17 years agogas/
H.J. Lu [Thu, 1 Nov 2007 16:27:08 +0000 (16:27 +0000)]
gas/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (process_suffix): Check addrprefixop0 to
see if the address size override prefix changes the size of the
first operand.
(check_byte_reg): Don't warn if byteokintel is set.
(check_long_reg): Set i.suffix to QWORD_MNEM_SUFFIX if toqword
is set.
(check_qword_reg): Set i.suffix to LONG_MNEM_SUFFIX if todword
is set.

gas/testsuite/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.d: New.
* gas/i386/i386.s: Likewise.

* gas/i386/i386.exp: Run i386.

* gas/i386/x86_64.s: Add tests for movsx, movsbl, movsbq,
movsbw, movswl, movswq, movzx, movzb, movzbl, movzbq,
movzbw, movzwl and movzwq.
* gas/i386/x86_64.d: Updated.

opcodes/

2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add ByteOkIntel, ToDword,
ToQword and AddrPrefixOp0.

* i386-opc.h (ByteOkIntel): New.
(ToDword): Likewise.
(ToQword): Likewise.
(AddrPrefixOp0): Likewise.
(IsPrefix): Updated.
(i386_opcode_modifier): Add byteokintel, todword, toqword
and addrprefixop0.

* i386-opc.tbl (cvtss2si): Add ToQword.
(cvttss2si): Likewise.
(cvtsd2si): Add ToDword.
(cvttsd2si): Likewise.
(monitor): Add AddrPrefixOp0.
(invlpga): Likewise.
(vmload): Likewise.
(vmrun): Likewise.
(vmsave): Likewise.
(pextrb): Add ByteOkIntel.
(pinsrb): Likewise.
* i386-tbl.h: Regenerated.

17 years agobfd:
Joseph Myers [Thu, 1 Nov 2007 11:45:20 +0000 (11:45 +0000)]
bfd:
* merge.c (sec_merge_hash_lookup): Add parameter sec_end.  Check
for unterminated strings.  All callers changed.
(record_section): Add parameter abfd.  Give error message for
unterminated strings.
(_bfd_merge_sections): Update call to record_section.
(_bfd_write_merged_section, _bfd_merged_section_offset): Handle
NULL secinfo from merge failures.

ld/testsuite:
* ld-elf/merge3.d, ld-elf/merge3.s: New.

17 years agoFrom Cary Coutant: More support for -shared, including fixes to GOT
Ian Lance Taylor [Thu, 1 Nov 2007 00:19:30 +0000 (00:19 +0000)]
From Cary Coutant: More support for -shared, including fixes to GOT
handling.

17 years ago*** empty log message ***
gdbadmin [Thu, 1 Nov 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

17 years ago * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
Ulrich Weigand [Wed, 31 Oct 2007 23:45:10 +0000 (23:45 +0000)]
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
find_solib_trampoline_target if PC is not in .plt section.

17 years ago2007-10-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 31 Oct 2007 23:41:12 +0000 (23:41 +0000)]
2007-10-31  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (USE_REG_TABLE): Defined as the previous one + 1.
(USE_REG_TABLE): Likewise.
(USE_MOD_TABLE): Likewise.
(USE_RM_TABLE): Likewise.
(USE_PREFIX_TABLE): Likewise.
(USE_X86_64_TABLE): Likewise.
(USE_3BYTE_TABLE): Likewise.

17 years agodaily update
Alan Modra [Wed, 31 Oct 2007 23:00:05 +0000 (23:00 +0000)]
daily update

17 years ago * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
Joel Brobecker [Wed, 31 Oct 2007 21:39:14 +0000 (21:39 +0000)]
    * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.

17 years ago * elfread.c (elf_symtab_read): When constructing a solib trampoline
Ulrich Weigand [Wed, 31 Oct 2007 19:09:14 +0000 (19:09 +0000)]
* elfread.c (elf_symtab_read): When constructing a solib trampoline
minimal symbol from an undefined dynamic symbol, use proper section.

17 years agomerge from gcc
DJ Delorie [Wed, 31 Oct 2007 18:37:19 +0000 (18:37 +0000)]
merge from gcc

17 years ago2007-10-31 Eric B. Weddington <eweddington@cso.atmel.com>
Eric B. Weddington [Wed, 31 Oct 2007 18:11:28 +0000 (18:11 +0000)]
2007-10-31  Eric B. Weddington  <eweddington@cso.atmel.com>

* config/tc-avr.c (mcu_types): Remove devices that were never produced:
attiny10, atmega83, atmega85, atmega603.
* doc/c-avr.texi: Likewise.

17 years agoAdd cast to avoid compile time warning
Nick Clifton [Wed, 31 Oct 2007 17:13:53 +0000 (17:13 +0000)]
Add cast to avoid compile time warning

17 years ago* dwarf.c (is_relocatable): Remove definition.
Nick Clifton [Wed, 31 Oct 2007 16:09:53 +0000 (16:09 +0000)]
* dwarf.c (is_relocatable): Remove definition.
  (display_debug_frames): Remove check in is_relocatable.
* dwarf.h (is_relocatable): Remove declaration.
* objdump.c (is_relocatable): New static definition.
* readelf.c (dump_relocations): Make the function void.
  (is_32bit_abs_reloc): Add support for x86, Arc, Arm, D10V, Dlx, OR32 and Score.
  (is_32bit_pcrel_reloc): Add support for x86 and Arm.
  (is_16bit_abs_reloc): Add support for D10V.
  (debug_apply_rela_addends): Rename to debug_apply_relocations.
  Add code to support rel relocations.
  (load_debug_section): Fix call to debug_apply_relocations.
  (get_file_header): Remove setting of is_relocatable.
* gas/cfi/cfi-common-6.d: Allow for possible relocation of the .debug.eh_frame section.

17 years ago2007-10-31 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Wed, 31 Oct 2007 14:15:49 +0000 (14:15 +0000)]
2007-10-31  Markus Deuling  <deuling@de.ibm.com>

* arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
to get at the current architecture by regcache.

17 years ago* elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for align
Nick Clifton [Wed, 31 Oct 2007 11:33:27 +0000 (11:33 +0000)]
* elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for align
  relocs when there are no relocs attached to the section.

17 years ago * readelf.c (debug_apply_rela_addends): Clarify FIXME.
Alan Modra [Wed, 31 Oct 2007 07:40:11 +0000 (07:40 +0000)]
* readelf.c (debug_apply_rela_addends): Clarify FIXME.

17 years ago * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
Alan Modra [Wed, 31 Oct 2007 07:36:46 +0000 (07:36 +0000)]
* elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
* elflink.c (bfd_elf_match_symbols_in_sections): Make static.
Remove section name comparisons.

17 years ago*** empty log message ***
gdbadmin [Wed, 31 Oct 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

17 years agodaily update
Alan Modra [Tue, 30 Oct 2007 23:00:06 +0000 (23:00 +0000)]
daily update

17 years ago * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
Ulrich Weigand [Tue, 30 Oct 2007 22:29:06 +0000 (22:29 +0000)]
* gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
provide DFP support.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 22:00:29 +0000 (22:00 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* libunwind-frame.c (libunwind_frame_sniffer)
libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
(libunwind_frame_cache): Use get_frame_arch to get at the current
architecture by frame_info.
(libunwind_get_reg_special): Replace current_gdbarch by gdbarch.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:59:43 +0000 (21:59 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
at the current architecture by frame_info.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:58:58 +0000 (21:58 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* inf-child.c (inf_child_fetch_inferior_registers): Use
get_regcache_arch to get at the current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:58:01 +0000 (21:58 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* inf-ptrace.c (inf_ptrace_fetch_registers)
(inf_ptrace_fetch_register, inf_ptrace_store_register)
(inf_ptrace_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:57:04 +0000 (21:57 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* hpux-thread.c (hpux_thread_fetch_registers)
(hpux_thread_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:56:12 +0000 (21:56 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
current architecture by frame_info.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:54:06 +0000 (21:54 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* go32-nat.c (fetch_register, go32_fetch_registers, store_register)
(go32_store_registers): Use get_regcache_arch to get at the current
architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:53:18 +0000 (21:53 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:52:26 +0000 (21:52 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
to get at the current architecture by frame_info.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:51:34 +0000 (21:51 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:50:46 +0000 (21:50 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
the current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:46:25 +0000 (21:46 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* corelow.c (get_core_registers): Use get_regcache_arch to get at the
current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:45:17 +0000 (21:45 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* bsd-uthread.c (bsd_uthread_fetch_registers)
(bsd_uthread_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.

17 years ago2007-10-30 Markus Deuling <deuling@de.ibm.com>
Ulrich Weigand [Tue, 30 Oct 2007 21:44:20 +0000 (21:44 +0000)]
2007-10-30  Markus Deuling  <deuling@de.ibm.com>

* avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
get_frame_arch to get at the current architecture by frame_info.