aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-03-14bfd/Richard Sandiford10-80/+127
* 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.
2011-03-14bfd/Richard Sandiford2-47/+75
* 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.
2011-03-14 Fix ARI warning about functions without parameters that do notPierre Muller11-16/+37
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.
2011-03-14 * script-sections.cc (Sort_output_sections::script_compare):Ian Lance Taylor2-19/+39
Rename from is_before, change return type. (Sort_output_sections::operator()): Adjust accordingly.
2011-03-14*** empty log message ***gdbadmin1-1/+1
2011-03-13daily updateAlan Modra1-1/+1
2011-03-13 * gdb.python/py-section-script.exp: Skip test if no Python support.Ulrich Weigand2-4/+11
2011-03-13 * gdb.base/solib-weak.exp: Allow "." prefix for ppc64.Ulrich Weigand2-1/+5
2011-03-13*** empty log message ***gdbadmin1-1/+1
2011-03-12daily updateAlan Modra1-1/+1
2011-03-122011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder5-8/+16
* 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.
2011-03-12Support TLS x32 GD->IE, GD->LE and LD->LE transitions.H.J. Lu14-20/+210
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.
2011-03-12*** empty log message ***gdbadmin1-1/+1
2011-03-11daily updateAlan Modra1-1/+1
2011-03-112011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* event-loop-c (delete_async_signal_handler): Assert prev_ptr. (delete_async_event_handler): Ditto.
2011-03-112011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+6
* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2011-03-11 PR gold/12572Ian Lance Taylor3-8/+18
* testsuite/odr_violation2.cc: Add comment to make all error line numbers double digits. * testsuite/debug_msg.sh: Adjust expected errors.
2011-03-112011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+4
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2011-03-112011-03-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+6
* top.c (set_verbose): Assert showcmd was found.
2011-03-112011-03-11 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-1/+6
* xtensa-tdep.c (warning_once): Correct style issues.
2011-03-112011-03-11 Yao Qi <yao@codesourcery.com>Yao Qi2-3/+4
* arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2011-03-11 * remap.c (remap_debug_filename): Always allocate a buffer for theNick Clifton3-3/+12
returned pointer. * stabs.c (stabs_generate_asm_file): Free the pointer returned by remap_debug_filename.
2011-03-11* common/aclocal.m4: Remove.Andreas Schwab2-81/+17
2011-03-112011-03-10 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-14/+12
* 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.
2011-03-11Correct bad formatting in the comments. Two spaces must follow '.'.Maxim Grigoriev1-5/+6
2011-03-112011-03-10 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-101/+222
* 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.
2011-03-11*** empty log message ***gdbadmin1-1/+1
2011-03-10daily updateAlan Modra1-1/+1
2011-03-10Revert previous change.Michael Snyder2-11/+8
2011-03-102011-03-01 Michael Snyder <msnyder@vmware.com>Michael Snyder2-8/+11
* p-typeprint.c (pascal_type_print_method_args): Don't use pointer until after null-check.
2011-03-102011-02-28 Michael Snyder <msnyder@vmware.com>Michael Snyder2-7/+12
* tracepoint.c (cmd_qtv): Discard unused value 'packet'. (cmd_qtframe): Ditto. (cmd_qtbuffer): Ditto. (cmd_bigqtbuffer): Ditto.
2011-03-102011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+4
* gdbserver/tracepoint.c (tracepoint_finish_step): Fix loop variable.
2011-03-102011-03-10 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+7
* gdbserver/server.c (handle_v_run): Free alloced buffer on early return.
2011-03-10 * tracepoint.c (trace_actions_command): Update.Tom Tromey11-108/+224
* 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.
2011-03-102011-03-10 Michael Snyder <msnyder@vmware.com>Michael Snyder2-5/+8
Revert the following change: * dwarf2dbg.c (out_file_list): Free malloced 'dir'. (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
2011-03-102011-03-10 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon6-81/+339
* 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.
2011-03-10gdb/Jan Kratochvil2-1/+5
* fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2011-03-10[PATCH] Respect symbol wrappers when computing symbol resolutions.Dave Korn2-3/+10
ld/ChangeLog: 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
2011-03-10[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in ↵Dave Korn2-0/+9
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.
2011-03-10[PATCH] Revise linker plugin API to better preserve link order.Dave Korn4-9/+140
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.
2011-03-10 * common.h (EM_V850): V850s now supplied by Renesas.Nick Clifton4-2/+10
* readelf.c (get_machine_name): Update EM_V850 entry.
2011-03-10[PATCH] Do not use dummy bfd suffix for recognition, make it human-readable ↵Dave Korn2-14/+18
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.
2011-03-10[PATCH] Fix PE-COFF bug in orphan section alignment handling.Dave Korn3-2/+23
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.
2011-03-10 * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,Alan Modra3-11/+10
TARGET_SYMBOL_FIELDS): Don't define. * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
2011-03-10 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offsetAlan Modra2-3/+8
for LO_DS error message and correct multiple.
2011-03-10 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.Alan Modra2-12/+85
(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.
2011-03-10remove subdir_do recursive make command in gdbserver/Makefile.inJoel Brobecker2-1/+5
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.
2011-03-10 * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines,Ian Lance Taylor14-169/+371
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.
2011-03-10 * fileread.cc (File_read::clear_views): Don't delete the wholeIan Lance Taylor2-1/+8
file view.
2011-03-102011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+11
* 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.