summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bfd/Tristan Gingold2011-08-0810-464/+865
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-08-08 Tristan Gingold <gingold@adacore.com> * mach-o.h: Move size macros to external.h Move reloc macros to reloc.h and x86-64.h. * mach-o-i386.c: Includes mach-o/reloc.h * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h * mach-o.c: Add includes. (bfd_mach_o_write_header): Use structure from external.h to convert. (bfd_mach_o_write_thread): Ditto. (bfd_mach_o_write_relocs): Ditto. (bfd_mach_o_write_section_32): Ditto. (bfd_mach_o_write_section_64): Ditto. (bfd_mach_o_write_segment_32): Ditto. (bfd_mach_o_write_segment_64): Ditto. (bfd_mach_o_write_symtab): Ditto. (bfd_mach_o_write_contents): Ditto. (bfd_mach_o_read_header): Ditto. (bfd_mach_o_read_section_32): Ditto. (bfd_mach_o_read_section_64): Ditto. (bfd_mach_o_read_symtab_symbol): Ditto. (bfd_mach_o_read_dylinker): Ditto. (bfd_mach_o_read_dylib): Ditto. (bfd_mach_o_read_dysymtab): Ditto. (bfd_mach_o_read_symtab): Ditto. (bfd_mach_o_read_linkedit): Ditto. (bfd_mach_o_read_str): Ditto. (bfd_mach_o_read_dyld_info): Ditto. (bfd_mach_o_read_segment): Ditto. (bfd_mach_o_read_command): Ditto. (bfd_mach_o_archive_p): Ditto. (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter. (bfd_mach_o_canonicalize_relocs): Adjust to call the above function. (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable. (bfd_mach_o_read_uuid): Remove useless cast. Use a macro instead of an hard-coded value. include/mach-o 2011-08-08 Tristan Gingold <gingold@adacore.com> * loader.h: Reorder declarations. * x86-64.h: New file. * external.h: New file. * reloc.h: New file.
* 2011-08-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-082-14/+36
| | | | | | | * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos. (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL, BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and BFD_RELOC_MACH_O_X86_64_GOT_LOAD. Share common code.
* 2011-08-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-083-18/+70
| | | | | | | | | * mach-o.c (bfd_mach_o_normalize_section_name): New function. (bfd_mach_o_convert_section_name_to_bfd): Use it. (bfd_mach_o_get_section_type_from_name): New function. (bfd_mach_o_get_section_attribute_from_name): Ditto. * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end. Add comments. Add prototypes for the above new functions.
* PR binutils/12964Alan Modra2011-08-083-2/+8
| | | | | * Makefile.am (embedspu): Use awk rather than sed. * Makefile.in: Regenerate.
* daily updateAlan Modra2011-08-081-1/+1
|
* *** empty log message ***gdbadmin2011-08-081-1/+1
|
* * dw2gencfi.c (all_fde_data): Export.Richard Henderson2011-08-074-1/+19
| | | | | | * dw2gencfi.h (all_fde_data): Declare. * config/tc-alpha.c (alpha_elf_md_end): Don't convert legacy unwind info to cfi unwind info if the user already has supplied some.
* *** empty log message ***gdbadmin2011-08-071-1/+1
|
* daily updateAlan Modra2011-08-071-1/+1
|
* merge from gccDJ Delorie2011-08-064-18/+45
|
* gdb/Jan Kratochvil2011-08-062-2/+10
| | | | | * cp-name-parser.y (xfree): Wrap the name free by CONCAT2. (main): Uncomment "Demangling error\n".
* 2011-08-06 Kai Tietz <ktietz@redhat.com>Kai Tietz2011-08-063-0/+15
| | | | | * scripttempl/pep.sc: Add .debug_macro section. * scripttempl/pe.sc: Likewise.
* gas/Richard Sandiford2011-08-062-28/+34
| | | | | | | | * config/tc-mips.c (emit_nop): Delete. (get_delay_slot_nop): New function. (nops_for_insn_or_target): Use it. (append_insn): Likewise. When avoiding hazards, call add_fixed_insn and insert_into_history directly.
* gas/Richard Sandiford2011-08-062-45/+71
| | | | | | | | * config/tc-mips.c (delayed_branch_p, compact_branch_p) (uncond_branch_p, branch_likely_p): New functions. (insns_between, nops_for_insn_or_target, append_insn) (macro_start): Use them. (get_append_method): Likewise. Remove redundant test.
* daily updateAlan Modra2011-08-061-1/+1
|
* *** empty log message ***gdbadmin2011-08-061-1/+1
|
* include/opcode/David S. Miller2011-08-0511-6/+324
| | | | | | | | | | | | | | | | | | | * sparc.h: Document new format codes '4', '5', and '('. (OPF_LOW4, RS3): New macros. opcodes/ * sparc-dis.c (v9a_ast_reg_names): Add "cps". (X_RS3): New macro. (print_insn_sparc): Handle '4', '5', and '(' format codes. Accept %asr numbers below 28. * sparc-opc.c (sparc_opcodes): Add entries for HPC and VIS3 instructions. gas/ * config/tc-sparc.c (v9a_asr_table): Add "cps". (sparc_ip): Handle '4', '5' and '(' format codes. gas/testsuite * gas/sparc/hpcvis3.d: New test. * gas/sparc/hpcvis3.s: New test source. * gas/sparc/sparc.exp: Run new test.
* 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2011-08-052-7/+14
| | | | | | | * solib-target.c (segment_attributes): Make them static. (section_attributes, library_children, library_attributes): Likewise. (library_list_children, library_list_attributes): Likesise. (library_list_elements): Likewise.
* gdb/Pedro Alves2011-08-055-1/+59
| | | | | | | | | | | | | * exceptions.c (throw_exception): Don't disable the current display. * printcmd.c (disable_current_display_cleanup): New function. (do_one_display): Install a cleanup to disable the current display if doing the display throws. gdb/testsuite/ * gdb.trace/unavailable.exp (test_maybe_regvar_display): New procedure. (gdb_collect_args_test, gdb_collect_locals_test): Use it.
* Clean up trailing white spacePaul Pluzhnikov2011-08-051-6/+6
|
* * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move theEli Zaretskii2011-08-057-6/+17
| | | | | | | | | | initialization of the tp_new member to the corresponding gdbpy_initialize_* function. * python/py-cmd.c (gdbpy_initialize_commands): Likewise. * python/py-frame.c (gdbpy_initialize_frames): Likewise. * python/py-function.c (gdbpy_initialize_functions): Likewise. * python/py-inferior.c (gdbpy_initialize_inferior): Likewise. * python/py-param.c (gdbpy_initialize_parameters): Likewise.
* win32-low.c: Include <stdint.h>.Eli Zaretskii2011-08-052-0/+5
|
* Update gas/i386/x86-64-branch.d to support win64.H.J. Lu2011-08-052-5/+10
| | | | | | | 2011-08-05 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/x86-64-branch.d: Pass -dw to objdump and support win64.
* * netbsd-core.c (netbsd_core_vec): Init match_priority field.Mark Kettenis2011-08-052-0/+5
|
* gdb/testsuite/Yao Qi2011-08-054-3/+9
| | | | | | * gdb.base/callfuncs.exp: Set language after main. * gdb.cp/cplusfuncs.exp: Likewise. * gdb.cp/inherit.exp: Likewise.
* bfd/Alan Modra2011-08-057-18/+41
| | | | | | | | | | * elf64-ppc.c (maybe_strip_output): New function. (ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame. ld/testsuite/ * ld-powerpc/tlsexe.r: Update for stripped .branch_lt. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.r: Likewise.
* PR ld/12762Alan Modra2011-08-0510-42/+67
| | | | | | | | | | | | | | | | | | bfd/ * elflink.c (_bfd_elf_section_already_linked): Return matched status. Remove COFF comdat section handling. * linker.c (_bfd_generic_section_already_linked): Return matched status. Don't set SEC_GROUP in l_flags for plugin entries. (bfd_section_already_linked): Update prototype. * targets.c (_section_already_linked): Likewise. * elf-bfd.h (_bfd_elf_section_already_linked): Likewise. * libbfd-in.h (_bfd_generic_section_already_linked): Likewise. (_bfd_nolink_section_already_linked): Update. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. ld/ * plugin.c (add_symbols): Exclude comdat_key symbols from symbol table if already seen.
* * elf32-ppc.c: Include dwarf2.h.Alan Modra2011-08-052-7/+125
| | | | | | | | (struct ppc_elf_link_hash_table): Add glink_eh_frame. (ppc_elf_create_glink): Create .eh_frame section. (glink_eh_frame_cie): New array. (ppc_elf_size_dynamic_sections): Size glink_eh_frame. (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
* gdb/Jan Kratochvil2011-08-052-61/+70
| | | | | | | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist) (info_spu_dma_command, info_spu_proxydma_command): Rename uiout references to current_uiout.
* *** empty log message ***gdbadmin2011-08-051-1/+1
|
* daily updateAlan Modra2011-08-051-1/+1
|
* Call bfd_cache_close_all on errorH.J. Lu2011-08-043-3/+13
| | | | | | | | | | 2011-08-04 H.J. Lu <hongjiu.lu@intel.com> PR gas/13056 * output-file.c (output_file_close): Call bfd_cache_close_all on error. * write.c (write_object_file): Revert the last change.
* Replace remove_output with ld_cleanup in comments.H.J. Lu2011-08-042-2/+7
| | | | | | | 2011-08-04 H.J. Lu <hongjiu.lu@intel.com> * ldmain.c (main): Replace remove_output with ld_cleanup in comments.
* Add a testcase for group error.H.J. Lu2011-08-045-0/+24
| | | | | | | | | | 2011-08-04 H.J. Lu <hongjiu.lu@intel.com> * gas/elf/bad-group.d: New. * gas/elf/bad-group.err: Likewise. * gas/elf/bad-group.s: Likewise. * gas/elf/elf.exp: Run bad-group.
* 2011-08-04 Pedro Alves <pedro@codesourcery.com>Pedro Alves2011-08-045-101/+31
| | | | | | | | | * event-loop.c (gdb_do_one_event): Remove `data' parameter. (start_event_loop): Use TRY_CATCH instead of catch_errors. * event-loop.h (gdb_do_one_event): Remove `data' parameter. * top.c (gdb_readline_wrapper): Adjust. * tui/tui-interp.c (tui_command_loop): (_initialize_tui_interp): Don't install it.
* 2011-08-04 Pedro Alves <pedro@codesourcery.com>Pedro Alves2011-08-0444-75/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ui-out.h (uiout): Rename to ... (current_uiout): ... this. * ui-out.c (uiout): Rename to ... (current_uiout): ... this. * ada-lang.c (print_it_exception, print_one_exception) (print_mention_exception): Adjust. * breakpoint.c (watchpoint_check): Adjust. (print_breakpoint_location, print_one_breakpoint, breakpoint_1) (default_collect_info, watchpoints_info, print_one_catch_fork) (print_one_catch_vfork, print_one_catch_syscall) (print_one_catch_exec, mention, print_it_ranged_breakpoint) (print_one_ranged_breakpoint, print_mention_ranged_breakpoint) (print_it_watchpoint, print_mention_watchpoint) (print_it_masked_watchpoint, print_mention_masked_watchpoint) (print_it_exception_catchpoint, print_one_exception_catchpoint) (print_mention_exception_catchpoint, say_where, bkpt_print_it) (bkpt_print_mention, momentary_bkpt_print_it) (tracepoint_print_mention, update_static_tracepoint) (tracepoints_info, save_breakpoints): Adjust. * cli-out.c (field_separator): Adjust. * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust. * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust. * frame.c (get_current_frame): Adjust. * infcmd.c (run_command_1, print_return_value): Adjust. * inferior.c (inferior_command, info_inferiors_command): Adjust. * infrun.c (print_end_stepping_range_reason): Adjust. (print_signal_exited_reason, print_exited_reason): Adjust. (print_signal_received_reason, print_no_history_reason): Adjust. * interps.c (interp_set): Adjust. * osdata.c (info_osdata_command): Adjust. * progspace.c (maintenance_info_program_spaces_command): Adjust. * remote-fileio.c (remote_fileio_request): Adjust. * remote.c (show_remote_cmd): Adjust. * solib.c (info_sharedlibrary_command): Adjust. * source.c (print_source_lines_base): Adjust. * stack.c (print_stack_frame): Adjust. (do_gdb_disassembly, print_frame_info, print_frame): Adjust. * symfile-mem.c (add_vsyscall_page): Adjust. * symfile.c (load_progress, generic_load) (print_transfer_performance): Adjust. * thread.c (info_threads_command, restore_selected_frame) (thread_command): Adjust. * top.c (make_cleanup_restore_ui_file): Adjust. * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1) (print_one_static_tracepoint_marker): Adjust. * cli/cli-cmds.c (print_disassembly): Adjust. * cli/cli-decode.c (print_doc_line): Adjust. * cli/cli-interp.c (safe_execute_command): Adjust. * cli/cli-logging.c (set_logging_redirect, pop_output_files) (handle_redirections): Adjust. * cli/cli-script.c (show_user_1): Adjust. * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust. * mi/mi-cmd-break.c (breakpoint_notify): Adjust. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust. * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path) (mi_cmd_env_dir): Adjust. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) (mi_cmd_stack_info_depth, mi_cmd_stack_list_args) (list_args_or_locals): Adjust. * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create) (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen) (mi_cmd_var_show_format, mi_cmd_var_info_num_children) (mi_cmd_var_list_children, mi_cmd_var_info_type) (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression) (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression) (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust. * mi/mi-interp.c (mi_on_normal_stop): Adjust. * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select) (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior) (list_available_thread_groups, mi_cmd_list_thread_groups) (mi_cmd_data_list_register_names) (mi_cmd_data_list_changed_registers) (mi_cmd_data_list_register_values, get_register) (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) (mi_cmd_data_read_memory_bytes, mi_cmd_list_features) (mi_cmd_list_target_features, mi_cmd_add_inferior) (mi_execute_command, mi_load_progress): Adjust. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust. * python/py-auto-load.c (print_script, info_auto_load_scripts): Adjust. * python/py-breakpoint.c (bppy_get_commands): Adjust. * tui/tui-interp.c (tui_command_loop): Adjust. * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
* 2011-08-04 Pedro Alves <pedro@codesourcery.com>Pedro Alves2011-08-044-16/+63
| | | | | | | | | | | | | | | | * exceptions.c (struct catcher): Remove saved_uiout field. (exceptions_state_mc_init): Remove the `func_uiout' parameter, and no longer save/resvore the global ui_out builder. (catch_exceptions_with_msg): Save/override/restore the global ui_out builder manually instead of relying on TRY_CATCH to do it. (catch_errors): Save/restore the global ui_out builder manually instead of relying on TRY_CATCH to do it. * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout' parameter. (TRY_CATCH): Adjust. * cli/cli-interp.c (safe_execute_command): Save/override/restore the global ui_out builder manually instead of relying on TRY_CATCH to do it.
* * gdb.base/nostdlib.exp: Skip on gdb_stub targets.Ulrich Weigand2011-08-043-0/+18
| | | | * gdb.base/watch-vfork.exp: Skip on remote targets.
* * gdb.threads/thread-find.exp: Support remote targets.Ulrich Weigand2011-08-042-0/+8
|
* * gdb.base/jit.exp: Download solib_binfile to target.Ulrich Weigand2011-08-044-8/+25
| | | | | | | * gdb.base/jit-so.exp: Likewise. Also, use gdb_load_shlibs and call dlopen without full path name. * gdb.cp/infcall-dlopen.exp: Use gdb_load_shlibs and call dlopen without full path name.
* * write.c (write_object_file): Call set_symtab even if we hadAlan Modra2011-08-042-1/+7
| | | | errors.
* 2011-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-042-2/+7
| | | | | * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index. (_bfd_vms_write_etir): Initialize vms_linkage_index to 0.
* 2011-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-042-3/+4
| | | | * config/obj-elf.c (obj_elf_section): Do not free name.
* daily updateAlan Modra2011-08-041-1/+1
|
* *** empty log message ***gdbadmin2011-08-041-1/+1
|
* 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>Philippe Waroquiers2011-08-034-8/+78
| | | | | | | | | | | | | | * breakpoint.c (update_global_location_list): Ensure invariant 'first loc marked not duplicated and inserted, following locs marked duplicated/not inserted' is respected for multiple locations at the same address. (unduplicated_should_be_inserted) New function. (swap_insertion) New function. 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> * gdb.base/break-always.exp: Complete the test with duplicated breakpoints and enabling/disabling them.
* * mips.h: Document the use of FP_D in MIPS16 mode. Adjust theMaciej W. Rozycki2011-08-032-1/+9
| | | | order of flags documented.
* gdb/Jan Kratochvil2011-08-032-1/+5
| | | | * stack.c (print_frame_arguments_choices): Comment typo fix.
* * config/tc-arm.c (do_t_strexbh): New.Nick Clifton2011-08-038-3/+114
| | | | | | | | | | (insns): Update accordingly. * gas/arm/strex-bad-t.d: New testcase. * gas/arm/strex-bad-t.s: Likewise. * gas/arm/strex-bad-t.l: Likewise. * gas/arm/strex-t.s: Likewise. * gas/arm/strex-t.d: Likewise.
* 2011-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-08-032-2/+17
| | | | | * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case. (bfd_mach_o_read_symtab_symbols): Return if no symbols.
OpenPOWER on IntegriCloud