OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:23:41 +0000 (19:23 +0000)]
gdb/
Tail call sites reader implementation.
* dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
fill in TYPE_TAIL_CALL_LIST.
* gdbtypes.h (struct func_type): New field tail_call_list.
(struct call_site): New field tail_call_next.
(TYPE_TAIL_CALL_LIST): New definition.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:21:37 +0000 (19:21 +0000)]
gdb/
Implement basic support for DW_TAG_GNU_call_site.
* block.c: Include gdbtypes.h and exceptions.h.
(call_site_for_pc): New function.
* block.h (call_site_for_pc): New declaration.
* defs.h: Include hashtab.h.
(make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
declarations.
* dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
ctx_no_push_dwarf_reg_entry_value.
* dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
(dwarf_block_to_dwarf_reg): New function.
(execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
(ctx_no_push_dwarf_reg_entry_value): New function.
* dwarf2expr.h (struct dwarf_expr_context_funcs): New field
push_dwarf_reg_entry_value.
(ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
declarations.
* dwarf2loc.c: Include gdbcmd.h.
(dwarf_expr_ctx_funcs): New forward declaration.
(entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
(dwarf_expr_reg_to_entry_parameter)
(dwarf_expr_push_dwarf_reg_entry_value): New.
(dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
(dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
(needs_dwarf_reg_entry_value): New function.
(needs_frame_ctx_funcs): Install it.
(_initialize_dwarf2loc): New function.
* dwarf2loc.h (entry_values_debug): New declaration.
* dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
(read_call_site_scope): New forward declaration.
(process_full_comp_unit): Copy call_site_htab.
(process_die): Support DW_TAG_GNU_call_site.
(read_call_site_scope): New function.
(dwarf2_get_pc_bounds): Support NULL HIGHPC.
(dwarf_tag_name): Support DW_TAG_GNU_call_site.
(cleanup_htab): Delete.
(write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
* exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
* gdb-gdb.py (StructMainTypePrettyPrinter): Support
FIELD_LOC_KIND_DWARF_BLOCK.
* gdbtypes.h (enum field_loc_kind): New entry
FIELD_LOC_KIND_DWARF_BLOCK.
(struct main_type): New loc entry dwarf_block.
(struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
(TYPE_FIELD_DWARF_BLOCK): New.
* python/py-type.c: Include dwarf2loc.h.
(check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
internal_error call on unknown FIELD_LOC_KIND.
* symtab.h (struct symtab): New field call_site_htab.
* utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
(core_addr_hash, core_addr_eq): New functions.

gdb/testsuite/
Implement basic support for DW_TAG_GNU_call_site.
* gdb.arch/Makefile.in (EXECUTABLES): Add amd64-entry-value.
* gdb.arch/amd64-entry-value.cc: New file.
* gdb.arch/amd64-entry-value.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 19:10:52 +0000 (19:10 +0000)]
gdb/
Code reshuffle.
* gdb-gdb.py (StructMainTypePrettyPrinter): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
calling_convention under func_stuff there.
* gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
(init_type) <TYPE_CODE_FUNC>: Likewise.
(recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
* gdbtypes.h (enum type_specific_kind): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
(struct main_type) <type_specific>: Change calling_convention to
func_stuff.  Move calling_convention to ...
(struct func_type): ... this new struct.
(INIT_FUNC_SPECIFIC): New #define.
(TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:46:40 +0000 (18:46 +0000)]
gdb/
Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
* dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
ctx->ref_addr_size.  Handle its invalid value.
* dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
(dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
* dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
* dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
(dwarf2_per_cu_ref_addr_size): New function.

gdb/testsuite/
Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
* gdb.dwarf2/implptr-64bit.S: New file.
* gdb.dwarf2/implptr-64bit.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:43:32 +0000 (18:43 +0000)]
gdb/
Code cleanup.
* dwarf2read.c (per_cu_header_read_in): New function.
(dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
variables cu_header_local and cu_headerp.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:37:26 +0000 (18:37 +0000)]
gdb/
Fix initial language detection with -readnow.
* dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
* symfile.h (struct quick_symbol_functions): State find_symbol_file
searches only for global symbols.

gdb/testsuite/
Fix initial language detection with -readnow.
* gdb.cp/readnow-language.cc: New file.
* gdb.cp/readnow-language.exp: New file.

12 years agogdb/
jkratoch [Sun, 9 Oct 2011 18:33:27 +0000 (18:33 +0000)]
gdb/
Fix printed anonymous struct name.
* dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
(anonymous_struct_prefix): New function.
(determine_prefix): New variables retval.  Call anonymous_struct_prefix.
(dwarf2_name): Strip for anonymous structs any prefixes.

gdb/testsuite/
Fix printed anonymous struct name.
* gdb.cp/anon-struct.exp (print type of X::t2): New test.

12 years ago * gdb.base/solib-symbol.exp: Do not include directories in
jsm28 [Sun, 9 Oct 2011 18:14:40 +0000 (18:14 +0000)]
* gdb.base/solib-symbol.exp: Do not include directories in
filenames in expected messages.

12 years ago * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
amodra [Sun, 9 Oct 2011 03:41:15 +0000 (03:41 +0000)]
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
missing colon to error message.
(ppc_before_allocation): Likewise.

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

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

12 years agoPreserve the maximum alignment/size for common symbols.
hjl [Sat, 8 Oct 2011 16:51:08 +0000 (16:51 +0000)]
Preserve the maximum alignment/size for common symbols.

bfd/

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

PR ld/13250
* elflink.c (elf_link_add_object_symbols): Preserve the maximum
alignment and size for common symbols.

ld/testsuite/

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

PR ld/13250
* ld-elf/shared.exp (build_tests): Add tests for PR ld/13250.
(run_tests): Likewise.

* ld-elf/pr13250-1.c: New.
* ld-elf/pr13250-2.c: Likewise.
* ld-elf/pr13250-3.c: Likewise.

12 years ago PR ld/13229
amodra [Sat, 8 Oct 2011 07:50:17 +0000 (07:50 +0000)]
PR ld/13229
PR ld/13244
* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
dynamic.

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

12 years ago * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
amodra [Fri, 7 Oct 2011 23:06:07 +0000 (23:06 +0000)]
* elflink.c (elf_link_output_extsym): Strip defined plugin symbols
even when strip_discarded is false.

12 years ago * gdb.texinfo (gdb.printing): Document new `replace' arg to
devans [Fri, 7 Oct 2011 23:01:54 +0000 (23:01 +0000)]
* gdb.texinfo (gdb.printing): Document new `replace' arg to
register_pretty_printer.

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

12 years ago * python/lib/gdb/printing.py (register_pretty_printer): New argument
devans [Fri, 7 Oct 2011 22:46:14 +0000 (22:46 +0000)]
* python/lib/gdb/printing.py (register_pretty_printer): New argument
`replace'.

testsuite/
* gdb.python/py-pp-maint.py: Add tests for `replace' arg.

12 years ago * python/lib/gdb/printing.py: Whitespace cleanup.
devans [Fri, 7 Oct 2011 22:25:55 +0000 (22:25 +0000)]
* python/lib/gdb/printing.py: Whitespace cleanup.

12 years ago * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
devans [Fri, 7 Oct 2011 22:02:41 +0000 (22:02 +0000)]
* python/py-value.c (valpy_call): Initialize ftype to avoid compiler
warning.

12 years agoFix PR spelling, 13624 -> 13264.
devans [Fri, 7 Oct 2011 21:56:17 +0000 (21:56 +0000)]
Fix PR spelling, 13624 -> 13264.

12 years agoDon't run dw2-decodedline.S on ia64.
hjl [Fri, 7 Oct 2011 20:13:53 +0000 (20:13 +0000)]
Don't run dw2-decodedline.S on ia64.

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

* binutils-all/objdump.exp: Don't run dw2-decodedline.S on ia64.

12 years agoRun --gc-sections tests only if supported.
hjl [Fri, 7 Oct 2011 19:55:47 +0000 (19:55 +0000)]
Run --gc-sections tests only if supported.

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

* ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
is available.

12 years ago2011-10-07 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 7 Oct 2011 17:15:15 +0000 (17:15 +0000)]
2011-10-07  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (ALL_LWPS): Remove the ptid parameter.
* amd64-linux-nat.c (amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
* arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
(arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
(arm_linux_remove_watchpoint): Adjust.
* i386-linux-nat.c (i386_linux_dr_set_control)
(i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
* ia64-linux-nat.c (ia64_linux_insert_watchpoint)
(ia64_linux_remove_watchpoint): Adjust.
* mips-linux-nat.c (write_watchpoint_regs): Adjust.
* ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
(ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
(ppc_linux_insert_mask_watchpoint)
(ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
(ppc_linux_remove_watchpoint): Adjust.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
Adjust.

12 years ago2011-10-07 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 7 Oct 2011 17:15:06 +0000 (17:15 +0000)]
2011-10-07  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (ALL_LWPS): Remove the ptid parameter.
* amd64-linux-nat.c (amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
* arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
(arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
(arm_linux_remove_watchpoint): Adjust.
* i386-linux-nat.c (i386_linux_dr_set_control)
(i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
* ia64-linux-nat.c (ia64_linux_insert_watchpoint)
(ia64_linux_remove_watchpoint): Adjust.
* mips-linux-nat.c (write_watchpoint_regs): Adjust.
* ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
(ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
(ppc_linux_insert_mask_watchpoint)
(ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
(ppc_linux_remove_watchpoint): Adjust.
* s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
Adjust.

12 years ago* fhandler.h (fhandler_console::tc_getpgid): New function.
cgf [Fri, 7 Oct 2011 13:52:20 +0000 (13:52 +0000)]
* fhandler.h (fhandler_console::tc_getpgid): New function.
* spawn.cc (spawn_guts): Add logic to put pure-windows processes "in the
background" when they are started that way.

12 years ago * windows-nat.c: Include wchar.h to avoid compiler warnings.
corinna [Fri, 7 Oct 2011 13:52:10 +0000 (13:52 +0000)]
* windows-nat.c: Include wchar.h to avoid compiler warnings.
(clear_win32_environment): New function for Cygwin to clear out
Win32 environment.
(windows_create_inferior): Prepare new environment from in_env
for Cygwin, too.

12 years ago * include/sys/cygwin.h (cygwin_getinfo_types): Define values
corinna [Fri, 7 Oct 2011 13:49:15 +0000 (13:49 +0000)]
* include/sys/cygwin.h (cygwin_getinfo_types): Define values
additionally as preprocessor symbols.

12 years ago2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 7 Oct 2011 13:46:07 +0000 (13:46 +0000)]
2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>

PR python/13624

* python/py-value.c (valpy_call): Check that arguments are
a tuple.
        (is_intlike): Remove call to CHECK_TYPEDEF.
(valpy_nonzero): Catch GDB exceptions.
(valpy_absolute): Ditto.
        (valpy_lazy_string): Ditto.
        (valpy_call): Ditto.
        (valpy_get_is_optimized_out): Ditto.
        (valpy_long): Ditto.
        (valpy_float): Ditto.
        (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
        (valpy_richcompare): Ditto.

12 years ago2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 7 Oct 2011 13:23:18 +0000 (13:23 +0000)]
2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>

PR python/12930
PR python/12802

* gdb.texinfo (Breakpoints In Python): Clarify behavior in the
stop method.

12 years ago * inferior.h (disable_randomization): Declare.
uweigand [Fri, 7 Oct 2011 12:06:43 +0000 (12:06 +0000)]
* inferior.h (disable_randomization): Declare.
* infrun.c (disable_randomization): New global variable.
(show_disable_randomization): New function.
(set_disable_randomization): Likewise.
(_initialize_infrun): Install set/show disable-randomization
commands.
* linux-nat.c (disable_randomization): Remove.
(show_disable_randomization): Likewise.
(set_disable_randomization): Likewise.
(_initialize_linux_nat): No longer install set/show
disable-randomization commands here.
(linux_nat_supports_disable_randomization): New function.
(linux_nat_add_target): Install it.
* remote.c (PACKET_QDisableRandomization): New enum value.
(remote_protocol_packets): Support QDisableRandomization.
(_initialize_remote): Likewise.
(remote_supports_disable_randomization): New function.
(init_remote_ops): Install it.
(extended_remote_supports_disable_randomization): New function.
(init_extended_remote_ops): Install it.
(extended_remote_disable_randomization): New function.
(extended_remote_create_inferior_1): Call it.
* target.h (struct target_ops): Add to_supports_disable_randomization.
(target_supports_disable_randomization): Add prototype.
* target.c (target_supports_disable_randomization): New function.
(find_default_supports_disable_randomization): Likewise.
(init_dummy_target): Install it.

doc/
* gdb.texinfo (Starting your Program): "set disable-randomization"
is no longer Linux-specific.
(Remote Configuration): Document "set remote
disable-randomization-packet".
(General Query Packets): Document "QDisableRandomization" packet
and add it to "qSupported" list.

gdbserver/
* configure.ac: Check support for personality routine.
* configure: Regenerate.
* config.in: Likewise.
* linux-low.c: Include <sys/personality.h>.
Define ADDR_NO_RANDOMIZE if necessary.
(linux_create_inferior): Disable address space randomization when
forking inferior, if requested.
(linux_supports_disable_randomization): New function.
(linux_target_ops): Install it.
* server.h (disable_randomization): Declare.
* server.c (disable_randomization): New global variable.
(handle_general_set): Handle QDisableRandomization.
(handle_query): Likewise for qSupported.
(main): Support --disable-randomization and --no-disable-randomization
command line arguments.
* target.h (struct target_ops): Add supports_disable_randomization.
(target_supports_disable_randomization): New macro.

12 years ago * rx/crt0.S: Initialise the PID address register.
nickc [Fri, 7 Oct 2011 10:09:21 +0000 (10:09 +0000)]
* rx/crt0.S: Initialise the PID address register.
(__pid_base): Define weakly.

12 years agoAdd missing files to previous commit (Allow Python notification of new object-file...
kpouget [Fri, 7 Oct 2011 08:39:57 +0000 (08:39 +0000)]
Add missing files to previous commit (Allow Python notification of new object-file loadings.)

12 years agoFix copyright.
corinna [Fri, 7 Oct 2011 08:14:25 +0000 (08:14 +0000)]
Fix copyright.

12 years agoFix ChangeLog messup (Allow Python notification of new object-file loadings.)
kpouget [Fri, 7 Oct 2011 07:51:19 +0000 (07:51 +0000)]
Fix ChangeLog messup (Allow Python notification of new object-file loadings.)

12 years ago Allow Python notification of new object-file loadings.
kpouget [Fri, 7 Oct 2011 07:38:26 +0000 (07:38 +0000)]
Allow Python notification of new object-file loadings.

* Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
(SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
Add build rule for this file.
* python/py-event.h (emit_new_objfile_event): New prototype.
(newobjfile): New Python event emitter.
* python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
Python event registry.
* python/py-inferior.c: Include objfiles.h
(python_new_objfile): New function.
(gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
observers.
* python/py-newobjfileevent.c: New file.
* python-internal.h (gdbpy_initialize_new_objfile_event): New
prototype.
* python/python.c (_initialize_python): Add
gdbpy_initialize_new_objfile_event call.
* NEWS: Add item for new Python event "gdb.newobjfile"

2011-10-06  Kevin Pouget  <kevin.pouget@st.com>

Allow Python notification of new object-file loadings.
* gdb.texinfo (Events In Python): Document `gdb.NewObjFileEvent'
event type.

2011-10-06  Kevin Pouget  <kevin.pouget@st.com>

Allow Python notification of new object-file loadings.
* gdb.python/py-events.exp: Test newobjfile event.
* gdb.python/py-events.py: Register newobjfile callback.
* gdb.python/py-events.c: Add call to shared library
* gdb.python/py-events-shlib.c: New file.

12 years ago * gdb.base/fixsection.exp: Do not include directories in filename
jsm28 [Fri, 7 Oct 2011 00:24:37 +0000 (00:24 +0000)]
* gdb.base/fixsection.exp: Do not include directories in filename
in expected message.

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

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

12 years ago * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
corinna [Thu, 6 Oct 2011 19:47:44 +0000 (19:47 +0000)]
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
pseudo signal to process group instead of just calling
init_console_handler.
* sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP
signal.
* sigproc.h (__SIGSETPGRP): Define.

12 years ago2011-10-06 Christian Franke <franke@computer.org>
chrfranke [Thu, 6 Oct 2011 16:02:34 +0000 (16:02 +0000)]
2011-10-06  Christian Franke  <franke@computer.org>

* include/cygwin/wait.h: Use new __wait_status_to_int()
macro to access status value in W*() status checks.
Fix status description.
* include/sys/wait.h: Allow `int' and `union wait' as
wait status parameter.  Change __wait_status_to_int()
macro and wait () prototypes accordingly.  Add inline
functions for C++.  Remove extra `;'.

12 years agodyslexia
amodra [Thu, 6 Oct 2011 10:26:34 +0000 (10:26 +0000)]
dyslexia

12 years ago PR ld/13329
amodra [Thu, 6 Oct 2011 10:07:16 +0000 (10:07 +0000)]
PR ld/13329
ld/
* plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
(set_tv_header): Handle it.  Adjust LDPT_GET_SYMBOLS.  Return void.
(get_symbols): Add def_ironly_exp param.  Return that value for
syms exported from shared libs.
(get_symbols_v1, get_symbols_v2): New wrapper functions.
* testplug.c: Update for above changes.
ld/testsuite/
* ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d,
* ld-plugin/plugin-4.d, * ld-plugin/plugin-5.d, * ld-plugin/plugin-6.d,
* ld-plugin/plugin-7.d, * ld-plugin/plugin-8.d, * ld-plugin/plugin-9.d,
* ld-plugin/plugin-10.d, * ld-plugin/plugin-11.d: Update.

12 years agogas/testsuite/
jbeulich [Thu, 6 Oct 2011 09:22:57 +0000 (09:22 +0000)]
gas/testsuite/
2011-09-28  Jan Beulich  <jbeulich@suse.com>

* gas/ppc/476.s: Fix lswi first operand.
* gas/ppc/476.d: Adjust expected output.
* gas/ppc/a2.s: Fix lswi first operand.
* gas/ppc/a2.d: Adjust expected output.
* gas/ppc/power6.s: Fix lfdpx first operand.
* gas/ppc/power6.d: Adjust expected output.

opcodes/
2011-09-28  Jan Beulich  <jbeulich@suse.com>

* ppc-opc.c (insert_nbi, insert_rbx, FRAp, FRBp, FRSp, FRTp, NBI, RAX,
RBX): New.
(insert_bo, insert_boe): Reject bcctr with bit 2 in bo unset.
(powerpc_opcodes): Use RAX for second and RBXC for third operand of
lswx. Use NBI for third operand of lswi. Use FRTp for first operand of
lfdp and lfdpx. Use FRSp for first operand of stfdp and stfdpx, and
mark them as invalid on POWER7. Use FRTp, FRAp, and FRBp repsectively
on DFP quad instructions.

12 years ago * coffgen.c (coff_write_alien_symbol): Don't write
ktietz [Thu, 6 Oct 2011 08:59:35 +0000 (08:59 +0000)]
    * coffgen.c (coff_write_alien_symbol): Don't write
        symbol for discarded sections, if strip_discarded isn't
        explicit set to false.
        (coff_write_native_symbol): Likewise.

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

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

12 years agoAdd missing ChangeLog entries.
hjl [Wed, 5 Oct 2011 16:37:49 +0000 (16:37 +0000)]
Add missing ChangeLog entries.

12 years ago Add tests for passing of environment variables to inferior.
muller [Wed, 5 Oct 2011 14:23:37 +0000 (14:23 +0000)]
Add tests for passing of environment variables to inferior.
* gdb.base/testenv.c: New test source.
* gdb.base/testenv.exp: New expect test.

12 years ago * readelf.c (get_machine_dlags): Add support for RX's PID mode.
nickc [Wed, 5 Oct 2011 14:13:24 +0000 (14:13 +0000)]
* readelf.c (get_machine_dlags): Add support for RX's PID mode.

* ld-scripts/phdrs.exp: Expect to fail for the RX.

* elf32-rx.c: Add support for PID mode.
(rx_elf_relocate_section): Add checks for unsafe PID relocations.
Include addend in R_RX_SYM relocations.

* config/rx-defs.h (rx_pid_register): New.
(rx_gp_register): New.
* config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg.
(displacement): Add PID support.
* config/tc-rx.c (rx_pid_mode): New.
(rx_num_int_regs): New.
(rx_pid_register): New.
(rx_gp_register): New.
(options): Add -mpid and -mint-register= options.
(md_longopts): Likewise.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
(rx_pid_symbol): New.
(rx_pidreg_symbol): New.
(rx_gpreg_symbol): New.
(md_begin): Support PID.
(rx_validate_fix_sub): Support PID.
(tc_gen_reloc): Support PID.
* doc/c-rx.texi: Document PID support.

* rx.h (E_FLAG_RX_PID): New.

12 years ago * external.cc (create_winenv): Rename from sync_winenv. Take
corinna [Wed, 5 Oct 2011 12:27:35 +0000 (12:27 +0000)]
* external.cc (create_winenv): Rename from sync_winenv.  Take
environment pointer as parameter and return pointer to corresponding
win32 environment block if != NULL.  Otherwise just sync as before.
(cygwin_internal): Add CW_CVT_ENV_TO_WINENV case.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_ENV_TO_WINENV.

12 years ago2011-10-05 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 5 Oct 2011 07:41:09 +0000 (07:41 +0000)]
2011-10-05  Tristan Gingold  <gingold@adacore.com>

        * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
        Extract the ravenscar task name from the symbol for the atcb.

12 years ago * net.cc (socketpair): Bind first socket to loopback only as well.
corinna [Wed, 5 Oct 2011 06:18:15 +0000 (06:18 +0000)]
* net.cc (socketpair): Bind first socket to loopback only as well.

12 years agosim: merge changes from common.m4 back into SIM_AC_COMMON
vapier [Wed, 5 Oct 2011 02:32:25 +0000 (02:32 +0000)]
sim: merge changes from common.m4 back into SIM_AC_COMMON

Seems some fixes were added to the common.m4 file but not the
SIM_AC_COMMON macro.  Keep the two in sync since they're supposed
to be the same thing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Wed, 5 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago2011-10-04 Greta Yorsh <Greta.Yorsh@arm.com>
jjohnstn [Tue, 4 Oct 2011 18:43:13 +0000 (18:43 +0000)]
2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>

        * testsuite/newlib.string/memcpy-1.c: New test.

12 years ago* gdb.python/py-value.c (main): Break before return.
pkoning [Tue, 4 Oct 2011 17:43:15 +0000 (17:43 +0000)]
* gdb.python/py-value.c (main): Break before return.

12 years ago* python/py-type.c (typy_make_iter): Add forward declaration.
pkoning [Tue, 4 Oct 2011 16:19:58 +0000 (16:19 +0000)]
* python/py-type.c (typy_make_iter): Add forward declaration.
(typy_fields_items):  Use the gdb.Type iterator.

12 years ago* libc/machine/arm/memcpy.S: Fix unaligned access copying.
nickc [Tue, 4 Oct 2011 16:02:24 +0000 (16:02 +0000)]
* libc/machine/arm/memcpy.S: Fix unaligned access copying.

12 years ago* NEWS: Add entry for Python gdb.Type mapping methods.
pkoning [Tue, 4 Oct 2011 15:55:38 +0000 (15:55 +0000)]
* NEWS: Add entry for Python gdb.Type mapping methods.

12 years agoFix misplaced documentation entry (Paul Koning, 2011-09-28)
pkoning [Tue, 4 Oct 2011 15:54:31 +0000 (15:54 +0000)]
Fix misplaced documentation entry (Paul Koning, 2011-09-28)

12 years agobinutils/
carlos [Tue, 4 Oct 2011 14:25:39 +0000 (14:25 +0000)]
binutils/

2011-10-04  Paul Woegerer  <paul_woegerer@mentor.com>
    Carlos O'Donell  <carlos@codesourcery.com>

* dwarf.c (display_debug_lines_decoded): Index directory_table with
directory_index from file_table entry.

binutils/testsuite/

2011-10-04  Carlos O'Donell  <carlos@codesourcery.com>

* binutils-all/dw2-decodedline.S: New file.
* binutils-all/objdump.WL: New file.
* binutils-all/objdump.exp: Update copyright year.
New test case for -WL.

12 years ago2011-10-04 Kevin Pouget <kevin.pouget@st.com>
kpouget [Tue, 4 Oct 2011 08:04:08 +0000 (08:04 +0000)]
2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * python/py-exitedevent.c (create_exited_event_object): Add inferior
       to exited_event.
       * python/py-event.h (emit_exited_event): Likewise
       * python/-inferior.c (python_inferior_exit): Likewise

 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * gdb.python/py-events.exp: Test the inferior attribute of exited
       event with a fork.
       * gdb.python/py-events.py: Print inferior number on exit.
       * gdb.python/py-events.c: Fork the inferior.

 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>

       PR python/12691: Add the inferior to Python exited event
       * gdb.texinfo (Events In Python): Describe exited inferior attribute.

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

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

12 years ago[doco] rephrase `presence of' with `support for'.
brobecke [Mon, 3 Oct 2011 21:39:03 +0000 (21:39 +0000)]
[doco] rephrase `presence of' with `support for'.

gdb/doc/ChangeLog:

        * gdb.texinfo (GDB/MI Miscellaneous Commands): Minor
        rephasing.

12 years ago[Ada/doco] Document the new -ada-task-info GDB/MI command.
brobecke [Mon, 3 Oct 2011 21:38:51 +0000 (21:38 +0000)]
[Ada/doco] Document the new -ada-task-info GDB/MI command.

gdb/doc/ChangeLog:

        * gdb.texinfo (GDB/MI Ada Tasking Commands): New node.
        (GDB/MI Miscellaneous Commands): Add `ada-task-info'
        as possible feature returned by the `-list-features'
        command.

12 years ago[Ada] Add field "thread-id" in -ada-task-info output
brobecke [Mon, 3 Oct 2011 21:38:39 +0000 (21:38 +0000)]
[Ada] Add field "thread-id" in -ada-task-info output

This patch enhances the -ada-task-info command, adding a new
field called "thread-id" in the command output.  This field
provides the ID of the task's corresponding thread (if that
information could not be determined, the field is omitted).

This field is useful in the context of GDB/MI users, because
it allows a quick translation from Ada task to thread, and
thus easy use of all the commands that take a --thread argument.

gdb/ChangeLog:

        * ada-tasks.c (print_ada_task_info): Add "thread-id" field
        in output of -ada-task-info GDB/MI command.

12 years ago[Ada] New GDB/MI command: -ada-tasks-info
brobecke [Mon, 3 Oct 2011 21:38:30 +0000 (21:38 +0000)]
[Ada] New GDB/MI command: -ada-tasks-info

This patch introduces a new GDB/MI command: -ada-tasks-info,
which is meant to be the MI equivalent of the CLI `info tasks'
command.

This new command returns an array, with each row corresponding
to one task.  For now, the columns of the array corresponds to
the columns displayed in the CLI output.

gdb/ChangeLog:

        * ada-lang.h (struct inferior): Declare.
        (print_ada_task_info): Add declaration.
        * ada-tasks.c (print_ada_task_info): Make non-static.
        * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
        * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
        * mi/mi-main.c: #include "ada-lang.h".
        (mi_cmd_list_features): Add "ada-task-info" to the list
        of supported features.
        (mi_cmd_ada_task_info): New function.

12 years agoCrash sourcing Python script on Windows
brobecke [Mon, 3 Oct 2011 20:46:18 +0000 (20:46 +0000)]
Crash sourcing Python script on Windows

gdb/ChangeLog:

        * python/python.c (python_run_simple_file): New function.
        (source_python_script, source_python_script_for_objfile):
        Replace call to PyRun_SimpleFile by call to
        python_run_simple_file.

12 years ago* gdb.base/jit.exp: Add testcase name to log message
emachado [Mon, 3 Oct 2011 20:13:51 +0000 (20:13 +0000)]
* gdb.base/jit.exp: Add testcase name to log message

12 years ago * options.cc (parse_uint): Fix dereference of RETVAL.
dnovillo [Mon, 3 Oct 2011 17:01:43 +0000 (17:01 +0000)]
* options.cc (parse_uint): Fix dereference of RETVAL.

12 years ago* gdb.python/py-value.exp
pkoning [Mon, 3 Oct 2011 16:15:18 +0000 (16:15 +0000)]
* gdb.python/py-value.exp
(python inval = gdb.parse_and_eval('*(int*)0'))
(python argc_lazy = gdb.parse_and_eval('argc'), sanity check argc)
(set argc=2, python print argc_lazy): New tests.

12 years ago* python/py-value.c (valpy_get_address): Use Py_XINCREF.
pkoning [Mon, 3 Oct 2011 16:14:38 +0000 (16:14 +0000)]
* python/py-value.c (valpy_get_address): Use Py_XINCREF.
(value_to_value_object): Fetch value if it was lazy.

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

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

12 years agogdb/
jkratoch [Sun, 2 Oct 2011 21:05:58 +0000 (21:05 +0000)]
gdb/
Code cleanup.
* solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
Rearrange the code for it.

12 years agothread-specific breakpoints not saved properly by save-breakpoint
brobecke [Sun, 2 Oct 2011 02:13:11 +0000 (02:13 +0000)]
thread-specific breakpoints not saved properly by save-breakpoint

Initially, I noticed that the save command was often missing
new lines in the file that it generated.  For instance, consider:

        % gdb save-bp
        (gdb) b break_me
        (gdb) b save-bp.c:27
        (gdb) save breakpoints bps

The contents of the bps file would be:

        % cat bps
        break break_mebreak save-bp.c:27

Looking further into the problem, I realized that the missing newlines
are just a consequence of a missing call to print_recreate_thread.
After having generated the breakpoint location in the break command,
we cannot put a new line until we have looked at whether we need to
add a 'thread NUM' argument.

gdb/ChangeLog:

        * breakpoint.c (bkpt_print_recreate): Add call to
        print_recreate_thread.

gdb/testsuite/ChangeLog:

        * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files.

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

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

12 years agoRationalise structure layout; add dirent.d_type field.
keithmarshall [Sat, 1 Oct 2011 20:18:09 +0000 (20:18 +0000)]
Rationalise structure layout; add dirent.d_type field.

12 years agogdb/testsuite/
jkratoch [Sat, 1 Oct 2011 11:02:10 +0000 (11:02 +0000)]
gdb/testsuite/
* gdb.python/py-value.exp (test_value_in_inferior): New variable
can_read_0, test for it.
(python print gdb.parse_and_eval('*(int*)0')): Rename to ...
(parse_and_eval with memory error): ... here, make it untested if
can_read_0.

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

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

12 years ago * binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
ccoutant [Fri, 30 Sep 2011 21:06:00 +0000 (21:06 +0000)]
* binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
constant.

12 years agogdb.python/python.exp: fix up race
mpolacek [Fri, 30 Sep 2011 15:07:32 +0000 (15:07 +0000)]
gdb.python/python.exp: fix up race

12 years ago2011-09-30 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 30 Sep 2011 10:39:44 +0000 (10:39 +0000)]
2011-09-30  Tristan Gingold  <gingold@adacore.com>

* dwarf2.c (struct dwarf2_debug): Add field debug_sections.
(read_section): Add sec argument. Adjust the code to get section
names from it.
(read_indirect_string): Adjust call to read_section.
(read_abbrevs): Ditto.
(decode_line_info): Ditto.
(read_debug_ranges): Ditto.
(DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove.
(find_debug_info): Add debug_sections parameter.  Use it instead
the above macros.
(place_sections): Get section names from stash.
(find_line): Add debug_sections argument.  Initialize
debug_sections field of stash from it.
Adjust calls to find_debug_info.
(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
Adjust call to find_line.
(_bfd_dwarf2_find_line): Adjust call to find_line.
* libcoff-in.h (struct dwarf_debug_section): New declaration.
(coff_find_nearest_line_with_names): Likewise.
* libcoff.h: Regenerate.
* libbfd-in.h (struct dwarf_debug_section): Move declaration.
(dwarf_debug_sections): Likewise.
(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
* libbfd.h: Regenerate.
* elf.c (_bfd_elf_find_nearest_line): Adjust call to
_bfd_dwarf2_find_nearest_line.
* elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
* elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
* elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
* coffgen.c (coff_find_nearest_line_with_names): New function.
(coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
* coff-rs6000.c (xcoff_debug_sections): New constant.
(xcoff_find_nearest_line): New function.
(rs6000coff_vec): Use xcoff_find_nearest_line.
(pmac_xcoff_vec): Ditto.

12 years ago PR ld/13235
amodra [Fri, 30 Sep 2011 05:10:58 +0000 (05:10 +0000)]
PR ld/13235
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
(ppc64_elf_edit_toc): Check HA relocs.
(ha_reloc_match): Delete function.
(ppc64_elf_relocate_section): Remove delayed HA nop optimization.
Instead do it and low part optimization based on
ha_relocs_not_using_r2.
ld/testsuite/
* ld-powerpc/tocopt.d: Update.
* ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test.
* ld-powerpc/powerpc.exp: Run new test.

12 years agogdbserver: add support for FDPIC loadmaps
vapier [Fri, 30 Sep 2011 00:01:56 +0000 (00:01 +0000)]
gdbserver: add support for FDPIC loadmaps

The DSBT support is very close to the FDPIC code, so extend the existing
loadmap support to work with FDPIC loadmaps too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Fri, 30 Sep 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 30 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

12 years ago2011-09-29 Sriraman Tallam <tmsriram@google.com>
tmsriram [Thu, 29 Sep 2011 23:45:56 +0000 (23:45 +0000)]
2011-09-29 Sriraman Tallam  <tmsriram@google.com>

* layout.h (section_order_map_): New member.
(get_section_order_map): New member function.
* output.cc (Output_section::add_input_section): Check for patterns
only when --section-ordering-file is specified.
* gold.cc (queue_middle_tasks): Delay updating order of sections till
output_sections have been formed.
* layout.cc (Layout_Layout): Initialize section_order_map_.
* plugin.cc (update_section_order): Store order in order_map. Do not
update the order.
* testsuite/Makefile.am: Add test case for plugin_final_layout.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_section_order.c: New file.
* testsuite/plugin_final_layout.cc: New file.
* testsuite/plugin_final_layout.sh: New file.

12 years ago * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
ccoutant [Thu, 29 Sep 2011 17:04:35 +0000 (17:04 +0000)]
* gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
Check for NULL.
* gold/symtab.cc (Symbol_table::add_from_relobj): Ignore version
symbols during incremental update.
(Symbol_table::add_from_dynobj): Likewise.

12 years ago * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
jsm28 [Thu, 29 Sep 2011 15:17:49 +0000 (15:17 +0000)]
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
for 64-bit multilibs from i?86-* targets.

12 years agolib/gdb.exp: Fix a typo
mpolacek [Thu, 29 Sep 2011 14:36:45 +0000 (14:36 +0000)]
lib/gdb.exp: Fix a typo

12 years agogdb.base/foll-fork.exp: fix up race
mpolacek [Thu, 29 Sep 2011 14:12:59 +0000 (14:12 +0000)]
gdb.base/foll-fork.exp: fix up race

12 years ago * libc/machine/arm/memcpy.S: New file. Contains a hand coded
nickc [Thu, 29 Sep 2011 13:28:49 +0000 (13:28 +0000)]
* libc/machine/arm/memcpy.S: New file.  Contains a hand coded
memcpy function optimized for the cortex-a15.
* libc/machine/arm/memcpy-stub.c: New file.
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
memcpy.S.
* libc/machine/arm/Makefile.in: Regenerate.

12 years ago * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.
nickc [Thu, 29 Sep 2011 11:23:29 +0000 (11:23 +0000)]
* arm/crt0.s: Support 0 heap base response from HeapInfo syscall.

12 years ago * arm/arm.h (HAVE_CALL_INDIRECT): Define.
nickc [Thu, 29 Sep 2011 11:06:49 +0000 (11:06 +0000)]
* arm/arm.h (HAVE_CALL_INDIRECT): Define.
        * arm/crt0.S (indirect_call): New macro.  Encodes indirect
function calls.  Does not use blx for pre-armv5 targets.