OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago*** empty log message ***
gdbadmin [Sat, 22 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 21 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoReplace IRELATIVE relocations with RELATIVE in .rel.dyn.
hjl [Fri, 21 Oct 2011 19:37:13 +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.

12 years ago[Ada] Fix number of lines in -ada-task-info output
brobecke [Fri, 21 Oct 2011 18:46:02 +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.

12 years ago * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid
corinna [Fri, 21 Oct 2011 17:42:59 +0000 (17:42 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid
success only on Samba shares.
* mount.cc (fs_info::update): Drop has_buggy_basic_info flag for
NcFsd.
* syscalls.cc (unlink_nt): Fix typo in comment.

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

12 years agoFix a typo in comments.
hjl [Fri, 21 Oct 2011 16:16:48 +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.

12 years agoPut IRELATIVE relocations after JUMP_SLOT.
hjl [Fri, 21 Oct 2011 15:13:35 +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.

12 years ago2011-10-21 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 21 Oct 2011 13:24:25 +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.

12 years ago2011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>
krebbel [Fri, 21 Oct 2011 12:50:28 +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.

12 years agoCheck in missing ChangeLog entry.
cgf [Fri, 21 Oct 2011 12:24:58 +0000 (12:24 +0000)]
Check in missing ChangeLog entry.

12 years ago * globals.cc (ro_u_ncfsd): New R/O unicode string.
corinna [Fri, 21 Oct 2011 08:29:18 +0000 (08:29 +0000)]
* globals.cc (ro_u_ncfsd): New R/O unicode string.
* mount.cc (fs_info::update): Check for "NcFsd" FS.  Set flags and
change comments accordingly.
(fs_names): Add entry for NcFsd FS.
* mount.h (enum fs_info_type): Add ncfsd.
(class fs_info): Add ncfsd flag and accessor methods.
* path.h (class path_conv): Add fs_is_ncfsd method.
* syscalls.cc (unlink_nt): Experimentally try delete-on-close on NcFsd
in STATUS_CANNOT_DELETE case.

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

12 years agogdb/
jkratoch [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.

12 years ago * dwarf2read.c (dw2_get_file_names): Move adjustment for type
ccoutant [Thu, 20 Oct 2011 23:12:59 +0000 (23:12 +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.

12 years agodaily update
amodra [Thu, 20 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago* fhandler.h (fhandler*::copyto): Free path_conv strings first.
cgf [Thu, 20 Oct 2011 21:35:59 +0000 (21:35 +0000)]
* fhandler.h (fhandler*::copyto): Free path_conv strings first.
* path.h (cfree_and_null): Rename and expand from cfree_maybe.
(path_conv &operator =): Call free_strings rather than freeing strings
directly.

12 years ago * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
aristovski [Thu, 20 Oct 2011 20:06:11 +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.

12 years ago PR ld/13049
nickc [Thu, 20 Oct 2011 16:26:57 +0000 (16:26 +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.

12 years agoThroughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
cgf [Thu, 20 Oct 2011 14:02:53 +0000 (14:02 +0000)]
Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
* devices.cc: Regenerate.
* dtable.cc: (fh_alloc): Preserve /dev/tty name when that's what we opened.
(build_fh_pc): Preserve any existing name.
* fhandler.cc (fhandler_base::open_with_arch): Ditto.
* fhandler_tty.cc (fhandler_pty_master::fhandler_pty_master): Force the name to
/dev/ptmx while preserving other pty master device information.
* path.h (cfree_maybe): New macro.
(path_conv::operator =): Free any allocated strings in target.
(path_conv::free_strings): Delete unused function.
* sigproc.cc (proc_terminate): Remove previous accommodation for execed
processes since it didn't have the desired effect.  Change comment to a FIXME.
* spawn.cc (chExeced): Mark NO_COPY.
(exe_suffixes): Ditto.

12 years ago2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 20 Oct 2011 13:34:13 +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.

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

12 years ago2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 20 Oct 2011 12:31:22 +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.

12 years ago * syscalls.cc (try_to_bin): Improve debug output.
corinna [Thu, 20 Oct 2011 10:59:00 +0000 (10:59 +0000)]
* syscalls.cc (try_to_bin): Improve debug output.
(check_dir_not_empty): Take additional path_conv argument.  Improve
debug output.  Change syscall_printf to debug_printf.
(unlink_nt): Improve debug output.  Change syscall_printf to
debug_printf.
(unlink): Change syscall_printf to debug_printf.

* cygthread.h: Fix copyright dates.

12 years ago PR ld/13287
amodra [Thu, 20 Oct 2011 09:50:58 +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.

12 years ago * dwarf2read.c (create_debug_types_hash_table): Fix size of
ccoutant [Thu, 20 Oct 2011 01:11:32 +0000 (01:11 +0000)]
* dwarf2read.c (create_debug_types_hash_table): Fix size of
type_offset field.

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

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

12 years ago * elf32-i386.c (i386_opcode16): Delete.
amodra [Wed, 19 Oct 2011 23:02:47 +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.

12 years agodaily update
amodra [Wed, 19 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agosim: dv-cfi: check for log2 support in libm when enabled
vapier [Wed, 19 Oct 2011 21:28:25 +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>
12 years ago * gdb.texinfo (Commands In Python): Add missing "@"s.
tromey [Wed, 19 Oct 2011 17:51:00 +0000 (17:51 +0000)]
* gdb.texinfo (Commands In Python): Add missing "@"s.

12 years ago PR gold/13163
ian [Wed, 19 Oct 2011 15:50:59 +0000 (15:50 +0000)]
PR gold/13163
* script-sections.cc
(Output_section_element_dot_assignment::needs_output_section): New
function.

12 years ago * dwarf2read.c (peek_abbrev_code): New function.
ccoutant [Wed, 19 Oct 2011 15:26:27 +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.

12 years ago PR gold/13204
ian [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.

12 years ago PR ld/13177
amodra [Wed, 19 Oct 2011 07:17:11 +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.

12 years ago PR ld/13311
amodra [Wed, 19 Oct 2011 05:24:36 +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.

12 years ago PR ld/13254
amodra [Wed, 19 Oct 2011 04:13:27 +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.

12 years ago[sim]: Only print the profile info title once.
brobecke [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.

12 years agoFix sparc TLS call relaxation when the delay slot sets up %o0.
davem [Wed, 19 Oct 2011 00:32:24 +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.

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

12 years agodaily update
amodra [Tue, 18 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * output.cc (posix_fallocate): Return 0 on success, errno on failure.
ccoutant [Tue, 18 Oct 2011 21:36:28 +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.

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

12 years ago Jie Zhang <jie@codesourcery.com>
jules [Tue, 18 Oct 2011 14:41:53 +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.

12 years ago * gdb.base/source.exp: Don't include full file name in test name.
tromey [Tue, 18 Oct 2011 14:13:59 +0000 (14:13 +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.

12 years ago * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
aristovski [Tue, 18 Oct 2011 14:00:37 +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.

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

12 years ago * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
nickc [Tue, 18 Oct 2011 11:35:16 +0000 (11:35 +0000)]
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
memchr.S.
* libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included
in .S files.
* libc/machine/arm/memchr-stub.c: New file - just selects what to
compile.
* libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version.

* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S.
* libc/machine/arm/strlen-armv7.S: New file.
* libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't
for v7 or 6t2.

* libc/machine/arm/Makefile.in: Regenerate.

12 years ago * path.cc: Extend two comments. Mention the name RtlpCurDirRef
corinna [Tue, 18 Oct 2011 08:47:07 +0000 (08:47 +0000)]
* path.cc: Extend two comments.  Mention the name RtlpCurDirRef
for reference.

12 years agosim: rename common/aclocal.m4 to common/acinclude.m4
vapier [Tue, 18 Oct 2011 00:30:56 +0000 (00:30 +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>
12 years ago PR gold/13245
ccoutant [Tue, 18 Oct 2011 00:25:52 +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.

12 years agosim: move from common.m4 to SIM_AC_COMMON
vapier [Tue, 18 Oct 2011 00:17:09 +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>
12 years agosim: testsuite: regenerate configure
vapier [Tue, 18 Oct 2011 00:16:11 +0000 (00:16 +0000)]
sim: testsuite: regenerate configure

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * gold.cc: Include timer.h.
ccoutant [Tue, 18 Oct 2011 00:06:09 +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.

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

12 years ago * readsyms.cc (Read_symbols::run): Don't queue an unblocker
ccoutant [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.

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

12 years ago PR gold/13288
ccoutant [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.

12 years agodaily update
amodra [Mon, 17 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago* dcrt0.cc (dll_crt0_1): Copy argv before passing to main().
cgf [Mon, 17 Oct 2011 18:25:04 +0000 (18:25 +0000)]
* dcrt0.cc (dll_crt0_1): Copy argv before passing to main().

12 years ago * lib/gdb.exp (gdb_test_multiple): Expect newline and secondary
jsm28 [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.

12 years ago* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.
cgf [Mon, 17 Oct 2011 15:35:25 +0000 (15:35 +0000)]
* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.

12 years ago2011-10-17 Joost van der Sluis <joost@cnoc.nl>
tromey [Mon, 17 Oct 2011 14:04:35 +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.

12 years agogdb/
jkratoch [Mon, 17 Oct 2011 12:57:13 +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.

12 years ago PR ld/12975
amodra [Mon, 17 Oct 2011 08:27:40 +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.

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

12 years agodaily update
amodra [Sun, 16 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update

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

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

12 years agoSet target from the the first object only if it isn't set.
hjl [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.

12 years agogdb/testsuite/
jkratoch [Sun, 16 Oct 2011 08:42:02 +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.

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

12 years agodaily update
amodra [Sat, 15 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago* cygerrno.h (__set_errno): Modify debugging output to make searching strace
cgf [Sat, 15 Oct 2011 22:37:28 +0000 (22:37 +0000)]
* cygerrno.h (__set_errno): Modify debugging output to make searching strace
logs easier.  Throughout, change /dev/tty* to /dev/pty*.  Throughout, add flags
argument to fhandler_*::dup methods.
* devices.in: Rename (temporarily?) /dev/ttyN to /dev/ptyN.  Add /dev/ptymN
devices for pty masters.
* devices.cc: Regenerate.
* devices.h (MAX_CONSOLES): Set to max number supported by devices.in.
(fh_devices::FH_PTMX): Rename from FH_PTYM.
(device::operator int): Return by reference.
* dtable.cc (fh_alloc): Take pc as an argument rather than just the device.
This makes debugging easier since more information is available.  Actually
implement handling for already-allocated pty master devices.  Make different
decisions when generating fhandler for not-opened devices.  Add kludge to deal
with opening /dev/tty.
(cnew_no_ctor): New macro.
(build_fh_pc): Make debugging output more verbose.  Use new clone() fhandler
interface to duplicate archetypes.  Reset last term opened.
(dtable::dup_worker): Use Use new clone() fhandler interface to duplicate
archetypes.  Pass flags to child dup handler.
(dtable::dup3): Set O_NOCTTY flag if newfd is not stdin/stdout/stderr.
* fhandler.cc (fhandler_base::reset): Rename from operator =() and reduce
functionality and sense of copy direction.
(fhandler_base::open_with_arch): Use published interface to query io_handle().
Use new copyto() fhandler method to copy from/to found archetype.
* fhandler.h: Throughout, delete size(), add copyout, clone, and fhandler_*
(void *) methods.
(fhandler_base::reset): Rename from operator =().
(fhandler_termios::is_dev_tty): Delete.
(fhandler_termios): change "protected" region to "private".
(fhandler_termios::is_dev_tty): Delete.
(fhandler_termios): Rearrange protected/public.
(fhandler_termios::fhandler_termios): Remember last fhandler_termios "opened".
(fhandler_termios::~fhandler_termios): Forget last fhandler_termios opened.
(ioctl): Rename from ioctl_termios.  Take a void * argument.  Reflect argument
change in pinfo::set_ctty.
(fhandler_console::dup): Declare new function.  Set ctty here if appropriate.
(fhandler_pty_master::from_master): Privatize.
(fhandler_pty_master::to_master): Ditto.
(fhandler_pty_master::dwProcessId): Ditto.
(fhandler_pty_master::fhandler_pty_master): Add an `int' argument.
(fhandler_pty_master::open_setup): Declare new function.
(fhandler_pty_master::~fhandler_pty_master): Declare new method.
(fhandler_nodevice): Remove commented out function declaration.
* fhandler_console.cc: Use get_ttyp() instead of tc() throughout.
(fhandler_console::dup): Define new function to set controlling ctty on dup, as
appropriate.
(fhandler_console::ioctl): Reflect ioctl_termios name change.
(fhandler_console::setup): Rename from get_tty_stuff.
(fhandler_console::open_setup): Reflect argument change in pinfo::set_ctty.
(fhandler_console::fhandler_console): Set _tc here.
* fhandler_termios.cc (handler_termios::ioctl): Rename.  Take a void * arg like
other ioctl functions.
* fhandler_tty.cc (fhandler_pty_slave::dup): Call myself->set_ctty to
potentially reset the controlling terminal.
(fhandler_pty_slave::ioctl): Reflect name/arg change for ioctl_termios.
(fhandler_pty_slave::fhandler_pty_slave): Take a "unit" argument.  Call setup()
here so that we will know the unit number of this fhandler as soon as possible.
Set the unit as appropriate.
(handler_pty_master::open): Move most stuff to constructor and open_setup.
(handler_pty_slave::open_setup): Reflect argument change in pinfo::set_ctty.
(handler_pty_master::open_setup): Define new function.
(fhandler_pty_master::cleanup): Clear handles as a flag that the destructor
does not have to do "close" operations.
(fhandler_pty_master::close): Ditto.
(fhandler_pty_master::~fhandler_pty_master): Define new method.
(fhandler_pty_master::ioctl): Reflect name/arg change for ioctl_termios.
(fhandler_pty_master::setup): Allocate tty here.  Rely on handles being
returned from allocated test rather than opening them here.  Avoid setting
_need_nl here since it is already zeroed in the constructor.  Set up device
information with DEV_TTYM_MAJOR.
* path.h (path_conv &operator =): Take a const argument.
(path_conv::dup): Ditto.
(pathconv_arg::PC_OPEN): New enum.
(pathconv_arg::PC_CTTY): Ditto.
(path_types::PATH_CTTY): Ditto.
(path_types::PATH_OPEN): Ditto.
(path_conv::isopen): New method.
(path_conv::isctty_capable): Ditto.
* path.cc (path_conv::check): Set PATH_OPEN and PATH_CTTY as appropriate.
* pipe.cc (fhandler_pipe::open): Use copyto to copy pipe handle.
* syscall.cc (open): Reinstate fd > 2 check to disallow resetting ctty on
non-std* handles.
* tty.cc (tty_list::allocate): Pass out handles for allocated tty.  use
`not_allocated' to find unallocated ttys.  Avoid keeping the lock since the
allocation of the tty should be sufficient to prevent multiple access.
(tty::not_allocated): Clarify comment.  Rename.  Return handles when an unused
tty is found.  Simply test for existing tty.
(tty::exists): Rewrite to use `not_allocated'.
* tty.h (NTTYS): Reset down to actual number supported by devices.in.
(tty::not_allocated): Declare new function.
(tty_list::allocate): Pass out read/write tty handles.  Zero them when not
found.
* fhandler_proc.cc: Reflect name change from FH_PTYM -> FH_PTMX.
* pinfo.h (pinfo::set_ctty): Reduce/reorder arguments passed in.
* pinfo.cc (pinfo::set_ctty): Ditto.  Just use tc() built into the passed-in
fhandler_termios pointer.  Return true if ctty is assigned.
* syscalls.cc (open): Call build_fh_pc with PC_OPEN flag.  Set PC_CTTY if
appropriate.
(stat_worker): Remove is_dev_tty () stuff.

12 years ago * fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert
corinna [Sat, 15 Oct 2011 19:13:57 +0000 (19:13 +0000)]
* fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert
native NT network paths into DOS UNC paths.

12 years ago * sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on
corinna [Sat, 15 Oct 2011 16:31:55 +0000 (16:31 +0000)]
* sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on
systems supporting it.  Never add SERVICE SID but keep code in for
future reference.  Explain why.
(get_priv_list): Add cygpsid pointer parameter.  Point it to the
mandatory integrity SID which matches account and privileges.
(create_token): Fetch mandatory integrity SID from call to
get_priv_list.
(lsaauth): Call get_priv_list with additional NULL pointer.  Change
comment accordingly.
* sec_helper.cc (well_known_console_logon_sid): New static SID.
(cygpriv): Change to structure containing extra flag to store info
about required integrity level.
(privilege_luid): Accommodate changes to cygpriv.  Return integrity
level in new high_integrity parameter.
(privilege_name): Accommodate changes to cygpriv.
(set_privilege): Drop trailing \n from debug output.
(set_cygwin_privileges): Don't set SE_CREATE_GLOBAL_PRIVILEGE anymore
since it's just not needed, but keep code in for future reference.
Change comment accordingly.
* security.h (well_known_console_logon_sid): Declare.
(privilege_luid): Align declaration to above change.
* wincap.h (wincaps::has_console_logon_sid): New element.
* wincap.cc: Implement above element throughout.

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

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

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

12 years ago PR c++/13225
kseitz [Fri, 14 Oct 2011 20:22:49 +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.

12 years ago PR c++/13225
kseitz [Fri, 14 Oct 2011 20:22:15 +0000 (20:22 +0000)]
PR c++/13225
* eval.c (evaluate_subexp_standard): Do not construct
an array of types; pass the value array directly to
find_overload_match.
* gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
(rank_function): Take an array of values instead of types.
(rank_one_type): Add struct value * parameter.
* gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
(rank_function): For each argument, pass the argument's
value to rank_one_type.
(rank_one_type): Add VALUE parameter.
If the parameter type is a pointer and the argument type
is an integer, return NULL_POINTER_CONVERSION_BADNESS if
VALUE is zero.
Update all calls to rank_one_type, passing NULL for new
VALUE parameter.
* valarith.c (value_user_defined_cpp_op): Do not construct
an array of types; pass the value array directly to
find_overload_match.
* valops.c (find_overload_method_list): Take an array of
values instead of types.
Save the type of OBJP for later use.
Update calls to find_oload_champ, and find_oload_champ_namespace.
(find_oload_champ_namespace): Take an array of values instead
of types.
(find_oload_champ_namespace_loop): Likewise.
(find_oload_champ): Likewise.
(classify_oload_match): Inspect all arguments
until INCOMPATIBLE is found. Return the worst badness found
otherwise.
(compare_parameters): Update call to rank_one_type.
* value.h (find_overload_match): Take an array of values instead
of types.

12 years ago2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
tromey [Fri, 14 Oct 2011 19:31:46 +0000 (19:31 +0000)]
2011-10-14  Alexey Makhalov  <makhaloff@gmail.com>

* sim-alu.h (ALU32_AND): Clear carry flag.
(ALU32_AND): Clear carry flag.

12 years ago * gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.
tromey [Fri, 14 Oct 2011 16:05:03 +0000 (16:05 +0000)]
* gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.
* gdb.threads/attach-stopped.exp (corefunc): Add $srcfile to the
linespec.

12 years agogdb/
jkratoch [Fri, 14 Oct 2011 07:58:58 +0000 (07:58 +0000)]
gdb/
Drop lazy lm_info reading.
* solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
l_addr_inferior, l_ld, l_next, l_prev and l_name.
(lm_info_read): New function.
(lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
(lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
lm_dynamic_from_link_map.
(lm_next, lm_prev, lm_name): Remove.
(svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
initialization incl. read_memory.  No longer use lm_name.
(svr4_free_so): Drop lm_info->lm freeing.
(svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
explicit lm_addr and lm initialization.
(svr4_read_so_list): Use lm_info_read, drop the initailization of
fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
lm_name.

12 years agogdb/
jkratoch [Fri, 14 Oct 2011 07:55:21 +0000 (07:55 +0000)]
gdb/
* defs.h (struct so_list): New forward declaration.
(make_cleanup_free_so): New declaration.
* solib-svr4.c (ignore_first_link_map_entry): Remove.
(svr4_free_so): Move the function here from downwards.  Handle NULL
so->lm_info.
(svr4_free_library_list): New.
(svr4_read_so_list): New, moved here code from svr4_current_sos.
Use more cleanups.  Use new parameter ignore_first instead of
ignore_first_link_map_entry.
(svr4_current_sos): New variable ignore_first, initialize it.  New
variable back_to, use it for svr4_free_library_list protection.
(svr4_free_so): Remove - move upwards.
* utils.c: Include solist.h.
(do_free_so, make_cleanup_free_so): New functions.

12 years ago * elf32-cris.c (cris_elf_gc_sweep_hook) <R_CRIS_16_GOTPLT>
hp [Fri, 14 Oct 2011 06:52:43 +0000 (06:52 +0000)]
* elf32-cris.c (cris_elf_gc_sweep_hook) <R_CRIS_16_GOTPLT>
<R_CRIS_32_GOTPLT>: Fix missing update of gotplt refcount for
global symbols.
<R_CRIS_8, R_CRIS_16, R_CRIS_32>: New cases for similar missing
updates of the plt refcount.
(elf_cris_adjust_gotplt_to_got): Assert integrity of the gotplt
refcount in relation to the plt refcount.

12 years ago * ld-cris/pic-gc-72.d: Adjust for dropping unused undefined
hp [Fri, 14 Oct 2011 06:51:47 +0000 (06:51 +0000)]
* ld-cris/pic-gc-72.d: Adjust for dropping unused undefined
dynamic symbol "dsofn".

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

12 years agodaily update
amodra [Thu, 13 Oct 2011 23:00:09 +0000 (23:00 +0000)]
daily update

12 years ago * cygcheck.cc (dump_sysinfo): Add Windows 8 recognition. Note as
corinna [Thu, 13 Oct 2011 17:50:47 +0000 (17:50 +0000)]
* cygcheck.cc (dump_sysinfo): Add Windows 8 recognition.  Note as
unsupported.  Update products array.

12 years ago * path.cc (find_fast_cwd_pointer): Allow 'push crit-sect-addr' instead
corinna [Thu, 13 Oct 2011 16:47:31 +0000 (16:47 +0000)]
* path.cc (find_fast_cwd_pointer): Allow 'push crit-sect-addr' instead
of 'mov edi, crit-sect-addr; push edi' and set rcall accordingly.

12 years agogdb/
jkratoch [Thu, 13 Oct 2011 16:26:22 +0000 (16:26 +0000)]
gdb/
Fix internal error regression.
* value.c (value_primitive_field): Handle value_optimized_out.  Move
packed bitfields comment.

gdb/testsuite/
Fix internal error regression.
* gdb.dwarf2/implptr-optimized-out.S: New file.
* gdb.dwarf2/implptr-optimized-out.exp: New file.

12 years ago2011-10-13 Nick Clifton <nickc@redhat.com>
nickc [Thu, 13 Oct 2011 15:33:31 +0000 (15:33 +0000)]
2011-10-13  Nick Clifton  <nickc@redhat.com>

Fixes to aid translation:
* addr2line.c (translate_address): Add comments describing context
of a couple of printf statements.
* ar.c (write_archive): Allow translation of error message.
* bucomm.c (endian_string): Allow translation of strings.
(display_target_list): Allow translation.
* coffdump.c (dump_coff_type): Allow translation of output.
(dump_coff_where): Likewise.
(dump_coff_symbol): Likewise.
(dump_coff_scope): Likewise.
(dump_coff_sfile): Likewise.
(dump_coff_section): Likewise.
(coff_dump): Likewise.
* dlltool (def_version): Allow translation of output.
(run): Likewise.
* dllwrap.c (run): Allow translation of output.
* dwarf.c (print_dwarf_vma): Allow translation of output.
(process_extended_line_op): Remove spurious translation.
Add translation for strings that can be translated.
(decode_location_exression): Allow translation of output.
(read_and_display_attr_value): Allow translation of output.
* readelf.c (slurp_rela_relocs): Add translation for error
messages when failing to get data.
(slurp_rel_relocs): Likewise.
(get_32bit_elf_symbols): Likewise.
(get_64bit_elf_symbols): Likewise.
(dump_ia64_vms_dynamic_relocs): Replace abbreviation with full
word.
(process_relocs): Remove spurious translation.
(decode_tic6x_unwind_bytecode): Likewise.
(process_version_section): Improve error messages.
(process_mips_specific): Likewise.
(print_gnu_note): Remove spurious translation.
(print_stapsdt_note): Likewise.
(get_ia64_vms_note_type): Likewise.
* sysdump.c (getCHARS): Allow translation.
(fillup): Allow translation of output.
(getone): Likewise.
(must): Likewise.
(derived_type): Likewise.
* doc/binutils.doc (addr2line): Extend description of command line
options.
* po/binutils.pot: Regenerate.

12 years ago * path.cc (copy_cwd_str): Move up in file to be accessible from
corinna [Thu, 13 Oct 2011 15:32:09 +0000 (15:32 +0000)]
* path.cc (copy_cwd_str): Move up in file to be accessible from
class fcwd_access_t.
(class fcwd_access_t): New class to consolidate and hide the details
of the various FAST_CWD implementations.  Add implementation for
Windows 8 Developer Preview.
(fast_cwd_version): Make static private member of fcwd_access_t.
(fast_cwd_ptr): Change base type to fcwd_access_t.
(find_fast_cwd_pointer): Return fcwd_access_t**.
(find_fast_cwd): Ditto.  Rip out all FAST_CWD implementations and use
fcwd_access_t methods instead.
(cwdstuff::override_win32_cwd): Ditto.

12 years ago * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
tromey [Thu, 13 Oct 2011 14:54:12 +0000 (14:54 +0000)]
* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
always released.

12 years agoPR python/13285 Document named constants for frame unwind stop reasons
kpouget [Thu, 13 Oct 2011 14:50:08 +0000 (14:50 +0000)]
PR python/13285 Document named constants for frame unwind stop reasons

* gdb.texinfo (Frames In Python): Document gdb.FRAME_UNWIND_*
constants.

12 years ago * python/py-type.c (typy_has_key): Make 'field' const.
tromey [Thu, 13 Oct 2011 13:55:25 +0000 (13:55 +0000)]
* python/py-type.c (typy_has_key): Make 'field' const.

12 years ago2011-10-13 Luis Machado <lgustavo@codesourcery.com>
luisgpm [Thu, 13 Oct 2011 13:15:16 +0000 (13:15 +0000)]
2011-10-13  Luis Machado  <lgustavo@codesourcery.com>

* remote.c (remote_save_trace_data): Invert comparison.

12 years ago2011-10-13 Luis Machado <lgustavo@codesourcery.com>
luisgpm [Thu, 13 Oct 2011 13:06:16 +0000 (13:06 +0000)]
2011-10-13  Luis Machado  <lgustavo@codesourcery.com>

* tracepoint.c (trace_save_command): Use filename instead of
args when printing.