platform/upstream/binutils.git
14 years ago * gdbtypes.c (arch_flags_type): Fix comment.
Doug Evans [Thu, 14 Jan 2010 18:58:57 +0000 (18:58 +0000)]
* gdbtypes.c (arch_flags_type): Fix comment.
* gdbtypes.h (arch_composite_type): Fix comment.

14 years agoAdd names_mm, names_xmm and names_ymm.
H.J. Lu [Thu, 14 Jan 2010 17:29:18 +0000 (17:29 +0000)]
Add names_mm, names_xmm and names_ymm.

2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (names_mm): New.
(intel_names_mm): Likewise.
(att_names_mm): Likewise.
(names_xmm): Likewise.
(intel_names_xmm): Likewise.
(att_names_xmm): Likewise.
(names_ymm): Likewise.
(intel_names_ymm): Likewise.
(att_names_ymm): Likewise.
(print_insn): Set names_mm, names_xmm and names_ymm.
(OP_MMX): Use names_mm, names_xmm and names_ymm.
(OP_XMM): Likewise.
(OP_EM): Likewise.
(OP_EMC): Likewise.
(OP_MXC): Likewise.
(OP_EX): Likewise.
(XMM_Fixup): Likewise.
(OP_VEX): Likewise.
(OP_EX_VexReg): Likewise.
(OP_Vex_2src): Likewise.
(OP_Vex_2src_1): Likewise.
(OP_Vex_2src_2): Likewise.
(OP_REG_VexI4): Likewise.

14 years agoRemove argument name.
H.J. Lu [Thu, 14 Jan 2010 15:18:42 +0000 (15:18 +0000)]
Remove argument name.

2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* ia64.h (ia64_find_opcode): Remove argument name.
(ia64_find_next_opcode): Likewise.
(ia64_dis_opcode): Likewise.
(ia64_free_opcode): Likewise.
(ia64_find_dependency): Likewise.

14 years agoSupport 64bit targets.
H.J. Lu [Thu, 14 Jan 2010 14:29:51 +0000 (14:29 +0000)]
Support 64bit targets.

2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/orphan4.d: Support 64bit targets.

14 years ago2009-01-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 14 Jan 2010 12:47:44 +0000 (12:47 +0000)]
2009-01-14  Tristan Gingold  <gingold@adacore.com>

* machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
to symbol_file_add_from_bfd.  Add OSO as separate objfile.
(macho_oso_symfile): Add symfile_flags parameter.  Pass it to
macho_add_oso_symfile.
(macho_symfile_read): Pass symfile_flags to macho_oso_symfile.

14 years agoTru64: Dead threads are never deleted.
Joel Brobecker [Thu, 14 Jan 2010 09:26:50 +0000 (09:26 +0000)]
Tru64: Dead threads are never deleted.

        * dec-thread.c (dec_thread_ptid_is_alive): New function.
        (dec_thread_count_gdb_threads): Fix counter increment.
        (dec_thread_add_gdb_thread): Fix *listp increment.
        (resync_thread_list): Fix bug in deletion of dead threads that
        caused all threads to be deleted, instead of just the dead ones.

14 years ago2010-01-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 14 Jan 2010 09:19:56 +0000 (09:19 +0000)]
2010-01-14  Tristan Gingold  <gingold@adacore.com>

* dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
and DW_AT_GNAT_descriptive_type.

14 years ago2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 14 Jan 2010 08:03:37 +0000 (08:03 +0000)]
2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>

PR python/10705

* python/python-internal.h: Add lazy_string_object_type
definition.
(create_lazy_string_object, gdbpy_initialize_lazy_string)
(gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
* python/py-value.c (valpy_lazy_string): New function.
(convert_value_from_python): Add lazy string conversion.
* python/py-prettyprint.c (pretty_print_one_value): Check if
return is also a lazy string.
(print_string_repr): Add lazy string printing branch.
(print_children): Likewise.
* python/py-lazy-string.c: New file. Implement lazy strings.
* python/python.c (_initialize_python): Call
gdbpy_initialize_lazy_string.
* varobj.c (value_get_print_value): Add lazy string printing
branch.  Account for encoding.
* c-lang.c (c_printstr): Account for new encoding argument.  If
encoding is NULL, find encoding suited for type, otherwise use
user encoding.
* language.h (language_defn): Add encoding argument.
(LA_PRINT_STRING): Likewise.
* language.c (unk_lang_printstr): Update to reflect new encoding
argument to language_defn.
* ada-lang.h (ada_printstr): Likewise.
* c-lang.h (c_printstr): Likewise.
* p-lang.h (pascal_printstr);
* f-lang.c (f_printstr): Likewise.
* m2-lang.c (m2_printstr): Likewise.
* objc-lang.c (objc_printstr): Likewise.
* p-lang.c (pascal_printstr): Likewise.
* scm-lang.c (scm_printstr): Likewise.
* c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
encoding argument.
* ada-valprint.c (ada_printstr): Likewise.
* f-valprint.c (f_val_print): Likewise
* m2-valprint.c (m2_val_print): Likewise.
* p-valprint.c (pascal_val_print): Likewise.
* expprint.c (print_subexp_standard): Likewise.
* valprint.c (val_print_string): Likewise.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-lazy-string.o): New rule.

2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Values From Inferior): Document lazy_string value
method.
(Python API): Add Lazy strings menu item.
(Lazy Strings In Python): New node.

2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-value.exp (test_lazy_strings): Add lazy string test.
* gdb.python/py-prettyprint.py (pp_ls): New printer.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add lazy string
test.
* gdb.python/py-prettyprint.c: Define lazystring test structure.
* gdb.python/py-mi.exp: Add lazy string test.

14 years agoWildcard the file offset.
DJ Delorie [Thu, 14 Jan 2010 06:55:46 +0000 (06:55 +0000)]
Wildcard the file offset.

14 years ago* emultempl/elf32.em (_place_orphan): If an input section doesn't
DJ Delorie [Thu, 14 Jan 2010 04:56:12 +0000 (04:56 +0000)]
* emultempl/elf32.em (_place_orphan): If an input section doesn't
match an existing output section, but an unused output section
statement does match, use it.
* emultempl/pe.em (_place_orphan): Likewise.
* emultempl/pep.em (_place_orphan): Likewise.

* ld-elf/orphan4.d: New.
* ld-elf/orphan4.ld: New.
* ld-elf/orphan4.s: New.

14 years ago * config/bfin-aux.h: Remove argument names in function
Jie Zhang [Thu, 14 Jan 2010 04:52:57 +0000 (04:52 +0000)]
* config/bfin-aux.h: Remove argument names in function
declarations.
* config/bfin-lex.l (parse_int): Fix shadowed variable name
warning.
* config/bfin-parse.y (value_match): Remove argument names
in declaration.
(notethat): Likewise.
(yyerror): Likewise.

14 years ago2010-01-13 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 14 Jan 2010 02:42:20 +0000 (02:42 +0000)]
2010-01-13  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::section_needs_reloc_stub_scanning,
Arm_relobj::scan_sections_for_stubs): Rearrange code to avoid an
apparent compiler problem of not folding static constant integral
data members of elfcpp::Elf_sizes<32>.

14 years ago*** empty log message ***
gdbadmin [Thu, 14 Jan 2010 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 13 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago2010-01-13 Chao-ying Fu <fu@mips.com>
Chao-ying Fu [Wed, 13 Jan 2010 22:34:28 +0000 (22:34 +0000)]
2010-01-13  Chao-ying Fu  <fu@mips.com>

* ld-mips-elf/jr-to-b-1.d, ld-mips-elf/jr-to-b-2.d: New tests.
* ld-mips-elf/jr-to-b-1.s, ld-mips-elf/jr-to-b-2.s: Source.
* ld-mips-elf/mips-elf.exp: Run new tests.

14 years ago2010-01-13 Chao-ying Fu <fu@mips.com>
Chao-ying Fu [Wed, 13 Jan 2010 22:30:53 +0000 (22:30 +0000)]
2010-01-13  Chao-ying Fu  <fu@mips.com>

* elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
It is true for all CPUs.
(jal_reloc_p): New function.
(mips_elf_calculate_relocation): Rename require_jalxp to
cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Set up cross_mode_jump_p based on the mode change.
(mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
Use !cross_mode_jump_p to guard conversion.
Convert "jr t9" to "b", if possible.
(_bfd_mips_elf_relocate_section): Rename require_jalx to
cross_mode_jump_p.
Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
Pass cross_mode_jump_p to call mips_elf_perform_relocation.

14 years ago2010-01-13 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 13 Jan 2010 21:36:47 +0000 (21:36 +0000)]
2010-01-13  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::section_needs_reloc_stub_scanning,
Arm_relobj::section_needs_cortex_a8_stub_scanning,
Arm_relobj::scan_section_for_cortex_a8_erratum,
Arm_relobj::scan_span_for_cortex_a8_erratum): New methods.
(Arm_relobj::scan_sections_for_stubs): Move code deciding what
sections to scan for relocation stubs into a new method
Arm_relobj::section_needs_reloc_stub_scanning.  Handle both
relocation and Cortex-A8 stub scanning.
(Target_arm::do_relax): Force stubs to be after stubbed sections
if fixing the Cortex-A8 erratum.  Remove all Cortex-A8 stubs at
the beginning of a new relaxation pass.  Update a comment.
(Target_arm::scan_span_for_cortex_a8_erratum): New method definition.

14 years agoI forgot to commit this.
Ian Lance Taylor [Wed, 13 Jan 2010 21:14:47 +0000 (21:14 +0000)]
I forgot to commit this.

14 years ago gas/testsuite/
Daniel Jacobowitz [Wed, 13 Jan 2010 19:07:31 +0000 (19:07 +0000)]
gas/testsuite/
* gas/arm/thumb-nop.s: Add .syntax unified.

14 years ago gas/
Daniel Jacobowitz [Wed, 13 Jan 2010 19:01:10 +0000 (19:01 +0000)]
gas/
* config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.

gas/testsuite/
* gas/arm/thumb-nop.d, gas/arm/thumb-nop.s: New test.
* gas/arm/relax_branch_align.d: Expect a default NOP instruction.
* gas/arm/vfp1_t2.d, gas/arm/vfp1xD_t2.d: Specify a CPU with
Thumb-2.

ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): Assemble Cortex-A8 tests with
-mcpu=cortex-a8.

14 years agoUpdate comments
H.J. Lu [Wed, 13 Jan 2010 16:06:12 +0000 (16:06 +0000)]
Update comments

2010-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (print_insn): Update comments.

14 years ago * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
Nick Clifton [Wed, 13 Jan 2010 14:34:13 +0000 (14:34 +0000)]
    * cpu-m32c.c (m32c_scan): New function.  Ensures that a scan for
        "m32c" returns the m32c arch_info_struct and not the m16c
        arch_info_struct.
        (arch_info_struct): Use the new scan function.
        (bfd_m32c_arch): Likewise.

14 years ago * config/tc-h8300.c (h8300_elf_section): New function - issue a
Nick Clifton [Wed, 13 Jan 2010 14:08:54 +0000 (14:08 +0000)]
    * config/tc-h8300.c (h8300_elf_section): New function - issue a
        warning message if a new section is created without setting any
        attributes for it.
        (md_pseudo_table): Intercept section creation pseudos.
        (md_pcrel_from): Replace abort with an error message.
        * config/obj-elf.c (obj_elf_section_name): Export this function.
        * config/obj-elf.h (obj_elf_section_name): Prototype.

        * gas/elf/section0.d: Skip this test for the h8300.
        * gas/elf/section1.d: Likewise.
        * gas/elf/section6.d: Likewise.
        * gas/elf/elf.exp: Skip section2 and section5 tests when the
        target is the h8300.

        * ld-scrips/sort.exp: Skip these tests when the target is the
        h8300.

14 years agoAdd period to sentence in comment.
Anthony Green [Wed, 13 Jan 2010 14:08:36 +0000 (14:08 +0000)]
Add period to sentence in comment.

14 years ago2010-01-13 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 13 Jan 2010 11:49:36 +0000 (11:49 +0000)]
2010-01-13  Tristan Gingold  <gingold@adacore.com>

* config.bfd: Remove duplicated target vector for i386-*-darwin.
Appends new arch instead of overriding.
Use mach_o_x86_64_vec for x86_64-*-darwin.
* configure.in: Add mach_o_x86_64_vec.
* configure: Regenerate.
* targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
* Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
(BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
* Makefile.in: Regenerate.
* mach-o-x86-64.c: New file.

14 years ago2010-01-13 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 13 Jan 2010 11:35:19 +0000 (11:35 +0000)]
2010-01-13  Tristan Gingold  <gingold@adacore.com>

* reloc.c: Add MACH_O_X86_64 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

14 years ago2010-01-13 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 13 Jan 2010 11:15:52 +0000 (11:15 +0000)]
2010-01-13  Tristan Gingold  <gingold@adacore.com>

* ar.c (main): Use lbasename.
(normalize): Ditto.
* objdump.c (update_source_path): Ditto.

14 years agoAdd new DW_AT_use_GNAT_descriptive_type CU attribute.
Joel Brobecker [Wed, 13 Jan 2010 11:09:31 +0000 (11:09 +0000)]
Add new DW_AT_use_GNAT_descriptive_type CU attribute.

        * dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.

14 years ago2010-01-13 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 13 Jan 2010 08:48:26 +0000 (08:48 +0000)]
2010-01-13  Tristan Gingold  <gingold@adacore.com>

* archive.c (normalize): Use lbasename.
(bfd_bsd_truncate_arname): Ditto.
(bfd_gnu_truncate_arname): Ditto.

14 years agoInitialize SIM_DESC properly.
Anthony Green [Wed, 13 Jan 2010 08:28:26 +0000 (08:28 +0000)]
Initialize SIM_DESC properly.

14 years ago2010-01-12 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 13 Jan 2010 06:44:01 +0000 (06:44 +0000)]
2010-01-12  Doug Kwan  <dougkwan@google.com>

* arm.cc (Cortex_a8_reloc): New class.
(Target_arm::Target_arm): Initialize new data members fix_cortex_a8_
and cortex_a8_relocs_info_.
(Target_arm::fix_cortex_a8): New method definition.
(Target_arm::Cortex_a8_relocs_info): New type.
(Target_arm::fix_cortex_a8_, Target_arm::cortex_a8_relocs_info_):
New data member declarations.
(Target_arm::scan_reloc_for_stub): Record information about
relocations for THUMB branches that might be exempted from the
Cortex-A8 workaround.
(Target_arm::do_relax): Clear all Cortex-A8 relocation information
at the beginning of a relaxation pass.

14 years agoadd missing file
Vladimir Prus [Wed, 13 Jan 2010 05:20:49 +0000 (05:20 +0000)]
add missing file

14 years agoRemove rex_original
H.J. Lu [Wed, 13 Jan 2010 04:03:20 +0000 (04:03 +0000)]
Remove rex_original

2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (rex_original): Removed.
(ckprefix): Remove rex_original.
(print_insn): Update comments.

14 years ago2010-01-12 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 13 Jan 2010 02:00:39 +0000 (02:00 +0000)]
2010-01-12  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::mapping_symbols_info_): New data member.
(Arm_relobj::Mapping_symbol_position,
 Arm_reloj::Mapping_symbol_position_less,
 Arm_relobj::Mapping_symbols_info): New types.
(Target_arm::is_mapping_symbol_name): New method definition.
(Arm_relobj::do_count_local_symbols): Save information about mapping
symbols.

14 years ago*** empty log message ***
gdbadmin [Wed, 13 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agotweak previous entry to keep chronology right
Doug Evans [Tue, 12 Jan 2010 23:07:37 +0000 (23:07 +0000)]
tweak previous entry to keep chronology right
(different timezones made the day off by one)

14 years ago * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
Doug Evans [Tue, 12 Jan 2010 23:05:52 +0000 (23:05 +0000)]
* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
uninitialized" warning from gcc on local `tree'.

14 years agodaily update
Alan Modra [Tue, 12 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago Implement core awareness.
Vladimir Prus [Tue, 12 Jan 2010 21:40:25 +0000 (21:40 +0000)]
Implement core awareness.

* bcache.c (compare_ints): Remove
(print_percentage): Use compare_positive_ints.
* defs.h (compare_positive_ints): Declare.
* linux-nat.h (struct lin_lwp): New field core.
(linux_nat_core_of_thread_1): Declare.
* linux-nat.c (add_lwp): Init the 'core' field.
(linux_nat_wait_1): Record the core.
(linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
(linux_nat_add_target): Register the above.
* linux-thread-db.c (update_thread_core): New.
(thread_db_find_new_threads): Update core information for
every thread.
* remote.c (struct private_thread_info): New.
(free_private_thread_info, demand_private_info): New.
(PACKET_qXfer_threads, use_osdata_threads): New.
(struct thread_item, threads_parsing_context
(start_thread, end_thread, thread_attributes)
(thread_children, threads_children, threads_elements): New.
(remote_threads_info): Try qXfer:threads before anything
else.
(remote_protocol_packets): Register qXfer:threads.
(remote_open_1): Init use_osdata_threads.
(struct stop_reply): New field 'core'.
(remote_parse_stop_reply): Parse core number.
(process_stop_reply): Record core number.
(remote_xfer_partial): Handle qXfer:threads.
(remote_core_of_thread): New.
(init_remote_ops): Register remote_core_of_thread.
(_initialize_remote): Register qXfer:read.
* target.c (target_core_of_thread): New
* target.h (enum target_object): New value TARGET_OBJECT_THREADS.
(struct target_ops): New field to_core_of_threads.
(target_core_of_thread): Declare.
* gdbthread.h (struct thread_info): New field private_dtor.
* thread.c (print_thread_info): Report the core.
* ui-out.c (MAX_UI_OUT_LEVELS): Increase.
* utils.c (compare_positive_ints): New.
* features/threads.dtd: New.
* mi/mi-interp.c (mi_on_normal_stop): Report the core.
* mi/mi-main.c (struct collect_cores_data, collect_cores)
(do_nothing, free_vector_of_osdata_items)
(splay_tree_int_comparator, free_splay_tree): New.
(print_one_inferior_data): Implemented printing of selected
inferiors.  Collect and print cores.
(output_cores): New.
(mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
thread groups together with --available.

14 years ago * target-reloc.h (visibility_error): New inline function.
Ian Lance Taylor [Tue, 12 Jan 2010 19:12:40 +0000 (19:12 +0000)]
* target-reloc.h (visibility_error): New inline function.
(relocate_section): Call visibility_error.
* testsuite/Makefile.am (check_DATA): Add protected_3.err.
(MOSTLYCLEANFILES): Likewise.
(protected_4_pic.o, protected_3.err): New targets.
* testsuite/protected_4.cc: New file.

14 years agogdb/
Jan Kratochvil [Tue, 12 Jan 2010 12:22:52 +0000 (12:22 +0000)]
gdb/
* configure: Regenerate (for _STRUCTURED_PROC).

14 years agobfd/
Tristan Gingold [Tue, 12 Jan 2010 10:16:50 +0000 (10:16 +0000)]
bfd/
2010-01-12  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (CFLAGS): Turns warnings into informational messages.

binutils/
2010-01-12  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (CFLAGS): Turns warnings into informational messages.

14 years agoDelete dead function.
Joel Brobecker [Tue, 12 Jan 2010 08:50:44 +0000 (08:50 +0000)]
Delete dead function.

        * ada-lang.c (extract_string): Delete.  No longer used.

14 years ago2010-01-11 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 12 Jan 2010 07:54:37 +0000 (07:54 +0000)]
2010-01-11  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relocate_functions::thumb32_branch_offset,
Arm_relocate_functions::thumb32_branch_upper,
Arm_relocate_functions::thumb32_branch_lower,
Arm_relocate_functions::thumb32_cond_branch_offset,
Arm_relocate_functions::thumb32_cond_branch_upper,
Arm_relocate_functions::thumb32_cond_branch_lower,
Arm_relocate_functions::thm_jump19): New methods to handle THUMB
branch offset encoding.
(Arm_relocate_functions::thumb_branch_common): Use new branch
offset encoding methods to avoid code duplication.
(Stub_template::Stub_template) Handle THUMB16_SPECIAL_TYPE.
(Stub_addend_reader::operator()): Use new branch encoding method
to avoid code duplication.

14 years agoFix -Wunused warning in dec-thread.c.
Joel Brobecker [Tue, 12 Jan 2010 07:51:09 +0000 (07:51 +0000)]
Fix -Wunused warning in dec-thread.c.

        * dec-thread.c (dec_thread_count_gdb_threads)
        (dec_thread_add_gdb_thread): Prevent -Wunused warning.

14 years ago * ada-valprint.c (ada_print_floating): Remove trailing space.
Joel Brobecker [Tue, 12 Jan 2010 07:45:51 +0000 (07:45 +0000)]
    * ada-valprint.c (ada_print_floating): Remove trailing space.

14 years ago2010-01-11 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 12 Jan 2010 07:22:56 +0000 (07:22 +0000)]
2010-01-11  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::do_gc_process_relocs): New method.
(Target_arm::do_finalize_sections): Define special EXIDX section
symbols only if referenced.
* gc.h (Garbage_collection::add_reference): New method.
(gc_process_relocs): Use Garbage_collection::add_reference to avoid
code duplication.

14 years ago * script.cc (Version_script_info::build_expression_list_lookup):
Ian Lance Taylor [Tue, 12 Jan 2010 06:52:58 +0000 (06:52 +0000)]
* script.cc (Version_script_info::build_expression_list_lookup):
Change complaing about duplicate wildcard match from error to
warning.

14 years ago * script.cc (class Lazy_demangler): Recreate--revert part of patch
Ian Lance Taylor [Tue, 12 Jan 2010 06:41:36 +0000 (06:41 +0000)]
* script.cc (class Lazy_demangler): Recreate--revert part of patch
of 2009-12-30.
(Version_script_info::Version_script_info): Initialize globs_,
default_version_, default_is_global_, and exact_.  Don't
initialize globals_ or locals_.
(Version_script_info::build_lookup_tables): Build local symbols
first.
(Version_script_info::unquote): New function.
(Version_script_info::add_exact_match): New function.
(Version_script_info::build_expression_list_lookup): Remove lookup
parameter.  Add is_global parameter.  Change all callers.  Handle
wildcard pattern specially.  Unquote pattern.  Call
add_exact_match.
(Version_script_info::get_name_to_match): New function.
(Version_script_info::get_symbol_version): New function.
(Version_script_info::get_symbol_version_helper): Remove.
(Version_script_info::check_unmatched_names): Call unquote.
* script.h (class Version_script_info): Change get_symbol_version
to be non-inline and add is_global parameter; change all callers.
Rewrite symbol_is_local.  Update declarations.  Define struct
Version_tree_match, Exact, Globs.  Don't define struct Lookup.
Remove globals_ and locals_ members.  Add exact_, globs_,
default_version_, is_global_.
(Version_script_info::Glob): Remove pattern, add expression and
is_global.  Update constructor.  Change all callers.
* dynobj.cc (Versions::finalize): Mark the version symbol as the
default version.
(Versions::symbol_section_contents): If a symbol is undefined, or
defined in a dynamic object, set the version index to
VER_NDX_LOCAL.
* symtab.cc (Symbol_table::add_from_relobj): Don't call
symbol_is_local.
(Symbol_table::add_from_pluginobj): Likewise.
* testsuite/ver_matching_test.sh: blaza1 and blaza go into V2.

14 years agogdb/ChangeLog:
Joel Brobecker [Tue, 12 Jan 2010 05:49:00 +0000 (05:49 +0000)]
gdb/ChangeLog:

        Add support for DW_AT_GNAT_descriptive_type.
        * gdbtypes.h (enum type_specific_kind): New enum.
        (struct main_type) [type_specific_field]: New component.
        [type_specific]: Add new component "gnat_stuff".
        (struct gnat_aux_type): New type.
        (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
        (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
        (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
        (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
        (TYPE_SPECIFIC_FIELD): New macros.
        (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
        type does not hold any cplus-specific data.
        (TYPE_RAW_CPLUS_SPECIFIC): New macro.
        (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
        (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
        cplus-specific data.
        * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
        Set new component TYPE_SPECIFIC_FIELD (type).
        (gnat_aux_default): New constant.
        (allocate_gnat_aux_type): New function.
        (init_type): Add initialization the type-specific stuff for
        TYPE_CODE_FLT and TYPE_CODE_FUNC types.
        (print_gnat_stuff): New function.
        (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
        specific data.  Adjust code that prints the contents of the
        type-specific union using the TYPE_SPECIFIC_FIELD value.
        * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
        the type cplus stuff for Ada types.
        (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
        Error out if these routines are called with an Ada type.
        (read_structure_type, read_array_type, read_subrange_type):
        Add call to set_descriptive_type.
        (set_die_type): Initialize the gnat-specific data if necessary.
        (need_gnat_info, die_descriptive_type, set_descriptive_type):
        New functions.
        * ada-lang.c (decode_constrained_packed_array_type): Use
        decode_constrained_packed_array_type instead of doing a standard
        lookup to locate a parallel type.
        (find_parallel_type_by_descriptive_type): New function.
        (ada_find_parallel_type_with_name): New function.
        (ada_find_parallel_type): Reimplement using
        ada_find_parallel_type_with_name.
        * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
        to check if type has a cplus stuff.
        * linespec.c (total_number_of_methods): Likewise.
        * mdebugread.c (new_type): Likewise.

gdb/testsuite/ChangeLog:

        * gdb.base/maint.exp: Adjust the expected output for the
        "maint print type" test. Use gdb_test_multiple instead of
        gdb_sent/gdb_expect.

14 years ago PR 11122
Alan Modra [Tue, 12 Jan 2010 01:10:55 +0000 (01:10 +0000)]
PR 11122
* listing.c (print_source): Add one to line number.

14 years ago * lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
Doug Evans [Tue, 12 Jan 2010 00:50:26 +0000 (00:50 +0000)]
* lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
from gdbserver_download.  All callers updated.

14 years ago * gdb.server/ext-run.exp: "info os processes" requires xml support.
Doug Evans [Tue, 12 Jan 2010 00:48:33 +0000 (00:48 +0000)]
* gdb.server/ext-run.exp: "info os processes" requires xml support.

14 years ago*** empty log message ***
gdbadmin [Tue, 12 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 11 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago2010-01-11 Doug Kwan <dougkwan@google.com>
Doug Kwan [Mon, 11 Jan 2010 19:38:22 +0000 (19:38 +0000)]
2010-01-11  Doug Kwan  <dougkwan@google.com>

* Makefile.am (incremental_dump_DEPENDENCIES): Add libintl dependency.
(incremental_dump_LDADD): Add linking option for libintl.
* Makefile.in: Regenerate.

14 years agogdb/
Jan Kratochvil [Mon, 11 Jan 2010 19:29:12 +0000 (19:29 +0000)]
gdb/
* NEWS: Document the 0b binary number prefix parsing.

14 years agomerge from gcc
DJ Delorie [Mon, 11 Jan 2010 19:12:47 +0000 (19:12 +0000)]
merge from gcc

14 years agoUse --dyn-syms instead of -Ds
H.J. Lu [Mon, 11 Jan 2010 18:34:48 +0000 (18:34 +0000)]
Use --dyn-syms instead of -Ds

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

PR gold/11144
* testsuite/Makefile.am (dynamic_list.stdout): Use --dyn-syms
instead of -Ds.
* testsuite/Makefile.in: Regenerated.

14 years agogdb/
Jan Kratochvil [Mon, 11 Jan 2010 18:15:05 +0000 (18:15 +0000)]
gdb/
* objfiles.c (objfile_relocate1): Change the return type to int.
Describe the new return value.  Return non-zero if data changed.
(objfile_relocate): New variable changed.  Set it.  Call
breakpoint_re_set depending on CHANGED.

14 years agogdb/
Jan Kratochvil [Mon, 11 Jan 2010 17:58:16 +0000 (17:58 +0000)]
gdb/
Implement binary numbers parsing.
* c-exp.y (parse_number): New case 'b' and 'B'.

gdb/testsuite/
Implement binary numbers parsing.
* gdb.base/printcmds.exp (test_integer_literals_accepted)
(test_integer_literals_rejected): New binary tests.

14 years agogdb/
Jan Kratochvil [Mon, 11 Jan 2010 16:30:10 +0000 (16:30 +0000)]
gdb/
* solib.c (info_sharedlibrary_command): Replace
objfile_has_partial_symbols and objfile_has_full_symbols calls by
objfile_has_symbols.

14 years ago2010-01-11 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 11 Jan 2010 15:57:59 +0000 (15:57 +0000)]
2010-01-11  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Add x86-64 relocation types.

14 years ago2010-01-11 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 11 Jan 2010 15:39:41 +0000 (15:39 +0000)]
2010-01-11  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
(bfd_mach_o_set_arch_mach): New function.
(bfd_mach_o_gen_mkobject): New function.
Set TARGET_ARCHITECTURE for the generic back-ends.
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
Check that TARGET_ARCHITECTURE is defined.
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.

14 years ago2010-01-11 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 11 Jan 2010 15:29:36 +0000 (15:29 +0000)]
2010-01-11  Tristan Gingold  <gingold@adacore.com>

        * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.

14 years agoAdd --dyn-syms to readelf
H.J. Lu [Mon, 11 Jan 2010 14:45:42 +0000 (14:45 +0000)]
Add --dyn-syms to readelf

binutils/

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

PR ld/11146
* NEWS: Mention --dyn-syms for readelf.

* readelf.c (do_dyn_syms): New.
(OPTION_DYN_SYMS): Likewise.
(options): Add "dyn-syms".
(usage): Add --dyn-syms.
(parse_args): Handle OPTION_DYN_SYMS.
(process_symbol_table): Handle do_dyn_syms.
(process_object): Likewise.
(process_archive): Likewise.

* doc/binutils.texi: Document --dyn-syms for readelf.  Mention
symbol hash tables for -D.

ld/testsuite/

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

PR ld/11146
* ld-elf/dynsym1.d: New.

14 years ago * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
Nick Clifton [Mon, 11 Jan 2010 14:19:40 +0000 (14:19 +0000)]
    * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
        handling of R_V850_HI16_S relocation.

14 years ago * NEWS: Mention addition of elfedit.
Nick Clifton [Mon, 11 Jan 2010 12:40:45 +0000 (12:40 +0000)]
    * NEWS: Mention addition of elfedit.

14 years ago* po/fi.po: Updated Finnish translation.
Nick Clifton [Mon, 11 Jan 2010 12:35:12 +0000 (12:35 +0000)]
* po/fi.po: Updated Finnish translation.

14 years ago PR 11103
Alan Modra [Mon, 11 Jan 2010 09:53:27 +0000 (09:53 +0000)]
PR 11103
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.

14 years agoupdate copyright date
Alan Modra [Mon, 11 Jan 2010 09:43:08 +0000 (09:43 +0000)]
update copyright date

14 years ago PR 6832
Alan Modra [Mon, 11 Jan 2010 08:36:19 +0000 (08:36 +0000)]
PR 6832
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
(find_abstract_instance_name): Use it.
(parse_comp_unit): Set it.

14 years ago2010-01-10 Doug Kwan <dougkwan@google.com>
Doug Kwan [Mon, 11 Jan 2010 07:39:36 +0000 (07:39 +0000)]
2010-01-10  Doug Kwan  <dougkwan@google.com>

* options.h (DEFINE_var): Use parentheses around argument varname__
in macro body to avoid any unintended subsequent substitutions.

14 years ago * resolve.cc (Symbol_table::resolve): Add symbols to list of ODR
Ian Lance Taylor [Mon, 11 Jan 2010 07:09:48 +0000 (07:09 +0000)]
* resolve.cc (Symbol_table::resolve): Add symbols to list of ODR
candidates before doing symbol resolution.

14 years ago * resolve.cc (Symbol_table::resolve): Add symbols to the list of
Ian Lance Taylor [Mon, 11 Jan 2010 05:44:04 +0000 (05:44 +0000)]
* resolve.cc (Symbol_table::resolve): Add symbols to the list of
ODR candidates if only one is weak.

14 years ago*** empty log message ***
gdbadmin [Mon, 11 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 10 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years agoDocument the improvements made to the mips-irix port.
Joel Brobecker [Sun, 10 Jan 2010 06:43:01 +0000 (06:43 +0000)]
Document the improvements made to the mips-irix port.

        * NEWS: Document the improvements made to the mips-irix port.

14 years agoReturn dgs.alc on success
H.J. Lu [Sun, 10 Jan 2010 01:19:02 +0000 (01:19 +0000)]
Return dgs.alc on success

2010-01-09  Ian Lance Taylor  <iant@google.com>

PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.

14 years ago*** empty log message ***
gdbadmin [Sun, 10 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 9 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years agoSync Libtool from GCC.
Ralf Wildenhues [Sat, 9 Jan 2010 21:11:44 +0000 (21:11 +0000)]
Sync Libtool from GCC.

/:
* libtool.m4: Sync from git Libtool.
* ltmain.sh: Likewise.
* ltoptions.m4: Likewise.
* ltversion.m4: Likewise.
* lt~obsolete.m4: Likewise.

sim/iq2000/:
* configure: Regenerate.

sim/d10v/:
* configure: Regenerate.

sim/m32r/:
* configure: Regenerate.

sim/frv/:
* configure: Regenerate.

sim/:
* avr/configure: Regenerate.
* cris/configure: Regenerate.
* microblaze/configure: Regenerate.

sim/h8300/:
* configure: Regenerate.

sim/mn10300/:
* configure: Regenerate.

sim/erc32/:
* configure: Regenerate.

sim/arm/:
* configure: Regenerate.

sim/m68hc11/:
* configure: Regenerate.

sim/lm32/:
* configure: Regenerate.

sim/sh64/:
* configure: Regenerate.

sim/v850/:
* configure: Regenerate.

sim/cr16/:
* configure: Regenerate.

sim/moxie/:
* configure: Regenerate.

sim/m32c/:
* configure: Regenerate.

sim/mips/:
* configure: Regenerate.

sim/mcore/:
* configure: Regenerate.

sim/sh/:
* configure: Regenerate.

gprof/:
* Makefile.in: Regenerate.
* configure: Regenerate.

opcodes/:
* Makefile.in: Regenerate.
* configure: Regenerate.

gas/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.

ld/:
* configure: Regenerate.

gdb/testsuite/:
* gdb.cell/configure: Regenerate.

binutils/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.

bfd/:
* Makefile.in: Regenerate.
* configure: Regenerate.

bfd/doc/:
* Makefile.in: Regenerate.

14 years agoFix the documentation of valprint.c:value_print.
Joel Brobecker [Sat, 9 Jan 2010 11:46:13 +0000 (11:46 +0000)]
Fix the documentation of valprint.c:value_print.

        * valprint.c (value_print): Update the function description to
        mention that the syntax of the output follows the current_language,
        not necessarily C.

14 years agogdb/
Jan Kratochvil [Sat, 9 Jan 2010 09:11:00 +0000 (09:11 +0000)]
gdb/
Fix displacement of separate debug info files.
* objfiles.c (objfile_relocate): Rename to ...
(objfile_relocate1): ... here and make it static.  Extend the comment.
(objfile_relocate): New function.
* solib-spu.c (spu_relocate_main_executable): Explicitly check if
SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
allocated using alloca.
* symfile.c (copy_section_addr_info): Remove.
(build_section_addr_info_from_objfile): Make it global.  New variables
addr_bit and mask, use them.
* symfile.h (build_section_addr_info_from_objfile): New prototype.
(copy_section_addr_info): Remove.

14 years ago * script.cc (Version_script_info::build_expression_list_lookup):
Ian Lance Taylor [Sat, 9 Jan 2010 05:49:57 +0000 (05:49 +0000)]
* script.cc (Version_script_info::build_expression_list_lookup):
Don't warn about ambiguous version, just record the ambiguity.
(Version_script_info::get_symbol_version_helper): Give error if
version is ambiguous.

14 years agoFix patch ownership in ChangeLog entry.
Joel Brobecker [Sat, 9 Jan 2010 05:03:34 +0000 (05:03 +0000)]
Fix patch ownership in ChangeLog entry.

14 years ago Signal unwinder for mips-irix N32.
Joel Brobecker [Sat, 9 Jan 2010 04:44:55 +0000 (04:44 +0000)]
    Signal unwinder for mips-irix N32.
        * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
        tramp-frame.h.
        (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
        (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
        (SIGCONTEXT_LO_OFF): New macros.
        (mips_irix_n32_tramp_frame_init): New function.
        (mips_irix_n32_tramp_frame): New static constant.
        (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.

14 years agoBreakpoint in shared library does not work on mips-irix.
Joel Brobecker [Sat, 9 Jan 2010 04:44:02 +0000 (04:44 +0000)]
Breakpoint in shared library does not work on mips-irix.

        * procfs.c: #include "observer.h".
        (procfs_inferior_created): New function, moving here the code
        which unsets the syssgi syscall-exit notifications.
        (procfs_create_inferior): Remove the code which unsets the syssgi
        syscall-exit notifications. It is too early to do this here.
        (_initialize_procfs): Attach the procfs_inferior_created observer.

14 years agoWrong return convention for arrays (mips-irix).
Joel Brobecker [Sat, 9 Jan 2010 04:42:54 +0000 (04:42 +0000)]
Wrong return convention for arrays (mips-irix).

        * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
        128 bits or smaller are returned the same way as structs
        and unions of the the same size.

14 years agoCannot set the PC on mips-irix.
Joel Brobecker [Sat, 9 Jan 2010 04:41:50 +0000 (04:41 +0000)]
Cannot set the PC on mips-irix.

        * irix5-nat.c (fill_gregset): Check regno against the raw PC
        register number, no the cooked one.

14 years agoError while loading core file on mips-irix.
Joel Brobecker [Sat, 9 Jan 2010 04:40:59 +0000 (04:40 +0000)]
Error while loading core file on mips-irix.

        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
        if debugging from a core file.

14 years agoGDB hangs when attaching to process on mips-irix.
Joel Brobecker [Sat, 9 Jan 2010 04:40:02 +0000 (04:40 +0000)]
GDB hangs when attaching to process on mips-irix.

        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
        attaching to a process.

14 years ago * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
Joel Brobecker [Sat, 9 Jan 2010 04:38:29 +0000 (04:38 +0000)]
    * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
        containing the correct breakpoint instruction to use on mips-irix.
        Use it when the osabi is GDB_OSABI_IRIX.

14 years ago-Wunused warning in procfs.c (mips-irix only).
Joel Brobecker [Sat, 9 Jan 2010 04:37:12 +0000 (04:37 +0000)]
-Wunused warning in procfs.c (mips-irix only).

        * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
        throughout instead of using praddset and prdelset respectively.

14 years agoGDB crash while stepping into function.
Joel Brobecker [Sat, 9 Jan 2010 04:36:00 +0000 (04:36 +0000)]
GDB crash while stepping into function.

        * infrun.c (handle_inferior_event): Refetch the current frame
        after handling what.main_action, in case that pointer became
        dangling.

14 years ago * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
Joel Brobecker [Sat, 9 Jan 2010 04:34:35 +0000 (04:34 +0000)]
    * ada-valprint.c, parse.c: Include defs.h before including ctype.h.

14 years ago * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
Joel Brobecker [Sat, 9 Jan 2010 04:32:52 +0000 (04:32 +0000)]
    * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.

14 years ago2010-01-08 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sat, 9 Jan 2010 01:55:14 +0000 (01:55 +0000)]
2010-01-08  Doug Kwan  <dougkwan@google.com>

* arm.cc (Stub_table::Stub_table): Initalize cortex_a8_stubs_,
  prev_data_size_ and prev_addralign_.  Remove initializer for
  deleted data member has_been_changed_.
  (Stub_table::empty): Look at both reloc_stubs_ and cortex_a8_stubs_
  to determine if the table is empty.
  (Stub_table::has_been_changed, Stub_table_set_has_been_changed):
  Remove.
  (Stub_table::add_reloc_stub): Define method in class definition
  instead of just declaring it there.
  (Stub_table::add_cortex_a8_stub): New method definition.
  (Stub_table::update_data_size_and_addralign): Ditto.
  (Stub_table::finalize_stubs): Ditto.
  (Stub_table::apply_cortex_a8_workaround_to_address_range): Ditto.
  (Stub_table::do_addralign_): Return address alignment in the
  (Stub_table::do_reset_address_and_file_offset): Define method in
  class definition instead of declaring it there.  Set current data
  size to be the data size of the previous pass.
  (Stub_table::set_final_data_size): Use current data size as the
  final data size.
  (Stub_table::relocate_stub): Change parameter type of stub from
  Reloc_stub pointer to Stub pointer.
  (Stub_table::addralign_, Stub_table::has_been_changed_): Remove.
  (Stub_table::Cortex_a8_stub_list): New typedef.
  (Stub_table::cortex_a8_stubs_, Stub_table::prev_data_size_,
   Stub_table::prev_addralign_): New data member.
  (Arm_relobj::Arm_relobj): Initialize data member
  section_has_cortex_a8_workaround_.
  (Arm_relobj::section_has_cortex_a8_workaround,
   Arm_relobj::mark_section_for_cortex_a8_workaround): New method
   definitions.
  (Arm_relobj::section_has_cortex_a8_workaround_): New data member
  declarations.
  (Target_arm::relocate_stub): Change parameter type of stub from
  Reloc_stub pointer to Stub pointer.
  (Insn_template::size, Insn_template::alignment): Handle
  THUMB16_SPECIAL_TYPE.
  (Stub_table::remove_all_cortex_a8_stubs, Stub_table::finalize_stubs,
   Stub_table::update_data_size_and_addralign,
   Stub_table::apply_cortex_a8_workaround_to_address_range): New method
  definitions.
    (Stub_table::relocate_stubs): Handle Cortex-A8 stubs.
  (Stub_table::do_write): Ditto.
  (Target_arm::do_relax): Adjust code for changes in Stub_table.

14 years agogdb/testsuite/
Jan Kratochvil [Sat, 9 Jan 2010 00:14:11 +0000 (00:14 +0000)]
gdb/testsuite/
* gdb.base/corefile.exp: Move the core finding block out and call it as
core_find, new variable $corefile, replace corefile by $corefile and
[file tail $corefile] for usage vs. test names resp.
* lib/gdb.exp (core_find): Move it as a new function here.  New
parameter binfile and deletefiles.  New variable $destcore.  Pre-delete
$destcore.  Return "" on error.

14 years ago PR 11108
Ian Lance Taylor [Sat, 9 Jan 2010 00:13:48 +0000 (00:13 +0000)]
PR 11108
* symtab.h (class Symbol): Remove fields is_target_special_ and
has_plt_offset_.  Add field is_defined_in_discarded_section_.
(Symbol::is_defined_in_discarded_section): New function.
(Symbol::set_is_defined_in_discarded_section): New function.
(Symbol::has_plt_offset): Rewrite.
(Symbol::set_plt_offset): Verify that new offset is not -1U.
* symtab.cc (Symbol::init_fields): Initialize plt_offset_ to -1U.
Don't initialize is_target_special_ or has_plt_offset_.
Initialize is_defined_in_discarded_section_.
(Symbol_table::add_from_relobj): If appropriate, set
is_defined_in_discarded_section.
* resolve.cc (Symbol::override_base_with_special): Don't test
is_target_special_.  Change has_plt_offset_ to has_plt_offset().
* target-reloc.h (relocate_section): Do special handling for
symbols defined in discarded sections for global symbols as well
as local symbols.