aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-07-18gdb/Jean-Charles Delay3-2/+96
* varobj.h (varobj_languages): Add vlang_ada definition to the list of supported languages. * varobj.c: Add top definitions and basic implementation of the following callbacks: ada_number_of_children, ada_name_of_variable, ada_name_of_child, ada_path_expr_of_child, ada_value_of_root, ada_value_of_child, ada_type_of_child, ada_value_of_variable. (languages): Register Ada-specific callbacks. (variable_language): Add the Ada case in the language setter switch.
2011-07-18 gdb/testsuite/Yao Qi9-0/+54
* gdb.base/async-shell.exp: Skip test if displaced stepping is not supported. * gdb.mi/mi-nonstop-exit.exp: Likewise. * gdb.mi/mi-nonstop.exp: Likewise. * gdb.mi/mi-ns-stale-regcache.exp: Likewise. * gdb.mi/mi-nsintrall.exp: Likewise. * gdb.mi/mi-nsmoribund.exp: Likewise. * gdb.mi/mi-nsthrexec.exp: Likewise. * gdb.python/py-evthreads.exp: Likewise.
2011-07-18*** empty log message ***gdbadmin1-1/+1
2011-07-18daily updateAlan Modra1-1/+1
2011-07-17gdb/Jan Kratochvil2-1/+11
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2011-07-17daily updateAlan Modra1-1/+1
2011-07-17*** empty log message ***gdbadmin1-1/+1
2011-07-16Implement ld --print-output-format.Roland McGrath6-2/+32
2011-07-16daily updateAlan Modra1-1/+1
2011-07-16*** empty log message ***gdbadmin1-1/+1
2011-07-15 * options.h (class General_options): Add --print-output-format.Ian Lance Taylor8-6/+138
Move -EL next to -EB, for better --help output. * target-select.cc: Include <cstdio>, "options.h", and "parameters.h". (Target_selector::do_target_bfd_name): New function. (print_output_format): New function. * target-select.h (class Target_selector): Update declarations. (Target_selector::target_bfd_name): New function. (print_output_format): Declare. * main.cc: Include "target-select.h". (main): Handle --print-output-format. * gold.cc: Include "target-select.h". (queue_initial_tasks): Handle --print-output-format when there are no input files. * parameters.cc (parameters_force_valid_target): Give a better error message if -EB/-EL does not match target. * freebsd.h (Target_selector_freebsd::do_target_bfd_name): New function.
2011-07-15gdb/Jan Kratochvil5-78/+127
Code cleanup. * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New. (execute_stack_op): Use dwarf2_frame_ctx_funcs * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs. (execute_stack_op): Access read_reg, get_frame_base, read_mem, get_frame_cfa, get_tls_address and dwarf_call via funcs. * dwarf2expr.h (struct dwarf_expr_context): New forward declaration. (struct dwarf_expr_context_funcs): New, move here methods from ... (struct dwarf_expr_context): ... here. New fields funcs. * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs. (dwarf_expr_ctx_funcs): New. (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs. (needs_frame_dwarf_call): Access get_frame_pc via funcs. (needs_frame_ctx_funcs): New. (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2011-07-15gdb/testsuite/Jan Kratochvil2-22/+18
Code cleanup. * gdb.cp/namespace.exp (xfail_class_types): New variable. Initialize it. Substitute it instead of test_compiler_info everywhere.
2011-07-15 * i386.cc (class Output_data_plt_i386): Add layout_ field.Ian Lance Taylor4-13/+55
(Output_data_plt_i386::Output_data_plt_i386): Initialize layout_. (Output_data_plt_i386::do_write): Write address of .dynamic section to first entry in .got.plt section. * x86_64.cc (class Output_data_plt_x86_64): Add layout_ field. (Output_data_plt_x86_64::Output_data_plt_x86_64) [both versions]: Initialize layout_. (Output_data_plt_x86_64::do_write): Write address of .dynamic section to first entry in .got.plt section. * layout.h (Layout::dynamic_section): New function.
2011-07-152011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>Fawzi Mohamed2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-07-152011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>Fawzi Mohamed2-16/+94
* dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure that CIE pointer of an FDE really points to a CIE .
2011-07-15 * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test onUlrich Weigand2-6/+6
remote targets as well.
2011-07-15 * lib/gdb.exp (gdb_compile_shlib_pthreads): New helper.Ulrich Weigand3-41/+45
* gdb.threads/tls-shared.exp: Use it. Call gdb_load_shlibs.
2011-07-15 * lib/gdb.exp (gdb_compile): Specify rpath if the *target* isUlrich Weigand2-2/+18
a remote machine, not the host. (gdb_compile_shlib): Set soname if target is remote.
2011-07-15include/Alan Modra5-99/+110
* bfdlink.h (struct bfd_link_info): Use ENUM_BITFIELD for strip, discard, common_skip_ar_symbols, unresolved_syms_in_objects, and unresolved_syms_in_shared_libs fields. Move emit_note_gnu_build_id out of bitfields. Reorder bitfields. bfd/ * configure.in: Bump version. * configure: Regenerate.
2011-07-152011-07-15 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+5
* remote.c (remote_get_trace_status): Add comments.
2011-07-15 * Makefile.am (e*.c): Sort.Alan Modra3-28/+36
* Makefile.in: Regenerate.
2011-07-15*** empty log message ***gdbadmin1-1/+1
2011-07-14Cleanup: kill trailing whitespacePaul Pluzhnikov1-3/+3
2011-07-142011-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+5
* gdb.cp/minsym-fallback.exp: Link in C++ mode.
2011-07-14gdb/Jan Kratochvil8-16/+37
Code cleanup - constify struct lval_funcs. * dwarf2loc.c (pieced_value_funcs): Make it const. * infrun.c (siginfo_value_funcs): Likewise. * opencl-lang.c (opencl_value_funcs): Likewise. * valops.c (value_assign, value_ind): Make the funcs variable const. * value.c (struct value): Make location.computed.funcs target const. Rearrange the comments. (allocate_computed_value): Make the funcs parameter target const. (value_computed_funcs): Return the funcs target const. (value_free, value_copy, set_value_component_location): Make the funcs variable const. * value.h (allocate_computed_value): Make the funcs parameter target const. (value_computed_funcs): Return the funcs target const. * windows-tdep.c (tlb_value_funcs): Make it const.
2011-07-14Also check ignored "-z relro".H.J. Lu2-1/+7
2011-07-14 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/binutils.exp (binutils_test): Also check ignored "-z relro".
2011-07-14Revert the last change.H.J. Lu2-20/+6
2011-07-14Skip relro tests on ia64.H.J. Lu2-6/+20
2011-07-14 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/binutils.exp: Skip relro tests on ia64.
2011-07-14 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,Alan Modra2-15/+6
gld${EMULATION_NAME}_list_options): Don't condition -z relro and -z norelro on COMMONPAGESIZE being defined.
2011-07-14 * ld-scripts/section-flags.exp: Pass --local-store 0:0 forAlan Modra2-26/+20
spu. Rewrite using foreach.
2011-07-14 * linker.c (_bfd_generic_section_already_linked): Set l_flags.Alan Modra3-0/+7
* elf-bfd.h (struct already_linked): Forward declare.
2011-07-142011-07-14 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* remote.c (remote_get_trace_status): Initialize p.
2011-07-14whitespace regenAlan Modra1-1/+1
2011-07-14 * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.Alan Modra2-5/+10
(_bfd_elf_adjust_dynamic_symbol): Remove FIXME.
2011-07-14bfd/Alan Modra14-37/+91
* elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain. (build_plt_stub): Add plt_static_chain param, don't load r11 if false. (build_tls_get_addr_stub): Likewise. (ppc_build_one_stub): Update calls to above. (ppc_size_one_stub): Adjust stub size. (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab. * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype. ld/ * emultempl/ppc64elf.em (plt_static_chain): New var. (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs. (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle --plt-static-chain and --no-plt-static-chain. ld/testsuite/ * ld-powerpc/tlsexe.d, * ld-powerpc/tlsexe.g. *ld-powerpc/tlsexe.r, * ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g, * ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.d, * ld-powerpc/tlstocso.d: Update for plt stub change.
2011-07-14 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,Alan Modra9-90/+159
gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options): Provide --build-id, -z defs, -z muldefs, -z max-page-size, -z common-page-size, -z execstack, -z noexecstack for all targets. Add help for --exclude-libs. (OPTION_LD_GENERATED_UNWIND_INFO, OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this.. (gld${EMULATION_NAME}_handle_option): ..and code handling --ld-generated-unwind-info and --no-ld-generated-unwind-info.. * emulparams/plt_unwind.sh: ..to here. New file. Add help. * emulparams/elf32_x86_64.sh: Include plt_unwind.sh. * emulparams/elf_i386.sh: Likewise. * emulparams/elf_i386_chaos.sh: Likewise. * emulparams/elf_i386_ldso.sh: Likewise. * emulparams/elf_l1om.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise.
2011-07-142011-07-13 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam13-46/+592
* plugin-api.h (ld_plugin_section): New struct. (ld_plugin_get_section_count): New typedef. (ld_plugin_get_section_type): New typedef. (ld_plugin_get_section_name): New typedef. (ld_plugin_get_section_contents): New typedef. (ld_plugin_update_section_order): New typedef. (ld_plugin_allow_section_ordering): New typedef. (LDPT_GET_SECTION_COUNT): New enum value. (LDPT_GET_SECTION_TYPE): New enum value. (LDPT_GET_SECTION_NAME): New enum value. (LDPT_GET_SECTION_CONTENTS): New enum value. (LDPT_UPDATE_SECTION_ORDER): New enum value. (LDPT_ALLOW_SECTION_ORDERING): New enum value. (tv_get_section_count): New struct members. (tv_get_section_type): New struct members. (tv_get_section_name): New struct members. (tv_get_section_contents): New struct members. (tv_update_section_order): New struct members. (tv_allow_section_ordering): New struct members. * archive.cc (Archive::get_elf_object_for_member): Add extra parameter to claim_file call. * layout.cc (Layout::Layout): Initialize section_ordering_specified_, input_section_position_, and input_section_glob_. (read_layout_from_file): Call function section_ordering_specified. * layout.h (is_section_ordering_specified): New function. (section_ordering_specified): New function. (section_ordering_specified_): New boolean member. * main.cc(main): Call load_plugins after layout object is defined. * output.cc (Output_section::add_input_section): Use function section_ordering_specified to check if section ordering is needed. * output.cc (Output_section::add_relaxed_input_section): Use function section_ordering_specified to check if section ordering is needed. (Output_section::update_section_layout): New function. (Output_section::sort_attached_input_sections): Check if input section must be reordered. * output.h (Output_section::update_section_layout): New function. * plugin.cc (get_section_count): New function. (get_section_type): New function. (get_section_name): New function. (get_section_contents): New function. (update_section_order): New function. (allow_section_ordering): New function. (Plugin::load): Add the new interfaces to the transfer vector. (Plugin_manager::load_plugins): New parameter. (Plugin_manager::all_symbols_read): New parameter. (Plugin_manager::claim_file): New parameter. Save the elf object for unclaimed objects. (Plugin_manager::get_elf_object): New function. (Plugin_manager::get_view): Change to directly use the bool to check if get_view is called from claim_file_hook. * plugin.h (input_objects): New function (Plugin__manager::load_plugins): New parameter. (Plugin_manager::claim_file): New parameter. (Plugin_manager::get_elf_object): New function. (Plugin_manager::in_claim_file_handler): New function. (Plugin_manager::in_claim_file_handler_): New member. (layout): New function. * readsyms.cc (Read_symbols::do_read_symbols): Call the claim_file handler with an extra parameter. Make the elf object before calling claim_file handler. * testsuite/plugin_test.c (get_section_count): New function pointer. (get_section_type): New function pointer. (get_section_name): New function pointer. (get_section_contents): New function pointer. (update_section_order): New function pointer. (allow_section_ordering): New function pointer. (onload): Check if the new interfaces exist.
2011-07-14*** empty log message ***gdbadmin1-1/+1
2011-07-14daily updateAlan Modra1-1/+1
2011-07-13 * i386.cc (Target_i386::got_section): If -z now, make .got.plt aIan Lance Taylor5-20/+86
relro section. * x86_64.cc (Target_x86_64::got_section): Likewise. * testsuite/Makefile.am (check_PROGRAMS): Add relro_now_test. (relro_now_test_SOURCES): New variable. (relro_now_test_DEPENDENCIES): New variable. (relro_now_test_LDFLAGS): New variable. (relro_now_test_LDADD): New variable. (relro_now_test.so): New target. * testsuite/Makefile.in: Rebuild.
2011-07-13gdb/Jan Kratochvil2-1/+17
Work around kgdb. * remote.c (remote_get_trace_status): New variable ex. Put remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2011-07-13* gdb.python/py-objfile-script-gdb.py: Renamed tomatt rice3-1/+10
py-objfile-script-gdb.py.in. * gdb.python/py-objfile-script-gdb.py.in: Renamed from py-objfile-script-gdb.py. * gdb.python/py-objfile-script.exp: Update reference to py-objfile-script-gdb.py.
2011-07-13 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: UseTom Tromey2-1/+8
value_from_contents for final conversion.
2011-07-13gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.dwarf2/dw2-op-call.S (array1): Use the real label; do not reference undefined label.
2011-07-13gdb/Jan Kratochvil2-9/+15
Code cleanup. * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full): Indent prototypes so they do not get into tags.
2011-07-13*** empty log message ***gdbadmin1-1/+1
2011-07-13daily updateAlan Modra1-1/+1
2011-07-12 PR gold/12980Ian Lance Taylor5-0/+70
* i386.cc (Target_i386::Scan::global): For a GOT reloc, use a GLOB_DAT relocation rather than a RELATIVE relocation for a protected symbol when creating a shared library. * x86_64.cc (Target_x86_64::Scan::global): Likewise. * testsuite/protected_1.cc (f2, get_f2_addr): New functions. * testsuite/protected_main_1.cc (main): Test that protected function has same address.
2011-07-12gdb/Jan Kratochvil5-18/+28
Code cleanup making also optimized out values lazy. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_optimized_out_value. Twice. (loclist_read_variable) Use allocate_optimized_out_value. Once. * findvar.c (read_var_value): Likewise. * value.c (allocate_optimized_out_value): New function. * value.h (allocate_optimized_out_value): New declaration.