binutils-gdb.git
14 years ago*** empty log message ***
gdbadmin [Mon, 9 Aug 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago*** empty log message ***
gdbadmin [Sun, 8 Aug 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 8 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Sat, 7 Aug 2010 15:00:39 +0000 (15:00 +0000)]
gdb/
* defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
(make_cleanup_restore_page_info)
(set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
* gdbcmd.h (execute_command_to_string): New declaration.
* python/python.c (struct restore_ui_file_closure, restore_ui_file)
(make_cleanup_restore_ui_file): Move to utils.c
(execute_gdb_command) <to_string>: Move ...
* top.c (execute_command_to_string): ... here.  Call
set_batch_flag_and_make_cleanup_restore_page_info.
* utils.c (make_cleanup_restore_integer): New source file blank line.
(make_cleanup_restore_uinteger): New.
(struct restore_ui_file_closure, do_restore_ui_file)
(make_cleanup_restore_ui_file): Move here from python/python.c.
(init_page_info) <batch_flag>
(do_restore_page_info_cleanup, make_cleanup_restore_page_info)
(set_batch_flag_and_make_cleanup_restore_page_info): New.

gdb/testsuite/
* gdb.python/python.exp (show height, set height 10)
(verify pagination beforehand, verify pagination beforehand: q)
(gdb.execute does not page, verify pagination afterwards)
(verify pagination afterwards: q): New.

gdb/doc/
* gdb.texinfo (Mode Options) <-batch>
(Basic Python) <gdb.execute>: Describe setting width and height.

14 years agodaily update
Alan Modra [Sat, 7 Aug 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 7 Aug 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoRe-indent config/tc-i386.c.
H.J. Lu [Fri, 6 Aug 2010 19:47:00 +0000 (19:47 +0000)]
Re-indent config/tc-i386.c.

2010-08-06  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (set_cpu_arch): Re-indent.
(md_parse_option): Likewise.

14 years ago * thread.c (add_thread_silent): Use null_ptid instead of
Pedro Alves [Fri, 6 Aug 2010 19:45:58 +0000 (19:45 +0000)]
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.

14 years ago * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
Corinna Vinschen [Fri, 6 Aug 2010 19:02:15 +0000 (19:02 +0000)]
* dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
Throughout, call read_encoded_value with ptr_size rather than addr_size.
(decode_frame_entry_1): Remove redundant setting of
addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
on examined frame section.  Add comment to explain why.
* gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
comment to explain usage.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.

* xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.

14 years agoDon't generate multi-byte NOPs for i686.
H.J. Lu [Fri, 6 Aug 2010 18:22:50 +0000 (18:22 +0000)]
Don't generate multi-byte NOPs for i686.

gas/

2010-08-06  Quentin Neill <quentin.neill@amd.com>

* config/tc-i386.c (arch_entry): Add negated bit to
  disambiguate flag names starting with "no".
  (cpu_arch): Add negated bit definitions.  Add
  ".nop" CPU extension.
  (i386_align_code): Use new .cpunop bit to decide
  when to generate alignment using nops.
  (set_cpu_arch): Use negated bit instead to decide
  when to use cpu_flags or vs. cpu_flags_and_not.
  (md_parse_option): Likewise.

gas/testsuite/

2010-08-06  Quentin Neill <quentin.neill@amd.com>

* gas/i386/arch-10-1.l: Add nopl instruction.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/arch-10.s: Likewise.
* gas/i386/arch-10.d: Add nopl instruction, and +nopl extension
flag to as flags.
* gas/i386/nops-5-i686.d: Change alignment code generated for
-mtune=i686.
* gas/i386/nops-5.d: Change alignment code generated for
.arch i686.
* gas/i386/x86-64-nops-5-k8.d: Likewise.
* gas/i386/x86-64-nops-5.d: Likewise.

opcodes/

2010-08-06  Quentin Neill <quentin.neill@amd.com>

* i386-gen.c (cpu_flag_init): Define CpuNop extension flag, add
to processor flags for PENTIUMPRO processors and later.
* i386-opc.h (enum): Add CpuNop.
(i386_cpu_flags): Add cpunop bit.
* i386-opc.tbl: Change nop cpu_flags.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

14 years agoFix typos in comments in i386-opc.h.
H.J. Lu [Fri, 6 Aug 2010 16:33:43 +0000 (16:33 +0000)]
Fix typos in comments in i386-opc.h.

2010-08-06  Quentin Neill <quentin.neill@amd.com>

* i386-opc.h (enum): Fix typos in comments.

14 years agogdb/
Jan Kratochvil [Fri, 6 Aug 2010 14:17:56 +0000 (14:17 +0000)]
gdb/
Code cleanup.
* varobj.c (varobj_create): Move variables fi, old_fi and block to
a more inner block.

14 years ago * disassemble.c: Formatting.
Alan Modra [Fri, 6 Aug 2010 03:59:49 +0000 (03:59 +0000)]
* disassemble.c: Formatting.
(disassemble_init_for_target <ARCH_m32c>): Comment on endian.

14 years ago PR ld/11887
Alan Modra [Fri, 6 Aug 2010 01:51:17 +0000 (01:51 +0000)]
PR ld/11887
* ldlang.c (lang_add_vers_depend): Don't leave version_needed
uninitialised.

14 years agoAdd Cpu186 to ud1/ud2/ud2a/ud2b.
H.J. Lu [Fri, 6 Aug 2010 01:03:17 +0000 (01:03 +0000)]
Add Cpu186 to ud1/ud2/ud2a/ud2b.

2010-08-05  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Add Cpu186 to ud1/ud2/ud2a/ud2b.
* i386-tbl.h: Regenerated.

14 years agoAdd ud1 to x86.
H.J. Lu [Fri, 6 Aug 2010 00:52:57 +0000 (00:52 +0000)]
Add ud1 to x86.

gas/testsuite/

2010-08-05  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run arch-4.

* gas/i386/arch-4.d: New.
* gas/i386/arch-4.s: Likewise.

* gas/i386/intel.d: Replace ud2a/ud2b with ud2/ud1.
* gas/i386/opcode-intel.d: Likewise.
* gas/i386/opcode-suffix.d: Likewise.
* gas/i386/opcode.d: Likewise.

opcodes/

2010-08-05  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (dis386_twobyte): Replace ud2a/ud2b with ud2/ud1.

* i386-opc.tbl: Add ud1.  Remove Cpu686 from ud2/ud2a/ud2b.
* i386-tbl.h: Regenerated.

14 years agodaily update
Alan Modra [Fri, 6 Aug 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Fri, 6 Aug 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
Pedro Alves [Thu, 5 Aug 2010 16:19:25 +0000 (16:19 +0000)]
* configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
(hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
(microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
(sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
linux-tdep.o to gdb_target_obs.

14 years ago* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.
Marc Khouzam [Thu, 5 Aug 2010 15:42:06 +0000 (15:42 +0000)]
* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.

14 years ago * ld-powerpc/tocopt.s, * ld-powerpc/tocopt.d: New test.
Alan Modra [Thu, 5 Aug 2010 14:38:10 +0000 (14:38 +0000)]
* ld-powerpc/tocopt.s, * ld-powerpc/tocopt.d: New test.
* ld-powerpc/powerpc.exp: Run it.

14 years ago * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
Alan Modra [Thu, 5 Aug 2010 14:37:30 +0000 (14:37 +0000)]
* elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
(ppc64_elf_relocate_section): Nop out high part insn of large toc
code sequence when the high part of offset is zero.

14 years ago2010-08-05 Hui Zhu <teawater@gmail.com>
Hui Zhu [Thu, 5 Aug 2010 03:03:36 +0000 (03:03 +0000)]
2010-08-05  Hui Zhu  <teawater@gmail.com>

* mips-linux-tdep.c(regset.h): New include.
(mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
mips_linux_regset_from_core_section): New functions.
(fetch_core_registers, regset_core_fns): Deleted.
(mips_linux_init_abi): Add mips_linux_regset_from_core_section.
Deleted regset_core_fns.
* mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
tdep->gregset64, tdep->fpregset and tdep->fpregset64.
* mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
and fpregset64.

14 years ago*** empty log message ***
gdbadmin [Thu, 5 Aug 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 5 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoMove the first i.error out of the loop.
H.J. Lu [Wed, 4 Aug 2010 20:52:20 +0000 (20:52 +0000)]
Move the first i.error out of the loop.

2010-08-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Move the first i.error
out of the loop.

14 years ago * s390-tdep.c: Include linux-tdep.h.
Pedro Alves [Wed, 4 Aug 2010 20:40:57 +0000 (20:40 +0000)]
* s390-tdep.c: Include linux-tdep.h.
(s390_gdbarch_init): Call linux_init_abi.

14 years ago * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
Pedro Alves [Wed, 4 Aug 2010 15:27:57 +0000 (15:27 +0000)]
* corelow.c (core_pid_to_str): Default to using normal_pid_to_str
instead of printing "Thread" here.
* linux-tdep.c: Include inferior.h.
(linux_core_pid_to_str): New.
(linux_init_abi): New.
* linux-tdep.h (linux_init_abi): Declare.
* alpha-linux-tdep.c: Include linux-tdep.h.
(alpha_linux_init_abi): Call linux_init_abi.
* amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
* arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
* frv-linux-tdep.c: Include linux-tdep.h
(frv_linux_init_abi): Call linux_init_abi.
* hppa-linux-tdep.c: Include linux-tdep.h
(hppa_linux_init_abi): Call linux_init_abi.
* i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
* ia64-linux-tdep.c: Include linux-tdep.h.
(ia64_linux_init_abi): Call linux_init_abi.
* m32r-linux-tdep.c: Include linux-tdep.h.
(m32r_linux_init_abi): Call linux_init_abi.
* m68klinux-tdep.c: Include linux-tdep.h.
(m68k_linux_init_abi): Call linux_init_abi.
* microblaze-linux-tdep.c: Include linux-tdep.h.
(microblaze_linux_init_abi): Call linux_init_abi.
* mips-linux-tdep.c: Include linux-tdep.h.
(mips_linux_init_abi): Call linux_init_abi.
* mn10300-linux-tdep.c: Include linux-tdep.h.
(am33_linux_init_osabi): Call linux_init_abi.  Rename the
'gdbinfo' parameter to 'info'.
* ppc-linux-tdep.c: Include linux-tdep.h.
(ppc_linux_init_abi): Call linux_init_abi.
* sh-linux-tdep.c: Include linux-tdep.h.
(sh_linux_init_abi): Call linux_init_abi.
* sparc-linux-tdep.c: Include linux-tdep.h.
(sparc32_linux_init_abi): Call linux_init_abi.
* sparc64-linux-tdep.c: Include linux-tdep.h.
(sparc64_linux_init_abi): Call linux_init_abi.
* xtensa-linux-tdep.c: Include linux-tdep.h.
(xtensa_linux_init_abi): Call linux_init_abi.
* i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
(i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
callback.

14 years agoAdd a missing chunk.
Tristan Gingold [Wed, 4 Aug 2010 11:55:20 +0000 (11:55 +0000)]
Add a missing chunk.

14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 10:45:51 +0000 (10:45 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
(alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
Clear the SEC_RELOC flag.

14 years agoFix tipo in comment.
Ian Lance Taylor [Wed, 4 Aug 2010 10:45:05 +0000 (10:45 +0000)]
Fix tipo in comment.

14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 10:22:14 +0000 (10:22 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
sections with relocs.
(alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
(alpha_vms_add_fixup_ca): Ditto.
(alpha_vms_add_fixup_qr): Ditto.
Add comments.

14 years agoelfcpp:/
Ian Lance Taylor [Wed, 4 Aug 2010 09:53:38 +0000 (09:53 +0000)]
elfcpp:/
* i386.h (R_386_IRELATIVE): Define.
* powerpc.h (R_POWERPC_IRELATIVE): Define.
(R_PPC_RELAX32, R_PPC_RELAX32PC): Don't define.
(R_PPC_RELAX32_PLT, R_PPC_RELAX32PC_PLT): Don't define.
* sparc.h (R_SPARC_IRELATIVE): Define.
* x86_64.h (R_X86_64_IRELATIVE): Define.
(R_X86_64_GNU_VTINHERIT): Rename from R_386_GNU_VTINHERIT.
(R_X86_64_GNU_VTENTRY): Rename from R_386_GNU_VTENTRY.
gold:/
* x86_64.cc (Target_x86_64::Scan::local): Use
R_X86_64_GNU_VTINHERIT instead of R_386_GNU_VTINHERIT and
R_X86_64_GNU_VTENTRY instead of R_386_GNU_VTENTRY.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate): Likewise.
(Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
Likewise.

14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 08:44:07 +0000 (08:44 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
CODE sections writable.

14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 08:20:57 +0000 (08:20 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
(alpha_vms_add_fixup_lr): ... this for consistency.
(alpha_vms_add_qw_fixup): Removed.
Fix some comments.
(vms_get_symbol_info): Adjust type for unknown sections.

14 years ago2010-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Aug 2010 07:50:40 +0000 (07:50 +0000)]
2010-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
section for any absolute section.  Remove some debugging code.

14 years ago * configure.tgt (m32c): Set endian=little.
Alan Modra [Wed, 4 Aug 2010 04:21:06 +0000 (04:21 +0000)]
* configure.tgt (m32c): Set endian=little.
* config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
* config/tc-m32c.c (md_number_to_chars): Revert last change.

14 years ago* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
DJ Delorie [Wed, 4 Aug 2010 03:42:45 +0000 (03:42 +0000)]
* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.

14 years ago*** empty log message ***
gdbadmin [Wed, 4 Aug 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 4 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoAdd missing entry to previous checkin.
Doug Evans [Tue, 3 Aug 2010 22:39:06 +0000 (22:39 +0000)]
Add missing entry to previous checkin.
(bfd_lookup_symbol): Remove unnecessary forward decl.

14 years ago * breakpoint.c (bpdisp_text): Constify bpdisps.
Doug Evans [Tue, 3 Aug 2010 22:35:41 +0000 (22:35 +0000)]
* breakpoint.c (bpdisp_text): Constify bpdisps.
* solib-svr4.c (solib_break_names): Constify.
(bkpt_names, main_name_list): Constify.
(match_main): Constify soname arg.
(bfd_lookup_symbol): Constify symname arg.
(enable_break): Constify bkpt_namep.
* symtab.c (search_symbols): Constify types, types2, types3, types4.
(symtab_symbol_info): Constify classnames.

14 years ago * merge.cc (Output_merge_string::do_add_input_section): Count strings
Cary Coutant [Tue, 3 Aug 2010 20:38:09 +0000 (20:38 +0000)]
* merge.cc (Output_merge_string::do_add_input_section): Count strings
to reserve space in merged_strings vector. Keep total input size
for stats.
(Output_merge_string::do_print_merge_stats): Print total input size.
* merge.h (Output_merge_string): Add input_size_ field.
* stringpool.cc (Stringpool_template::string_length): Move
implementations out of Stringpool_template class and place in
stringpool.h.
* stringpool.h (string_length): Move out of Stringpool_template.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 15:18:51 +0000 (15:18 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-misc.c (vms_convert_to_var): Make it static.
(_bfd_vms_convert_to_var_unix_filename): Make it public.

14 years ago PR 11712
Ian Lance Taylor [Tue, 3 Aug 2010 15:05:05 +0000 (15:05 +0000)]
PR 11712
* layout.cc (relaxation_loop_body): If address of load segment is
set, adjust address to include headers if possible.

14 years ago * version.cc (version_string): Bump to 1.10.
Ian Lance Taylor [Tue, 3 Aug 2010 14:29:27 +0000 (14:29 +0000)]
* version.cc (version_string): Bump to 1.10.

14 years agobfd/
Tristan Gingold [Tue, 3 Aug 2010 14:29:00 +0000 (14:29 +0000)]
bfd/
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Update list.

gas/
Index: gas/ChangeLog
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Add Add compress-debug.c.

14 years ago2010-08-03 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Tue, 3 Aug 2010 14:07:13 +0000 (14:07 +0000)]
2010-08-03  Ian Lance Taylor  <iant@google.com>

PR 11805
* layout.h (enum Output_section_order): Define.
(class Layout): Update declarations.
* layout.cc (Layout::get_output_section): Add order parameter.
Remove is_interp, is_dynamic_linker_section, is_last_relro, and
is_first_non_relro parameters.  Change all callers.
(Layout::choose_output_section): Likewise.
(Layout::add_output_section_data): Likewise.
(Layout::make_output_section): Likewise.  Set order.
(Layout::default_section_order): New function.
(Layout::layout_eh_frame): Call add_output_section_to_nonload.
* output.cc (Output_section::Output_section): Initialize order_.
Don't initialize deleted fields.
(Output_segment::Output_segment): Don't initialize deleted
fields.
(Output_segment::add_output_section_to_load): New function
replacing add_output_section.  Change all callers to call this or
add_output_section_to_nonload.
(Output_segment::add_output_section_to_nonload): New function.
(Output_segment::remove_output_section): Rewrite.
(Output_segment::add_initial_output_data): Likewise.
(Output_segment::has_any_data_sections): Likewise.
(Output_segment::is_first_section_relro): Likewise.
(Output_segment::maximum_alignment): Likewise.
(Output_segment::has_dynamic_reloc): New function replacing
dynamic_reloc_count.  Change all callers.
(Output_segment::has_dynamic_reloc_list): New function replacing
dynamic_reloc_count_list.  Change all callers.
(Output_segment::set_section_addresses): Rewrite.
(Output_segment::set_offset): Rewrite.
(Output_segment::find_first_and_last_list): Remove.
(Output_segment::set_tls_offsets): Rewrite.
(Output_segment::first_section_load_address): Likewise.
(Output_segment::output_section_count): Likewise.
(Output_segment::section_with_lowest_load_address): Likewise.
(Output_segment::write_section_headers): Likewise.
(Output_segment::print_sections_to_map): Likewise.
* output.h (class Output_data): Remove dynamic_reloc_count_
field.  Add has_dynamic_reloc_ field.  Make bools into bitfields.
(Output_data::add_dynamic_reloc): Rewrite.
(Output_data::has_dynamic_reloc): New function.
(Output_data::dynamic_reloc_count): Remove.
(class Output_section): Add order_ field.  Remvoe is_relro_local_,
is_last_relro_, is_first_non_relro_, is_interp_,
is_dynamic_linker_section_ fields.  Add order and set_order
functions.  Remove is_relro_local, set_is_relro_local,
is_last_relro, set_is_last_relro, is_first_non_relro,
set_is_first_non_relro functions, is_interp, set_is_interp,
is_dynamic_linker_section, and set_is_dynamic_linker_section
functions.
(class Output_segment): Change Output_data_list from std::list to
std:;vector.  Add output_lists_ field.  Remove output_data_ and
output_bss_ fields.  Update declarations.

14 years ago * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
Alan Modra [Tue, 3 Aug 2010 10:53:10 +0000 (10:53 +0000)]
* config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
* config/tc-m32c.c (md_number_to_chars): Call bigendian
form of number_to_chars, not littleendian.

14 years ago * gas/all/octa.s, * gas/all/octa.d: New test.
Alan Modra [Tue, 3 Aug 2010 10:30:52 +0000 (10:30 +0000)]
* gas/all/octa.s, * gas/all/octa.d: New test.
* gas/all/gas.exp: Run octa.
* gas/elf/data-1.s, * gas/elf/data-1.d: Delete.
* gas/elf/elf.exp: Don't run data-1.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 10:24:18 +0000 (10:24 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* dwarf.c (display_debug_lines): Mark file argument unused.
Do not try to load .debug_info section.

14 years ago2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Tue, 3 Aug 2010 09:38:16 +0000 (09:38 +0000)]
2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>

* NEWS: Document Python value inferior function calls.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 09:26:30 +0000 (09:26 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 09:21:09 +0000 (09:21 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (evax_section_flags): Fix flags for absolute
section.  Remove useless parenthesis.

14 years ago2010-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Aug 2010 08:49:01 +0000 (08:49 +0000)]
2010-08-03  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
(vms_lib_bread, vms_lib_bopen): Adjust.

14 years ago * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
Doug Evans [Tue, 3 Aug 2010 00:51:29 +0000 (00:51 +0000)]
* dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.

14 years ago*** empty log message ***
gdbadmin [Tue, 3 Aug 2010 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 3 Aug 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago * gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
Doug Evans [Mon, 2 Aug 2010 23:41:19 +0000 (23:41 +0000)]
* gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
because of an older gcc, change test2
"print ::C::OtherFileClass::cOtherFileClassVar" from unresolved
to unsupported.

14 years agoRun data-1 only for i*86, x86_64 and ia64.
H.J. Lu [Mon, 2 Aug 2010 22:05:23 +0000 (22:05 +0000)]
Run data-1 only for i*86, x86_64 and ia64.

2010-08-02  H.J. Lu  <hongjiu.lu@intel.com>

* elf/elf.exp: Run data-1 only for i*86, x86_64 and ia64.

14 years ago * arm.cc (Target_arm::gc_process_relocs): Use typename.
Ian Lance Taylor [Mon, 2 Aug 2010 20:44:31 +0000 (20:44 +0000)]
* arm.cc (Target_arm::gc_process_relocs): Use typename.
* powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
* sparc.cc (Target_sparc::gc_process_relocs): Likewise.

14 years agoAdd a testcase for PR gas/11867.
H.J. Lu [Mon, 2 Aug 2010 20:10:45 +0000 (20:10 +0000)]
Add a testcase for PR gas/11867.

2010-08-02  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11867
* gas/elf/data-1.d: New.
* gas/elf/data-1.s: Likewise.

* elf/elf.exp: Run data-1.

14 years ago * gdb.base/break-always.exp: Do not expect full paths to file
Kazu Hirata [Mon, 2 Aug 2010 15:07:14 +0000 (15:07 +0000)]
* gdb.base/break-always.exp: Do not expect full paths to file
names.
* gdb.base/commands.exp: Likewise.

14 years ago * config/tc-d30v.c (d30v_cons_align): Don't align constants
Alan Modra [Mon, 2 Aug 2010 13:53:29 +0000 (13:53 +0000)]
* config/tc-d30v.c (d30v_cons_align): Don't align constants
in debug sections.

14 years ago * readelf.c (apply_relocations): D30V is really REL.
Alan Modra [Mon, 2 Aug 2010 13:52:49 +0000 (13:52 +0000)]
* readelf.c (apply_relocations): D30V is really REL.

14 years ago PR 11855
Ian Lance Taylor [Mon, 2 Aug 2010 13:34:33 +0000 (13:34 +0000)]
PR 11855
* script.cc (Script_options::Script_options): Initialize
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_assignment): Update
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_reference): New function.
(script_symbol): New function.
* script.h (class Script_options): Add symbol_definitions_ and
symbol_references_ fields.
(Script_options::referenced_const_iterator): New type.
(Script_options::referenced_begin): New function.
(Script_options::referenced_end): New function.
(Script_options::is_referenced): New function.
(Script_options::any_unreferenced): New function.
* script-c.h (script_symbol): Declare.
* yyscript.y (exp): Call script_symbol.
* symtab.cc: Include "script.h".
(Symbol_table::gc_mark_undef_symbols): Add layout parameter.
Change all callers.  Check symbols referenced by scripts.
(Symbol_table::add_undefined_symbols_from_command_line): Add
layout parameter.  Change all callers.
(Symbol_table::do_add_undefined_symbols_from_command_line):
Likewise.  Break out loop body.  Check symbols referenced by
scripts.
(Symbol_table::add_undefined_symbol_from_command_line): New
function broken out of
do_add_undefined_symbols_from_command_line.
* symtab.h (class Symbol_table): Update declarations.
* archive.cc: Include "layout.h".
(Archive::should_include_member): Add layout parameter.  Change
all callers.  Check for symbol mentioned in expression.
* archive.h (class Archive): Update declaration.
* object.cc (Sized_relobj::do_should_include_member): Add layout
parameter.
* object.h (Object::should_include_member): Add layout parameter.
Change all callers.
(Object::do_should_include_member): Add layout parameter.
(class Sized_relobj): Update declaration.
* dynobj.cc (Sized_dynobj::do_should_include_member): Add layout
parameter.
* dynobj.h (class Sized_dynobj): Update declaration.
* plugin.cc (Sized_pluginobj::do_should_include_member): Add
layout parameter.
* plugin.h (class Sized_pluginobj): Update declaration.

14 years ago PR gas/11867
Alan Modra [Mon, 2 Aug 2010 13:19:44 +0000 (13:19 +0000)]
PR gas/11867
* expr.c (operand <'-' and '~'>): Widen bignums.
(operand <'!'>): Correct bignum result and convert to O_constant.
* read.c (emit_expr): Don't assert on .byte bignum.  Don't display
bignum truncated warning for sign extended bignums.

14 years ago PR 11866
Ian Lance Taylor [Mon, 2 Aug 2010 11:59:11 +0000 (11:59 +0000)]
PR 11866
* output.cc (Output_segment::set_offset): Search for the first and
last sections rather than assuming that the list is in order.
(Output_segment::find_first_and_last_list): New function.
* output.h (class Output_segment): Update declarations.
* testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test.
(relro_strip_test_SOURCES): New variable.
(relro_strip_test_DEPENDENCIES): New variable.
(relro_strip_test_LDFLAGS): New variable.
(relro_strip_test_LDADD): New variable.
(relro_strip_test.so): New target.

14 years ago PR 11866
Alan Modra [Mon, 2 Aug 2010 10:08:02 +0000 (10:08 +0000)]
PR 11866
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
calculate off_adjust rather than first section vma.

14 years ago * i386.cc (class Target_i386): Add got_tlsdesc_ field.
Ian Lance Taylor [Mon, 2 Aug 2010 10:07:03 +0000 (10:07 +0000)]
* i386.cc (class Target_i386): Add got_tlsdesc_ field.
(Target_i386::Target_i386):: Initialize got_tlsdesc_.
(Target_i386::got_tlsdesc_section): New function.
(Target_i386::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_i386::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
* x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field.
(Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_.
(Target_x86_64::got_tlsdesc_section): New function.
(Target_x86_64::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.

14 years ago2010-08-02 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 2 Aug 2010 08:48:57 +0000 (08:48 +0000)]
2010-08-02  Tristan Gingold  <gingold@adacore.com>

* lib/gas-defs.exp (get_standard_section_names): New function.
(run_dump_tests): Document the new behavior for objdump,
document to new section-subst option.  Automatically perform
substitutions for objdump.
(objdump_finish): Add REF_SUBST argument.
(run_list_test): Adjust call of regexp_diff.
(run_list_test_stdin): Ditto.
* gas/all/gas.exp (test_cond): Adjust call of regexp_diff.
* gas/symver/symver.exp (run_error_test): Ditto.
* gas/mt/relocs.exp (regexp_test): Ditto.
* gas/mep/complex-relocs.exp (regexp_test): Ditto.
* gas/m68k/all.exp: Ditto.
* gas/elf/elf.exp (run_elf_list_test): Ditto.
* gas/rx/rx-asm-good.d: Set section-subst to no.

14 years ago * config/tc-v850.c (md_assemble): Always pass format string to
Alan Modra [Mon, 2 Aug 2010 08:43:18 +0000 (08:43 +0000)]
* config/tc-v850.c (md_assemble): Always pass format string to
as_warn.
(md_apply_fix): Similarly for as_warn_where.

14 years ago * gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.
Alan Modra [Mon, 2 Aug 2010 08:38:45 +0000 (08:38 +0000)]
* gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.
(dw2-compress-2, x86-64-dw2-compress-2): Remove unnecessary linux
target test.

14 years agoUpdate for ppc_fix_adjustable change.
Alan Modra [Mon, 2 Aug 2010 08:22:53 +0000 (08:22 +0000)]
Update for ppc_fix_adjustable change.

14 years ago * testsuite/final_layout.sh: Use dc to convert from hex to
Ian Lance Taylor [Mon, 2 Aug 2010 07:41:04 +0000 (07:41 +0000)]
* testsuite/final_layout.sh: Use dc to convert from hex to
decimal.

14 years ago*** empty log message ***
gdbadmin [Mon, 2 Aug 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 2 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

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

14 years agodaily update
Alan Modra [Sun, 1 Aug 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Sat, 31 Jul 2010 15:34:41 +0000 (15:34 +0000)]
2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>

       * linux-thread-db.c (libthread_db_debug): New variable.
       (thread_db_find_new_threads_silently): Control verbosity with it.
       (try_thread_db_load_1, try_thread_db_load): Likewise.
       (find_new_threads_once): Likewise.
       (_initialize_thread_db): Set/show it.

doc/ChangeLog
2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>

       * gdb.texinfo (Threads): Document 'debug libthread-db'.

14 years ago * Makefile.in (signals_h): New.
Pedro Alves [Sat, 31 Jul 2010 07:58:48 +0000 (07:58 +0000)]
* Makefile.in (signals_h): New.
(server_h): Depend on it.
(server.o): Don't depend on $(signals_def).
(signals.o): Depend on $(signals_def).

14 years agogdb/
Jan Kratochvil [Sat, 31 Jul 2010 04:17:44 +0000 (04:17 +0000)]
gdb/
* common/signals.c (signals): Move the content to signals.def.
Include it.  Remove the INDENT comments.

gdb/gdbserver/
* Makefile.in (signals_def): New.
(server_h): Append include/gdb/signals.h and signals_def.
(server.o): Append signals_def.

include/gdb/
* signals.h (enum target_signal): Move the content to signals.def.
Include it.
* signals.def: New file.

14 years agodaily update
Alan Modra [Sat, 31 Jul 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 31 Jul 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agogdb
Tom Tromey [Fri, 30 Jul 2010 20:46:34 +0000 (20:46 +0000)]
gdb
* Makefile.in (install-only): Install gdb-add-index.
* gdb-add-index.sh: New file.
gdb/doc
* gdb.texinfo (Index Files): Mention gdb-add-index.

14 years ago * gdb.cp/temargs.exp: For new tests that require newer gccs,
Doug Evans [Fri, 30 Jul 2010 20:12:00 +0000 (20:12 +0000)]
* gdb.cp/temargs.exp: For new tests that require newer gccs,
xfail them when run with older gccs.

14 years ago * lib/gdb.exp (build_executable): Forward "c++" option to
Doug Evans [Fri, 30 Jul 2010 19:59:42 +0000 (19:59 +0000)]
* lib/gdb.exp (build_executable): Forward "c++" option to
get_compiler_info.

14 years agogdb/
Cheng Renquan [Fri, 30 Jul 2010 19:11:27 +0000 (19:11 +0000)]
gdb/
* MAINTAINERS: Add myself for write after approval privileges.

14 years ago * gdb.python/py-type.exp (test_template): Mark as xfail tests
Doug Evans [Fri, 30 Jul 2010 18:46:27 +0000 (18:46 +0000)]
* gdb.python/py-type.exp (test_template): Mark as xfail tests
"python print ttype.template_argument(1)" and
"python print isinstance(ttype.template_argument(1), gdb.Value)"
if using gcc 4.4 or earlier.

14 years ago * gdb.base/valgrind-db-attach.exp: Use unique test name for
Doug Evans [Fri, 30 Jul 2010 17:28:07 +0000 (17:28 +0000)]
* gdb.base/valgrind-db-attach.exp: Use unique test name for
attach-to-debugger handling.

14 years agoAdd ATTRIBUTE_UNUSED to info in compute_bucket_count.
H.J. Lu [Fri, 30 Jul 2010 16:29:58 +0000 (16:29 +0000)]
Add ATTRIBUTE_UNUSED to info in compute_bucket_count.

2010-07-30  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.

14 years agogdb/
Jan Kratochvil [Fri, 30 Jul 2010 16:04:30 +0000 (16:04 +0000)]
gdb/
* symfile.c (addr_section_name): New function.
(addrs_section_compar): Use it.
(addr_info_make_relative): Use it.  Move variable sect_name into a more
inner block.  Make ".dynbss" and ".sdynbss" checks more strict.

gdb/testsuite/
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
* gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables.
(main): Use copyreloc.
* gdb.base/prelink.exp (split debug of executable)
(.dynbss vs. .bss address shift): New tests.

14 years ago * configure: Rebuild.
Tom Tromey [Fri, 30 Jul 2010 15:59:41 +0000 (15:59 +0000)]
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.

14 years ago2010-07-30 Hui Zhu <teawater@gmail.com>
Hui Zhu [Fri, 30 Jul 2010 14:32:02 +0000 (14:32 +0000)]
2010-07-30  Hui Zhu  <teawater@gmail.com>

* gdb.texinfo (Inferiors and Programs): Update the introduce of
"detach inferior" and "kill inferior".

14 years agoAdd moxie-rtems support
Anthony Green [Fri, 30 Jul 2010 07:32:18 +0000 (07:32 +0000)]
Add moxie-rtems support

14 years ago*** empty log message ***
gdbadmin [Fri, 30 Jul 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 30 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
Pedro Alves [Thu, 29 Jul 2010 23:19:46 +0000 (23:19 +0000)]
* gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
in gdb_test_multiple.

14 years agoReformat config/tc-i386-intel.c.
H.J. Lu [Thu, 29 Jul 2010 19:23:38 +0000 (19:23 +0000)]
Reformat config/tc-i386-intel.c.

2010-07-29  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386-intel.c: Reformat.

14 years ago * arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
Sriraman Tallam [Thu, 29 Jul 2010 18:57:28 +0000 (18:57 +0000)]
* arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* i386.cc (Target_i386<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* x86_64.cc (Target_x86_64<big_endian>::gc_process_relocs): Add template
parameter to the call to gold::gc_process_relocs.
* powerpc.cc (Target_powerpc<big_endian>::gc_process_relocs): Add
template parameter to the call to gold::gc_process_relocs.
* sparc.cc (Target_sparc<big_endian>::gc_process_relocs): Add template
paramter to the call to gold::gc_process_relocs.
* gc.h (get_embedded_addend_size): New function.
(gc_process_relocs): Save the size of the reloc for use by ICF.
* icf.cc (get_section_contents): Get the addend from the text section
for SHT_REL relocation sections.
* icf.h (Icf::Reloc_addend_size_info): New typedef.
(Icf::Reloc_info): Add new member reloc_addend_size_info.
* int_encoding.h (read_from_pointer): New overloaded function.
* testsuite/Makefile.am (icf_sht_rel_addend_test): New test.
* testsuite/icf_sht_rel_addend_test.sh: New file.
* testsuite/icf_sht_rel_addend_test_1.cc: New file.
* testsuite/icf_sht_rel_addend_test_2.cc: New file.