binutils-gdb.git
13 years agoPR python/13327
Paul Koning [Tue, 25 Oct 2011 18:34:51 +0000 (18:34 +0000)]
PR python/13327

* python/py-value.c (value_to_value_object): Remove fetching of
the value if it was lazy.
(valpy_get_is_lazy): New function.
(valpy_fetch_lazy): New function.

13 years agoOops - apply correct patch for previous delta.
Nick Clifton [Tue, 25 Oct 2011 16:46:46 +0000 (16:46 +0000)]
Oops - apply correct patch for previous delta.

13 years ago* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'.
Nick Clifton [Tue, 25 Oct 2011 13:35:00 +0000 (13:35 +0000)]
* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'.

13 years agobfd:
Nick Clifton [Tue, 25 Oct 2011 11:18:16 +0000 (11:18 +0000)]
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo .
(ALL_MACHINES_CFILES): Add cpu-epiphany.c .
(BFD32_BACKENDS): Add elf32-epiphany.lo .
(BFD32_BACKENDS_CFILES): Add elf32-epiphany.c .
* Makefile.in, bfd-in2.h, configure, libbfd.h: Regenerate.
* archures.c (bfd_arch_epiphany): Add.
(bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
(bfd_epiphany_arch): Declare.
(bfd_archures_list): Add &bfd_epiphany_arch.
* config.bfd (epiphany-*-elf): New target case.
* configure.in (bfd_elf32_epiphany_vec): New target vector case.
* reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
(BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
(BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
(BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
* targets.c (bfd_elf32_epiphany_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_epiphany_vec.
* po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
* cpu-epiphany.c, elf32-epiphany.c: New files.
binutils:
* readelf.c (include "elf/epiphany.h")
(guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY.
(get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise.
(is_16bit_abs_reloc, is_none_reloc): Likewise.
* po/binutils.pot: Regenerate.
cpu:
* cpu/epiphany.cpu, cpu/epiphany.opc: New files.
gas:
* NEWS: Mention addition of Adapteva Epiphany support.
* config/tc-epiphany.c, config/tc-epiphany.h: New files.
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c .
(TARGET_CPU_HFILES): Add config/tc-epiphany.h .
* Makefile.in, configure, doc/Makefile.in, po/POTFILES.in: Regenerate.
* configure.in: Also set using_cgen for epiphany.
* configure.tgt: Handle epiphany.
* doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi .
* doc/all.texi: Set EPIPHANY.
* doc/as.texinfo: Add EPIPHANY-specific text.
* doc/c-epiphany.texi: New file.
* po/gas.pot: Regenerate.
gas/testsuite:
* gas/epiphany: New directory.
include:
* dis-asm.h (print_insn_epiphany): Declare.
* elf/epiphany.h: New file.
* elf/common.h (EM_ADAPTEVA_EPIPHANY): Define.
ld:
* NEWS: Mention addition of Adapteva Epiphany support.
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
(eelf32epiphany.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt: Handle epiphany-*-elf.
* po/ld.pot: Regenerate.
* testsuite/ld-srec/srec.exp: xfail epiphany.
* emulparams/elf32epiphany.sh: New file.
opcodes:
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
(TARGET_LIBOPCODES_CFILES): Add  epiphany-asm.c, epiphany-desc.c,
epiphany-dis.c, epiphany-ibld.c and epiphany-opc.c .
(CLEANFILES): Add stamp-epiphany.
(EPIPHANY_DEPS): Set.  Make CGEN-generated Epiphany files depend on it.
(stamp-epiphany): New rule.
* Makefile.in, configure, po/POTFILES.in, po/opcodes.pot: Regenerate.
* configure.in: Handle bfd_epiphany_arch.
* disassemble.c (ARCH_epiphany): Define.
(disassembler): Handle bfd_arch_epiphany.
* epiphany-asm.c, epiphany-desc.c, epiphany-desc.h: New files.
* epiphany-dis.c, epiphany-ibld.c, epiphany-opc.c: Likewise.
* epiphany-opc.h: Likewise.

13 years ago PR gprof/13325
Nick Clifton [Tue, 25 Oct 2011 08:38:49 +0000 (08:38 +0000)]
PR gprof/13325
* hist.c (hist_assign_samples_1): Make sure that inner loop
iterator remains valid.

13 years ago2011-10-25 Kai Tietz <ktietz@redhat.com>
Kai Tietz [Tue, 25 Oct 2011 08:03:18 +0000 (08:03 +0000)]
2011-10-25  Kai Tietz  <ktietz@redhat.com>

* winduni.h (unicode_from_ascii_len): New prototype.
* winduni.c (unicode_from_ascii_len): New function.
* windres.h (define_stringtable): Add additional length argument.
* windres.c (define_stringtable): Add length argument for string.
* rcparse.y (res_unicode_sizedstring): New rule.
(res_unicode_sizedstring_concat): Likewise.
(string_data): Adjust rule.

2011-10-25  Kai Tietz  <ktietz@redhat.com>

* binutils-all/windres/strtab4.rc: New test.
* binutils-all/windres/strtab4.rsd: Likewise.

13 years ago*** empty log message ***
gdbadmin [Tue, 25 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Mon, 24 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago[powerpc] crash trying to allocate memory in inferior
Joel Brobecker [Mon, 24 Oct 2011 16:51:36 +0000 (16:51 +0000)]
[powerpc] crash trying to allocate memory in inferior

Our testsuite noticed a crash when trying to call a function which
requires GDB to allocate memory in the inferior. Typically, this
happens when one of the parameters is a string.  For instance, our
testcase tries:

    (gdb) call debug.trace (me, "You")
    [1]    32737 segmentation fault /path/to/gdb

What happens is that GDB sees the string, and thus tries to allocate
memory for it in the inferior:

> /* Allocate NBYTES of space in the inferior using the inferior's
>    malloc and return a value that is a pointer to the allocated
>    space.  */
>
> struct value *
> value_allocate_space_in_inferior (int len)
> {
>   struct objfile *objf;
>   struct value *val = find_function_in_inferior ("malloc", &objf);

And find_function_in_inferior first searches the symtab in case
we have debug info.  But, in our case (bareboard powerpc), we don't,
so it gets "malloc"'s address from the minimal symbols, and builds
a value whose type is a TYPE_CODE_PTR, not a TYPE_CODE_FUNC.

As a result, when we later try to make the call to malloc, we end up
inside the powerpc tdep code that has:

> do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type,
[...]
>   if (func_type
>       && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL)

The problem is that func_type is not a TYPE_CODE_FUNC, and thus
the type-specific kind is not TYPE_SPECIFIC_FUNC, and so we do
TYPE_CALLING_CONVENTION is an invalid access.

Interestingly, the other call to TYPE_CALLING_CONVENTION is correctly
preceded by a check of the type's TYPE_CODE (making sure that it is
TYPE_CODE_FUNC).

gdb/ChangeLog:

        * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
        FUNC_TYPE's calling convention if FUNC_TYPE is not a function.

13 years ago opcodes/
Julian Brown [Mon, 24 Oct 2011 16:36:51 +0000 (16:36 +0000)]
opcodes/
    * m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml.

    gas/testsuite/
    * gas/m68k/all.exp (movem-offset): Add test.
    * gas/m68k/movem-offset.s: New test.
    * gas/m68k/movem-offset.d: New.

13 years agobinutils/
Jan Kratochvil [Mon, 24 Oct 2011 14:28:02 +0000 (14:28 +0000)]
binutils/
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
also for DW_FORM_ref_udata.

13 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 24 Oct 2011 14:25:52 +0000 (14:25 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_handle_extended_wait): When handling a clone
event, in non-stop, if not stopping, make sure the new lwp has
last_resume_kind set to resume_continue.  Assert that when we're
resuming the new lwp, its last_resume_kind is resume_continue.

13 years ago * config/tc-mips.c (move_register): Fix formatting.
Maciej W. Rozycki [Mon, 24 Oct 2011 14:25:01 +0000 (14:25 +0000)]
* config/tc-mips.c (move_register): Fix formatting.

13 years ago * mips.h: Fix a typo in description.
Maciej W. Rozycki [Mon, 24 Oct 2011 14:21:41 +0000 (14:21 +0000)]
* mips.h: Fix a typo in description.

13 years ago * config/tc-mips.c (can_swap_branch_p): Remove empty line.
Maciej W. Rozycki [Mon, 24 Oct 2011 14:17:10 +0000 (14:17 +0000)]
* config/tc-mips.c (can_swap_branch_p): Remove empty line.
(start_noreorder): Likewise.

13 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 24 Oct 2011 14:09:20 +0000 (14:09 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* infrun.c (handle_inferior_event): Don't assume inferior_ptid is
already set when marking the event thread as not executing in
non-stop mode.

13 years ago * config/tc-mips.c (s_option): Fix formatting.
Maciej W. Rozycki [Mon, 24 Oct 2011 14:08:23 +0000 (14:08 +0000)]
* config/tc-mips.c (s_option): Fix formatting.
(mips_elf_final_processing): Likewise.

13 years ago * config/tc-mips.c (validate_micromips_insn): Fix formatting.
Maciej W. Rozycki [Mon, 24 Oct 2011 14:04:42 +0000 (14:04 +0000)]
* config/tc-mips.c (validate_micromips_insn): Fix formatting.

13 years ago2011-10-24 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 24 Oct 2011 14:01:12 +0000 (14:01 +0000)]
2011-10-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* infrun.c (handle_inferior_event): Add debug output for
TARGET_WAITKIND_NO_HISTORY.

13 years ago * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
Maciej W. Rozycki [Mon, 24 Oct 2011 13:58:47 +0000 (13:58 +0000)]
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
assertions.

13 years ago gdb/testsuite/
Yao Qi [Mon, 24 Oct 2011 13:51:20 +0000 (13:51 +0000)]
gdb/testsuite/
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when
target is tic6x-*-*.

13 years ago PR ld/13273
Nick Clifton [Mon, 24 Oct 2011 12:52:37 +0000 (12:52 +0000)]
PR ld/13273
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
identical TAG_PCS_config attributes.

13 years agoUpdated Japanese translation
Nick Clifton [Mon, 24 Oct 2011 11:51:22 +0000 (11:51 +0000)]
Updated Japanese translation

13 years ago2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 24 Oct 2011 11:49:26 +0000 (11:49 +0000)]
2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>

* NEWS: Move set/show extended-prompt to "New Options". Expand
description. Fix typos.

13 years ago2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 24 Oct 2011 11:39:50 +0000 (11:39 +0000)]
2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>

        PR python/13310

* python/py-param.c (call_doc_function): Correctly deference on
function exit.

13 years ago PR binutils/13292
Nick Clifton [Mon, 24 Oct 2011 11:23:40 +0000 (11:23 +0000)]
PR binutils/13292
* bfd-in.h: Include <sys/stat.h> rather than forward defining
struct stat.
* bfd-in2.h: Regenerate.

13 years ago * config/tc-mn10200.c (md_convert_frag): Add missing break.
Alan Modra [Mon, 24 Oct 2011 02:49:24 +0000 (02:49 +0000)]
* config/tc-mn10200.c (md_convert_frag): Add missing break.

13 years ago*** empty log message ***
gdbadmin [Mon, 24 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sun, 23 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 23 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sat, 22 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
DJ Delorie [Sat, 22 Oct 2011 01:35:29 +0000 (01:35 +0000)]
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++

13 years ago*** empty log message ***
gdbadmin [Sat, 22 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Fri, 21 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years agoReplace IRELATIVE relocations with RELATIVE in .rel.dyn.
H.J. Lu [Fri, 21 Oct 2011 19:37:15 +0000 (19:37 +0000)]
Replace IRELATIVE relocations with RELATIVE in .rel.dyn.

bfd/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* elf32-i386.c (elf_i386_relocate_section): Replace
R_386_IRELATIVE with R_386_RELATIVE.

* elf64-x86-64.c (elf_x86_64_relocate_section): Replace
R_X86_64_IRELATIVE with R_X86_64_RELATIVE.

ld/testsuite/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* ld-i386/i386.exp: Run pr13302.

* ld-i386/pr13302.d: New.
* ld-i386/pr13302.s: Likewise.

* ld-x86-64/pr13082-5b.d: Updated.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.

13 years ago[Ada] Fix number of lines in -ada-task-info output
Joel Brobecker [Fri, 21 Oct 2011 18:46:06 +0000 (18:46 +0000)]
[Ada] Fix number of lines in -ada-task-info output

When using the new -ada-task-info command with an argument,
the output would say that there are N entries in the returned
table, (where N is the total number of tasks present in the inferior).
But, in fact, the table would only contain at most 1 entry.

This patch fixes this by properly computing the number of
tasks being displayed before giving it to the uiout.

gdb/ChangeLog:

        * ada-tasks.c (print_ada_task_info): Fix computation of
        number of tasks displayed in command output.

gdb/testsuite/ChangeLog:

        * gdb.ada/mi_task_info/task_switch.adb: New file.
        * gdb.ada/mi_task_info.exp: New file.

13 years agogdb/testsuite/
Jan Kratochvil [Fri, 21 Oct 2011 16:31:17 +0000 (16:31 +0000)]
gdb/testsuite/
* gdb.cp/expand-psymtabs-cxx.exp: New file.
* gdb.cp/expand-psymtabs-cxx.cc: New file.

13 years agoFix a typo in comments.
H.J. Lu [Fri, 21 Oct 2011 16:16:51 +0000 (16:16 +0000)]
Fix a typo in comments.

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>.

* elf32-i386.c (elf_i386_relocate_section): Fix a typo in
comments.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.

13 years agoPut IRELATIVE relocations after JUMP_SLOT.
H.J. Lu [Fri, 21 Oct 2011 15:13:37 +0000 (15:13 +0000)]
Put IRELATIVE relocations after JUMP_SLOT.

bfd/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
and next_irelative_index.
(elf_i386_link_hash_table_create): Initialize next_jump_slot_index
and next_irelative_index.
(elf_i386_allocate_dynrelocs): Increment reloc_count instead of
next_tls_desc_index.
(elf_i386_size_dynamic_sections): Set next_tls_desc_index and
next_irelative_index from reloc_count.
(elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
R_386_JUMP_SLOT.

* elf64-x86-64.c (elf_x86_64_link_hash_table): Add
next_jump_slot_index and next_irelative_index.
(elf_x86_64_link_hash_table_create): Initialize
next_jump_slot_index and next_irelative_index.
(elf_x86_64_size_dynamic_sections): Set next_irelative_index
from reloc_count.
(elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
R_X86_64_JUMP_SLOT.

ld/testsuite/

2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13302
* ld-ifunc/ifunc-16-i386.d: New.
* ld-ifunc/ifunc-16-x86-64.d: Likewise.
* ld-ifunc/ifunc-16-x86.s: Likewise.

13 years ago2011-10-21 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 21 Oct 2011 13:24:26 +0000 (13:24 +0000)]
2011-10-21  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (load_expression): Use symbol_mark_used accessor.
(s_alpha_comm): Use symbol_set_frag accessor.

13 years ago2011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>
Andreas Krebbel [Fri, 21 Oct 2011 12:50:30 +0000 (12:50 +0000)]
2011-10-21  Jan Glauber  <jang@linux.vnet.ibm.com>

* s390-opc.txt: Add CPUMF instructions.

2011-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/zarch-z10.d: Add CPUMF instructions.
* gas/s390/zarch-z10.s: Likewise.

13 years ago*** empty log message ***
gdbadmin [Fri, 21 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Thu, 20 Oct 2011 23:57:23 +0000 (23:57 +0000)]
gdb/
* dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
(dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
(dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
gdbarch_pc_regnum and frame_unwind_register_unsigned by
gdbarch_unwind_pc.

13 years ago * dwarf2read.c (dw2_get_file_names): Move adjustment for type
Cary Coutant [Thu, 20 Oct 2011 23:13:01 +0000 (23:13 +0000)]
* dwarf2read.c (dw2_get_file_names): Move adjustment for type
section to...
(partial_read_comp_unit_head): ...here.  Add is_debug_type_section
flag.  Adjust all callers.
(process_psymtab_comp_unit): Remove adjustment for type section.

13 years agodaily update
Alan Modra [Thu, 20 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
Aleksandar Ristovski [Thu, 20 Oct 2011 20:06:14 +0000 (20:06 +0000)]
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE.  Instead of getting objfile from
symbol's symtab, use new argument OBJFILE.
* cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE.
* gdb/dwarf2read.c (new_symbol_full): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
* gdb/stabsread.c (define_symbol): Change call to
cp_scan_for_anonymous_namespaces to match new signature.

13 years ago PR ld/13049
Nick Clifton [Thu, 20 Oct 2011 16:27:04 +0000 (16:27 +0000)]
PR ld/13049
* elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace
symbol names.
* elf64-ppc.c (STUB_SUFFIX): Likewise.
* elf32-hppa.c (STUB_SUFFIX): Likewise.

13 years ago2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 20 Oct 2011 13:34:17 +0000 (13:34 +0000)]
2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>

        PR python/13308
        PR python/13309

* python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
leak.
* python/py-inferior.c (gdbpy_inferiors): Fix List reference
leak.  Delete unused variables.

13 years ago * ld-selective/selective.exp: Use check_gc_sections_available.
Alan Modra [Thu, 20 Oct 2011 12:34:20 +0000 (12:34 +0000)]
* ld-selective/selective.exp: Use check_gc_sections_available.
Remove redundant xfails.
* ld-selective/sel-dump.exp: Likewise.

13 years ago2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 20 Oct 2011 12:31:30 +0000 (12:31 +0000)]
2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>

PR python/12656

* python/py-frame.c (frapy_read_var): Use const struct *block.
* python/py-type.c (typy_lookup_typename): Likewise.
(typy_lookup_type): Likewise.
(typy_legacy_template_argument): Likewise.
(typy_template_argument): Likewise.
(gdbpy_lookup_type): Likewise.
* python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
* python/py-block.c (blpy_block_object): Likewise.
(blpy_iter): Likewise.
(blpy_get_start): Likewise.
(blpy_get_end): Likewise.
(blpy_get_function): Likewise.
(blpy_get_superblock): Likewise.
(set_block):  Likewise.
(block_to_block_object): Likewise.
(block_object_to_block): Likewise.
(blpy_is_valid): Likewise.
(blpy_get_global_block): New function.
(blpy_get_static_block): New function.
(blpy_is_global): New function.
(blpy_is_static): New function.
* blockframe.c (block_innermost_frame): Likewise.
* valops.c (value_of_variable): Likewise.
* frame.h: Update prototypes.
* python/python-internal.h: Likewise.
* value.h: Likewise.

2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>

PR python/12656

* gdb.texinfo (Blocks In Python): Document is_static, is_global,
global_block, static_block function.

2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>

PR python/12656

* gdb.python/py-block.exp: Add is_global, is_static, static_block,
global_block tests.

13 years ago PR ld/13287
Alan Modra [Thu, 20 Oct 2011 09:50:59 +0000 (09:50 +0000)]
PR ld/13287
* plugin.c (plugin_should_reload): New function.
* plugin.h (plugin_should_reload): Declare.
* ldlang.c (open_input_bfds): Use above function.

13 years ago * dwarf2read.c (create_debug_types_hash_table): Fix size of
Cary Coutant [Thu, 20 Oct 2011 01:11:34 +0000 (01:11 +0000)]
* dwarf2read.c (create_debug_types_hash_table): Fix size of
type_offset field.

13 years ago*** empty log message ***
gdbadmin [Thu, 20 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * config/tc-mips.c (micromips_add_label): Avoid gcc warning.
Alan Modra [Wed, 19 Oct 2011 23:09:11 +0000 (23:09 +0000)]
* config/tc-mips.c (micromips_add_label): Avoid gcc warning.
(md_convert_frag): Likewise.

13 years ago * elf32-i386.c (i386_opcode16): Delete.
Alan Modra [Wed, 19 Oct 2011 23:02:50 +0000 (23:02 +0000)]
* elf32-i386.c (i386_opcode16): Delete.
(elf_i386_check_tls_transition): Use memcmp to compare contents.
* elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete.
(elf_x86_64_check_tls_transition): Use memcmp to compare contents.

13 years agodaily update
Alan Modra [Wed, 19 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update

13 years agosim: dv-cfi: check for log2 support in libm when enabled
Mike Frysinger [Wed, 19 Oct 2011 21:28:27 +0000 (21:28 +0000)]
sim: dv-cfi: check for log2 support in libm when enabled

The dv-cfi model uses log2() internally, so make sure we automatically
link in libm when required.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * gdb.texinfo (Commands In Python): Add missing "@"s.
Tom Tromey [Wed, 19 Oct 2011 17:51:01 +0000 (17:51 +0000)]
* gdb.texinfo (Commands In Python): Add missing "@"s.

13 years ago PR gold/13163
Ian Lance Taylor [Wed, 19 Oct 2011 15:51:00 +0000 (15:51 +0000)]
PR gold/13163
* script-sections.cc
(Output_section_element_dot_assignment::needs_output_section): New
function.

13 years ago * dwarf2read.c (peek_abbrev_code): New function.
Cary Coutant [Wed, 19 Oct 2011 15:26:30 +0000 (15:26 +0000)]
* dwarf2read.c (peek_abbrev_code): New function.
(dw2_get_file_names): Check for dummy compilation units.
(create_debug_types_hash_table): Likewise.
(process_psymtab_comp_unit): Likewise.
(load_partial_comp_unit): Likewise.
(load_full_comp_unit): Likewise.

13 years ago PR gold/13204
Ian Lance Taylor [Wed, 19 Oct 2011 15:05:58 +0000 (15:05 +0000)]
PR gold/13204
* layout.cc (Layout::segment_precedes): Don't assert failure if a
--section-start option was seen.
* options.h (General_options::any_section_start): New function.

13 years ago PR ld/13177
Alan Modra [Wed, 19 Oct 2011 07:17:21 +0000 (07:17 +0000)]
PR ld/13177
bfd/
* elflink.c (_bfd_elf_gc_mark_rsec): Set symbol "mark".
(elf_gc_sweep_symbol): Don't test plt/got refcounts, instead test
"mark".  Hide undefweak too.  Clear def_regular and ref_regular.
* elf-m10300.c (mn10300_elf_relocate_section): Ignore unresolved
reloc errors from garbage-collected code.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
ld/testsuite/
* ld-elf/elf.exp: Move test for shared lib support..
* lib/ld-lib.exp (check_shared_lib_support): ..to here. Add m68hc1*,
and s/ms1/mt/.
(check_gc_sections_available): Match hppa*64 not hppa64.  Comment.
* ld-gc/libpersonality.s: New.
* ld-gc/personality.s, * ld-gc/personality.d: New.
* ld-gc/gc.exp: Run personality test.

13 years ago PR ld/13311
Alan Modra [Wed, 19 Oct 2011 05:24:38 +0000 (05:24 +0000)]
PR ld/13311
* elflink.c (elf_link_output_extsym): Correct test for warning when
forced local executable syms are referenced from shared libraries.

13 years ago PR ld/13254
Alan Modra [Wed, 19 Oct 2011 04:13:28 +0000 (04:13 +0000)]
PR ld/13254
include/
* bfdlink.h (struct bfd_link_info): Add error_textrel.
bfd/
* elflink.c (bfd_elf_final_link): Emit error_textrel error.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z text, -z notext, -z textoff options for all targets having
shared lib support.

13 years ago[sim]: Only print the profile info title once.
Joel Brobecker [Wed, 19 Oct 2011 00:54:03 +0000 (00:54 +0000)]
[sim]: Only print the profile info title once.

sim/common/ChangeLog:

        From John Wehle  <john@feith.com>  (tiny patch)
* sim-profile.c (profile_info): Only print the title once.

13 years agoFix sparc TLS call relaxation when the delay slot sets up %o0.
David S. Miller [Wed, 19 Oct 2011 00:32:25 +0000 (00:32 +0000)]
Fix sparc TLS call relaxation when the delay slot sets up %o0.

bfd/

PR binutils/13301
* elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function.
(_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr
call delay slot instruction forward 4 bytes when performing
relaxation.

gold/

PR binutils/13301
* sparc.cc (Target_sparc::Relocate::reloc_adjust_addr_): New
member to track relocation locations that have moved during TLS
reloc optimizations.
(Target_sparc::Relocate::Relocate): Initialize to NULL.
(Target_sparc::Relocate::relocate): Adjust view down by 4
bytes if it matches reloc_adjust_addr_.
(Target_sparc::Relocate::relocate_tls): Always move the
__tls_get_addr call delay slot instruction forward 4 bytes when
performing relaxation.

ld/testsuite/

* ld-sparc/tlssunbin32.dd: Update for TLS call relaxation fix
for PR 13301.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.

13 years ago*** empty log message ***
gdbadmin [Wed, 19 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 18 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago * output.cc (posix_fallocate): Return 0 on success, errno on failure.
Cary Coutant [Tue, 18 Oct 2011 21:36:29 +0000 (21:36 +0000)]
* output.cc (posix_fallocate): Return 0 on success, errno on failure.
(Output_file::map_no_anonymous): Check for non-zero
return code from posix_fallocate.

13 years ago * gdb.base/jit-so.exp (one_jit_test): Remove spurious backslash.
Tom Tromey [Tue, 18 Oct 2011 16:55:43 +0000 (16:55 +0000)]
* gdb.base/jit-so.exp (one_jit_test): Remove spurious backslash.

13 years ago Jie Zhang <jie@codesourcery.com>
Julian Brown [Tue, 18 Oct 2011 14:41:55 +0000 (14:41 +0000)]
Jie Zhang  <jie@codesourcery.com>
    Julian Brown  <julian@codesourcery.com>

    gas/
    * config/tc-arm.c (parse_shifter_operand): Fix handling
    of explicit rotation.
    (encode_arm_shifter_operand): Likewise.

    gas/testsuite/
    * gas/arm/adrl.d: Adjust.
    * gas/arm/immed2.d: New test.
    * gas/arm/immed2.s: New test.

    ld/testsuite/
    * ld-arm/cortex-a8-fix-b-plt.d: Adjust.
    * ld-arm/cortex-a8-fix-bcc-plt.d: Adjust.
    * ld-arm/cortex-a8-fix-bl-plt.d: Adjust.
    * ld-arm/cortex-a8-fix-bl-rel-plt.d: Adjust.
    * ld-arm/cortex-a8-fix-blx-plt.d: Adjust.
    * ld-arm/ifunc-1.dd: Adjust.
    * ld-arm/ifunc-2.dd: Adjust.
    * ld-arm/ifunc-3.dd: Adjust.
    * ld-arm/ifunc-4.dd: Adjust.
    * ld-arm/ifunc-5.dd: Adjust.
    * ld-arm/ifunc-6.dd: Adjust.
    * ld-arm/ifunc-7.dd: Adjust.
    * ld-arm/ifunc-8.dd: Adjust.
    * ld-arm/ifunc-9.dd: Adjust.
    * ld-arm/ifunc-10.dd: Adjust.
    * ld-arm/ifunc-14.dd: Adjust.
    * ld-arm/ifunc-15.dd: Adjust.
    * ld-arm/ifunc-16.dd: Adjust.

    opcodes/
    * arm-dis.c (print_insn_arm): Explicitly specify rotation
    if needed.

13 years ago * gdb.base/source.exp: Don't include full file name in test name.
Tom Tromey [Tue, 18 Oct 2011 14:14:01 +0000 (14:14 +0000)]
* gdb.base/source.exp: Don't include full file name in test name.
* gdb.python/python.exp: Don't include full file name in test
name.

13 years ago * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
Aleksandar Ristovski [Tue, 18 Oct 2011 14:00:42 +0000 (14:00 +0000)]
* solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
pt_phdr if PT_PHDR was found.

* gdb.base/attach-pie-noexec.c: New files.
* gdb.base/attach-pie-noexec.exp: New files.

13 years ago * po/it.po: New Italian translation.
Nick Clifton [Tue, 18 Oct 2011 13:20:39 +0000 (13:20 +0000)]
* po/it.po: New Italian translation.
* po/gprof.pot: Regenerate.

13 years agosim: rename common/aclocal.m4 to common/acinclude.m4
Mike Frysinger [Tue, 18 Oct 2011 00:31:00 +0000 (00:31 +0000)]
sim: rename common/aclocal.m4 to common/acinclude.m4

Automake likes to dump macros automatically used into the aclocal.m4
file, but the common/aclocal.m4 naming prevents that.  So rename it
to the more normal "acinclude.m4" so the aclocal tool can work.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago PR gold/13245
Cary Coutant [Tue, 18 Oct 2011 00:25:53 +0000 (00:25 +0000)]
PR gold/13245
* plugin.cc (is_visible_from_outside): Check for symbols
referenced from dynamic objects.
* resolve.cc (Symbol_table::resolve): Don't count references
from dynamic objects as references from real ELF files.
* testsuite/plugin_test_2.sh: Adjust expected result.

13 years agosim: move from common.m4 to SIM_AC_COMMON
Mike Frysinger [Tue, 18 Oct 2011 00:17:24 +0000 (00:17 +0000)]
sim: move from common.m4 to SIM_AC_COMMON

Now that the sourceware tree generally requires autoconf-2.64, update
the sim tree to require that too.

This allows us to drop the long standing SIM_AC_COMMON/common.m4
workaround as autoconf 2.64+ seems to work for me.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: testsuite: regenerate configure
Mike Frysinger [Tue, 18 Oct 2011 00:16:14 +0000 (00:16 +0000)]
sim: testsuite: regenerate configure

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * gold.cc: Include timer.h.
Cary Coutant [Tue, 18 Oct 2011 00:06:10 +0000 (00:06 +0000)]
* gold.cc: Include timer.h.
(queue_middle_tasks): Stamp time.
(queue_final_tasks): Likewise.
* main.cc (main): Store timer in parameters.  Print timers
for each pass.
* parameters.cc (Parameters::Parameters): Initialize timer_.
(Parameters::set_timer): New function.
(set_parameters_timer): New function.
* parameters.h (Parameters::set_timer): New function.
(Parameters::timer): New function.
(Parameters::timer_): New data member.
(set_parameters_timer): New function.
* timer.cc (Timer::stamp): New function.
(Timer::get_pass_time): New function.
* timer.h (Timer::stamp): New function.
(Timer::get_pass_time): New function.
(Timer::pass_times_): New data member.

13 years ago*** empty log message ***
gdbadmin [Tue, 18 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * readsyms.cc (Read_symbols::run): Don't queue an unblocker
Cary Coutant [Mon, 17 Oct 2011 23:43:18 +0000 (23:43 +0000)]
* readsyms.cc (Read_symbols::run): Don't queue an unblocker
task for members of lib groups.

13 years agoFixed several recent ChangeLog entries to remove "gold/" from filenames.
Cary Coutant [Mon, 17 Oct 2011 23:42:27 +0000 (23:42 +0000)]
Fixed several recent ChangeLog entries to remove "gold/" from filenames.

13 years ago PR gold/13288
Cary Coutant [Mon, 17 Oct 2011 23:36:43 +0000 (23:36 +0000)]
PR gold/13288
* gold/fileread.cc (File_read::find_view): Add assert.
(File_read::make_view): Move bounds check (replace with assert)...
(File_read::find_or_make_view): ... to here.

13 years agodaily update
Alan Modra [Mon, 17 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago * lib/gdb.exp (gdb_test_multiple): Expect newline and secondary
Joseph Myers [Mon, 17 Oct 2011 17:10:55 +0000 (17:10 +0000)]
* lib/gdb.exp (gdb_test_multiple): Expect newline and secondary
prompt for each extra line in command.

13 years ago2011-10-17 Joost van der Sluis <joost@cnoc.nl>
Tom Tromey [Mon, 17 Oct 2011 14:04:37 +0000 (14:04 +0000)]
2011-10-17  Joost van der Sluis  <joost@cnoc.nl>

* gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
type or "<unnamed type"> when there is no name assigned.
* gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
avoid a sigint when no name is assigned.

13 years agogdb/
Jan Kratochvil [Mon, 17 Oct 2011 12:57:15 +0000 (12:57 +0000)]
gdb/
Revert:
2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
        * dwarf2expr.c (ctx_no_read_reg): New function.
        * dwarf2expr.h (ctx_no_read_reg): New declaration.
        * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
        (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
        (decode_locdesc): Replace by a caller of dwarf_expr_eval.

gdb/testsuite/
* gdb.dwarf2/dw2-simple-locdesc.exp (p &s.shl): KFAIL it.
Revert the part of:
2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
* gdb.dwarf2/dw2-stack-boundary.exp (check partial symtab errors):
Change the expected string.

13 years ago PR ld/12975
Alan Modra [Mon, 17 Oct 2011 08:27:45 +0000 (08:27 +0000)]
PR ld/12975
PR ld/13195
* elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Apply 2011-09-15
and 2011-09-29 bfd_elf_gc_mark_dynamic_ref_symbol changes here too.

13 years ago*** empty log message ***
gdbadmin [Mon, 17 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sun, 16 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years agoAdd comma after "If True" to previous checkin.
Doug Evans [Sun, 16 Oct 2011 19:54:33 +0000 (19:54 +0000)]
Add comma after "If True" to previous checkin.

13 years ago * NEWS: Document python gdb.printing.register_pretty_printer's new
Doug Evans [Sun, 16 Oct 2011 19:40:37 +0000 (19:40 +0000)]
* NEWS: Document python gdb.printing.register_pretty_printer's new
`replace' parameter.

13 years agoSet target from the the first object only if it isn't set.
H.J. Lu [Sun, 16 Oct 2011 19:36:10 +0000 (19:36 +0000)]
Set target from the the first object only if it isn't set.

2011-10-16  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/13278
* ar.c (open_inarch): Set the target from the the first object
on the list only if it isn't set.

13 years agogdb/testsuite/
Jan Kratochvil [Sun, 16 Oct 2011 08:42:04 +0000 (08:42 +0000)]
gdb/testsuite/
Fix results with system glibc debug info installed.
* gdb.base/disp-step-syscall.exp (continue to $syscall (1st time))
(continue to $syscall (2nd time), continue to $syscall (3rd time)):
Accept also __libc_ symbol prefix and no prefix.

13 years ago*** empty log message ***
gdbadmin [Sun, 16 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sat, 15 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
Alan Modra [Sat, 15 Oct 2011 09:22:42 +0000 (09:22 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.

13 years ago*** empty log message ***
gdbadmin [Sat, 15 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Fri, 14 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago PR c++/13225
Keith Seitz [Fri, 14 Oct 2011 20:22:50 +0000 (20:22 +0000)]
PR c++/13225
* gdb.cp/converts.cc (foo3_1): New function.
(foo3_2): New functions.
* gdb.cp/converts.exp: Add tests for int to pointer conversion
and null pointer conversions of integer constant zero.
Add test to check if all arguments are checked for incompatible
conversion BADNESS.