aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2011-03-102011-03-09 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-11/+28
* 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.
2011-03-10*** empty log message ***gdbadmin1-1/+1
2011-03-09daily updateAlan Modra1-1/+1
2011-03-092011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+8
* mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2011-03-09 * gdb.ada/catch_ex.exp: Use explicit gdb_test rather thanTom Tromey2-1/+8
gdb_continue_to_end.
2011-03-09* gdb.base/memattr.exp: Adjust regexps to accept spaces as well asMark Kettenis2-40/+45
tabs.
2011-03-092011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+1
* gdbserver/tracepoint.c: Fix small comment typo.
2011-03-09 gdb/Pedro Alves2-1/+6
* nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2011-03-09 * thread.c (restore_selected_frame): Handle frame_level == -1.Tom Tromey4-1/+34
(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.
2011-03-09 * lib/gdb.exp (inferior_exited_re): Match. leading `['. Wrap inTom Tromey9-17/+43
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.
2011-03-09 * cli/cli-cmds.c (shell_escape): Use lbasename.Pedro Alves10-53/+40
* 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'.
2011-03-09gdb/Jan Kratochvil2-18/+14
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.
2011-03-09gdb/Yao Qi4-4304/+6
2011-03-09 Yao Qi <yao@codesourcery.com> * common/Makefile.in: Remove. * common/configure: Remove. * common/configure.ac: Remove.
2011-03-09gdb/Yao Qi8-167/+53
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.
2011-03-092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-6/+85
* xtensa-tdep.c (call0_ret): New function. (xtensa_skip_prologue): Speed up analysis.
2011-03-092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-3/+11
* xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers while executing MI command -data-list-changed-registers.
2011-03-092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-20/+398
* 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.
2011-03-09 PR gold/12525Ian Lance Taylor3-9/+24
* 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.
2011-03-092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-24/+52
* 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.
2011-03-09*** empty log message ***gdbadmin1-1/+1
2011-03-082011-03-08 Michael Snyder <msnyder@vmware.com>Michael Snyder2-18/+53
* 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.
2011-03-082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-1/+5
* xtensa-tdep.h (XTENSA_MAX_COPROCESSOR) Update.
2011-03-08daily updateAlan Modra1-1/+1
2011-03-082011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+7
* target.c (read_whatever_is_readable): Fix memory leak.
2011-03-082011-03-02 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+7
* i386-tdep.c (i386_process_record): Document fall through.
2011-03-08gdb/Jan Kratochvil2-6/+24
Fix DWARF-3+ DW_AT_accessibility default assumption. * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for cu->header.version >= 3.
2011-03-08gdb/Pedro Alves4-1/+25
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.
2011-03-08minor reformatting for target.c:read_whatever_is_readableJoel Brobecker2-22/+28
gdb/ChangeLog: * target.c (read_whatever_is_readable): Reformat comment, with a minor typo fix. Minor reformatting of the code.
2011-03-082011-03-08 Yao Qi <yao@codesourcery.com>Yao Qi4-93/+95
* 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.
2011-03-08*** empty log message ***gdbadmin1-1/+1
2011-03-07daily updateAlan Modra1-1/+1
2011-03-07 PR gold/12525Ian Lance Taylor2-0/+9
* options.h (class General_options): Add -dy and -dn.
2011-03-07 * Makefile.in (TAGS): Rewrite.Tom Tromey2-2/+6
2011-03-07gdb/testsuite/Jan Kratochvil2-7/+20
* gdb.trace/report.exp (12.1: trace report #1): New match for the initial commands echo. New match for `Found trace'. Anchor all the other matches. Anchor and match for `No trace frame found' the final match.