OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years ago2009-10-12 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 13 Oct 2009 07:57:28 +0000 (07:57 +0000)]
2009-10-12  Tristan Gingold  <gingold@adacore.com>

* gdb.base/sepdebug.exp: Check debug info are found.

14 years ago2009-10-12 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 13 Oct 2009 07:56:29 +0000 (07:56 +0000)]
2009-10-12  Tristan Gingold  <gingold@adacore.com>

* objfiles.c (objfile_has_symbols): New function.
* objfiles.h (objfile_has_symbols): Add prototype.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Call
objfile_has_symbols.
(reread_symbols): Ditto.

14 years ago * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.
amodra [Tue, 13 Oct 2009 04:06:20 +0000 (04:06 +0000)]
* elflink.c (_bfd_elf_merge_symbol): Revert previous patch.

14 years agoFix toplevel 'config.status --recheck' for --enable-lto.
rwild [Tue, 13 Oct 2009 03:32:18 +0000 (03:32 +0000)]
Fix toplevel 'config.status --recheck' for --enable-lto.

/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.

14 years agoFix %s that should be %B in several message formats.
roland [Tue, 13 Oct 2009 02:35:08 +0000 (02:35 +0000)]
Fix %s that should be %B in several message formats.

14 years agoImprove clock_gettime and utimensat resolution.
ericb [Tue, 13 Oct 2009 02:26:33 +0000 (02:26 +0000)]
Improve clock_gettime and utimensat resolution.

* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.

14 years ago * symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
tmsriram [Tue, 13 Oct 2009 00:39:31 +0000 (00:39 +0000)]
* symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
includes to gc.h and icf.h.
* arm.cc: Include gc.h.
* gold.cc: Likewise.
* i386.cc: Likewise.
* powerpc.cc: Likewise.
* sparc.cc: Likewise.
* x86_64.cc: Likewise.
* gc.h: Include icf.h.

14 years ago*** empty log message ***
gdbadmin [Tue, 13 Oct 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Mon, 12 Oct 2009 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agodoc/
ppluzhnikov [Mon, 12 Oct 2009 20:11:51 +0000 (20:11 +0000)]
doc/
2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.texinfo (Server): Document libthread-db-search-path.

gdbserver/
2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

* acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
* configure.ac: Adjust.
* linux-low.h (struct process_info_private): Move members to struct
thread_db.
(thread_db_free, thread_db_handle_monitor_command): New prototype.
* linux-low.c (linux_remove_process): Adjust.
(linux_wait_for_event_1, linux_look_up_symbols): Likewise.
* server.c (handle_query): Move code ...
(handle_monitor_command): ... here. New function.
* target.h (struct target_ops): New member.
* thread-db.c (struct thread_db): New.
(libthread_db_search_path): New variable.
(thread_db_create_event, thread_db_enable_reporting)
(find_one_thread, maybe_attach_thread, find_new_threads_callback)
(thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
(try_thread_db_load_1, dladdr_to_soname): New functions.
(try_thread_db_load, thread_db_load_search): New functions.
(thread_db_init): Search for libthread_db.
(thread_db_free): New function.
(thread_db_handle_monitor_command): Likewise.
* config.in: Regenerate.
* configure: Regenerate.

14 years ago * external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
corinna [Mon, 12 Oct 2009 19:26:08 +0000 (19:26 +0000)]
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
and CW_SETERRNO cases.

14 years ago * kill.cc (main): Skip to PID loop on invalid option to handle
corinna [Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)]
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.

14 years ago2009-10-12 Jiang Jilin <freephp@gmail.com>
msnyder [Mon, 12 Oct 2009 15:52:25 +0000 (15:52 +0000)]
2009-10-12  Jiang Jilin  <freephp@gmail.com>

* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
instructions support.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
corinna [Mon, 12 Oct 2009 11:57:28 +0000 (11:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
if the original device had one, too.  Add comment.

* fhandler_socket.cc (fhandler_socket::fstat): Always return a size of
0 on sockets.

14 years ago * plugin.cc: Include "gold.h" before other header files.
ian [Mon, 12 Oct 2009 06:02:06 +0000 (06:02 +0000)]
* plugin.cc: Include "gold.h" before other header files.

14 years ago2009-10-11 Michael Snyder <msnyder@vmware.com>
msnyder [Mon, 12 Oct 2009 01:59:54 +0000 (01:59 +0000)]
2009-10-11  Michael Snyder  <msnyder@vmware.com>

* gdb.texinfo (ReverseStep): Show default as "unsupported".
(ReverseContinue): Ditto.

14 years ago*** empty log message ***
gdbadmin [Mon, 12 Oct 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Sun, 11 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago * procfs.c (procfs_make_note_section): Go back to only outputing
palves [Sun, 11 Oct 2009 22:50:07 +0000 (22:50 +0000)]
* procfs.c (procfs_make_note_section): Go back to only outputing
an NT_PSTATUS note when UNIXWARE is defined.

14 years ago * features/xinclude.dtd: Correct EMPTY typo.
drow [Sun, 11 Oct 2009 20:24:17 +0000 (20:24 +0000)]
* features/xinclude.dtd: Correct EMPTY typo.

14 years ago2009-10-09 Michael Snyder <msnyder@vmware.com>
msnyder [Sun, 11 Oct 2009 03:20:44 +0000 (03:20 +0000)]
2009-10-09  Michael Snyder  <msnyder@vmware.com>

* i386-tdep.c (i386_process_record): Or-equals, not not-equals.

14 years ago*** empty log message ***
msnyder [Sun, 11 Oct 2009 03:20:20 +0000 (03:20 +0000)]
*** empty log message ***

14 years ago*** empty log message ***
gdbadmin [Sun, 11 Oct 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Sat, 10 Oct 2009 22:59:50 +0000 (22:59 +0000)]
daily update

14 years ago * mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
palves [Sat, 10 Oct 2009 16:58:12 +0000 (16:58 +0000)]
* mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
Put "break" statements on their own line.

14 years ago2009-10-10 Chris Demetriou <cgd@google.com>
cgd [Sat, 10 Oct 2009 07:39:04 +0000 (07:39 +0000)]
2009-10-10  Chris Demetriou  <cgd@google.com>

* options.h (Input_file_argument::Input_file_type): New enum.
(Input_file_argument::is_lib_): Replace with...
(Input_file_argument::type_): New member.
(Input_file_argument::Input_file_argument): Take Input_file_type
'type' rather than boolean 'is_lib' as second argument.
(Input_file_argument::is_lib): Use type_.
(Input_file_argument::is_searched_file): New function.
(Input_file_argument::may_need_search): Handle is_searched_file.
* options.cc (General_options::parse_library): Support -l:filename.
(General_options::parse_just_symbols): Update for Input_file_argument
changes.
(Command_line::process): Likewise.
* archive.cc (Archive::get_file_and_offset): Likewise.
* plugin.cc (Plugin_manager::release_input_file): Likewise.
* script.cc (read_script_file, script_add_file): Likewise.
* fileread.cc (Input_file::Input_file): Likewise.
(Input_file::will_search_for): Handle is_searched_file.
(Input_file::open): Likewise.
* readsyms.cc (Read_symbols::get_name): Likewise.
* testsuite/Makefile.am (searched_file_test): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/searched_file_test.cc: New file.
* testsuite/searched_file_test_lib.cc: New file.

14 years ago * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
amodra [Sat, 10 Oct 2009 04:58:44 +0000 (04:58 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
excluded output sections.

14 years ago * descriptor.cc: Include <cstdio> and "binary-io.h".
ian [Sat, 10 Oct 2009 04:56:43 +0000 (04:56 +0000)]
* descriptor.cc: Include <cstdio> and "binary-io.h".
(Descriptors::open): Open the files in binary mode always.
* script.cc (Lex::get_token): Treat \r as whitespace.

14 years agoRevert 2009-09-28 changes.
amodra [Sat, 10 Oct 2009 04:34:38 +0000 (04:34 +0000)]
Revert 2009-09-28 changes.

14 years ago * testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.
ian [Sat, 10 Oct 2009 01:24:56 +0000 (01:24 +0000)]
* testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.

14 years ago*** empty log message ***
gdbadmin [Sat, 10 Oct 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * configure.ac: Check for readv function also.
ian [Fri, 9 Oct 2009 23:20:44 +0000 (23:20 +0000)]
* configure.ac: Check for readv function also.
* fileread.cc (readv): Define if not HAVE_READV.
* fileread.h (File_read:: max_readv_entries): Set to 1 if readv
does not exist.
* config.in: Regenerate.
* configure: Regenerate.

14 years ago2009-10-09 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 9 Oct 2009 23:18:19 +0000 (23:18 +0000)]
2009-10-09  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::make_output_section): Call target hook to make
ordinary output section.
(Layout::finalize): Adjust parameter list of call the
Target::may_relax().
* layout.h (class Layout::section_list): New method.
* merge.h (Output_merge_base::entsize): Change visibility to public.
(Output_merge_base::is_string, Output_merge_base::do_is_string):
New methods.
(Output_merge_string::do_is_string): New method.
* object.cc (Sized_relobj::do_setup): renamed from
Sized_relobj::set_up.
* object.h (Sized_relobj::adjust_shndx,
Sized_relobj::initializ_input_to_output_maps,
Sized_relobj::free_input_to_output_maps): Change visibilities to
protected.
(Sized_relobj::setup): Virtualize.
(Sized_relobj::do_setup): New method declaration.
(Sized_relobj::invalidate_section_offset,
Sized_relobj::do_invalidate_section_offset): New method decfinitions.
(Sized_relobj::elf_file, Sized_relobj::local_values): New methods.
* options.cc (parse_int): New function.
* options.h (parse_int): New declaration.
(DEFINE_int): New macro.
(stub_group_size): New option.
* output.cc (Output_section::Output_section): Initialize memebers
merge_section_map_, merge_section_by_properties_map_,
relaxed_input_section_map_, is_relaxed_input_section_map_valid_.
(Output_section::add_input_section): Handled deferred code-fill
generation and remove an old comment.
(Output_section::add_relaxed_input_section): New method definition.
(Output_section::add_merge_input_section): Use merge section by
properties map to speed to search.  Update merge section maps
as appropriate.
(Output_section::build_relaxation_map): New method definition.
(Output_section::convert_input_sections_in_list_to_relaxed_sections):
Same.
(Output_section::relax_input_section): Renamed to
Output_section::convert_input_sections_to_relaxed_sections and change
interface to take a vector of pointers to relaxed sections.
(Output_section::find_merge_section,
Output_section::find_relaxed_input_section): New method definitions.
(Output_section::is_input_address_mapped,
Output_section::output_offset, Output_section::output_address):
Use output section data maps to speed up searching.
(Output_section::find_starting_output_address): Add comments.
(Output_section::do_write,
Output_section::write_to_postprocessing_buffer): Do code-fill
generation as appropriate.
(Output_section::get_input_sections): Invalidate relaxed input section
map.
(Output_section::restore_states): Adjust type of checkpoint .
Invalidate relaxed input section map.
* output.h (Output_merge_base): New class declaration.
(Input_section_specifier): New class defintion.
(class Output_relaxed_input_section) Change base class to
Output_section_data_build.
(Output_relaxed_input_section::Output_relaxed_input_section): Adjust
base class initializer.
(Output_section::add_relaxed_input_section): New method declaration.
(Output_section::Input_section): Change visibility to protected.
      (Output_section::Input_section::relobj,
Output_section::Input_section::shndx): Handle relaxed input sections.
Output_section::input_sections) Change visibility to protected.  Also
define overload to return a non-const pointer.
(Output_section::Merge_section_properties): New class defintion.
(Output_section::Merge_section_by_properties_map,
Output_section::Output_section_data_by_input_section_map,
Output_section::Relaxation_map): New types.
(Output_section::relax_input_section): Rename method to
Output_section::convert_input_sections_to_relaxed_sections and change
interface to take a vector of relaxed section pointers.
(Output_section::find_merge_section,
Output_section::find_relaxed_input_section,
Output_section::build_relaxation_map,
Output_section::convert_input_sections_in_list_to_relaxed_sections):
New method declarations.
(Output_section::merge_section_map_
Output_section::merge_section_by_properties_map_,
Output_section::relaxed_input_section_map_,
Output_section::is_relaxed_input_section_map_valid_,
Output_section::generate_code_fills_at_write_): New data members.
* script-sections.cc
(Output_section_element_input::set_section_addresses): Call
current_data_size and addralign methods of relaxed input sections.
(Orphan_output_section::set_section_addresses): Call current_data_size
and addralign methods of relaxed input sections.
* symtab.cc (Symbol_table::compute_final_value): Extract template
from the body of Symbol_table::sized_finalize_symbol.
(Symbol_table::sized_finalized_symbol): Call
Symbol_table::compute_final_value.
* symtab.h (Symbol_table::Compute_final_value_status): New enum type.
(Symbol_table::compute_final_value): New templated method declaration.
* target.cc (Target::do_make_output_section): New method defintion.
* target.h (Target::make_output_section): New method declaration.
(Target::relax): Add more parameters for input objects, symbol table
and layout.  Adjust call to do_relax.
(Target::do_make_output_section): New method declaration.
(Target::do_relax): Add parameters for input objects, symbol table
and layout.

14 years ago * pread.c: Include stdio.h.
ian [Fri, 9 Oct 2009 23:10:15 +0000 (23:10 +0000)]
* pread.c: Include stdio.h.

14 years ago * plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
ian [Fri, 9 Oct 2009 23:07:30 +0000 (23:07 +0000)]
* plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
defined.

14 years ago * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
ian [Fri, 9 Oct 2009 23:05:21 +0000 (23:05 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Change read_shndx type to unsigned int.
(Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
int.
(Sized_dwarf_line_info::read_line_mappings): Likewise.
* dwarf_reader.h (Sized_dwarf_line_info::Sized_dwarf_line_info):
Change read_shndx type to unsigned int.
(Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
int.
(Sized_dwarf_line_info::read_line_mappings): Likewise.
* layout.cc (Layout::create_symtab_sections): Cast the result of
local_symcount * symsize to off_t in the gold_assert.

14 years ago * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
ian [Fri, 9 Oct 2009 23:02:34 +0000 (23:02 +0000)]
* elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
to Elf_WXword.

14 years agodaily update
amodra [Fri, 9 Oct 2009 22:59:52 +0000 (22:59 +0000)]
daily update

14 years ago * arm.cc (Target_arm::relocate::reloc_is_non_pic): Return true for
ian [Fri, 9 Oct 2009 22:56:41 +0000 (22:56 +0000)]
* arm.cc (Target_arm::relocate::reloc_is_non_pic): Return true for
R_ARM_THM_ABS5, R_ARM_ABS8, R_ARM_ABS12, R_ARM_ABS16,
R_ARM_BASE_ABS.
(Arm_relocate_functions::abs8): Remove has_thumb_bit parameter.
(Arm_relocate_functions::thm_abs5): New function.
(Arm_relocate_functions::abs12): New function.
(Arm_relocate_functions::abs16): New function.
(Arm_relocate_functions::base_abs): New function.
(Scan::check_non_pic): Handle R_ARM_ABS32_NOI.
(Scan::local): Remove special handling of R_ARM_ABS8.  Handle
R_ARM_ABS32_NOI, R_ARM_THM_ABS5, R_ARM_ABS12, R_ARM_ABS16, and
R_ARM_BASE_ABS.
(Scan::global): Likewise.
(Relocate::relocate): Handle R_ARM_ABS12, R_ARM_ABS16,
R_ARM_ABS32_NOI, R_ARM_THM_ABS5, and R_ARM_BASE_ABS.
(Relocatable_size_for_reloc::get_size_for_reloc): Handle
R_ARM_ABS16, R_ARM_THM_ABS5, R_ARM_ABS32_NOI, R_ARM_ABS12, and
R_ARM_BASE_ABS.

14 years ago * arm.cc (Arm_relocate_functions::movw_prel_nc): New function.
ian [Fri, 9 Oct 2009 22:45:13 +0000 (22:45 +0000)]
* arm.cc (Arm_relocate_functions::movw_prel_nc): New function.
(Arm_relocate_functions::movt_prel): New function.
(Arm_relocate_functions::thm_movw_prel_nc): New function.
(Arm_relocate_functions::thm_movt_prel): New function.
(Scan::local): Handle R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL,
R_ARM_THM_MOVW_PREL_NC, and R_ARM_THM_MOVT_PREL.
(Scan::global, Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years agoelfcpp/:
ian [Fri, 9 Oct 2009 22:38:07 +0000 (22:38 +0000)]
elfcpp/:
* elf_file.h: (class Elf_strtab): New class.
gold/:
* gold.cc: (queue_initial_tasks): Pass incremental_inputs to
Incremental_checker.
* incremental.cc: (INCREMENTAL_LINK_VERSION): Change type to
unsigned int.
(class Incremental_inputs_header): New class.
(Incremental_inputs_header_writer): Edit comment.
(Incremental_inputs_entry): New class.
(Incremental_inputs_entry_writer): Edit comment.
(Sized_incremental_binary::do_find_incremental_inputs_section):
Add *strtab_shndx parameter, fill it.
(Sized_incremental_binary::do_check_inputs): New method.
(Incremental_checker::can_incrementally_link_output_file): Use
Sized_incremental_binary::check_inputs.
(Incremental_inputs::report_command_line): Save command line in
command_line_.
* incremental.h:
(Incremental_binary::find_incremental_inputs_section): New
method.
(Incremental_binary::do_find_incremental_inputs_section): Add
strtab_shndx parameter.
(Incremental_binary::do_check_inputs): New pure virtual method.
(Sized_incremental_binary::do_check_inputs): Declare.
(Incremental_checker::Incremental_checker): Add incremental_inputs
parameter, use it to initialize incremental_inputs_.
(Incremental_checker::incremental_inputs_): New field.
(Incremental_checker::command_line): New method.
(Incremental_checker::inputs): New method.
(Incremental_checker::command_line_): New field.

14 years ago2009-10-09 Dave Korn <dave.korn@artimi.com>
jjohnstn [Fri, 9 Oct 2009 18:43:12 +0000 (18:43 +0000)]
2009-10-09  Dave Korn  <dave.korn@artimi.com>

        * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
        defining struct timeval.

14 years agoelfcpp/:
ian [Fri, 9 Oct 2009 16:40:50 +0000 (16:40 +0000)]
elfcpp/:
* elfcpp_file.h: Fix header guard.  Include <cstdio>.
(class Elf_recognizer): New class, code from gold/object.cc.
(Elf_file::find_section_by_type): New method.
gold/:
* incremental.cc: Include <cstdarg> and "target-select.h".
(vexplain_no_incremental): New function.
(explain_no_incremental): New function.
(Incremental_binary::error): New method.
(Sized_incremental_binary::do_find_incremental_inputs_section): New
method.
(make_sized_incremental_binary): New function.
(open_incremental_binary): New function.
(can_incrementally_link_file): Add checks if output is ELF and has
inputs section.
* incremental.h: Include "elfcpp_file.h" and "output.h".
(Incremental_binary): New class.
(Sized_incremental_binary): New class.
(open_incremental_binary): Declare.
* object.cc (is_elf_object): Use
elfcpp::Elf_recognizer::is_elf_file.
(make_elf_object): Use elfcpp::Elf_recognizer::is_valid_header.
* output.h (Output_file::filesize): New method.

14 years agomerge from gcc
dj [Fri, 9 Oct 2009 16:17:35 +0000 (16:17 +0000)]
merge from gcc

14 years agobfd/
gingold [Fri, 9 Oct 2009 15:33:37 +0000 (15:33 +0000)]
bfd/
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.

14 years ago2009-10-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Oct 2009 15:14:55 +0000 (15:14 +0000)]
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to
bfd_mach_o_read_symtab_symbols.
(bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread.
(bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs.
(bfd_mach_o_scan_write_section_32): Rename to
bfd_mach_o_write_section_32.
(bfd_mach_o_scan_write_section_64): Rename to
bfd_mach_o_write_section_64.
(bfd_mach_o_scan_write_segment_32): Rename to
bfd_mach_o_write_segment_32.
(bfd_mach_o_scan_write_segment_64): Rename to
bfd_mach_o_write_segment_64.
(bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab.
(bfd_mach_o_scan_read_section_32): Rename to
bfd_mach_o_read_section_32.
(bfd_mach_o_scan_read_section_64): Rename to
bfd_mach_o_read_section_64.
(bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section.
(bfd_mach_o_scan_read_symtab_strtab): Rename to
bfd_mach_o_read_symtab_strtab.
(bfd_mach_o_scan_read_symtab_symbol): Rename to
bfd_mach_o_read_symtab_symbol.
(bfd_mach_o_scan_read_dysymtab_symbol): Rename to
bfd_mach_o_read_dysymtab_symbol.
(bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker.
(bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib.
(bfd_mach_o_scan_read_prebound_dylib): Rename to
bfd_mach_o_read_prebound_dylib.
(bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread.
(bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab.
(bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab.
(bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid.
(bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit.
(bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str.
(bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info.
(bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment.
(bfd_mach_o_scan_read_segment_32): Rename to
bfd_mach_o_read_segment_32.
(bfd_mach_o_scan_read_segment_64): Rename to
bfd_mach_o_read_segment_64.
(bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command.
* mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
bfd_mach_o_read_dysymtab_symbol.

14 years ago2009-10-09 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 9 Oct 2009 13:32:49 +0000 (13:32 +0000)]
2009-10-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10749
* ld-elf/relocatable.d: New.
* ld-elf/relocatable.t: Likewise.
* ld-elf/simple.s: Likewise.

14 years ago * pathnames.sgml (pathnames-specialchars): Add control chars to the
corinna [Fri, 9 Oct 2009 11:19:18 +0000 (11:19 +0000)]
* pathnames.sgml (pathnames-specialchars): Add control chars to the
list.  Explain backslash exception.

14 years ago * path.cc (tfx_chars): Convert all ASCII control characters except
corinna [Fri, 9 Oct 2009 11:17:17 +0000 (11:17 +0000)]
* path.cc (tfx_chars): Convert all ASCII control characters except
ASCII NUL as well.  Change layout to make the conversions more clear.
Add comment.

14 years ago * include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
corinna [Fri, 9 Oct 2009 08:36:21 +0000 (08:36 +0000)]
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".

14 years ago * libc/locale/locale.c (DEFAULT_LOCALE): New define.
corinna [Fri, 9 Oct 2009 08:25:28 +0000 (08:25 +0000)]
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
(__default_locale): New global variable set to the default locale.
(__get_locale_env): Return __default_locale rather than fixed "C".

14 years ago2009-10-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Oct 2009 08:18:16 +0000 (08:18 +0000)]
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_section_get_entry_size): Moved.
(bfd_mach_o_section_get_nbr_indirect): Ditto.
(bfd_mach_o_get_synthetic_symtab): New function.
(bfd_mach_o_print_private_header): Print the number of commands
in decimal.
* mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype.
* mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab.

14 years ago PR ld/10749
amodra [Fri, 9 Oct 2009 05:19:37 +0000 (05:19 +0000)]
PR ld/10749
* ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.

14 years agomerge from gcc
dj [Fri, 9 Oct 2009 04:49:48 +0000 (04:49 +0000)]
merge from gcc

14 years ago * library/srctextwin.ith (ExecutableLineLimit): Define.
kseitz [Fri, 9 Oct 2009 02:51:47 +0000 (02:51 +0000)]
* library/srctextwin.ith (ExecutableLineLimit): Define.
* library/srctextwin.itb (insertBreakTag): Search for next
executable line, just in case they changed.
When there are no tags on a line, the proper index is
line.4, not just 4.

14 years ago * linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
palves [Fri, 9 Oct 2009 01:57:11 +0000 (01:57 +0000)]
* linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
we found no event while waiting for a specific LWP.
* infrun.c (handle_inferior_event): Handle TARGET_WAITKIND_IGNORE
before anything else.

14 years ago * procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
palves [Fri, 9 Oct 2009 01:28:01 +0000 (01:28 +0000)]
* procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
note when NEW_PROC_API is defined.

14 years ago * library/interface.tcl (gdbtk_tcl_warning): Add warnings for some
kseitz [Fri, 9 Oct 2009 01:23:55 +0000 (01:23 +0000)]
* library/interface.tcl (gdbtk_tcl_warning): Add warnings for some
too frequently occurring DWARF complaints.

(::tk::MouseWheel): New function based on TIP 171.

14 years ago * corelow.c (add_to_thread_list): Fix typo.
palves [Fri, 9 Oct 2009 01:01:20 +0000 (01:01 +0000)]
* corelow.c (add_to_thread_list): Fix typo.

14 years ago * corelow.c (core_has_fake_pid): New.
palves [Fri, 9 Oct 2009 00:49:05 +0000 (00:49 +0000)]
* corelow.c (core_has_fake_pid): New.
(core_close): Clear it.
(add_to_thread_list): Fake a pid if one is not found on a Solaris
core.  Add the inferior here.  Always add the thread, don't use
thread_change_ptid.
(core_open): Don't add the main thread or the inferior here unless
we find that the core had no .reg/NN sections.
(get_core_register_section): Handle Solaris cores with fake pids.

14 years agodoc/
ppluzhnikov [Fri, 9 Oct 2009 00:31:01 +0000 (00:31 +0000)]
doc/
2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.texinfo (Server): Document libthread-db-search-path.

gdbserver/
2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

* acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
* configure.ac: Adjust.
* linux-low.h (struct process_info_private): Move members to struct
thread_db.
(thread_db_free, thread_db_handle_monitor_command): New prototype.
* linux-low.c (linux_remove_process): Adjust.
(linux_wait_for_event_1, linux_look_up_symbols): Likewise.
* server.c (handle_query): Move code ...
(handle_monitor_command): ... here. New function.
* target.h (struct target_ops): New member.
* thread-db.c (struct thread_db): New.
(libthread_db_search_path): New variable.
(thread_db_create_event, thread_db_enable_reporting)
(find_one_thread, maybe_attach_thread, find_new_threads_callback)
(thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
(try_thread_db_load_1, dladdr_to_soname): New functions.
(try_thread_db_load, thread_db_load_search): New functions.
(thread_db_init): Search for libthread_db.
(thread_db_free): New function.
(thread_db_handle_monitor_command): Likewise.
* config.in: Regenerate.
* configure: Regenerate.

14 years ago*** empty log message ***
gdbadmin [Fri, 9 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Thu, 8 Oct 2009 22:59:56 +0000 (22:59 +0000)]
daily update

14 years ago gdb/testsuite/
palves [Thu, 8 Oct 2009 22:42:53 +0000 (22:42 +0000)]
gdb/testsuite/
* lib/gdb.exp (gdb_compile): Remove dead aix and irix related
bits.

14 years ago2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 8 Oct 2009 16:44:09 +0000 (16:44 +0000)]
2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
        * libc/stdlib/assert.c (_assert_func): Do not specify
        __assert_func if HAVE_ASSERT_FUNC flag is set.

14 years ago2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Thu, 8 Oct 2009 16:38:40 +0000 (16:38 +0000)]
2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

PR gdb/10457
* elfread.c (elf_symtab_read): Don't use alloca in a loop.

14 years ago2009-10-08 Jie Zhang <jie.zhang@analog.com>
jjohnstn [Thu, 8 Oct 2009 16:35:34 +0000 (16:35 +0000)]
2009-10-08  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
        -mcpu=bf532-any for the default multilib.

14 years ago2009-10-08 Eric Blake <ebb9@byu.net>
jjohnstn [Thu, 8 Oct 2009 16:26:28 +0000 (16:26 +0000)]
2009-10-08  Eric Blake  <ebb9@byu.net>

        * libc/include/getopt.h (__getopt_r, __getopt_long_r)
        (__getopt_long_only_r): Protect declarations, to avoid compiler
        warning.

14 years ago* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
cgf [Thu, 8 Oct 2009 15:56:13 +0000 (15:56 +0000)]
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
if we're exiting.

14 years agogdb/doc/
jkratoch [Thu, 8 Oct 2009 13:08:25 +0000 (13:08 +0000)]
gdb/doc/
* gdbint.texinfo (i386_stopped_by_hwbp): Remove.

14 years ago2009-10-08 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 8 Oct 2009 12:46:16 +0000 (12:46 +0000)]
2009-10-08  Tristan Gingold  <gingold@adacore.com>

* config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs.

14 years ago2009-10-08 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 8 Oct 2009 12:44:57 +0000 (12:44 +0000)]
2009-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10704
* gas/i386/intelok.s: Move 2 PIC tests to ...
* gas/i386/intelpic.s: Here.

* gas/i386/intelok.d: Updated.
* gas/i386/intelpic.d: Likewise.

14 years ago* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
ericb [Thu, 8 Oct 2009 11:13:45 +0000 (11:13 +0000)]
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.

14 years ago2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 8 Oct 2009 02:38:25 +0000 (02:38 +0000)]
2009-10-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10744
* ld-scripts/phdrs3.exp: Run phdrs3a.

* ld-scripts/phdrs3a.d: New.
* ld-scripts/phdrs3a.t: Likewise.

14 years ago PR ld/10744
amodra [Thu, 8 Oct 2009 01:11:56 +0000 (01:11 +0000)]
PR ld/10744
* ld-scripts/phdrs3.d: Update.

14 years ago PR ld/10744
amodra [Thu, 8 Oct 2009 01:00:27 +0000 (01:00 +0000)]
PR ld/10744
* ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
first PT_LOAD header.
* ld.texinfo: Update.

14 years ago*** empty log message ***
gdbadmin [Thu, 8 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Wed, 7 Oct 2009 22:59:59 +0000 (22:59 +0000)]
daily update

14 years ago2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 7 Oct 2009 20:02:05 +0000 (20:02 +0000)]
2009-10-07  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10704
* gas/i386/intelok.s: Add 2 new tests.
* gas/i386/intelok.d: Updated.

14 years agogdb/testsuite/
jkratoch [Wed, 7 Oct 2009 19:52:27 +0000 (19:52 +0000)]
gdb/testsuite/
* gdb.base/hbreak.exp, gdb.base/hbreak.c: New.

14 years agogdb/
jkratoch [Wed, 7 Oct 2009 19:35:05 +0000 (19:35 +0000)]
gdb/
* i386-nat.c (i386_stopped_by_hwbp): Remove.

14 years agoChecked in the missing testcases.
hjl [Wed, 7 Oct 2009 18:33:20 +0000 (18:33 +0000)]
Checked in the missing testcases.

14 years agoAdd the missing entry.
hjl [Wed, 7 Oct 2009 18:31:50 +0000 (18:31 +0000)]
Add the missing entry.

14 years ago * NEWS: Update following the GDB 7.0 release.
brobecke [Wed, 7 Oct 2009 18:27:22 +0000 (18:27 +0000)]
    * NEWS: Update following the GDB 7.0 release.

14 years ago * gdb.base/watchpoints.c: Add copyright header. Reformat one
brobecke [Wed, 7 Oct 2009 18:17:31 +0000 (18:17 +0000)]
    * gdb.base/watchpoints.c: Add copyright header.  Reformat one
        of the comments.

14 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
corinna [Wed, 7 Oct 2009 16:45:23 +0000 (16:45 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
charset on Cygwin.

14 years agoSupport pseudo-reloc version 2
cwilson [Wed, 7 Oct 2009 15:47:38 +0000 (15:47 +0000)]
Support pseudo-reloc version 2

14 years ago * arm.cc (Arm_relocate_functions::extract_arm_movw_movt_addend):
ian [Wed, 7 Oct 2009 15:41:50 +0000 (15:41 +0000)]
* arm.cc (Arm_relocate_functions::extract_arm_movw_movt_addend):
New function.
(Arm_relocate_functions::insert_val_arm_movw_movt): New function.
(Arm_relocate_functions::extract_thumb_movw_movt_addend): New
function.
(Arm_relocate_functions::insert_val_thumb_movw_movt): New
function.
(Arm_relocate_functions::movw_abs_nc): New function.
(Arm_relocate_functions::movt_abs): New function.
(Arm_relocate_functions::thm_movw_abs_nc): New function.
(Arm_relocate_functions::thm_movt_abs): New function.
(Scan::local): Handle R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS,
R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS.
(Scan::global): Likewise.
(Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years ago* opcodes/microblaze-dis.c: Add include for microblaze-dis.h,
eager [Wed, 7 Oct 2009 15:40:17 +0000 (15:40 +0000)]
* opcodes/microblaze-dis.c: Add include for microblaze-dis.h,
eliminate local extern decls.
* opcodes/microblaze-dis.h: New.

14 years ago * arm.cc (Arm_relocate_functions::got_prel) New function.
ian [Wed, 7 Oct 2009 15:30:40 +0000 (15:30 +0000)]
* arm.cc (Arm_relocate_functions::got_prel) New function.
(Scan::local, Scan::global): Handle R_ARM_GOT_PREL.
(Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years ago * config/tc-arm.c (mapping_state, mapping_state_2): Make dummy
nathan [Wed, 7 Oct 2009 14:00:05 +0000 (14:00 +0000)]
* config/tc-arm.c (mapping_state, mapping_state_2): Make dummy
versions slightly more than nothing.

14 years ago * doc/c-arm.texi (ARM Options): Correctly name the two mapcs options.
nathan [Wed, 7 Oct 2009 13:46:54 +0000 (13:46 +0000)]
* doc/c-arm.texi (ARM Options): Correctly name the two mapcs options.

14 years ago * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
corinna [Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)]
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
as well.

14 years ago * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
corinna [Wed, 7 Oct 2009 07:52:29 +0000 (07:52 +0000)]
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty.  Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function.  Return 0 for
master side of pty if it's not the controlling tty of the process.

14 years ago ld/
nathan [Wed, 7 Oct 2009 07:25:35 +0000 (07:25 +0000)]
ld/
* ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
segments do not appear after a different loadable segment.
* ld.texinfo (PHDRS): Document order of processing segments.
Document where PHDRS and FILEHDR may appear.

ld/testsuite/
* ld-scripts/phdrs3.d: New.
* ld-scripts/phdrs3.t: New.
* ld-scripts/phdrs3.exp: New.

14 years agoSync with gcc repository.
ian [Wed, 7 Oct 2009 05:57:48 +0000 (05:57 +0000)]
Sync with gcc repository.

14 years ago PR gas/2117
amodra [Wed, 7 Oct 2009 05:13:53 +0000 (05:13 +0000)]
PR gas/2117
* config/tc-ia64.c (parse_operand): Use expression rather than
expression_and_evalute.
(parse_operand_and_eval): New function.  Replace all uses of
parse_operand outside of parse_operands with this function.
(parse_operans_maybe_eval): New function.  Replace uses of
parse_operand in parse_operands, except for the dummy, with
this function.

14 years agomerge from gcc
dj [Wed, 7 Oct 2009 02:57:27 +0000 (02:57 +0000)]
merge from gcc

14 years ago*** empty log message ***
gdbadmin [Wed, 7 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago ARI fix: OP eol rule.
muller [Tue, 6 Oct 2009 23:27:04 +0000 (23:27 +0000)]
ARI fix: OP eol rule.
* doublest.c (floatformat_from_length): Avoid operator at end of line.
* dwarf2-frame.c (dwarf2_build_frame_info): Idem.
* dwarf2read.c (read_array_order, dwarf_decode_macros): Idem.
* eval.c (evaluate_subexp_standard): Idem.
* event-loop.c (create_timer, handle_timer_event): Idem.
* expprint.c (print_subexp_standard): Idem.
* f-exp.y (variable): Idem.
* f-typeprint.c (f_print_type): Idem.