OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
14 years ago * cygwinenv.sgml (cygwinenv-implemented-options): Try to make
corinna [Tue, 12 Jan 2010 16:40:53 +0000 (16:40 +0000)]
* cygwinenv.sgml (cygwinenv-implemented-options): Try to make
compatibility new symlinks vs. old Cygwin clearer.

14 years ago * globals.cc (ro_u_nwfs): New R/O unicode string.
corinna [Tue, 12 Jan 2010 14:47:45 +0000 (14:47 +0000)]
* globals.cc (ro_u_nwfs): New R/O unicode string.
* mount.cc (fs_info::update): Check for NWFS filesystem.  Set
has_buggy_basic_info, if so.  Add comment to explain why.
(fillout_mntent): Add "nwfs" string to fs_names array.
* mount.h (enum fs_info_type): Add nwfs.
(class fs_info): Add has_buggy_basic_info status flag.  Add accessors
for has_buggy_basic_info and is_nwfs.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate
filesystems with broken FileBasicInformation handling.
* path.cc (symlink_info::check): Ditto.
* path.h (path_conv::has_buggy_basic_info): Add method.

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

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

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

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

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

14 years ago * dtable.cc (build_fh_name_worker): Remove. Move all functionality
corinna [Tue, 12 Jan 2010 10:14:59 +0000 (10:14 +0000)]
* dtable.cc (build_fh_name_worker): Remove.  Move all functionality
back into build_fh_name.
(build_fh_name): Drop unused HANDLE parameter.  Drop call to pc.fillin.
Remove disabled build_fh_name with UNICODE_STRING name parameter.
* dtable.h (build_fh_name): Drop HANDLE parameter from declaration.
Remove declaration for build_fh_name with UNICODE_STRING name parameter.
* path.cc (path_conv::fillin): Remove.
(symlink_info::check): Fix comment.
* path.h (path_conv::fillin): Remove declaration.
* dir.cc: Accommodate change in build_fh_name parameters throughout.
* sec_acl.cc: Ditto.
* syscalls.cc: Ditto.

* ntea.cc (getxattr_worker): Fix debug output.
(setxattr_worker): Ditto.
* times.cc (utimens_worker): Ditto.

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

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

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

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

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

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

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

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

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

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

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

14 years agogdb/ChangeLog:
brobecke [Tue, 12 Jan 2010 05:48:56 +0000 (05:48 +0000)]
gdb/ChangeLog:

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

gdb/testsuite/ChangeLog:

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

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

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

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

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

14 years ago2010-01-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
jjohnstn [Mon, 11 Jan 2010 23:24:46 +0000 (23:24 +0000)]
2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>

        * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.

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

14 years ago2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
jjohnstn [Mon, 11 Jan 2010 22:55:47 +0000 (22:55 +0000)]
2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

        * libc/include/math.h (log2, log2f): Disable macro versions for C++,
        as they are incompatible with OpenMP/C++ headers.

2

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

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

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

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

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

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

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

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

14 years ago * pathnames.sgml (mount-table): Add info that posix=0 is default for
corinna [Mon, 11 Jan 2010 18:00:13 +0000 (18:00 +0000)]
* pathnames.sgml (mount-table): Add info that posix=0 is default for
the cygdrive prefix.

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

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

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

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

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

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

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

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

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

14 years ago * fhandler_proc.cc (format_proc_stat): Use new in_buf.
corinna [Mon, 11 Jan 2010 15:10:20 +0000 (15:10 +0000)]
* fhandler_proc.cc (format_proc_stat): Use new in_buf.
(format_proc_cpuinfo): Replace szBuffer with a union in_buf.  Use type
correct throughout.  Add a couple of missing or newer cpu flags.  Allow
certain AMD flags for intel as well.

14 years agoAdd --dyn-syms to readelf
hjl [Mon, 11 Jan 2010 14:45:41 +0000 (14:45 +0000)]
Add --dyn-syms to readelf

binutils/

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

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

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

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

ld/testsuite/

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

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

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

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

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

14 years ago * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
corinna [Mon, 11 Jan 2010 12:13:54 +0000 (12:13 +0000)]
* mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.

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

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

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

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

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

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

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

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

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

14 years ago * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
corinna [Sun, 10 Jan 2010 13:54:33 +0000 (13:54 +0000)]
* libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
non-ASCII chars on Cygwin.
* libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.

14 years ago * fhandler.h (fhandler_base::fstat_helper): Declare timestamps as
corinna [Sun, 10 Jan 2010 11:12:52 +0000 (11:12 +0000)]
* fhandler.h (fhandler_base::fstat_helper): Declare timestamps as
PLARGE_INTEGER.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle):
Accommodate fstat_helper change of timestamp arguments.
(fhandler_base::fstat_by_name): Ditto.
(fhandler_base::fstat_helper): Define with timestamps as PLARGE_INTEGER.
Accommodate in call to to_timestruc_t.

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

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

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

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

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

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

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

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

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

sim/iq2000/:
* configure: Regenerate.

sim/d10v/:
* configure: Regenerate.

sim/m32r/:
* configure: Regenerate.

sim/frv/:
* configure: Regenerate.

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

sim/h8300/:
* configure: Regenerate.

sim/mn10300/:
* configure: Regenerate.

sim/erc32/:
* configure: Regenerate.

sim/arm/:
* configure: Regenerate.

sim/m68hc11/:
* configure: Regenerate.

sim/lm32/:
* configure: Regenerate.

sim/sh64/:
* configure: Regenerate.

sim/v850/:
* configure: Regenerate.

sim/cr16/:
* configure: Regenerate.

sim/moxie/:
* configure: Regenerate.

sim/m32c/:
* configure: Regenerate.

sim/mips/:
* configure: Regenerate.

sim/mcore/:
* configure: Regenerate.

sim/sh/:
* configure: Regenerate.

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

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

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

ld/:
* configure: Regenerate.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

14 years ago * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
ian [Fri, 8 Jan 2010 23:10:58 +0000 (23:10 +0000)]
* dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
the SHT_SYMTAB case.

14 years agodaily update
amodra [Fri, 8 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agogdb/testsuite/
jkratoch [Fri, 8 Jan 2010 22:59:47 +0000 (22:59 +0000)]
gdb/testsuite/
Workaround PR binutils/10802.
* lib/gdb.exp (gdb_gnu_strip_debug): Preserve the file attributes
(twice).

14 years agogdb/
jkratoch [Fri, 8 Jan 2010 22:55:14 +0000 (22:55 +0000)]
gdb/
Move some symfile code into subroutines.
* symfile.h (relative_addr_info_to_section_offsets)
(addr_info_make_relative): New prototypes.
* symfile.c (default_symfile_offsets): Move a part to ...
(relative_addr_info_to_section_offsets): ... this new function.
(default_symfile_offsets): Call it.
(syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
this part to ...
(addr_info_make_relative): ... this new function.

14 years agogdb/
jkratoch [Fri, 8 Jan 2010 22:52:03 +0000 (22:52 +0000)]
gdb/
Add from_tty to solib_create_inferior_hook.
* infcmd.c (post_create_inferior): Move solib_add after
solib_create_inferior_hook.  Pass from_tty to
solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
0 from_tty and comment why.
* infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
* linux-nat.c (linux_child_follow_fork): Likewise.
* nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
* solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
from_tty.
* solib-frv.c (frv_solib_create_inferior_hook): Likewise.
* solib-irix.c (irix_solib_create_inferior_hook): Likewise.
* solib-null.c (null_solib_create_inferior_hook): Likewise.
* solib-osf.c (osf_solib_create_inferior_hook): Likewise.
* solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
* solib-som.c (som_solib_create_inferior_hook): Likewise.
* solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
Pass it to svr4_so_ops.solib_create_inferior_hook.
* solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
from_tty.
* solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
solib_add.
(svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
enable_break.
* solib-target.c (solib_target_solib_create_inferior_hook): New
parameter from_tty.
* solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
it to ops->solib_create_inferior_hook.
(reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
Move solib_add after solib_create_inferior_hook, call it now with
from_tty as 0.  New comment there.
* solib.h (solib_create_inferior_hook): New parameter from_tty.
* solist.h (struct target_so_ops <solib_create_inferior_hook>):
Likewise.

14 years ago * object.cc (Sized_relobj::do_layout): Don't get confused if
ian [Fri, 8 Jan 2010 22:34:33 +0000 (22:34 +0000)]
* object.cc (Sized_relobj::do_layout): Don't get confused if
layout_eh_frame returns NULL.

14 years ago PR 11084
ian [Fri, 8 Jan 2010 21:24:44 +0000 (21:24 +0000)]
PR 11084
* dynobj.cc (Sized_dynobj::find_dynsym_sections): If there is no
dynamic symbol table, use the normal symbol table.
(Sized_dynobj::do_read_symbols): Remove assertion about type of
symbol table.

14 years ago PR 11072
ian [Fri, 8 Jan 2010 21:07:34 +0000 (21:07 +0000)]
PR 11072
* layout.cc (Layout::include_section): Remove .gnu_debuglink
sections.

14 years agoChange to "Copyright 2010"
hjl [Fri, 8 Jan 2010 19:48:09 +0000 (19:48 +0000)]
Change to "Copyright 2010"

14 years agoChange to "Copyright 2010".
hjl [Fri, 8 Jan 2010 19:40:07 +0000 (19:40 +0000)]
Change to "Copyright 2010".

14 years ago PR 10287
ian [Fri, 8 Jan 2010 19:33:17 +0000 (19:33 +0000)]
PR 10287
PR 11063
* i386.cc (class Target_i386): Change return type of plt_section
to be non-const.
(class Output_data_plt_i386): Add tls_desc_rel_ field.
(Output_data_plt_i386::Output_data_plt_i386): Initialize
tls_desc_rel_ field.
(Output_data_plt_i386::rel_tls_desc): New function.
(Target_i386::rel_tls_desc_section): New function.
(Target_i386::Scan::local): Rewrite R_386_TLS_GOTDESC handling.
(Target_i386::Scan::global): For R_386_TLS_GOTDESC put
R_386_TLS_DESC reloc in rel_tls_desc_section.
* x86_64.cc (class Target_x86_64): Add tlsdesc_reloc_info_ field.
Define struct Tlsdesc_info.
(Target_x86_64::Target_x86_64): Initialize tlsdesc_reloc_info_.
(Target_x86_64::do_reloc_symbol_index): New function.
(Target_x86_64::add_tlsdesc_info): New function.
(class Output_data_plt_x86_64): Add tlsdesc_rel_ field.
(Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize
tlsdesc_rel_ field.
(Output_data_plt_x86_64::rela_plt): Rename from rel_plt.  Change
all callers.
(Output_data_plt_x86_64::rela_tlsdesc): New function.
(Target_x86_64::rela_tlsdesc_section): New function.
(Target_x86_64::Scan::local): Rewrite R_X86_64_GOTPC32_TLSDESC
handling.
(Target_x86_64::Scan::global): For R_X86_64_GOTPC32_TLSDESC put
(Target_x86_64::do_reloc_addend): New function.
R_X86_64_TLSDESC reloc in rela_tlsdesc_section.
* output.h (class Output_reloc) [SHT_REL]: Add new constructor
declarations.  Define TARGET_CODE.  Add arg field to u1_ union.
(Output_reloc::type): New function.
(Output_reloc::is_local_section_symbol): Check for TARGET_CODE.
(Output_reloc::is_target_specific): New function.
(Output_reloc::target_arg): New function.
(class Output_reloc) [SHT_RELA]: Add four new constructors for
absolute relocs and target specific relocs.
(class Output_data_reloc) [SHT_REL]: Add add_absolute and
add_target_specific.
(class Output_data_reloc) [SHT_RELA]: Likewise.
* output.cc (Output_reloc::Output_reloc): Add four new versions
for absolute relocs and target specific relocs.
(Output_reloc::set_needs_dynsym_index): Add TARGET_CODE case.
(Output_reloc::get_symbol_index): Likewise.
(Output_reloc::local_section_offset): Check that local_sym_index_
is not TARGET_CODE or 0.
(Output_reloc::symbol_value): Likewise.
(Output_reloc::write) [SHT_RELA]: Call target for target specific
reloc.
* target.h (class Target): Add reloc_symbol_index and reloc_addend
functions.  Add do_reloc_symbol_index and do_reloc_addend virtual
functions.
* layout.cc (add_target_dynamic_tags): Use output section for
DT_PLTRELSZ and DT_JMPREL.

14 years agoAdd --input-type and --output-type to elfedit
hjl [Fri, 8 Jan 2010 18:50:38 +0000 (18:50 +0000)]
Add --input-type and --output-type to elfedit

binutils/

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

* elfedit.c (input_elf_type): New.
(output_elf_type): Likewise.
(elf_type): Likewise.
(update_elf_header): Support updating ELF file type.
(command_line_switch): Add OPTION_INPUT_TYPE and
OPTION_OUTPUT_TYPE.
(options): Likewise.
(usage): Add --input-type and --output-type.
(main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE.  Check
one of --output-mach and --output-type must be specified.

* doc/binutils.texi: Document --input-type and --output-type
for elfedit.

binutils/testsuite/

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

* binutils-all/elfedit-2.d: New.

* binutils-all/elfedit.exp: Run elfedit-2.

14 years ago * gdb.cp/gdb2495.exp: Skip if gdb,nosignals.
drow [Fri, 8 Jan 2010 17:48:04 +0000 (17:48 +0000)]
* gdb.cp/gdb2495.exp: Skip if gdb,nosignals.

14 years agoFix a typo
hjl [Fri, 8 Jan 2010 17:23:05 +0000 (17:23 +0000)]
Fix a typo

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

* doc/binutils.texi: Fix a typo.

14 years ago Fix multiexec race.
vprus [Fri, 8 Jan 2010 16:54:14 +0000 (16:54 +0000)]
Fix multiexec race.
* infrun.c (handle_inferior_event): Use get_thread_regcache
with events ptid, not get_current_regcache.

14 years ago PR bootstrap/42424
ghazi [Fri, 8 Jan 2010 15:59:17 +0000 (15:59 +0000)]
PR bootstrap/42424
* configure.ac: Include libtool m4 files.
        (_LT_CHECK_OBJDIR): Call it.
(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.

* configure: Regenerate.

14 years agoDon't change input_elf_XXX if they are -1
hjl [Fri, 8 Jan 2010 15:58:07 +0000 (15:58 +0000)]
Don't change input_elf_XXX if they are -1

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

* elfedit.c (update_elf_header): Don't change input_elf_class
nor input_elf_machine if they are -1.

14 years ago * sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users account
corinna [Fri, 8 Jan 2010 15:55:27 +0000 (15:55 +0000)]
* sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users account
to all created tokens.
* sec_helper.cc (well_known_users_sid): Define as BUILTIN\Users.
* security.h (well_known_users_sid): Declare.

14 years agoGDB crash with empty executable name (MinGW).
brobecke [Fri, 8 Jan 2010 13:54:39 +0000 (13:54 +0000)]
GDB crash with empty executable name (MinGW).

        * source.c (openp): Add assert that parameter string is not NULL.
        if parameter string is an empty string, then return with a failure
        immediately.

14 years ago * lib/gdb.exp (gdb_start_cmd): Move comment outside of gdb_expect
brobecke [Fri, 8 Jan 2010 12:03:36 +0000 (12:03 +0000)]
    * lib/gdb.exp (gdb_start_cmd): Move comment outside of gdb_expect
        call, to avoid interruption.

14 years agoFix typo in date.
brobecke [Fri, 8 Jan 2010 12:01:59 +0000 (12:01 +0000)]
Fix typo in date.

14 years agoGet rid of support for VAX Floats.
brobecke [Fri, 8 Jan 2010 11:58:22 +0000 (11:58 +0000)]
Get rid of support for VAX Floats.

        * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
        (ada_vax_float_print_function): Delete.
        * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
        (ada_vax_float_print_function): Delete.
        * ada-typeprint.c (print_vax_floating_point_type): Delete.
        (ada_print_type): Remove support for VAX floats.
        * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.

14 years agoFix typo in date.
brobecke [Fri, 8 Jan 2010 11:56:36 +0000 (11:56 +0000)]
Fix typo in date.

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

* archive.c: Remove bfd_special_undocumented_glue.

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

* ar.c: Remove bfd_special_undocumented_glue prototype.

14 years agogdb/
jkratoch [Fri, 8 Jan 2010 08:55:15 +0000 (08:55 +0000)]
gdb/
* stabsread.c (read_args): Handle zero arguments.

gdb/testsuite/
* gdb.stabs/weird.def (args93): New.

14 years ago Cannot find in-tree libiconv.a after reconfigure.
brobecke [Fri, 8 Jan 2010 07:16:43 +0000 (07:16 +0000)]
    Cannot find in-tree libiconv.a after reconfigure.
        * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
        that we can use, then cache the path to this archive.
        * configure: Regenerate.

14 years ago PR ld/11133
amodra [Fri, 8 Jan 2010 05:55:10 +0000 (05:55 +0000)]
PR ld/11133
* elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
* elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.

14 years agoFix PR ld/11138
hjl [Fri, 8 Jan 2010 03:03:15 +0000 (03:03 +0000)]
Fix PR ld/11138

bfd/

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

PR ld/11138
* elflink.c (elf_link_check_versioned_symbol): Don't abort if
a symbol referenced by DSO is is defined in a non-shared object
and forced local.

ld/testsuite/

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

PR ld/11138
* ld-elf/pr11138-1.c: New.
* ld-elf/pr11138-1.map: Likewise.
* ld-elf/pr11138-2.c: Likewise.
* ld-elf/pr11138-2.map: Likewise.
* ld-elf/pr11138.out: Likewise.

* ld-elf/shared.exp (build_tests): Add libpr11138-1.so and
libpr11138-2.o.
(run_tests): Add 2 tests for PR ld/11138.