external/binutils.git
14 years agoelfcpp/ChangeLog:
Cary Coutant [Thu, 12 Aug 2010 22:15:00 +0000 (22:15 +0000)]
elfcpp/ChangeLog:

* elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_GOT_PLT.

gold/ChangeLog:

* arm.cc (Target_arm::got_size): Add const.
(Target_arm::got_entry_count): New function.
(Target_arm::plt_entry_count): New function.
(Target_arm::first_plt_entry_offset): New function.
(Target_arm::plt_entry_size): New function.
(Output_data_plt_arm::entry_count): New function.
(Output_data_plt_arm::first_plt_entry_offset): New function.
(Output_data_plt_arm::get_plt_entry_size): New function.
* i386.cc (Target_i386::got_size): Add const.
(Target_i386::got_entry_count): New function.
(Target_i386::plt_entry_count): New function.
(Target_i386::first_plt_entry_offset): New function.
(Target_i386::plt_entry_size): New function.
(Output_data_plt_i386::entry_count): New function.
(Output_data_plt_i386::first_plt_entry_offset): New function.
(Output_data_plt_i386::get_plt_entry_size): New function.
* incremental-dump.cc (dump_incremental_inputs): Adjust call to
find_incremental_inputs_sections.  Dump incremental_got_plt section.
* incremental.cc: Include target.h.
(Sized_incremental_binary::do_find_incremental_inputs_sections): Add
parameter.  Adjust all callers.  Find incremental_got_plt section.
(Incremental_inputs::create_data_sections): Create incremental_got_plt
section.
(Output_section_incremental_inputs::set_final_data_size): Calculate
size of incremental_got_plt section.
(Output_section_incremental_inputs::do_write): Write the
incremental_got_plt section.
(Got_plt_view_info): New struct.
(Local_got_offset_visitor): New class.
(Global_got_offset_visitor): New class.
(Global_symbol_visitor_got_plt): New class.
(Output_section_incremental_inputs::write_got_plt): New function.
* incremental.h (Incremental_binary::find_incremental_inputs_sections):
Add parameter.  Adjust all callers.
(Incremental_binary::do_find_incremental_inputs_sections): Likewise.
(Incremental_inputs::got_plt_section): New function.
(Incremental_inputs::got_plt_section_): New data member.
(Incremental_got_plt_reader): New class.
* layout.cc (Layout::create_incremental_info_sections): Add the
incremental_got_plt section.
* object.h (Got_offset_list::get_list): New function.
(Got offset_list::for_all_got_offsets): New function.
(Sized_relobj::local_got_offset_list): New function.
* powerpc.cc (Target_powerpc::got_size): Add const.
(Target_powerpc::got_entry_count): New function.
(Target_powerpc::plt_entry_count): New function.
(Target_powerpc::first_plt_entry_offset): New function.
(Target_powerpc::plt_entry_size): New function.
(Output_data_plt_powerpc::entry_count): New function.
(Output_data_plt_powerpc::first_plt_entry_offset): New function.
(Output_data_plt_powerpc::get_plt_entry_size): New function.
* sparc.cc (Target_sparc::got_size): Add const.
(Target_sparc::got_entry_count): New function.
(Target_sparc::plt_entry_count): New function.
(Target_sparc::first_plt_entry_offset): New function.
(Target_sparc::plt_entry_size): New function.
(Output_data_plt_sparc::entry_count): New function.
(Output_data_plt_sparc::first_plt_entry_offset): New function.
(Output_data_plt_sparc::get_plt_entry_size): New function.
* symtab.h (Symbol::got_offset_list): New function.
(Symbol_table::for_all_symbols): New function.
* target.h (Sized_target::got_entry_count): New function.
(Sized_target::plt_entry_count): New function.
(Sized_target::plt_entry_size): New function.
* x86_64.cc (Target_x86_64::got_size): Add const.
(Target_x86_64::got_entry_count): New function.
(Target_x86_64::plt_entry_count): New function.
(Target_x86_64::first_plt_entry_offset): New function.
(Target_x86_64::plt_entry_size): New function.
(Output_data_plt_x86_64::entry_count): New function.
(Output_data_plt_x86_64::first_plt_entry_offset): New function.
(Output_data_plt_x86_64::get_plt_entry_size): New function.

14 years agoelfcpp/ChangeLog:
Cary Coutant [Thu, 12 Aug 2010 22:01:11 +0000 (22:01 +0000)]
elfcpp/ChangeLog:

* elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_SYMTAB,
SHT_GNU_INCREMENTAL_RELOCS.

gold/ChangeLog:

* archive.cc: Include incremental.h.
(Archive::Archive): Initialize incremental_info_.
(Archive::include_member): Record archive members in incremental info.
(Add_archive_symbols::run): Record begin and end of an archive in
incremental info.
(Lib_group::include_member): Record objects in incremental info.
* archive.h (Incremental_archive_entry): Forward declaration.
(Archive::set_incremental_info): New member function.
(Archive::incremental_info): New member function.
(Archive::Unused_symbol_iterator): New class.
(Archive::unused_symbols_begin): New member function.
(Archive::unused_symbols_end): New member function.
(Archive::incremental_info_): New data member.
* incremental-dump.cc (find_input_containing_global): New function.
(dump_incremental_inputs): Dump new incremental info sections.
* incremental.cc: Include symtab.h.
(Output_section_incremental_inputs): New class.
(Sized_incremental_binary::do_find_incremental_inputs_sections): Support
new incremental info sections.
(Sized_incremental_binary::do_check_inputs): Likewise.
(Incremental_inputs::report_archive): Remove.
(Incremental_inputs::report_archive_begin): New function.
(Incremental_inputs::report_archive_end): New function.
(Incremental_inputs::report_object): New function.
(Incremental_inputs::finalize_inputs): Remove.
(Incremental_inputs::report_input_section): New function.
(Incremental_inputs::report_script): Rewrite.
(Incremental_inputs::finalize): Do nothing but finalize string table.
(Incremental_inputs::create_incremental_inputs_section_data): Remove.
(Incremental_inputs::sized_create_inputs_section_data): Remove.
(Incremental_inputs::create_data_sections): New function.
(Incremental_inputs::relocs_entsize): New function.
(Output_section_incremental_inputs::set_final_data_size): New function.
(Output_section_incremental_inputs::do_write): New function.
(Output_section_incremental_inputs::write_header): New function.
(Output_section_incremental_inputs::write_input_files): New function.
(Output_section_incremental_inputs::write_info_blocks): New function.
(Output_section_incremental_inputs::write_symtab): New function.
* incremental.h (Incremental_script_entry): Forward declaration.
(Incremental_object_entry): Forward declaration.
(Incremental_archive_entry): Forward declaration.
(Incremental_inputs): Forward declaration.
(Incremental_inputs_header_data): Remove.
(Incremental_inputs_header): Remove.
(Incremental_inputs_header_write): Remove.
(Incremental_inputs_entry_data): Remove.
(Incremental_inputs_entry): Remove.
(Incremental_inputs_entry_write): Remove.
(enum Incremental_input_type): Add INCREMENTAL_INPUT_ARCHIVE_MEMBER.
(Incremental_binary::find_incremental_inputs_sections): Add parameters.
(Incremental_binary::do_find_incremental_inputs_sections): Likewise.
(Sized_ncremental_binary::do_find_incremental_inputs_sections):
Likewise.
(Incremental_input_entry): New class.
(Incremental_script_entry): New class.
(Incremental_object_entry): New class.
(Incremental_archive_entry): New class.
(Incremental_inputs::Incremental_inputs): Initialize new data members.
(Incremental_inputs::report_inputs): Remove.
(Incremental_inputs::report_archive): Remove.
(Incremental_inputs::report_archive_begin): New function.
(Incremental_inputs::report_archive_end): New function.
(Incremental_inputs::report_object): Change prototype.
(Incremental_inputs::report_input_section): New function.
(Incremental_inputs::report_script): Change prototype.
(Incremental_inputs::get_reloc_count): New function.
(Incremental_inputs::set_reloc_count): New function.
(Incremental_inputs::create_data_sections): New function.
(Incremental_inputs::create_incremental_inputs_section_data): Remove.
(Incremental_inputs::inputs_section): New function.
(Incremental_inputs::symtab_section): New function.
(Incremental_inputs::relocs_section): New function.
(Incremental_inputs::get_stringpool): Add const.
(Incremental_inputs::command_line): Add const.
(Incremental_inputs::inputs): Remove.
(Incremental_inputs::command_line_key): New function.
(Incremental_inputs::input_file_count): New function.
(Incremental_inputs::input_files): New function.
(Incremental_inputs::relocs_entsize): New function.
(Incremental_inputs::sized_create_inputs_section_data): Remove.
(Incremental_inputs::finalize_inputs): Remove.
(Incremental_inputs::Input_info): Remove.
(Incremental_inputs::lock_): Remove.
(Incremental_inputs::inputs_): Change type.
(Incremental_inputs::inputs_map_): Remove.
(Incremental_inputs::current_object_entry_): New data member.
(Incremental_inputs::inputs_section_): New data member.
(Incremental_inputs::symtab_section_): New data member.
(Incremental_inputs::relocs_section_): New data member.
(Incremental_inputs::reloc_count_): New data member.
(Incremental_inputs_reader): New class.
(Incremental_symtab_reader): New class.
(Incremental_relocs_reader): New class.
* layout.cc (Layout::finalize): Move finalization of incremental info
and creation of incremental info sections to follow finalization of
symbol table.  Set offsets for postprocessing sections.
(Layout::create_incremental_info_sections): Call
Incremental_inputs::create_data_sections.  Add incremental symtab
and relocs sections.  Set sh_entsize and sh_link fields.  Arrange for
sections to layout after input sections.
* layout.h (struct Timespec): Forward declaration.
(Layout::incremental_inputs): Add const.
(Layout::create_incremental_info_sections): Add parameter.
* main.cc (main): Remove call to Incremental_inputs::report_inputs.
* object.cc: Include incremental.h.
(Relobj::finalize_incremental_relocs): New function.
(Sized_relobj::do_layout): Record input sections in incremental info.
* object.h (Object::output_section): New function.
(Object::output_section_offset): Moved from Relobj.
(Object::get_incremental_reloc_base): New function.
(Object::get_incremental_reloc_count): New function.
(Object::do_output_section): New function.
(Object::do_output_section_offset): Moved from Relobj.
(Object::do_get_incremental_reloc_base): New function.
(Object::do_get_incremental_reloc_count): New function.
(Object::Object): Initialize new data members.
(Relobj::output_section): Renamed do_output_section and moved to
protected.
(Relobj::output_section_offset): Moved to Object.
(Relobj::do_get_incremental_reloc_base): New function.
(Relobj::do_get_incremental_reloc_count): New function.
(Relobj::allocate_incremental_reloc_counts): New function.
(Relobj::count_incremental_reloc): New function.
(Relobj::finalize_incremental_relocs): New function.
(Relobj::next_incremental_reloc_index): New function.
(Relobj::reloc_counts_): New data member.
(Relobj::reloc_bases_): New data member.
(Sized_relobj::do_relocate_sections): Add parameter.  Change caller.
(Sized_relobj::relocate_sections): Add parameter.  Change all callers.
(Sized_relobj::incremental_relocs_scan): New function.
(Sized_relobj::incremental_relocs_scan_reltype): New function.
(Sized_relobj::incremental_relocs_write): New function.
(Sized_relobj::incremental_relocs_write_reltype): New function.
* plugin.cc (Plugin_manager::add_input_file): Rewrite test for
incremental link.
* readsyms.cc (Read_symbols::do_read_symbols): Move reporting of
archives and object files elsewhere.
(Add_symbols::run): Report object files here.
(Finish_group::run): Report end of archive at end of group.
* reloc.cc: Include layout.h, incremental.h.
(Sized_relobj::do_read_relocs): Need relocations for incremental link.
(Sized_relobj::do_scan_relocs): Record relocations for incremental link.
(Sized_relobj::incremental_relocs_scan): New function.
(Sized_relobj::incremental_relocs_scan_reltype): New function.
(Sized_relobj::do_relocate_sections): Write incremental relocations.
(Sized_relobj::incremental_relocs_write): New function.
(Sized_relobj::incremental_relocs_write_reltype): New function.
* script.cc (read_input_script): Rewrite test for incremental link.
Change call to Incremental_inputs::report_script.
* symtab.h (Symbol_table::first_global_index): New function.
(Symbol_table::output_count): New function.

14 years ago2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
Pedro Alves [Thu, 12 Aug 2010 19:55:38 +0000 (19:55 +0000)]
2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
    Pedro Alves  <pedro@codesourcery.com>

* dwarf2read.c: Include "c-lang.h" and "valprint.h".
(struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
(struct partial_die_info) <has_template_arguments>: New field.
<num_attrs>: Change type to unsigned char.
<building_fullname>: New field.
(dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
allocate a CU if we don't have one already.  Add a cleanup for the
CU.
(partial_die_full_name): Handle template arguments not in
DW_AT_name.
(dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
(load_full_comp_unit): Only allocate a CU if we don't have one
already.
(do_ui_file_peek_last): New.
(dwarf2_compute_name): Handle template parameters not in
DW_AT_name.
(read_comp_unit): Read and free abbrevs if not read yet.
(load_partial_dies): Handle template arguments not in DW_AT_name.
(find_partial_die): If we have a CU, but no a partial dies yet,
also read in the CU.
(dwarf2_const_value_attr): New, abstracted out from
dwarf2_const_value.
(dwarf2_const_value, dwarf2_const_value_data): Adjust to use
dwarf2_const_value_attr.
(determine_prefix): Detect and break loops created by RCVT's debug
info.
(maybe_queue_comp_unit): Bail out early if reading partial
symbols.
(follow_die_offset): Load full CU if we have no dies.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
* dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.

14 years agoIndex: gold/arm.cc
Doug Kwan [Thu, 12 Aug 2010 18:27:46 +0000 (18:27 +0000)]
Index: gold/arm.cc
===================================================================
RCS file: /cvs/src/src/gold/arm.cc,v
retrieving revision 1.116
diff -u -u -p -r1.116 arm.cc
--- gold/arm.cc 3 Aug 2010 14:07:12 -0000 1.116
+++ gold/arm.cc 6 Aug 2010 07:59:30 -0000
@@ -10290,11 +10290,11 @@ Target_arm<big_endian>::merge_object_att
      out_attr[i].set_int_value(in_attr[i].int_value());
    break;
  case elfcpp::Tag_ABI_PCS_wchar_t:
-   // FIXME: Make it possible to turn off this warning.
    if (out_attr[i].int_value()
        && in_attr[i].int_value()
        && out_attr[i].int_value() != in_attr[i].int_value()
-       && parameters->options().warn_mismatch())
+       && parameters->options().warn_mismatch()
+       && parameters->options().wchar_size_warning())
      {
        gold_warning(_("%s uses %u-byte wchar_t yet the output is to "
       "use %u-byte wchar_t; use of wchar_t values "
@@ -10315,10 +10315,10 @@ Target_arm<big_endian>::merge_object_att
    // Use whatever requirements the new object has.
    out_attr[i].set_int_value(in_attr[i].int_value());
  }
-       // FIXME: Make it possible to turn off this warning.
        else if (in_attr[i].int_value() != elfcpp::AEABI_enum_forced_wide
         && out_attr[i].int_value() != in_attr[i].int_value()
-        && parameters->options().warn_mismatch())
+        && parameters->options().warn_mismatch()
+        && parameters->options().enum_size_warning())
  {
    unsigned int in_value = in_attr[i].int_value();
    unsigned int out_value = out_attr[i].int_value();
Index: gold/options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.147
diff -u -u -p -r1.147 options.h
--- gold/options.h 1 Jun 2010 23:37:57 -0000 1.147
+++ gold/options.h 6 Aug 2010 07:59:30 -0000
@@ -722,6 +722,10 @@ class General_options
   DEFINE_special(EL, options::ONE_DASH, '\0',
   N_("Link little-endian objects."), NULL);

+  DEFINE_bool(enum_size_warning, options::TWO_DASHES, '\0', true, NULL,
+       N_("(ARM only) Do not warn about objects with incompatible "
+  "enum sizes"));
+
   DEFINE_bool(fatal_warnings, options::TWO_DASHES, '\0', false,
        N_("Treat warnings as errors"),
        N_("Do not treat warnings as errors"));
@@ -1038,6 +1042,10 @@ class General_options
      N_("Report unresolved symbols as errors"),
      NULL, true);

+  DEFINE_bool(wchar_size_warning, options::TWO_DASHES, '\0', true, NULL,
+       N_("(ARM only) Do not warn about objects with incompatible "
+  "wchar_t sizes"));
+
   DEFINE_bool(whole_archive, options::TWO_DASHES, '\0', false,
               N_("Include all archive contents"),
               N_("Include only needed archive contents"));

14 years agoMention Makefile.in in ChangeLog.
H.J. Lu [Thu, 12 Aug 2010 17:53:17 +0000 (17:53 +0000)]
Mention Makefile.in in ChangeLog.

14 years agoDisable -Werror on coff-tic4x.lo and coff-tic54x.lo.
H.J. Lu [Thu, 12 Aug 2010 17:49:42 +0000 (17:49 +0000)]
Disable -Werror on coff-tic4x.lo and coff-tic54x.lo.

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

PR binutils/11909
* Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
(coff-tic54x.lo): Likewise.

14 years ago PR ld/11843
Nick Clifton [Thu, 12 Aug 2010 16:23:32 +0000 (16:23 +0000)]
    PR ld/11843
        * elflink.c (compute_bucket_count): Avoid futile long searches for
        the best bucket size.

14 years agoReally commit server.c bits of 2010-08-09's change...
Pedro Alves [Thu, 12 Aug 2010 15:16:12 +0000 (15:16 +0000)]
Really commit server.c bits of 2010-08-09's change...

14 years ago * ldexp.c (new_rel): Remove "str". Update all call sites.
Alan Modra [Thu, 12 Aug 2010 13:36:50 +0000 (13:36 +0000)]
* ldexp.c (new_rel): Remove "str".  Update all call sites.
(exp_fold_tree_1): When assigning to dot, calculate nextdot
using expld.result.section rather than expld.section.

14 years ago PR binutils/11742
Nick Clifton [Thu, 12 Aug 2010 13:11:11 +0000 (13:11 +0000)]
    PR binutils/11742
        * readelf.c (get_archive_member_name): Do not read beyond the end
        of the ar_name field.

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

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

14 years ago2010-08-11 Tom Tromey <tromey@redhat.com>
Phil Muldoon [Wed, 11 Aug 2010 20:54:12 +0000 (20:54 +0000)]
2010-08-11  Tom Tromey  <tromey@redhat.com>
            Phil Muldoon  <pmuldoon@redhat.com>

* python/python.c (gdbpy_run_events): New function.
(gdbpy_post_event): Likewise.
(gdbpy_initialize_events): Likewise.
(_initialize_python): Call gdbpy_initialize_events.

2010-08-11  Tom Tromey  <tromey@redhat.com>
            Phil Muldoon <pmuldoon@redhat.com>

* gdb.texinfo (Basic Python): Describe post_event API.

2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/python.exp (gdb_py_test_multiple): Add gdb.post_event
tests.

14 years agogdb/ChangeLog:* gdb/valarith.c (vector_binop): New function.(scalar_binop): Likewise...
Ken Werner [Wed, 11 Aug 2010 16:48:26 +0000 (16:48 +0000)]
gdb/ChangeLog:* gdb/valarith.c (vector_binop): New function.(scalar_binop): Likewise.(value_binop): Call scalar_binop or vector_binop depending on the types.* gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.(evaluate_subexp_with_coercion): Add vector check to not convert vectorsto pointers.* gdb/value.c (coerce_array): Add vector check to not coerce vectors.testsuite/ChangeLog:* gdb.base/Makefile.in (EXECUTABLES): Add gnu_vector.* gdb.base/gnu_vector.c: New File.* gdb.base/gnu_vector.exp: Likewise.

14 years ago2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
Thomas Schwinge [Wed, 11 Aug 2010 15:53:04 +0000 (15:53 +0000)]
2010-08-11  Thomas Schwinge  <thomas@codesourcery.com>

* linux-low.c (linux_wait_1): Correctly return the ptid of the child
after its termination.

14 years ago2010-08-11 Brad Roberts <braddr@puremagic.com>
Tom Tromey [Wed, 11 Aug 2010 15:41:37 +0000 (15:41 +0000)]
2010-08-11  Brad Roberts  <braddr@puremagic.com>

* d-lang.c (extract_identifiers): Handle multiple digits.

14 years agogdb/
Jan Kratochvil [Wed, 11 Aug 2010 13:24:32 +0000 (13:24 +0000)]
gdb/
Code cleanup.
* dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
Rename to dummy_frame_unwind.
(dummy_frame_unwind): Remove.
* dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
* frame-unwind.c (frame_unwind_init): Use address of
dummy_frame_unwind and inline_frame_unwind.
* frame.c (create_sentinel_frame): Use address of
sentinel_frame_unwind.
* inline-frame.c (inline_frame_unwinder): Rename to
inline_frame_unwind.
(inline_frame_unwind): Remove.
* inline-frame.h (inline_frame_unwind): Reference directly the struct.
* sentinel-frame.c (sentinel_frame_unwinder): Rename to
sentinel_frame_unwind.
(sentinel_frame_unwind): Remove.
* sentinel-frame.h (sentinel_frame_unwind): Reference directly the
struct.

14 years agogdb/
Jan Kratochvil [Wed, 11 Aug 2010 13:22:57 +0000 (13:22 +0000)]
gdb/
Code cleanup.
* frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
and returned value.  New comment from frame-unwind.h.
* frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
Extend the comment.
* frame.c (get_frame_id, frame_unwind_register_value)
(create_new_frame, get_prev_frame_1, frame_unwinder_is)
(get_frame_type, frame_unwind_arch): Do not use the return value of
frame_unwind_find_by_frame.

14 years ago2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Wed, 11 Aug 2010 12:48:24 +0000 (12:48 +0000)]
2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>
    Tom Tromey  <tromey@redhat.com>

* python/python.c (gdbpy_solib_address):  New function.
(gdbpy_decode_line): Likewise.

2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Basic Python): Describe solib_address and
          decode_line Python APIs

2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/python.c: New File.
* gdb.python/python-sl.c: New File.
* gdb.python/python.exp: Test solib_address and decode_line
* functions.

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

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

14 years ago * gdb.texinfo (Pretty Printing API): Document
Tom Tromey [Tue, 10 Aug 2010 20:25:30 +0000 (20:25 +0000)]
* gdb.texinfo (Pretty Printing API): Document
gdb.default_visualizer.

14 years agogdb
Tom Tromey [Tue, 10 Aug 2010 18:35:53 +0000 (18:35 +0000)]
gdb
Revert gdb-add-index addition:
* Makefile.in (install-only): Don't install gdb-add-index.
* gdb-add-index.sh: Remove.
gdb/doc
Revert gdb-add-index addition:
* gdb.texinfo (Index Files): Don't document gdb-add-index.

14 years ago * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
Kevin Buettner [Tue, 10 Aug 2010 04:39:26 +0000 (04:39 +0000)]
* remote-sim.c (gdbsim_xfer_inferior_memory): Replace
`target_has_execution' check with `to_has_memory' check.
(gdbsim_has_all_memory, gdbsim_has_memory): New functions.
(init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
with `gdbsim_has_all_memory' and `gdbsim_has_memory'.

14 years ago * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
Kevin Buettner [Tue, 10 Aug 2010 00:19:26 +0000 (00:19 +0000)]
* remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
(resume_siggnal, resume_step): Move these static globals...
(struct sim_inferior_data): ...into this new struct.
(sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
New static globals.
(gdb_callback, callbacks_initialized): Move these globals to
a point earlier in the file.
(check_for_duplicate_sim_descriptor, get_sim_inferior_data)
(get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
(gdbsim_close_inferior, gdbsim_resume_inferior)
(gdbsim_stop_inferior): New functions.
(SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
New constants.
(gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
(gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
(gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
(gdbsim_xfer_inferior_memory, gdbsim_files_info)
(gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
(gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
new local variable `sim_data' in each of these functions.  Use
`sim_data' to reference former globals `program_loaded',
`gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
`resume_step'.
(gdbsim_open): Remove local variable `argv'.  Put results of call
to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
make a cleanup for it.  Free it though when a sim instance cannot
be obtained.
(gdbsim_close): Free sim_argv and null it out as appropriate.
Close sim instances in all inferiors.
(gdbsim_cntrl_c): Stop all inferiors.
(gdbsim_wait):
(_initialize_remote_sim): Initialize `sim_inferior_data_key'.

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

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

14 years ago PR ld/11891
Richard Henderson [Mon, 9 Aug 2010 23:58:52 +0000 (23:58 +0000)]
    PR ld/11891
        * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
        to tlshi/lo until pos0 and pos1 are adjacent.  Use the destination
        register from the tldgd insn.

14 years agoComplete symbol construction before adding to pending list.
Sami Wagiaalla [Mon, 9 Aug 2010 20:34:06 +0000 (20:34 +0000)]
Complete symbol construction before adding to pending list.

2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>

* dwarf2read.c (new_symbol): Add symbol to variable list at end of
function after symbol construction is complete.
Do the same for template symbol addition to template_symbols list.

14 years agoFixed stabs cplus_specific issue
Sami Wagiaalla [Mon, 9 Aug 2010 20:13:51 +0000 (20:13 +0000)]
Fixed stabs cplus_specific issue

2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>

* symtab.c (symbol_get_demangled_name): Remove assertion and
return NULL when language_specific.cplus_specific is not initialized.
* stabsread.c (define_symbol): Set the name before calling
cp_scan_for_anonymous_namespaces.

14 years ago2010-08-09 Catherine Moore <clm@codesourcery.com>
Catherine Moore [Mon, 9 Aug 2010 19:54:13 +0000 (19:54 +0000)]
2010-08-09  Catherine Moore  <clm@codesourcery.com>

        * elfxx-mips.c (mips_elf_perform_relocation): Improve
        interlinking error message.

2010-08-09  Catherine Moore  <clm@codesourcery.com>

        * ld-mips-elf/mode-change-error-1.d: New.
        * ld-mips-elf/mode-change-error-1a.s: New.
        * ld-mips-elf/mode-change-error-1b.s: New.
        * ld-mips-elf/mips-elf.exp: Run new test.

14 years agocreate and use symbol_set_language.
Sami Wagiaalla [Mon, 9 Aug 2010 19:42:48 +0000 (19:42 +0000)]
create and use symbol_set_language.

2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>

* symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
SYMBOL_SET_LANGUAGE.
(symbol_init_language_specific): Renamed to symbol_set_language.
* symtab.c (symbol_init_language_specific): Removed redundant check
for language_cplus.
Renamed to symbol_set_language.
* stabsread.c (define_symbol): Updated.
(read_enum_type): Updated
* psymtab.c (add_psymbol_to_bcache): Updated.
* minsyms.c (install_minimal_symbols): Updated.
* coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
SYMBOL_LANGUAGE to set the language.
* minsyms.c (prim_record_minimal_symbol_full): Ditto.
* mdebugread.c (new_symbol): Ditto.
* cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
* dwarf2read.c (new_symbol_full): Ditto.
* jv-lang.c (add_class_symbol): Ditto.

14 years ago * as.c (show_usage): Don't list --compress-debug-sections if zlib not
Cary Coutant [Mon, 9 Aug 2010 18:08:18 +0000 (18:08 +0000)]
* as.c (show_usage): Don't list --compress-debug-sections if zlib not
installed.
(main): Warn if --compress-debug-sections requested and zlib not
installed.
* doc/as.texinfo: Add --compress-debug-sections,
--nocompress-debug-sections.

14 years ago * linux-low.c (gdb_wants_lwp_stopped): Delete.
Pedro Alves [Mon, 9 Aug 2010 14:59:23 +0000 (14:59 +0000)]
* linux-low.c (gdb_wants_lwp_stopped): Delete.
(gdb_wants_all_stopped): Delete.
(linux_wait_1): Don't call them.
* server.c (handle_v_cont): Tag all threads as want-stopped.
(gdb_wants_thread_stopped): Fix comments.  Tag the thread that
stopped as "client-wants-stopped".

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

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.