external/binutils.git
12 years ago[bfd]
DJ Delorie [Fri, 23 Dec 2011 01:49:37 +0000 (01:49 +0000)]
[bfd]
* elf32-rl78.c (rl78_elf_howto_table): Add R_RL78_RH_RELAX.
(rl78_reloc_map): Add BFD_RELOC_RL78_RELAX.
(rl78_elf_relocate_section): Add R_RL78_RH_RELAX, R_RL78_RH_SFR,
and R_RL78_RH_SADDR.
(rl78_elf_finish_dynamic_sections): Only validate PLT section if
we didn't relax anything, as relaxing might remove a PLT reference
after we've set up the table.
(elf32_rl78_relax_delete_bytes): New.
(reloc_bubblesort): New.
(rl78_offset_for_reloc): New.
(relax_addr16): New.
(rl78_elf_relax_section): Add support for relaxing long
instructions into short ones.

[gas]
* config/rl78-defs.h (rl78_linkrelax_addr16): Add.
(rl78_linkrelax_dsp, rl78_linkrelax_imm): Remove.
* config/rl78-parse.y: Tag all addr16 and branch patterns with
relaxation markers.
* config/tc-rl78.c (rl78_linkrelax_addr16): New.
(rl78_linkrelax_branch): New.
(OPTION_RELAX): New.
(md_longopts): Add relax option.
(md_parse_option): Add OPTION_RELAX.
(rl78_frag_init): Support relaxation.
(rl78_handle_align): New.
(md_assemble): Support relaxation.
(md_apply_fix): Likewise.
(md_convert_frag): Likewise.
* config/tc-rl78.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
(HANDLE_ALIGN): New.
(rl78_handle_align): Declare.

* config/rl78-parse.y (rl78_bit_insn): New.  Set it for all bit
insn patterns.
(find_bit_index): New.  Strip .BIT suffix off relevent
expressions for bit insns.
(rl78_lex): Exclude bit suffixes from expression parsing.

[include/elf]
* rl78.h (R_RL78_RH_RELAX, R_RL78_RH_SFR, R_RL78_RH_SADDR): New.
(RL78_RELAXA_BRA, RL78_RELAXA_ADDR16: New.

12 years ago*** empty log message ***
gdbadmin [Fri, 23 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago PR python/12533:
Tom Tromey [Thu, 22 Dec 2011 19:51:10 +0000 (19:51 +0000)]
PR python/12533:
* value.h (release_value_or_incref): Declare.
* value.c (struct value) <released>: New field.
(free_all_values, release_value, value_release_to_mark): Update
'released'.
(release_value_or_incref): New function.
* python/py-value.c (valpy_new): Use release_value_or_incref.
(value_to_value_object): Likewise.
* varobj.c (install_new_value): Move value_incref earlier.

12 years ago * value.c (struct value) <modifiable, lazy, optimized_out,
Tom Tromey [Thu, 22 Dec 2011 19:41:59 +0000 (19:41 +0000)]
* value.c (struct value) <modifiable, lazy, optimized_out,
initialized, stack>: Now bitfields.  Move to top.
<reference_count>: Move earlier.

12 years ago2011-12-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky [Thu, 22 Dec 2011 15:00:44 +0000 (15:00 +0000)]
2011-12-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* elf32-s390.c (elf_s390_relocate_section): Add check for debugging
section in LD to LE linker relaxation for R_390_TLS_LDO32.
* elf64-s390.c (elf_s390_relocate_section): Likewise for
R_390_TLS_LDO64.

12 years ago * minsyms.h: Rearrange. Document header and all functions.
Tom Tromey [Thu, 22 Dec 2011 02:34:34 +0000 (02:34 +0000)]
* minsyms.h: Rearrange.  Document header and all functions.
* minsyms.c: Move some comments to minsyms.h.

12 years ago*** empty log message ***
gdbadmin [Thu, 22 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * symtab.h: Include minsyms.h.
Tom Tromey [Wed, 21 Dec 2011 21:51:57 +0000 (21:51 +0000)]
* symtab.h: Include minsyms.h.
(prim_record_minimal_symbol, prim_record_minimal_symbol_full)
(prim_record_minimal_symbol_and_info, msymbol_hash_iw)
(msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
(lookup_minimal_symbol, lookup_minimal_symbol_text)
(lookup_minimal_symbol_solib_trampoline)
(lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
(iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
(lookup_minimal_symbol_by_pc_section)
(lookup_solib_trampoline_symbol_by_pc)
(init_minimal_symbol_collection)
(make_cleanup_discard_minimal_symbols, install_minimal_symbols)
(msymbols_sort): Move to minsyms.h.
* objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
* minsyms.c (terminate_minimal_symbol_table): Move from
objfiles.c.
* minsyms.h: New file.

12 years ago * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
Tom Tromey [Wed, 21 Dec 2011 21:34:25 +0000 (21:34 +0000)]
* hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
ALL_OBJFILE_MSYMBOLS.
(hppa_hpux_find_dummy_bpaddr): Likewise.
* jit.c (jit_object_close_impl): Use
terminate_minimal_symbol_table.

12 years ago * elfread.c (elf_symtab_read): Put the filename in the filename
Tom Tromey [Wed, 21 Dec 2011 21:30:31 +0000 (21:30 +0000)]
* elfread.c (elf_symtab_read): Put the filename in the filename
bcache.

12 years ago * symtab.h (struct minimal_symbol) <filename>: Now const.
Tom Tromey [Wed, 21 Dec 2011 21:24:59 +0000 (21:24 +0000)]
* symtab.h (struct minimal_symbol) <filename>: Now const.

12 years ago * elf32-arm.c (elf32_arm_nabi_grok_psinfo): Fill in core_pid.
Ulrich Weigand [Wed, 21 Dec 2011 21:21:16 +0000 (21:21 +0000)]
* elf32-arm.c (elf32_arm_nabi_grok_psinfo): Fill in core_pid.

12 years agogdb/
Ulrich Weigand [Wed, 21 Dec 2011 21:13:15 +0000 (21:13 +0000)]
gdb/
PR tdep/12797
* arm-tdep.c (arm_return_value): Handle complex types.

gdb/testsuite/
PR tdep/12797
* gdb.base/callfuncs.exp: Remove KFAIL.

12 years ago * configure.in (--enable-deterministic-archives): Grok new
Roland McGrath [Wed, 21 Dec 2011 19:39:11 +0000 (19:39 +0000)]
* configure.in (--enable-deterministic-archives): Grok new
argument.  Set DEFAULT_AR_DETERMINISTIC to 1 or 0 accordingly.
* configure: Regenerated.
* config.in: Regenerated.
* ar.c (deterministic): Initialize to -1.
(decode_options, ranlib_main): Grok U option.
(usage, ranlib_usage): Mention U; say for D and U which is the default.
(default_deterministic): New function.
(ranlib_main): Call it.
(main): Likewise.  Make newer_only && deterministic error
non-fatal if it was just DEFAULT_AR_DETERMINISTIC and not the D option.
* doc/binutils.texi (ar cmdline, ranlib): Document U modifier and
--enable-deterministic-archives behavior.

12 years ago PR gas/13449
Nick Clifton [Wed, 21 Dec 2011 17:07:26 +0000 (17:07 +0000)]
PR gas/13449
* config/tc-arm.c (create_unwind_entry): Zero allocated table
entries.

12 years ago* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
Andreas Schwab [Wed, 21 Dec 2011 15:27:29 +0000 (15:27 +0000)]
* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
watchpoints when supported.

12 years agogdb/
Jan Kratochvil [Wed, 21 Dec 2011 14:25:53 +0000 (14:25 +0000)]
gdb/
* symfile.c (objfilep): New typedef and new DEF_VEC_P.
(reread_symbols): Remove variable reread_one, new variables
new_objfiles, all_cleanups and ix.  Use new_objfiles instead of
reread_one.  Push changed objfiles to new_objfiles, call
observer_notify_new_objfile for them later.

12 years agoUse symbol search name in expand_symtabs_matching_via_partial...
Joel Brobecker [Wed, 21 Dec 2011 07:34:09 +0000 (07:34 +0000)]
Use symbol search name in expand_symtabs_matching_via_partial...

We are iterating over all symbols in a partial symtab that would
match a given name, so we should match the partial symbols
search name against the given name rather than using the natural
name.  In C++, that does not make a difference, but it does in
Ada, because Ada searches using the symbol encoded name...

We also update the generation of the .gdb_index file to match this
change in the search. Although technically an incompatible change,
we do not increment the gdb_index version number, because Ada is
the only language where it would make a difference - except that
this feature is not supported for Ada.

gdb/ChangeLog:

        * psymtab.c (expand_symtabs_matching_via_partial): Match
        the partial symbols using their SYMBOL_SEARCH_NAME.
        * symfile.h (struct quick_symbol_functions): Udate the
        documentation of expand_symtabs_matching.
        * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
        of SYMBOL_NATURAL_NAME in index entry.

12 years agoAdd handling for unqualified Ada operators in linespecs
Joel Brobecker [Wed, 21 Dec 2011 07:24:40 +0000 (07:24 +0000)]
Add handling for unqualified Ada operators in linespecs

This patch enhances the linespec parser to recognize unqualified
operator names in linespecs. This allows the user to insert a breakpoint
on operator "+" as follow, for instance:

        (gdb) break "+"

Previously, it was possible to insert such a breakpoint, but one
had to fully qualify the function name. For instance:

        (gdb) break ops."+"

gdb/ChangeLog:

        * linespec.c (locate_first_half): Add handling of Ada operators
        when the current language is Ada.

12 years agomissing check against overlay_debugging in objfiles.c
Joel Brobecker [Wed, 21 Dec 2011 07:11:52 +0000 (07:11 +0000)]
missing check against overlay_debugging in objfiles.c

This fixes a problem where the debugger is trying to locate a minimal
symbol from its address, when the symbol is inside a section whose
VMA is different from its LMA.

We have a program that was built on ppc-elf using a linker script
such that data sections are placed in ROM, and then loaded onto RAM
at execution.  So their VMA addresses are indeed different from
their LMA address.

Unfortunately, there is one place where GDB gets slightly confused
into thinking that these data sections are overlayed, while it's
not the case here.  This show up when trying to print the list of
Ada tasks, where GDB is unable to determine their names, and thus
prints a generic `Ravenscar task' instead:

    (gdb) info tasks
       ID       TID P-ID Pri State                  Name
        1     1d580      127 Delay Sleep            Ravenscar task
        2     183f8      127 Delay Sleep            Ravenscar task
    *   3     13268      127 Runnable               Ravenscar task

We expected:

    (gdb) info tasks
       ID       TID P-ID Pri State                  Name
        1     1d580      127 Delay Sleep            environment_task
        2     183f8      127 Delay Sleep            raven2
    *   3     13268      127 Runnable               raven1

The name of the task is determined by looking up the symbol table
using the task ID, which is the address where the symbol is defined.
So, ada-tasks calls...

    msym = lookup_minimal_symbol_by_pc (task_id);

... which in turn first tries to determine the section associated
to this address (find_pc_section), which itself uses a map of sections
to find it. The map itself is recomputed every time objfiles are
loaded/changed by `update_section_map'. And `update_section_map'
relies on `insert_section_p' to determine whether the section should
be inserted in the map or not.

This is where things get interesting for us, because `insert_section_p'
simply rejects overlay sections:

  if (lma != 0 && lma != bfd_section_vma (abfd, section)
      && (bfd_get_file_flags (abfd) & BFD_IN_MEMORY) == 0)
    /* This is an overlay section.  IN_MEMORY check is needed to avoid
       discarding sections from the "system supplied DSO" (aka vdso)
       on some Linux systems (e.g. Fedora 11).  */
    return 0;

However, it shouldn't reject our section in this case, since overlay
debugging is off.  The fix is to add a check that overlay debugging
is active before rejecting the section.  This is similar to what is
done in `section_is_overlay' (which takes obj_section objects), for
instance.

gdb/Changelog:

        * objfiles.c (insert_section_p): Do not detect overlay sections
        if overlay debugging is off.

12 years ago[Ada] Breakpoints on task bodies
Joel Brobecker [Wed, 21 Dec 2011 07:10:59 +0000 (07:10 +0000)]
[Ada] Breakpoints on task bodies

Consider the following declaration:

    package Pck is
       task Dummy_Task is
          entry Start;
       end Dummy_Task;
    end Pck;

Inserting a breakpoint on the body of that task does not currently
work:

    (gdb) b pck.dummy_task
    "pck.dummy_task" is not a function
    Make breakpoint pending on future shared library load? (y or [n]) n

What happens here is that the compiler generates two symbols:

  (a) Symbol `pck__dummy_task' which is a *variable* referencing
      the task;

  (b) Symbol `pck__dummy_taskTKB' which is the subprogram implementing
      the body of the task.

The symbol lookup only finds the variable before of the TKB suffix in
the subprogram name. This patch fixes the problem by adjusting the
ada-lang.c:is_name_suffix routine to recognize "TKB" suffixes.  But
that's not enough, because the search in the symtab is performed via
the block dictionary, using a hashing algorithm. So, for the search
to find `pck__dummy_taskTKB', I had to modify the hashing function
to ignore TKB suffixes as well.

gdb/ChangeLog:

        * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
        Update function documentation.
        * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
        computation.

gdb/testsuite/ChangeLog:

        * gdb.ada/task_bp: New testcase.

12 years ago*** empty log message ***
gdbadmin [Wed, 21 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agomerge from gcc
DJ Delorie [Tue, 20 Dec 2011 19:02:08 +0000 (19:02 +0000)]
merge from gcc

12 years ago * emulparams/elf32bmip.sh (OTHER_SECTIONS): Put .mdebug.* and
Joseph Myers [Tue, 20 Dec 2011 17:55:24 +0000 (17:55 +0000)]
* emulparams/elf32bmip.sh (OTHER_SECTIONS): Put .mdebug.* and
.gcc_compiled_long* sections at address 0.

12 years agoconfig/:
Andreas Schwab [Tue, 20 Dec 2011 17:01:30 +0000 (17:01 +0000)]
config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in
expr call.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.

12 years ago2011-12-20 Pedro Alves <alves.ped@gmail.com>
Pedro Alves [Tue, 20 Dec 2011 10:40:15 +0000 (10:40 +0000)]
2011-12-20  Pedro Alves  <alves.ped@gmail.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

        * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
first LWP.
* amd64-linux-nat.c (update_debug_registers_callback): Instantiate
`lwp->arch_private' if NULL.
(amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
is NULL.
* i386-linux-nat.c (update_debug_registers_callback): Instantiate
`lwp->arch_private' if NULL.
(i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
is NULL.

12 years ago * python/py-auto-load.c (info_auto_load_scripts): Pass address of
Doug Evans [Tue, 20 Dec 2011 04:29:35 +0000 (04:29 +0000)]
* python/py-auto-load.c (info_auto_load_scripts): Pass address of
scripts vector to collect_matching_scripts.
(collect_matching_scripts): Update.

12 years ago*** empty log message ***
gdbadmin [Tue, 20 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
Jan Kratochvil [Mon, 19 Dec 2011 22:20:07 +0000 (22:20 +0000)]
gdb/
* symfile.c (reread_symbols): Move free_objfile_separate_debug,
preserve_values, sym_finish and clear_objfile_data calls before BFD
close.  Move free_objfile_separate_debug as the very first call.  New
comment on the ordering.

gdb/testsuite/
* gdb.base/reread.exp: If srcfile2 fails to build retry it with
-DNO_SECTIONS.
* gdb.base/reread2.c <!NO_SECTIONS>: New sections block.

12 years ago * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
Ulrich Weigand [Mon, 19 Dec 2011 21:44:57 +0000 (21:44 +0000)]
* s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
in return PSWA.

12 years ago * object.h (Relobj::local_symbol_value): New function.
Ian Lance Taylor [Mon, 19 Dec 2011 21:07:16 +0000 (21:07 +0000)]
* object.h (Relobj::local_symbol_value): New function.
(Relobj::local_plt_offset): New function.
(Relobj::local_has_got_offset): New function.
(Relobj::local_got_offset): New function.
(Relobj::set_local_got_offset): New function.
(Relobj::do_local_symbol_value): New pure virtual function.
(Relobj::do_local_plt_offset): Likewise.
(Relobj::do_local_has_got_offset): Likewise.
(Relobj::do_local_got_offset): Likewise.
(Relobj::do_set_local_got_offset): Likewise.
(Sized_relobj::do_local_has_got_offset): Rename from
local_has_got_offset.
(Sized_relobj::do_local_got_offset): Rename from local_got_offset.
(Sized_relobj::do_set_local_got_offset): Rename from
set_local_got_offset.
(Sized_relobj_file::do_local_plt_offset): Rename from
local_plt_offset.
(Sized_relobj_file::do_local_symbol_value): New function.
* object.cc (Sized_relobj_file::do_local_plt_offset): Rename from
local_plt_offset.
* output.cc (Output_data_got::Got_entry::write): Change object to
Relobj.  Use local_symbol_value.
(Output_data_got::add_global_with_rel): Change rel_dyn to
Output_data_reloc_generic*.  Use add_global_generic.
(Output_data_got::add_global_with_rela): Remove.  Change all
callers to use add_global_with_rel.
(Output_data_got::add_global_pair_with_rel): Change rel_dyn to
Output_data_reloc_generic*.  Use add_global_generic.
(Output_data_got::add_global_pair_with_rela): Remove.  Change all
callers to use add_global_pair_with_rel.
(Output_data_got::add_local): Change object to Relobj*.
(Output_data_got::add_local_plt): Likewise.
(Output_data_got::add_local_with_rel): Change object to Relobj*,
change rel_dyn to Output_data_reloc_generic*.  Use
add_local_generic.
(Output_data_got::add_local_with_rela): Remove.  Change all
callers to use all_local_with_rel.
(Output_data_got::add_local_pair_with_rel): Change object to
Relobj*, change rel_dyn to Output_data_reloc_generic*.  Use
add_output_section_generic.
(Output_data_got::add_local_pair_with_rela): Remove.  Change all
callers to use add_local_pair_with_rel.
(Output_data_got::reserve_local): Change object to Relobj*.
* output.h: (class Output_data_reloc_generic): Add pure virtual
declarations for add_global_generic, add_local_generic,
add_output_section_generic.
(class Output_data_reloc) [SHT_REL, SHT_RELA]: Implement new
functions for Output_data_reloc_generic.  Update declarations for
changes listed in output.cc.
(class Output_data_got): Change template parameter to got_size.
Don't define Rel_dyn or Rela_dyn.  Update declarations per above.
* incremental.h (Sized_relobj_incr::do_local_symbol_value): New
function.
(Sized_relobj_incr::do_local_plt_offset): New function.
* copy-relocs.cc (Copy_relocs::Copy_reloc_entry::emit): Call
add_global_generic.

12 years ago * symtab.h (add_minsym_to_hash_table): Don't declare.
Tom Tromey [Mon, 19 Dec 2011 16:11:14 +0000 (16:11 +0000)]
* symtab.h (add_minsym_to_hash_table): Don't declare.
* minsyms.c (add_minsym_to_hash_table): Now static.

12 years agobfd:
Iain Sandoe [Mon, 19 Dec 2011 15:42:37 +0000 (15:42 +0000)]
bfd:

* mach-o-i386.c (bfd_mach_o_section_type_valid_for_tgt): Define NULL.
* mach-o-target.c (bfd_mach_o_backend_data): Initialize bfd_mach_o_section_type_valid_for_tgt
* mach-o-x86-64.c (bfd_mach_o_section_type_valid_for_x86_64): New.
(bfd_mach_o_section_type_valid_for_tgt): Set to bfd_mach_o_section_type_valid_for_x86_64.
* mach-o.c (bfd_mach_o_section_type_name): Reorder and eliminate dup.
(bfd_mach_o_section_attribute_name): Reorder.
(bfd_mach_o_get_section_type_from_name): If the target has defined a validator for section
types, then use it.
* mach-o.h (bfd_mach_o_get_section_type_from_name): Alter declaration to include the bfd.

gas:

* config/obj-macho.c (obj_mach_o_section): Account for target-dependent section
types.  Improve error handling when wrong section types/attributes are specified.

gas/testsuite:

* gas/mach-o/err-sections-1.s: New.
* gas/mach-o/err-sections-2.s: New.
* gas/mach-o/sections-3.d: New.
* gas/mach-o/sections-3.s: New.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 19 Dec 2011 13:42:50 +0000 (13:42 +0000)]
gdb/testsuite/
* gdb.cp/ptype-cv-cp.exp (ptype v_volatile_const_my_int): Make
PR gcc/45997 XFAIL conditional for gcc <= 4.5.
* gdb.python/py-type.exp (python print ttype.template_argument(2)):
Change PR gcc/41736 to the more specific PR gcc/46955.  Make it
conditional for gcc <= 4.5.

12 years agogdb/doc/
Jan Kratochvil [Mon, 19 Dec 2011 13:37:34 +0000 (13:37 +0000)]
gdb/doc/
* gdbint.texinfo (Testsuite): Describe KFAIL and XFAIL in Writing
tests.

gdb/testsuite/
* gdb.cp/ptype-cv-cp.exp (ptype v_volatile_const_my_int): Replace KFAIL
by XFAIL.
* gdb.cp/static-method.exp (info addr A::func())
(list static-method.cc:xxx::(anonymous namespace)::A::func)
(list 'static-method.cc:xxx::(anonymous namespace)::A::func')
(list 'static-method.cc':'xxx::(anonymous namespace)::A::func')
(list static-method.cc:'xxx::(anonymous namespace)::A::func'): Likewise.
* gdb.cp/temargs.exp (test value of F in k2_m, test type of F in k3_m)
(test value of F in k3_m): Likewise.
* gdb.python/py-type.exp (python print ttype.template_argument(2)):
Likewise.

12 years agoCheck for warning flags without no- prefix
Andreas Schwab [Mon, 19 Dec 2011 13:20:24 +0000 (13:20 +0000)]
Check for warning flags without no- prefix

config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
no- prefix.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 19 Dec 2011 10:31:43 +0000 (10:31 +0000)]
gdb/testsuite/
* gdb.threads/attach-stopped.exp (continue (*: attach2 continue))
(*: attach2 stop interrupt, *: attach2, exit leaves process sleeping):
Remove.
* gdb.threads/attachstop-mt.c: Remove.
* gdb.threads/attachstop-mt.exp: Remove.

12 years ago2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
Chung-Lin Tang [Mon, 19 Dec 2011 07:58:02 +0000 (07:58 +0000)]
2011-12-19  Chung-Lin Tang  <cltang@codesourcery.com>

gas/
* config/tc-mips.c (mips_pseudo_table): Add tprelword/tpreldword
entries.
(mips16_percent_op): Add MIPS16 TLS relocation ops.
(md_apply_fix): Add BFD_RELOC_MIPS16_TLS_* switch cases.
(s_tls_rel_directive): Rename from s_dtprel_internal(). Abstract out
directive string and reloc type as function parameters. Update
comments.
(s_dtprelword,s_dtpreldword): Change to use s_tls_rel_directive().
(s_tprelword,s_tpreldword): New functions.

include/
* elf/mips.h (elf_mips_reloc_type): Add R_MIPS16_TLS_* entries.

bfd/
* reloc.c (BFD_RELOC_MIPS16_TLS_GD,BFD_RELOC_MIPS16_TLS_LDM,
BFD_RELOC_MIPS16_TLS_DTPREL_HI16,BFD_RELOC_MIPS16_TLS_DTPREL_LO16,
BFD_RELOC_MIPS16_TLS_GOTTPREL,BFD_RELOC_MIPS16_TLS_TPREL_HI16,
BFD_RELOC_MIPS16_TLS_TPREL_LO16): New relocations for MIPS16 TLS.
* bfd-in2.h (bfd_reloc_code_real): Regenerate.
* libbfd.h (bfd_reloc_code_real_names): Regenerate.
* elf32-mips.c (elf_mips16_howto_table_rel): Add R_MIPS16_TLS_*
entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elfn32-mips.c (elf_mips16_howto_table_rel,
elf_mips16_howto_table_rela): Add R_MIPS16_TLS_* entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elf64-mips.c (mips16_elf64_howto_table_rel,
mips16_elf64_howto_table_rela): Add R_MIPS16_TLS_* entries.
(mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
mappings.
* elfxx-mips.c (TLS_RELOC_P,mips16_reloc_p,
_bfd_mips_elf_check_relocs): Add cases for R_MIPS16_TLS_* relocations.
(tls_gd_reloc_p): Add R_MIPS16_TLS_GD case.
(tls_ldm_reloc_p): Add R_MIPS16_TLS_LDM case.
(tls_gottprel_reloc_p): Add R_MIPS16_TLS_GOTTPREL case.
(mips_elf_calculate_relocation): Add cases for R_MIPS16_TLS_*,
R_MIPS_TLS_DTPREL32/64, and R_MIPS_TLS_TPREL32/64 relocations.

12 years ago2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
Chung-Lin Tang [Mon, 19 Dec 2011 07:31:07 +0000 (07:31 +0000)]
2011-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>
    Richard Sandiford  <rdsandiford@googlemail.com>

* elfxx-mips.c (mips_elf_local_pic_function_p): Return true when
H is a MIPS16 function with a kept 32-bit stub. Update comments.
(mips_elf_get_la25_target): New function.
(mips_elf_add_la25_intro): Change to use mips_elf_get_la25_target().
(mips_elf_add_la25_stub): Move compute of use_trampoline_p down,
change to use mips_elf_get_la25_target().
(mips_elf_relocation_needs_la25_stub): Add target_is_16_bit_code_p
parameter, add switch case for R_MIPS16_26.
(mips_elf_calculate_relocation): Redirect relocation to point to the
LA25 stub if it exists, instead of the MIPS16 stub. Update arguments
of call to mips_elf_relocation_needs_la25_stub(), don't use la25 stub
for mips16->mips16 calls.
(_bfd_mips_elf_check_relocs): Update arguments of call to
mips_elf_relocation_needs_la25_stub().
(mips_elf_create_la25_stub): Change to use mips_elf_get_la25_target().

12 years agotry ignoring bad PLT entries in ELF symbol tables
Joel Brobecker [Mon, 19 Dec 2011 04:36:29 +0000 (04:36 +0000)]
try ignoring bad PLT entries in ELF symbol tables

Comment says it all:

         /* On ia64-hpux, we have discovered that the system linker
            adds undefined symbols with nonzero addresses that cannot
            be right (their address points inside the code of another
            function in the .text section).  This creates problems
            when trying to determine which symbol corresponds to
            a given address.

            We try to detect those buggy symbols by checking which
            section we think they correspond to.  Normally, PLT symbols
            are stored inside their own section, and the typical name
            for that section is ".plt".  So, if there is a ".plt"
            section, and yet the section name of our symbol does not
            start with ".plt", we ignore that symbol.  */

gdb/ChangeLog:

        * elfread.c (elf_symtab_read): Ignore undefined symbols with
        nonzero addresses if they do not correspond to a .plt section
        when one is available in the objfile.

12 years agoWork around Solaris bourne shell limitation when building the sim
Joel Brobecker [Mon, 19 Dec 2011 04:33:39 +0000 (04:33 +0000)]
Work around Solaris bourne shell limitation when building the sim

Building the sim on a sparc-solaris 2.8 machine fails when configured
with no extra sim hardware:

> for hw in  ; do \
>         echo "extern const struct hw_descriptor
>         dv_${hw}_descriptor[];" ; \
>       done >> tmp-hw.h
> echo 'const char version[] = "'"`sed q
> /[...]/../../gdb/version.in`"'";'
> >> version.c-tmp
> /bin/sh: -c: line 1: syntax error near unexpected token `;'
> /bin/sh: -c: line 1: `for hw in  ; do \'
> make[3]: *** [hw-config.h] Error 2

The same thing happens with the version of bash that we got from
Sun as well (which is very old: 2.03.0(1)-release).

The problems comes from the fact that both shells are buggy, and
reject the following script:

    for hw in ; do
      [...]
    done

The above is what sim/common/Makefile.in tries to execute when
generating hw-config.h.

In order to allow users to build out of the box on these machines,
this patch works around this bug.  It does rely on the fact that
none of the tokens in SIM_HW contain whitespaces.

sim/common/ChangeLog:

        * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
        system bourne shell.

12 years ago*** empty log message ***
gdbadmin [Mon, 19 Dec 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/gdbserver/
Jan Kratochvil [Sun, 18 Dec 2011 20:55:08 +0000 (20:55 +0000)]
gdb/gdbserver/
* linux-low.c (linux_create_inferior): Put empty if clause for write.

Revert:
2011-12-18  Hui Zhu  <teawater@gmail.com>
* linux-low.c (linux_create_inferior): Save return value to ret.

12 years ago2011-12-18 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sun, 18 Dec 2011 15:49:04 +0000 (15:49 +0000)]
2011-12-18  Hui Zhu  <teawater@gmail.com>

* linux-low.c (linux_create_inferior): Save return value to ret.

12 years ago * configure: Regenerate.
Eric Botcazou [Sun, 18 Dec 2011 10:20:52 +0000 (10:20 +0000)]
* configure: Regenerate.
config/
* acx.m4 (Test for GNAT): Update comment and add quotes in final test.

12 years ago*** empty log message ***
gdbadmin [Sun, 18 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2011-12-17 Cary Coutant <ccoutant@google.com>
Cary Coutant [Sat, 17 Dec 2011 22:39:52 +0000 (22:39 +0000)]
2011-12-17  Cary Coutant  <ccoutant@google.com>

* dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Add casts.
* resolve.cc (Symbol_table::resolve): Likewise.
* i386.cc (Target_i386::do_code_fill): Use char constants for nop
arrays.
* x86_64.cc (Target_x86_64::do_code_fill): Likewise.

12 years ago* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
Andreas Schwab [Sat, 17 Dec 2011 20:10:57 +0000 (20:10 +0000)]
* cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
obstack_empty_p.

12 years ago* amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
Mark Kettenis [Sat, 17 Dec 2011 15:45:56 +0000 (15:45 +0000)]
* amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
regset_from_core_section.
(amd64obsd_core_init_abi): New function that sets
regset_from_core_section.
(_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
traditional core dumps.

12 years ago* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.
Mark Kettenis [Sat, 17 Dec 2011 13:54:51 +0000 (13:54 +0000)]
* gdb.arch/amd64-i386-address.exp: Skip on *-*-openbsd*.

12 years ago* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
Mark Kettenis [Sat, 17 Dec 2011 12:22:06 +0000 (12:22 +0000)]
* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
trampoline to be introduced in OpenBSD 5.0.

12 years agogdb/
Jan Kratochvil [Sat, 17 Dec 2011 09:43:53 +0000 (09:43 +0000)]
gdb/
Fix build regression from the PR threads/10729 fix.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
not LP->PTID.

12 years ago* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
Andrey Smirnov [Sat, 17 Dec 2011 06:14:45 +0000 (06:14 +0000)]
* mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_data_read_memory): Ditto.
(mi_cmd_data_read_memory_bytes): Ditto.

12 years ago* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
Andrey Smirnov [Sat, 17 Dec 2011 06:09:54 +0000 (06:09 +0000)]
* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
`oind' and `oarg', respectively(-Wshadow).
(mi_valid_noargs): Ditto.

12 years ago* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
Andrey Smirnov [Sat, 17 Dec 2011 06:06:49 +0000 (06:06 +0000)]
* mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
`oind' and `oarg', respectively(-Wshadow).

12 years ago* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
Andrey Smirnov [Sat, 17 Dec 2011 06:03:21 +0000 (06:03 +0000)]
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_target_file_put): Ditto.
(mi_cmd_target_file_delete): Ditto.

12 years ago* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
Andrey Smirnov [Sat, 17 Dec 2011 05:58:27 +0000 (05:58 +0000)]
* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_env_dir): Ditto.

12 years ago* mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and `optarg'
Andrey Smirnov [Sat, 17 Dec 2011 05:53:59 +0000 (05:53 +0000)]
* mi/mi-cmd-disas.c (mi_cmd_disassemble):  Rename `optind' and `optarg'
to `oind' and `oarg', respectively(-Wshadow).

12 years ago* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
Andrey Smirnov [Sat, 17 Dec 2011 05:49:34 +0000 (05:49 +0000)]
* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
`optparg' to `oind' and `oparg', respectively(-Wshadow).
(mi_cmd_break_watch): Ditto.

12 years ago*** empty log message ***
gdbadmin [Sat, 17 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * output.h (Output_data_reloc_generic::add): Only call
Ian Lance Taylor [Fri, 16 Dec 2011 23:47:03 +0000 (23:47 +0000)]
* output.h (Output_data_reloc_generic::add): Only call
add_dynamic_reloc if this is a dynamic reloc section.

12 years agodaily update
Alan Modra [Fri, 16 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * linespec.c (collect_symbols): Call maybe_add_address after
Tom Tromey [Fri, 16 Dec 2011 21:39:16 +0000 (21:39 +0000)]
* linespec.c (collect_symbols): Call maybe_add_address after
calling symbol_to_sal.
(minsym_found): Call maybe_add_address here.
(search_minsyms_for_name): Don't call maybe_add_address.

12 years ago * linespec.c (struct collect_info) <objfile>: Remove field.
Tom Tromey [Fri, 16 Dec 2011 21:35:57 +0000 (21:35 +0000)]
* linespec.c (struct collect_info) <objfile>: Remove field.
(decode_objc): Update.
(find_method): Update.
(decode_variable): Update.
(struct minsym_and_objfile): New.
(struct collect_minsyms): New.
(classify_mtype): New function.
(compare_msyms): Likewise.
(add_minsym): Likewise.
(check_minsym): Remove.
(search_minsyms_for_name): Sort minsyms and apply only those with
top priority.

12 years ago * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
Tom Tromey [Fri, 16 Dec 2011 21:17:42 +0000 (21:17 +0000)]
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.

12 years ago2011-12-16 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 16 Dec 2011 20:29:28 +0000 (20:29 +0000)]
2011-12-16  Pedro Alves  <pedro@codesourcery.com>

* inf-loop.c: Include top.h.
(inferior_event_handler): Call check_frame_language.
* top.c (check_frame_language_change): New, factored out from ...
(execute_command): ... this.  Use check_frame_language_change.
* top.h (check_frame_language_change): Declare.

12 years agofix typo in previous entry
Doug Evans [Fri, 16 Dec 2011 20:04:35 +0000 (20:04 +0000)]
fix typo in previous entry

12 years ago * boards/native-stdiogdbserver.exp: New file.
Doug Evans [Fri, 16 Dec 2011 20:02:05 +0000 (20:02 +0000)]
* boards/native-stdiogdbserver.exp: New file.

12 years ago * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
Pierre Muller [Fri, 16 Dec 2011 19:55:26 +0000 (19:55 +0000)]
* windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
prototypes.

12 years ago * boards/native-gdbserver.exp: New file.
Doug Evans [Fri, 16 Dec 2011 19:37:47 +0000 (19:37 +0000)]
* boards/native-gdbserver.exp: New file.

12 years ago * linux-low.c (linux_create_inferior): If stdio connection,
Doug Evans [Fri, 16 Dec 2011 19:10:58 +0000 (19:10 +0000)]
* linux-low.c (linux_create_inferior): If stdio connection,
redirect stdin from /dev/null, stdout to stderr.
* remote-utils.c (remote_is_stdio): New static global.
(remote_connection_is_stdio): New function.
(remote_prepare): Handle stdio connection.
(remote_open): Ditto.
(remote_close): Don't close stdin for stdio connections.
(read_prim,write_prim): New functions.  Replace all calls to
read/write to these.
* server.c (main): Watch for "-" argument.  Move call to
remote_prepare before start_inferior.
* server.h (STDIO_CONNECTION_NAME): New macro.
(remote_connection_is_stdio): Declare.

12 years ago * NEWS: Add entry for stdio gdbserver.
Doug Evans [Fri, 16 Dec 2011 19:06:38 +0000 (19:06 +0000)]
* NEWS: Add entry for stdio gdbserver.

gdbserver/
* linux-low.c (linux_create_inferior): If stdio connection,
redirect stdin from /dev/null, stdout to stderr.
* remote-utils.c (remote_is_stdio): New static global.
(remote_connection_is_stdio): New function.
(remote_prepare): Handle stdio connection.
(remote_open): Ditto.
(remote_close): Don't close stdin for stdio connections.
(read_prim,write_prim): New functions.  Replace all calls to
read/write to these.
* server.c (main): Watch for "-" argument.  Move call to
remote_prepare before start_inferior.
* server.h (STDIO_CONNECTION_NAME): New macro.
(remote_connection_is_stdio): Declare.

doc/
* gdb.texinfo (Server): Document -/stdio argument to gdbserver.

testsuite/
* lib/gdbserver-support.exp (gdb_target_cmd): Recognize stdio
gdbserver output.
(gdbserver_default_get_remote_address): New function.
(gdbserver_start): Call gdb,get_remote_address to compute argument
to "target remote" command.

12 years ago * remote-utils.c (prepare_resume_reply): Remove extraneous \n
Doug Evans [Fri, 16 Dec 2011 18:45:48 +0000 (18:45 +0000)]
* remote-utils.c (prepare_resume_reply): Remove extraneous \n
in debugging output.

12 years ago2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 16 Dec 2011 16:15:46 +0000 (16:15 +0000)]
2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

        * ChangeLog: Fix path typo.
* doc/ChangeLog: Ditto.

12 years ago2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 16 Dec 2011 15:55:40 +0000 (15:55 +0000)]
2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* testsuite/gdb.python/py-function.exp: Change "on" to "full" for
python print-stack.  Add set/show python print-stack
off|full|message tests.

2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* python/python.c: Define python_excp_enums.
(eval_python_from_control_command): Do not call gdbpy_print_stack.
(python_command): Ditto.
(gdbpy_print_stack): Rewrite to use new enum constants.
(maint_set_python): Remove function.
(maint_show_python): Ditto.
(_initialize_python): Do not add "maint" commands.  Add "set/show
python print-stack commands".
* NEWS: Update to reflect removal for "maint set/show
print-stack"

2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>

* doc/gdb.texinfo (Python Commands): Remove "maint set/show print
stack".  Add documentation for "set/show python print-stack".

12 years ago2011-12-16 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tristan Gingold [Fri, 16 Dec 2011 13:39:03 +0000 (13:39 +0000)]
2011-12-16  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* mach-o-i386.c (TARGET_PRIORITY): Define as 0 (top priority)
* mach-o-target.c (TARGET_NAME): Use TARGET_PRIORITY
* mach-o-x86-64.c (TARGET_PRIORITY): Define as 0 (top priority)
* mach-o.c (bfd_mach_o_header_p): Remove special handling for
mach-o-i386.
(TARGET_PRIORITY) Set 1 for mach-o-be and mach-o-le, and set 0 for
mach-o-fat.

12 years agobinutils/
Tristan Gingold [Fri, 16 Dec 2011 10:23:01 +0000 (10:23 +0000)]
binutils/
2011-12-16  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: Include mach-o/codesign.h
(OPT_CODESIGN): Define.
(options): Add an entry for codesign.
(mach_o_help): Likewise.
(dump_header): Fix indentation.
(dump_thread): Do not test result of xmalloc.
(bfd_mach_o_cs_magic, bfd_mach_o_cs_hash_type): New.
(dump_code_signature_superblob): New function.
(swap_code_codedirectory_v1_in): Likewise.
(hexdump): Likewise.
(dump_code_signature_codedirectory): Likewise.
(dump_code_signature_blob, dump_code_signature): Likewise.
(dump_load_command): Dump code signature.
(mach_o_dump): Likewise.

include/mach-o/
2011-12-16  Tristan Gingold  <gingold@adacore.com>

* codesign.h: New file.

12 years ago2011-12-15 David Daney <david.daney@cavium.com>
David Daney [Fri, 16 Dec 2011 06:18:55 +0000 (06:18 +0000)]
2011-12-15  David Daney  <david.daney@cavium.com>
    Nick Clifton <nickc@redhat.com>

* ld-elfvers/vers.exp (picflag): Set to -fpic for mips*-*-* when
using GCC-4.3 or later.
(pic): Set to "yes" for mips*-*-linux*.
* ld-elfvsb/elfvsb.exp: Don't test non-PIC shared libraried on
mips*-*-linux*.
(picflag): Set to -fpic for mips*-*-* when using GCC-4.3 or later.
* ld-elfweak/elfweak.exp (picflag): Set to -fpic for mips*-*-*
when using GCC-4.3 or later.
* ld-shared/shared.exp (picflag): Same.
* lib/ld-lib.exp (at_least_gcc_version): New proc.

12 years ago * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
Kevin Buettner [Fri, 16 Dec 2011 00:08:06 +0000 (00:08 +0000)]
* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
to correspond to a smaller ELF_NGREG defined by the kernel.

12 years ago*** empty log message ***
gdbadmin [Fri, 16 Dec 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoReplace <64, false> with <size, big_endian>
H.J. Lu [Thu, 15 Dec 2011 23:29:24 +0000 (23:29 +0000)]
Replace <64, false> with <size, big_endian>

2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>

PR gold/13505
* target-reloc.h (apply_relocation): Replace <64, false> with
<size, big_endian>.

12 years agodaily update
Alan Modra [Thu, 15 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-12-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 15 Dec 2011 22:59:14 +0000 (22:59 +0000)]
2011-12-15  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: Add GPL with exception license.

12 years ago * exceptions.c (catcher_list_size): New function.
Doug Evans [Thu, 15 Dec 2011 22:15:36 +0000 (22:15 +0000)]
* exceptions.c (catcher_list_size): New function.
(last_message): Delete.
(exception_messages, exception_messages_size): New static globals.
(throw_it): Use exception_messages array to handle nested calls.

12 years agoSet the default x32 interpreter to "/lib/ldx32.so.1"
H.J. Lu [Thu, 15 Dec 2011 17:30:58 +0000 (17:30 +0000)]
Set the default x32 interpreter to "/lib/ldx32.so.1"

2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (ELF32_DYNAMIC_INTERPRETER): Set to
 "/lib/ldx32.so.1".

12 years ago * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
Tom Tromey [Thu, 15 Dec 2011 15:36:55 +0000 (15:36 +0000)]
* symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
do_cleanups call.

12 years ago2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
Tristan Gingold [Thu, 15 Dec 2011 14:04:52 +0000 (14:04 +0000)]
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o.c (bfd_mach_o_mkobject_init): Initialize dyn_reloc_cache.
(bfd_mach_o_close_and_cleanup): Only cleanup Mach-O private data
for object files.

12 years agogdb/testsuite/
Yao Qi [Thu, 15 Dec 2011 12:43:03 +0000 (12:43 +0000)]
gdb/testsuite/
* gdb.trace/strace.c: New
* gdb.trace/strace.exp: New.

12 years agogdb/gdbserver/
Yao Qi [Thu, 15 Dec 2011 12:40:03 +0000 (12:40 +0000)]
gdb/gdbserver/
* tracepoint.c: Include sys/syscall.h.
(gdb_ust_thread): Remove preprocessor conditional.

12 years ago2011-12-15 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 15 Dec 2011 11:43:52 +0000 (11:43 +0000)]
2011-12-15  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_fileprop): Fix typo.

12 years ago * readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
Nick Clifton [Thu, 15 Dec 2011 11:37:03 +0000 (11:37 +0000)]
* readelf.c (get_symbol_type): Add ELFOSABI_FREEBSD to the
supported abi's.

* config/obj-elf.c (obj_elf_type): Add ELFOSABI_FREEBSD to the
supported abi's.

12 years ago2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tristan Gingold [Thu, 15 Dec 2011 11:01:14 +0000 (11:01 +0000)]
2011-12-15  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* mach-o.c (bfd_mach_o_canonicalize_reloc): Update relocation
table only when there isn't the cahce.
(bfd_mach_o_get_dynamic_reloc_upper_bound): Need one more space
for a pointer for the watchdog.
(bfd_mach_o_canonicalize_dynamic_reloc): Utilize cache like
bfd_mach_o_canonicalize_reloc.
(bfd_mach_o_close_and_cleanup): Call bfd_mach_o_free_cached_info.
(bfd_mach_o_free_cached_info): Free up cache data.
* mach-o.h (reloc_cache): A place to store cache of dynamic relocs.
(bfd_mach_o_free_cached_info): Add declaration.

12 years agobfd/
Tristan Gingold [Thu, 15 Dec 2011 10:56:48 +0000 (10:56 +0000)]
bfd/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use
bfd_mach_o_bfd_set_private_flags.
* mach-o.c (bfd_mach_o_bfd_set_private_flags): New.
* mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.

gas/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* config/obj-macho.c (obj_mach_o_subsections_by_symbols): New global.
(obj_mach_o_file_properties): New enum.
(obj_mach_o_subsections_via_symbols):  Generalize name to...
... (obj_mach_o_fileprop) and use to set subsections_via_symbols.

gas/testsuite/
2011-12-15  Iain Sandoe  <iains@gcc.gnu.org>

* gas/mach-o/subsect-via-symbols-0.d: New.
* gas/mach-o/subsect-via-symbols-1.d: New.
* gas/mach-o/subsect-via-symbols.s: New.

12 years ago * frv.opc (parse_uhi16): Fix handling of %hi operator on 64-bit
Nick Clifton [Thu, 15 Dec 2011 10:21:51 +0000 (10:21 +0000)]
* frv.opc (parse_uhi16): Fix handling of %hi operator on 64-bit
hosts.

* cgen-asm.c (cgen_parse_signed_integer): Add code to handle the
sign extension of negative values on a 64-bit host.
* frv-asm.c: Regenerate.

* gas/frv/immediates.s: New test file - checks assembly of
constant values.
* gas/frv/immediates.d: Expected disassmbly.
* gas/frv/allinsn.exp: Run the new test.

12 years agogas/
Jie Zhang [Thu, 15 Dec 2011 04:25:10 +0000 (04:25 +0000)]
gas/
2011-12-14  Stuart Henderson  <shenders@gcc.gnu.org>

* config/bfin-parse.y (asm_1): set SRCx fields to all 1s for
dspalu32 instrs that don't use them.

gas/testsuite/
2011-12-14  Stuart Henderson  <shenders@gcc.gnu.org>

* gas/bfin/move.d: Update SRCx field expectations.
* gas/bfin/move2.d: Likewise.
* gas/bfin/parallel.d: Likewise.
* gas/bfin/parallel2.d: Likewise.
* gas/bfin/parallel3.d: Likewise.
* gas/bfin/parallel4.d: Likewise.
* gas/bfin/video.d: Likewise.
* gas/bfin/video2.d: Likewise.

12 years ago*** empty log message ***
gdbadmin [Thu, 15 Dec 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 14 Dec 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * defs.h (wait_to_die_with_timeout): Declare.
Doug Evans [Wed, 14 Dec 2011 20:53:57 +0000 (20:53 +0000)]
* defs.h (wait_to_die_with_timeout): Declare.
* utils.c: #include "gdb_wait.h".
(sigalrm_handler, wait_to_die_with_timeout): New functions.
* ser-pipe.c: Don't #include "gdb_wait.h".
(pipe_close): Give child a chance to die on its own after closing
its stdin before SIGTERM'ing it.

12 years agoFix latest ChangeLog entry (forgot to give credit to reporter)
Joel Brobecker [Wed, 14 Dec 2011 20:27:47 +0000 (20:27 +0000)]
Fix latest ChangeLog entry (forgot to give credit to reporter)

12 years agofix uninitialized field in ada-lang.c (struct match_data)
Joel Brobecker [Wed, 14 Dec 2011 20:24:59 +0000 (20:24 +0000)]
fix uninitialized field in ada-lang.c (struct match_data)

Field found_sym in add_nonlocal_symbols's struct match_data is
used uninitialized.  Rather than adding the initialization of
this field (to zero), we set the entire structure to zero first,
and then set the fields that need to be initialized to non-zero
next.

gdb/ChangeLog:

        * ada-lang.c (add_nonlocal_symbols): Initialize data to
        all zeros.  Remove setting of data.arg_sym to NULL.