OSDN Git Service

pf3gnuchains/sourceware.git
13 years ago2011-03-14 Michael Snyder <msnyder@vmware.com>
msnyder [Tue, 15 Mar 2011 05:51:59 +0000 (05:51 +0000)]
2011-03-14  Michael Snyder  <msnyder@vmware.com>

* objcopy.c (set_pe_subsystem): Free subsystem.

13 years ago2011-03-08 Michael Snyder <msnyder@vmware.com>
msnyder [Tue, 15 Mar 2011 04:05:39 +0000 (04:05 +0000)]
2011-03-08  Michael Snyder  <msnyder@vmware.com>

* wrstabs.c (stab_start_struct_type): Close memory leak.

13 years ago2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Tue, 15 Mar 2011 02:48:49 +0000 (02:48 +0000)]
2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>

    * NEWS: Delete duplicate entry. Fix typo.

13 years ago2011-03-07 Michael Snyder <msnyder@vmware.com>
msnyder [Tue, 15 Mar 2011 02:48:30 +0000 (02:48 +0000)]
2011-03-07  Michael Snyder  <msnyder@vmware.com>

* readelf.c (process_version_sections): Free symbols.

13 years ago2011-03-07 Michael Snyder <msnyder@vmware.com>
msnyder [Tue, 15 Mar 2011 02:37:53 +0000 (02:37 +0000)]
2011-03-07  Michael Snyder  <msnyder@vmware.com>

* nm.c (display_rel_file): Free symsizes.

13 years ago Fix ARI warning about function names in first column.
muller [Tue, 15 Mar 2011 01:54:56 +0000 (01:54 +0000)]
Fix ARI warning about function names in first column.
Put prototype declaration on same line as return type.
* objc-exp.y: Ditto.
* p-exp.y: Ditto.
* python/py-stopevent.h: Ditto.
For long function names, split parameters to allow function name
on same line as return type.
* solib-pa64.c: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
For long function declaration, use single line.
* hppa-tdep.h: Ditto.
* inferior.h: Ditto.

13 years ago2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Tue, 15 Mar 2011 01:09:52 +0000 (01:09 +0000)]
2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>

    * gdb.texinfo (Breakpoints In Python): Add description and
              example
      of Python stop function operation.

2010-03-14  Phil Muldoon  <pmuldoon@redhat.com>

    * gdb.python/py-breakpoint.exp: Add Python stop operations
              tests.

2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>

    * python/python.h: Declare gdbpy_should_stop and
    gdbpy_breakpoint_has_py_cond.
    * python/python.c: Add python.h to includes.  Remove
    python.h from
    HAVE_PYTHON definition
    (gdbpy_should_stop): New dummy function.
    (gdbpy_breakpoint_has_py_cond): New dummy function.
    * python/py-breakpoint.c (bppy_init): Rewrite to allow
    sub-classing capabilities.
    (gdbpy_should_stop): New function.
    (gdbpy_breakpoint_has_py_cond): New function.
    (local_setattro): New function.
    * breakpoint.c (condition_command): Add check for Python
    'stop'
    operation.
    (bpstat_check_breakpoint_conditions): Execute Python
    'stop'
    operation function as part of stop/continue tests.

13 years agoinclude/elf/
rsandifo [Tue, 15 Mar 2011 01:04:03 +0000 (01:04 +0000)]
include/elf/
* arm.h (R_ARM_IRELATIVE): New relocation.

bfd/
* reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
entry.
(elf32_arm_howto_from_type): Update accordingly.
(elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
(elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
(arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
with an extra noncall_refcount field.
(arm_local_iplt_info): New structure.
(elf_arm_obj_tdata): Add local_iplt.
(elf32_arm_local_iplt): New accessor macro.
(elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
Change tls_type to a bitfield and add is_iplt.
(elf32_arm_link_hash_newfunc): Update accordingly.
(elf32_arm_allocate_local_sym_info): New function.
(elf32_arm_create_local_iplt): Likewise.
(elf32_arm_get_plt_info): Likewise.
(elf32_arm_plt_needs_thumb_stub_p): Likewise.
(elf32_arm_get_local_dynreloc_list): Likewise.
(create_ifunc_sections): Likewise.
(elf32_arm_copy_indirect_symbol): Update after the changes to
elf32_arm_link_hash_entry.  Assert the is_iplt has not yet been set.
(arm_type_of_stub): Add an st_type argument.  Use elf32_arm_get_plt_info
to get PLT information.  Assert that all STT_GNU_IFUNC references
are turned into PLT references.
(arm_build_one_stub): Pass the symbol type to
elf32_arm_final_link_relocate.
(elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
(elf32_arm_allocate_irelocs): New function.
(elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
all R_ARM_IRELATIVE.
(elf32_arm_allocate_plt_entry): New function.
(elf32_arm_populate_plt_entry): Likewise.
(elf32_arm_final_link_relocate): Add an st_type parameter.
Set srelgot to null for static objects.  Use separate variables
to record which st_value and st_type should be used when generating
a dynamic relocation.  Use elf32_arm_get_plt_info to find the
symbol's PLT information, setting has_iplt_entry, splt,
plt_offset and gotplt_offset accordingly.  Check whether
STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
the relocation target accordingly.  Broaden assert to include
.iplts.  Don't set sreloc for static relocations.  Assert that
we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
and R_ARM_ABS32_NOI.  Generate R_ARM_IRELATIVE relocations instead
of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
symbol.  Pass the symbol type to arm_type_of_stub.  Conditionally
resolve GOT references to the .igot.plt entry.
(elf32_arm_relocate_section): Update the call to
elf32_arm_final_link_relocate.
(elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
information.  Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
relocations in shared libraries and relocatable executables.
Count non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_check_relocs): Always create ifunc sections.  Set isym
at the same time as setting h.  Use elf32_arm_allocate_local_sym_info
to allocate local symbol information.  Treat R_ARM_REL32 and
R_ARM_REL32_NOI as call relocations in shared libraries and
relocatable executables.  Record PLT information for local
STT_GNU_IFUNC functions as well as global functions.   Count
non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
Don't remove STT_GNU_IFUNC PLTs unless all references have been
removed.  Update after the changes to elf32_arm_link_hash_entry.
(allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
entries should live in .plt or .iplt.  Check whether the .igot.plt
and .got entries can be combined.  Use elf32_arm_allocate_plt_entry
to allocate .plt and .(i)got.plt entries.  Detect which .got
entries will need R_ARM_IRELATIVE relocations and use
elf32_arm_allocate_irelocs to allocate them.  Likewise other
non-.got dynamic relocations.
(elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
and dynamic relocations for local STT_GNU_IFUNC symbols.
Check whether the .igot.plt and .got entries can be combined.
Detect which .got entries will need R_ARM_IRELATIVE relocations
and use elf32_arm_allocate_irelocs to allocate them.  Use stashed
section pointers intead of strcmp checks.  Handle iplt and igotplt.
(elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
to fill in .plt, .got.plt and .rel(a).plt entries.  Point
STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
resolve to it.
(elf32_arm_output_plt_map_1): New function, split out from
elf32_arm_output_plt_map.  Handle .iplt entries.  Use
elf32_arm_plt_needs_thumb_stub_p.
(elf32_arm_output_plt_map): Call it.
(elf32_arm_output_arch_local_syms): Add mapping symbols for
local .iplt entries.
(elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
(elf32_arm_swap_symbol_out): Likewise.
(elf32_arm_add_symbol_hook): New function.
(elf_backend_add_symbol_hook): Define for all targets.

opcodes/
* arm-dis.c (get_sym_code_type): Treat STT_GNU_IFUNCs as code.

gas/
* config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
determine whether a relocation is needed.
(md_apply_fix, arm_apply_sym_value): Likewise.

ld/testsuite/
* ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd,
ld-arm/ifunc-1.rd, ld-arm/ifunc-2.s, ld-arm/ifunc-2.dd,
ld-arm/ifunc-2.gd, ld-arm/ifunc-2.rd, ld-arm/ifunc-3.s,
ld-arm/ifunc-3.dd, ld-arm/ifunc-3.gd, ld-arm/ifunc-3.rd,
ld-arm/ifunc-4.s, ld-arm/ifunc-4.dd, ld-arm/ifunc-4.gd,
ld-arm/ifunc-4.rd, ld-arm/ifunc-5.s, ld-arm/ifunc-5.dd,
ld-arm/ifunc-5.gd, ld-arm/ifunc-5.rd, ld-arm/ifunc-6.s,
ld-arm/ifunc-6.dd, ld-arm/ifunc-6.gd, ld-arm/ifunc-6.rd,
ld-arm/ifunc-7.s, ld-arm/ifunc-7.dd, ld-arm/ifunc-7.gd,
ld-arm/ifunc-7.rd, ld-arm/ifunc-8.s, ld-arm/ifunc-8.dd,
ld-arm/ifunc-8.gd, ld-arm/ifunc-8.rd, ld-arm/ifunc-9.s,
ld-arm/ifunc-9.dd, ld-arm/ifunc-9.gd, ld-arm/ifunc-9.rd,
ld-arm/ifunc-10.s, ld-arm/ifunc-10.dd, ld-arm/ifunc-10.gd,
ld-arm/ifunc-10.rd, ld-arm/ifunc-11.s, ld-arm/ifunc-11.dd,
ld-arm/ifunc-11.gd, ld-arm/ifunc-11.rd, ld-arm/ifunc-12.s,
ld-arm/ifunc-12.dd, ld-arm/ifunc-12.gd, ld-arm/ifunc-12.rd,
ld-arm/ifunc-13.s, ld-arm/ifunc-13.dd, ld-arm/ifunc-13.gd,
ld-arm/ifunc-13.rd, ld-arm/ifunc-14.s, ld-arm/ifunc-14.dd,
ld-arm/ifunc-14.gd, ld-arm/ifunc-14.rd, ld-arm/ifunc-15.s,
ld-arm/ifunc-15.dd, ld-arm/ifunc-15.gd, ld-arm/ifunc-15.rd,
ld-arm/ifunc-16.s, ld-arm/ifunc-16.dd, ld-arm/ifunc-16.gd,
ld-arm/ifunc-16.rd, ld-arm/ifunc-dynamic.ld,
ld-arm/ifunc-static.ld: New tests.
* ld-arm/farcall-group.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-mixed-lib-v4t.d, ld-arm/farcall-mixed-lib.d: Update
for new stub hashes.
* ld-arm/arm-elf.exp: Run them.

13 years ago PR gdb/12576:
tromey [Tue, 15 Mar 2011 00:58:54 +0000 (00:58 +0000)]
PR gdb/12576:
* dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
(needs_frame_dwarf_call): Likewise.

13 years agoinclude/elf/
rsandifo [Tue, 15 Mar 2011 00:54:57 +0000 (00:54 +0000)]
include/elf/
* internal.h (elf_internal_sym): Add st_target_internal.
* arm.h (arm_st_branch_type): New enum.
(ARM_SYM_BRANCH_TYPE): New macro.

bfd/
* elf-bfd.h (elf_link_hash_entry): Add target_internal.
* elf.c (swap_out_syms): Set st_target_internal for each
Elf_Internal_Sym.
* elfcode.h (elf_swap_symbol_in): Likewise.
* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
* elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
* elflink.c (elf_link_output_extsym): Likewise.
(bfd_elf_final_link): Likewise.
(elf_link_add_object_symbols): Copy st_target_internal
to the hash table if we see a definition.
(_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
* elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
a branch_type field.
(a8_erratum_fix, a8_erratum_reloc): Likewise.
(arm_type_of_stub): Replace actual_st_type with an
actual_branch_type parameter.
(arm_build_one_stub): Use branch types rather than st_types to
determine the type of branch.
(cortex_a8_erratum_scan): Likewise.
(elf32_arm_size_stubs): Likewise.
(bfd_elf32_arm_process_before_allocation): Likewise.
(allocate_dynrelocs_for_symbol): Likewise.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf32_arm_final_link_relocate): Replace sym_flags parameter with
a branch_type parameter.
(elf32_arm_relocate_section): Update call accordingly.
(elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
(elf32_arm_output_map_sym): Initialize st_target_internal.
(elf32_arm_output_stub_sym): Likewise.
(elf32_arm_symbol_processing): Delete.
(elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
Use st_target_internal to record the branch type.
(elf32_arm_swap_symbol_out): Use st_target_internal to test for
Thumb functions.
(elf32_arm_is_function_type): Delete.
(elf_backend_symbol_processing): Likewise.
(elf_backend_is_function_type): Likewise.

gas/
* config/tc-arm.c (arm_adjust_symtab): Set the branch type
for Thumb symbols.

ld/
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
eh->target_internal.

opcodes/
* arm-dis.c (get_sym_code_type): Don't check for STT_ARM_TFUNC.
Use branch types instead.
(print_insn): Likewise.

13 years agobfd/
rsandifo [Tue, 15 Mar 2011 00:53:57 +0000 (00:53 +0000)]
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
(elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
into the PLT block.

ld/
* emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
instead of dynamic_sections_created.

13 years agobfd/
rsandifo [Tue, 15 Mar 2011 00:53:32 +0000 (00:53 +0000)]
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
may_need_local_target_p and may_become_dynamic_p to classify
the relocation type.  Don't check info->symbolic or h->def_regular
when deciding whether to record a potential dynamic reloc.
Don't treat potential dynamic relocs as PLT references.
(elf32_arm_gc_sweep_hook): Update to match.  Assert that we don't
try to make the PLT reference count go negative.

ld/testsuite/
* ld-arm/arm-lib-plt-2a.s, ld-arm/arm-lib-plt-2b.s,
ld-arm/arm-lib-plt-2.dd, ld-arm/arm-lib-plt-2.rd: New tests.
* ld-arm/arm-elf.exp: Run them.

13 years agobfd/
rsandifo [Tue, 15 Mar 2011 00:52:51 +0000 (00:52 +0000)]
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
GOT entry here, rather than leaving it to finish_dynamic_symbol.
Only create a dynamic relocation for local references if
info->shared.
(allocate_dynrelocs_for_symbol): Update dynamic relocation
allocation accordingly.
(elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.

ld/testsuite/
* ld-arm/exec-got-1a.s, ld-arm/exec-got-1b.s, ld-arm/exec-got-1.d,
ld-arm/unresolved-1.s, ld-arm/unresolved-1.d,
ld-arm/unresolved-1-dyn.d: New tests.
* ld-arm/arm-elf.exp: Run them.

13 years agobfd/
rsandifo [Tue, 15 Mar 2011 00:52:05 +0000 (00:52 +0000)]
bfd/
* elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
(elf32_arm_add_dynreloc): Likewise.
(elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
to allocate dynamic relocations.
(elf32_arm_size_dynamic_sections): Likewise.
(allocate_dynrelocs): Likewise.  Rename to
allocate_dynrelocs_for_symbol.
(elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
create dynamic relocations.
(elf32_arm_finish_dynamic_symbol): Likewise.

13 years ago Fix ARI warning about functions without parameters that do not
muller [Tue, 15 Mar 2011 00:43:48 +0000 (00:43 +0000)]
Fix ARI warning about functions without parameters that do not
use (void).
* breakpoint.c (all_tracepoints): Replace () by (void).
* f-exp.y (match_string_literal): Ditto.
(yylex): Ditto.
* m2-exp.y (yylex): Ditto.
* mep-tdep.c (current_me_module): Ditto.
(current_options): Ditto.
(current_cop_data_bus_width): Ditto.
(current_cr_names): Ditto.
(current_cr_is_float): Ditto.
(current_ccr_names): Ditto.
* objc-exp.y (yylex): Ditto.
* p-exp.y (yylex): Ditto.
* remote.c (send_interrupt_sequence): Ditto.
* tracepoint.c (current_trace_status): Ditto.
* python/py-evts.c (gdbpy_initialize_py_events): Ditto.
* python/py-prettyprint.c (push_dummy_python_frame): Ditto.

13 years ago * script-sections.cc (Sort_output_sections::script_compare):
ian [Tue, 15 Mar 2011 00:22:16 +0000 (00:22 +0000)]
* script-sections.cc (Sort_output_sections::script_compare):
Rename from is_before, change return type.
(Sort_output_sections::operator()): Adjust accordingly.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
corinna [Mon, 14 Mar 2011 18:14:16 +0000 (18:14 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.

13 years ago*** empty log message ***
gdbadmin [Mon, 14 Mar 2011 09:01:03 +0000 (09:01 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 14 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
cgf [Mon, 14 Mar 2011 05:20:57 +0000 (05:20 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
treatment for ERROR_NO_SYSTEM_RESOURCES.  Cancel I/O and reset the overlapped
handle on error.
(fhandler_base_overlapped::write_overlapped): Limit writes to max_atomic_write
bytes in blocking case.  Incorporate code from now-defunct
write_overlapped_fallback.  Fix serious oversight where ptr was not advanced as
buffer was written.
(fhandler_base_overlapped::write_overlapped_fallback): Eliminate.
* fhandler.h (fhandler_base_overlapped::write_overlapped_fallback): Ditto for
declaration.
(DEFAULT_PIPEBUFSIZE): Lower size to slightly less than documented worst-case
atomic write size.
(fhandler_overlapped::wait_return): Remove unused element.

13 years ago * gdb.python/py-section-script.exp: Skip test if no Python support.
uweigand [Sun, 13 Mar 2011 22:39:17 +0000 (22:39 +0000)]
* gdb.python/py-section-script.exp: Skip test if no Python support.

13 years ago * gdb.base/solib-weak.exp: Allow "." prefix for ppc64.
uweigand [Sun, 13 Mar 2011 10:07:02 +0000 (10:07 +0000)]
* gdb.base/solib-weak.exp: Allow "." prefix for ppc64.

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

13 years agodaily update
amodra [Sun, 13 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update

13 years ago2011-03-11 Michael Snyder <msnyder@vmware.com>
msnyder [Sun, 13 Mar 2011 07:59:23 +0000 (07:59 +0000)]
2011-03-11  Michael Snyder  <msnyder@vmware.com>

* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
* cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
(lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
* completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
* top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.

13 years agoSupport TLS x32 GD->IE, GD->LE and LD->LE transitions.
hjl [Sat, 12 Mar 2011 23:38:30 +0000 (23:38 +0000)]
Support TLS x32 GD->IE, GD->LE and LD->LE transitions.

bfd/

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

* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
x32 GD->IE and GD->LE transitions.
(elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
and LD->LE transitions.

ld/testsuite/

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

* ld-x86-64/tlsgd4.dd: New.
* ld-x86-64/tlsgd4.s: Likewise.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-x86-64/tlsgd5a.s: Likewise.
* ld-x86-64/tlsgd5b.s: Likewise.
* ld-x86-64/tlsgd6.dd: Likewise.
* ld-x86-64/tlsgd6a.s: Likewise.
* ld-x86-64/tlsgd6b.s: Likewise.
* ld-x86-64/tlsld2.dd: Likewise.
* ld-x86-64/tlsld2.s: Likewise.

* ld-x86-64/x86-64.exp (x86_64tests): Add tlsgd4, libtlsgd5.so,
tlsgd5, libtlsgd6.so, tlsgd6 and tlsld2.

13 years ago2011-03-11 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Sat, 12 Mar 2011 13:33:15 +0000 (13:33 +0000)]
2011-03-11  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.17.
        * Makefile.in: Ditto.

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

13 years agodaily update
amodra [Sat, 12 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update

13 years ago2011-03-11 Michael Snyder <msnyder@vmware.com>
msnyder [Sat, 12 Mar 2011 07:31:43 +0000 (07:31 +0000)]
2011-03-11  Michael Snyder  <msnyder@vmware.com>

* event-loop-c (delete_async_signal_handler): Assert prev_ptr.
(delete_async_event_handler): Ditto.

13 years ago2011-03-11 Michael Snyder <msnyder@vmware.com>
msnyder [Sat, 12 Mar 2011 07:01:28 +0000 (07:01 +0000)]
2011-03-11  Michael Snyder  <msnyder@vmware.com>

* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.

13 years ago PR gold/12572
ian [Sat, 12 Mar 2011 06:42:12 +0000 (06:42 +0000)]
PR gold/12572
* testsuite/odr_violation2.cc: Add comment to make all error line
numbers double digits.
* testsuite/debug_msg.sh: Adjust expected errors.

13 years ago2011-02-27 Michael Snyder <msnyder@vmware.com>
msnyder [Sat, 12 Mar 2011 06:34:33 +0000 (06:34 +0000)]
2011-02-27  Michael Snyder  <msnyder@vmware.com>

* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.

13 years ago2011-03-11 Michael Snyder <msnyder@vmware.com>
msnyder [Sat, 12 Mar 2011 05:38:55 +0000 (05:38 +0000)]
2011-03-11  Michael Snyder  <msnyder@vmware.com>

* top.c (set_verbose): Assert showcmd was found.

13 years ago2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Sat, 12 Mar 2011 03:37:44 +0000 (03:37 +0000)]
2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (warning_once): Correct style issues.

13 years ago2011-03-11 Yao Qi <yao@codesourcery.com>
qiyao [Fri, 11 Mar 2011 23:48:52 +0000 (23:48 +0000)]
2011-03-11  Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.

13 years ago * remap.c (remap_debug_filename): Always allocate a buffer for the
nickc [Fri, 11 Mar 2011 23:18:24 +0000 (23:18 +0000)]
* remap.c (remap_debug_filename): Always allocate a buffer for the
returned pointer.
* stabs.c (stabs_generate_asm_file): Free the pointer returned by
remap_debug_filename.

13 years ago* common/aclocal.m4: Remove.
schwab [Fri, 11 Mar 2011 19:11:33 +0000 (19:11 +0000)]
* common/aclocal.m4: Remove.

13 years ago2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Fri, 11 Mar 2011 11:32:31 +0000 (11:32 +0000)]
2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (windowing_enabled): Remove inline attribute.
(xtensa_write_register, xtensa_read_register): Likewise.
(xtensa_hextochar): Removed.
(xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.

13 years agoCorrect bad formatting in the comments. Two spaces must follow '.'.
maxim2405 [Fri, 11 Mar 2011 09:26:50 +0000 (09:26 +0000)]
Correct bad formatting in the comments. Two spaces must follow '.'.

13 years ago2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Fri, 11 Mar 2011 09:21:37 +0000 (09:21 +0000)]
2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (xtensa_c0reg_t): Update comments.
(xtensa_call0_frame_cache_t): Update comments. New fields added.
(xtensa_alloc_frame_cache): Add initialization for new fields.
(xtensa_frame_cache): Change the way how call0_frame_cache () is called.
(warning_once): New function.
(xtensa_insn_kind): New item c0opc_and.
(call0_classify_opcode): Add the case for AND instruction.
(call0_track_op): Change arguments. New local variable litbase. Add the
case to handle c0opc_and. Update algorithms for c0opc_mov, c0opc_l32r,
c0opc_s32i to take into account dynamic stack adjustments in prologue.
Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
(call0_analyze_prologue): Update the comments. Change arguments.
Add the variety of updates to handle extended prologues, which now can
conduct dynamic stack adjustments.
(call0_frame_cache): Likewise.
(xtensa_skip_prologue): Update call0_analyze_prologue () function call.
(xtensa_gdbarch_init): Initialize xtensa_session_once_reported.

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

13 years agodaily update
amodra [Fri, 11 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update

13 years agoRevert previous change.
msnyder [Fri, 11 Mar 2011 05:25:44 +0000 (05:25 +0000)]
Revert previous change.

13 years ago2011-03-01 Michael Snyder <msnyder@vmware.com>
msnyder [Fri, 11 Mar 2011 05:24:27 +0000 (05:24 +0000)]
2011-03-01  Michael Snyder  <msnyder@vmware.com>

* p-typeprint.c (pascal_type_print_method_args): Don't use
pointer until after null-check.

13 years ago2011-02-28 Michael Snyder <msnyder@vmware.com>
msnyder [Fri, 11 Mar 2011 05:21:14 +0000 (05:21 +0000)]
2011-02-28  Michael Snyder  <msnyder@vmware.com>

* tracepoint.c (cmd_qtv): Discard unused value 'packet'.
(cmd_qtframe): Ditto.
(cmd_qtbuffer): Ditto.
(cmd_bigqtbuffer): Ditto.

13 years ago2011-02-27 Michael Snyder <msnyder@vmware.com>
msnyder [Fri, 11 Mar 2011 05:18:42 +0000 (05:18 +0000)]
2011-02-27  Michael Snyder  <msnyder@vmware.com>

* gdbserver/tracepoint.c (tracepoint_finish_step): Fix
loop variable.

13 years ago2011-03-10 Michael Snyder <msnyder@vmware.com>
msnyder [Fri, 11 Mar 2011 05:09:13 +0000 (05:09 +0000)]
2011-03-10  Michael Snyder  <msnyder@vmware.com>

* gdbserver/server.c (handle_v_run): Free alloced buffer on early
return.

13 years ago * tracepoint.c (trace_actions_command): Update.
tromey [Fri, 11 Mar 2011 03:33:54 +0000 (03:33 +0000)]
* tracepoint.c (trace_actions_command): Update.
* thread.c (thread_apply_command): Update.
* reverse.c (delete_bookmark_command): Update.
(bookmarks_info): Update.
* printcmd.c (undisplay_command): Update.
* memattr.c (mem_enable_command): Update.
(mem_disable_command): Update.
(mem_delete_command): Update.
* inferior.c (detach_inferior_command): Update.
(kill_inferior_command): Update.
(remove_inferior_command): Update.
* cli/cli-utils.h (struct get_number_or_range_state): New.
(init_number_or_range): Declare.
(get_number_or_range): Update.
* cli/cli-utils.c (init_number_or_range): New function.
(get_number_or_range): Change 'pp' parameter to 'state'.  Remove
static variables.
(number_is_in_list): Update.
* breakpoint.h (get_tracepoint_by_number): Update.
* breakpoint.c (map_breakpoint_numbers): Update for change to
get_number_or_range.
(find_location_by_number): Use get_number, not
get_number_or_range.
(trace_pass_set_count): New function.
(trace_pass_command): Update for change to get_number_or_range.
Rework loop logic.
(get_tracepoint_by_number): Remove 'multi_p' parameter; add
'state' parameter.

13 years ago2011-03-10 Michael Snyder <msnyder@vmware.com>
msnyder [Fri, 11 Mar 2011 03:26:26 +0000 (03:26 +0000)]
2011-03-10  Michael Snyder  <msnyder@vmware.com>

Revert the following change:
* dwarf2dbg.c (out_file_list): Free malloced 'dir'.
(out_debug_info): Free malloced 'dirname' and 'comp_dir'.

13 years ago2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Thu, 10 Mar 2011 21:29:06 +0000 (21:29 +0000)]
2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>

* python/py-param.c (add_setshow_generic): Add set/show callback
parameters.  Register Python object context.
(get_show_value): New function.
(get_set_value): New function.
(call_doc_function): New function.
(get_doc_string): Move behind get_show_value/get_set_value.

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

* gdb.texinfo (Parameters In Python): Document get_set_string and
get_show_string methods.

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

* gdb.python/py-parameter.exp: Update tests to the new Python
parameter API. Add "no documentation" test.  Add deprecated API
backward compatibility test.

13 years agogdb/
jkratoch [Thu, 10 Mar 2011 20:29:52 +0000 (20:29 +0000)]
gdb/
* fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.

13 years ago[PATCH] Respect symbol wrappers when computing symbol resolutions.
davek [Thu, 10 Mar 2011 19:27:50 +0000 (19:27 +0000)]
[PATCH] Respect symbol wrappers when computing symbol resolutions.

ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* plugin.c (get_symbols): Use wrapped lookup for undefined symbols.

13 years ago[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR...
davek [Thu, 10 Mar 2011 19:26:26 +0000 (19:26 +0000)]
[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD.

ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* ldlang.c (lang_check): Don't run checks on dummy IR BFDs.

13 years ago[PATCH] Revise linker plugin API to better preserve link order.
davek [Thu, 10 Mar 2011 19:25:02 +0000 (19:25 +0000)]
[PATCH] Revise linker plugin API to better preserve link order.

ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
* ldmain.c (add_archive_element): Set it if the member is claimed.
* ldlang.c (new_afile): Initialise claim_archive and claimed members.
(find_replacements_insert_point): New helper function.
(lang_process): After adding and opening replacement files passed
from plugin, splice them into correct place in statement list and
file chains to preserve critical link order.
(lang_list_insert_after): New helper function.
(lang_list_remove_tail): Likewise.

13 years ago * common.h (EM_V850): V850s now supplied by Renesas.
nickc [Thu, 10 Mar 2011 19:23:36 +0000 (19:23 +0000)]
* common.h (EM_V850): V850s now supplied by Renesas.
* readelf.c (get_machine_name): Update EM_V850 entry.

13 years ago[PATCH] Do not use dummy bfd suffix for recognition, make it human-readable instead.
davek [Thu, 10 Mar 2011 19:22:24 +0000 (19:22 +0000)]
[PATCH] Do not use dummy bfd suffix for recognition, make it human-readable instead.

ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
(IRONLY_SUFFIX_LEN): Delete.
(plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
(is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
enclosing lang input statement instead.

13 years ago[PATCH] Fix PE-COFF bug in orphan section alignment handling.
davek [Thu, 10 Mar 2011 19:20:26 +0000 (19:20 +0000)]
[PATCH] Fix PE-COFF bug in orphan section alignment handling.

ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
alignment of input sections when creating orphan output sections
during relocatable link.
* emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.

13 years ago * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
amodra [Thu, 10 Mar 2011 19:06:04 +0000 (19:06 +0000)]
* gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
TARGET_SYMBOL_FIELDS): Don't define.
* gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.

13 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
amodra [Thu, 10 Mar 2011 18:26:17 +0000 (18:26 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
for LO_DS error message and correct multiple.

13 years ago * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
amodra [Thu, 10 Mar 2011 18:11:12 +0000 (18:11 +0000)]
* elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
(ppc64_elf_link_just_syms): New function.
(opd_entry_value): Don't assume big-endian host.
(get_r2off): New function.
(ppc_build_one_stub, ppc_size_one_stub): Use it here.

13 years agoremove subdir_do recursive make command in gdbserver/Makefile.in
brobecke [Thu, 10 Mar 2011 16:32:02 +0000 (16:32 +0000)]
remove subdir_do recursive make command in gdbserver/Makefile.in

This fixes:

    % [...]/gdbserver/configure
    % make distclean
    [...]
    rm -f amd64-avx.c amd64-avx-linux.c
    rm -f i386-mmx.c i386-mmx-linux.c
    make[1]: Entering directory `/[...]'
    make[1]: *** No rule to make target `subdir_do'.  Stop.
    make[1]: Leaving directory `[...]'
    make: *** [distclean] Error 2

gdb/gdbserver/ChangeLog:

        * Makefile.in (maintainer-clean realclean distclean): Remove
        "make ...  subdir_do" command.

13 years ago * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines,
ian [Thu, 10 Mar 2011 10:31:32 +0000 (10:31 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info): Include all lines,
but mark earlier ones as non-canonical
(offset_to_iterator): Update search target and example
(do_addr2line): Return extra lines in a vector*
(format_file_lineno): Extract from do_addr2line
(one_addr2line): Add vector* out-param
* dwarf_reader.h (Offset_to_lineno_entry): New field recording
when a lineno entry appeared last for its instruction
(Dwarf_line_info): Add vector* out-param
* object.cc (Relocate_info): Pass NULL for the vector* out-param
* symtab.cc (Odr_violation_compare): Include the lineno in the
comparison again.
(linenos_from_loc): New. Combine the canonical line for an
address with its other lines.
(True_if_intersect): New. Helper functor to make
std::set_intersection a query.
(detect_odr_violations): Compare sets of lines instead of just
one line for each function. This became less deterministic, but
has fewer false positives.
* symtab.h: Declarations.
* testsuite/Makefile.am (odr_violation2.o): Compile with -O2 to
mix an optimized and non-optimized object in the same binary
(odr_violation2.so): Same.
* testsuite/Makefile.in: Regenerate from Makefile.am.
* testsuite/debug_msg.cc (main): Make OdrDerived classes.
* testsuite/debug_msg.sh: Update line numbers and add
assertions.
* testsuite/odr_violation1.cc: Use OdrDerived, in a
non-optimized context.
* testsuite/odr_violation2.cc: Make sure Ordering::operator()
isn't inlined, and use OdrDerived in an optimized context.
* testsuite/odr_header1.h: Defines OdrDerived, where
optimization will change the
first-instruction-in-the-destructor's file and line number.
* testsuite/odr_header2.h: Defines OdrBase.

13 years ago * fileread.cc (File_read::clear_views): Don't delete the whole
ian [Thu, 10 Mar 2011 10:10:19 +0000 (10:10 +0000)]
* fileread.cc (File_read::clear_views): Don't delete the whole
file view.

13 years ago2011-03-09 Michael Snyder <msnyder@vmware.com>
msnyder [Thu, 10 Mar 2011 09:52:09 +0000 (09:52 +0000)]
2011-03-09  Michael Snyder  <msnyder@vmware.com>

* dwarf2dbg.c (out_file_list): Free malloced 'dir'.
(out_debug_info): Free malloced 'dirname' and 'comp_dir'.
(emit_fixed_inc_line_addr): Assign instead of conditional
in assert.

13 years ago2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Thu, 10 Mar 2011 09:15:19 +0000 (09:15 +0000)]
2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (xtensa_read_register: Add comment.
(xtensa_write_register): Likewise.
(xtensa_hextochar): Add comment and update to match coding conventions.
(xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
(execute_l32e, execute_s32e, execute_code): Update comments.
(xtensa_exception_handler_t): Update to match coding conventions.
(xtensa_insn_kind): Likewise.

13 years ago*** empty log message ***
gdbadmin [Thu, 10 Mar 2011 09:00:02 +0000 (09:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Thu, 10 Mar 2011 08:00:05 +0000 (08:00 +0000)]
daily update

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
cgf [Thu, 10 Mar 2011 07:48:05 +0000 (07:48 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
overlapped_fallback error condition like other error conditions.  Set res
carefully and specifically for each condition rather than resorting to a
default.
(fhandler_base_overlapped::write_overlapped): Preserve errno in
overlapped_fallback condition.  Correct write_overlapped_fallback to avoid
inappropriate looping.
(fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.

13 years ago2011-03-09 Michael Snyder <msnyder@vmware.com>
msnyder [Thu, 10 Mar 2011 05:31:48 +0000 (05:31 +0000)]
2011-03-09  Michael Snyder  <msnyder@vmware.com>

* mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.

13 years ago * gdb.ada/catch_ex.exp: Use explicit gdb_test rather than
tromey [Thu, 10 Mar 2011 03:41:30 +0000 (03:41 +0000)]
* gdb.ada/catch_ex.exp: Use explicit gdb_test rather than
gdb_continue_to_end.

13 years ago* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
cgf [Thu, 10 Mar 2011 01:55:54 +0000 (01:55 +0000)]
* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
change in arguments to wait_overlapped.

13 years ago* gdb.base/memattr.exp: Adjust regexps to accept spaces as well as
kettenis [Thu, 10 Mar 2011 01:54:50 +0000 (01:54 +0000)]
* gdb.base/memattr.exp: Adjust regexps to accept spaces as well as
tabs.

13 years ago* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
cgf [Thu, 10 Mar 2011 01:47:44 +0000 (01:47 +0000)]
* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
* fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant.
(MIN_OVERLAPPED_WRITE_LEN): Ditto.
(fhandler_base_overlapped::close): Accommodate change in arguments to
wait_overlapped.
(fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm
modifiers.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning
various states.  Accept nonblocking parameter.
(fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm
modifiers.  Rework to attempt to be smarter about reacting to states returned
by wait_overlapped.
(fhandler_base_overlapped::write_overlapped): Ditto.  Add fallback option for
when wait_overlapped detects that smaller chunks must be written.
(fhandler_base_overlapped::write_overlapped_fallback): Ditto.
* fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc.
(fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers.
(fhandler_base_overlapped::wait_return): New enum.
(fhandler_base_overlapped::max_atomic_write): New variable.
(fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned
above to arguments and modifiers.
(fhandler_base_overlapped::setup_overlapped): Ditto for modifiers.
(fhandler_base_overlapped::read_overlapped): Ditto.
(fhandler_base_overlapped::write_overlapped): Ditto.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the
size of the DEFAULT_PIPEBUFSIZE.
(fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped.
* pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of
the DEFAULT_PIPEBUFSIZE.
(fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE.
(DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.

13 years ago2011-03-09 Michael Snyder <msnyder@vmware.com>
msnyder [Thu, 10 Mar 2011 00:59:12 +0000 (00:59 +0000)]
2011-03-09  Michael Snyder  <msnyder@vmware.com>

* gdbserver/tracepoint.c: Fix small comment typo.

13 years ago gdb/
palves [Thu, 10 Mar 2011 00:01:34 +0000 (00:01 +0000)]
gdb/
* nto-tdep.c (nto_find_and_open_solib): Constify local `base'.

13 years ago * thread.c (restore_selected_frame): Handle frame_level == -1.
tromey [Wed, 9 Mar 2011 23:22:06 +0000 (23:22 +0000)]
* thread.c (restore_selected_frame): Handle frame_level == -1.
(make_cleanup_restore_current_thread): Use
get_selected_frame_if_set.
* frame.h (get_selected_frame_if_set): Declare.
* frame.c (get_selected_frame_if_set): New function.

13 years ago * lib/gdb.exp (inferior_exited_re): Match. leading `['. Wrap in
tromey [Wed, 9 Mar 2011 23:17:04 +0000 (23:17 +0000)]
* lib/gdb.exp (inferior_exited_re): Match. leading `['.  Wrap in
parentheses.
(gdb_continue_to_end): Add "allow_extra" parameter.  Use
$command.
* gdb.threads/thread-unwindonsignal.exp: Pass "allow_extra"
argument to gdb_continue_to_end.
* gdb.threads/interrupted-hand-call.exp: Pass "allow_extra"
argument to gdb_continue_to_end.
* gdb.cp/annota3.exp: Fix regex.
* gdb.cp/annota2.exp: Fix regex.
* gdb.base/shlib-call.exp: Pass "allow_extra" argument to
gdb_continue_to_end.
* gdb.base/call-signal-resume.exp: Revert earlier patch.
* gdb.ada/tasks.exp: Pass "allow_extra" argument to
gdb_continue_to_end.

13 years ago * cli/cli-cmds.c (shell_escape): Use lbasename.
palves [Wed, 9 Mar 2011 21:48:53 +0000 (21:48 +0000)]
* cli/cli-cmds.c (shell_escape): Use lbasename.
* coffread.c (coff_start_symtab): Constify parameter.
(complete_symtab): Constify `name' parameter.
(coff_symtab_read): Constify `filestring' local.
(coff_getfilename): Constify return and `result' local.
Use lbasename.
* fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
* linux-fork.c (info_checkpoints_command): Use lbasename.
* linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
* minsyms.c (lookup_minimal_symbol): Use lbasename.
* nto-tdep.c (nto_find_and_open_solib): Use lbasename.
* procfs.c (procfs_make_note_section): Use lbasename.
* tui/tui-io.c (printable_part): Constity return and parameter.
Use lbasename.
(print_filename): Constify parameters, and local `s'.
(tui_rl_display_match_list): Constify local `temp'.

13 years agogdb/
jkratoch [Wed, 9 Mar 2011 16:07:53 +0000 (16:07 +0000)]
gdb/
Revert:
2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
Fix DWARF-3+ DW_AT_accessibility default assumption.
* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
cu->header.version >= 3.

13 years agogdb/
qiyao [Wed, 9 Mar 2011 15:24:05 +0000 (15:24 +0000)]
gdb/
2011-03-09  Yao Qi  <yao@codesourcery.com>

* common/Makefile.in: Remove.
* common/configure: Remove.
* common/configure.ac: Remove.

13 years agogdb/
qiyao [Wed, 9 Mar 2011 15:10:36 +0000 (15:10 +0000)]
gdb/
2011-03-09  Yao Qi  <yao@codesourcery.com>

Revert:
2011-02-11  Yao Qi  <yao@codesourcery.com>

* common/Makefile.in: Add copyright header.

2011-02-11  Yao Qi  <yao@codesourcery.com>

* Makefile.in: Remove signals.o from COMMON_OBS.  Link
libcommon.a.
* configure.ac: Add common to sub dir.
* configure: Regenerate.

gdb/gdbserver/
2011-03-09  Yao Qi  <yao@codesourcery.com>

Revert:
2011-03-04  Yao Qi  <yao@codesourcery.com>

* Makefile.in: Remove GNU make feature --directory.

2011-03-05  Yao Qi  <yao@codesourcery.com>

* Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
(subdir_do): New make target.  Copied from gdb/Makefile.
(maintainer-clean, realclean, distclean, clean): Call corresponding
make targets in common/Makefile.

2011-02-11  Yao Qi  <yao@codesourcery.com>

* configure.ac: Call AC_PROG_RANLIB.
* Makefile.in: Remove signals.o from OBS.  Link libcommon.a.
* configure: Regenerate.

13 years ago2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 9 Mar 2011 12:28:36 +0000 (12:28 +0000)]
2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (call0_ret): New function.
(xtensa_skip_prologue): Speed up analysis.

13 years ago2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 9 Mar 2011 11:56:23 +0000 (11:56 +0000)]
2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
while executing MI command -data-list-changed-registers.

13 years ago2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 9 Mar 2011 11:25:10 +0000 (11:25 +0000)]
2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (xtensa_read_register): New function.
(xtensa_write_register): New function.
(xtensa_find_register_by_name): New function.
(xtensa_windowed_frame_cache): Update comments in type description.
(xtensa_frame_cache): Likewise.
(xtensa_window_interrupt_insn): New function.
(xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
(xtensa_insn_kind): Add new instructions.
(rwx_special_register): New function.
(call0_classify_opcode): Add new instructions to the analysis.
(a0_saved, a7_saved, a11_saved): New variables.
(a0_was_saved, a7_was_saved, a11_was_saved): New variables.
(execute_l32e): New function.
(execute_s32e): New function.
(xtensa_exception_handler_t): New type.
(execute_code): New function.
(xtensa_window_interrupt_frame_cache): New function to conduct frame
analysis for Xtensa Window Exception handlers.

13 years ago PR gold/12525
ian [Wed, 9 Mar 2011 10:50:33 +0000 (10:50 +0000)]
PR gold/12525
* fileread.cc: #include <climits>.
(GOLD_IOV_MAX): Define.
(File_read::read_multiple): Limit number of entries by iov_max.
* fileread.h (class File_read): Always set max_readv_entries to
128.

13 years ago2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 9 Mar 2011 09:55:07 +0000 (09:55 +0000)]
2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>

* xtensa-tdep.c (TX_PS): New.
(windowing_enabled): Update to count for Call0 ABI.
(xtensa_hextochar): New.
(xtensa_init_reggroups): Make algorithm generic.
(xtensa_frame_cache): Use TX_PS on Tiny Xtensa.

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

13 years ago2011-03-08 Michael Snyder <msnyder@vmware.com>
msnyder [Wed, 9 Mar 2011 08:08:54 +0000 (08:08 +0000)]
2011-03-08  Michael Snyder  <msnyder@vmware.com>

* i386-tdep.c (i386_follow_jump): Check return value of
target_read_memory.
(i386_analyze_struct_return): Ditto.
(i386_skip_probe): Ditto.
(i386_match_insn): Ditto.
(i386_skip_noop): Ditto.
(i386_analyze_frame_setup): Ditto.
(i386_analyze_register_saves): Ditto.
(i386_skip_prologue): Ditto.
(i386_skip_main_prologue): Ditto.

13 years ago2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
maxim2405 [Wed, 9 Mar 2011 08:04:05 +0000 (08:04 +0000)]
2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>

    * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR) Update.

13 years agodaily update
amodra [Wed, 9 Mar 2011 08:00:06 +0000 (08:00 +0000)]
daily update

13 years ago2011-02-27 Michael Snyder <msnyder@vmware.com>
msnyder [Wed, 9 Mar 2011 03:58:52 +0000 (03:58 +0000)]
2011-02-27  Michael Snyder  <msnyder@vmware.com>

* target.c (read_whatever_is_readable): Fix memory leak.

13 years ago2011-03-02 Michael Snyder <msnyder@vmware.com>
msnyder [Wed, 9 Mar 2011 03:49:12 +0000 (03:49 +0000)]
2011-03-02  Michael Snyder  <msnyder@vmware.com>

* i386-tdep.c (i386_process_record): Document fall through.

13 years agogdb/
jkratoch [Wed, 9 Mar 2011 02:54:39 +0000 (02:54 +0000)]
gdb/
Fix DWARF-3+ DW_AT_accessibility default assumption.
* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
cu->header.version >= 3.

13 years ago * security.cc: Fix copyright dates.
corinna [Wed, 9 Mar 2011 00:12:57 +0000 (00:12 +0000)]
* security.cc: Fix copyright dates.

13 years ago * fhandler.cc (fhandler_base::open): When creating a file on a
corinna [Tue, 8 Mar 2011 23:26:14 +0000 (23:26 +0000)]
* fhandler.cc (fhandler_base::open): When creating a file on a
filesystem supporting ACLs, create the file with WRITE_DAC access.
Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Always call GetSecurityInfo for directories
on XP and Server 2003.  Improve comment to explain why.
(set_file_attribute): Explicitely cast mode_t value to bool in call to
get_file_sd.
* wincap.h (wincaps::use_get_sec_info_on_dirs): New element.
* wincap.cc: Implement above element throughout.

13 years agogdb/
palves [Tue, 8 Mar 2011 21:46:50 +0000 (21:46 +0000)]
gdb/
2011-03-08  Pedro Alves  <pedro@codesourcery.com>

* remote.c (remote_check_symbols): Skip if the target has no
execution.

gdb/testsuite/
2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.server/ext-run.exp
(load new file without any gdbserver inferior): New test.

13 years agominor reformatting for target.c:read_whatever_is_readable
brobecke [Tue, 8 Mar 2011 13:53:32 +0000 (13:53 +0000)]
minor reformatting for target.c:read_whatever_is_readable

gdb/ChangeLog:

        * target.c (read_whatever_is_readable): Reformat comment,
        with a minor typo fix. Minor reformatting of the code.

13 years ago2011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Tue, 8 Mar 2011 10:57:45 +0000 (10:57 +0000)]
2011-03-07  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): Move from here...
        * include/psapi.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): ... to here.

13 years ago2011-03-08 Yao Qi <yao@codesourcery.com>
qiyao [Tue, 8 Mar 2011 10:04:33 +0000 (10:04 +0000)]
2011-03-08  Yao Qi  <yao@codesourcery.com>

* arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
(displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
Use cached result instead of calling displaced_in_arm_mode again.
(branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
(displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
(cleanup_copro_load_store, copy_copro_load_store): Likewise.
(cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
(cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
(copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
(copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
(cleanup_block_load_all, cleanup_block_store_pc): Likewise.
(cleanup_block_load_pc, copy_block_xfer): Likewise.
* arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
(arm_catch_kernel_helper_return): Likewise.
* gdb/arm-tdep.h : Update function declarations.