aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-31*** empty log message ***gdbadmin1-1/+1
2011-12-30daily updateAlan Modra1-1/+1
2011-12-30Fixing previous Changelog entry (removing the unnecessary "gdb/testsuite/" lineEdjunior Barbosa Machado1-2/+1
and adding the missing period)
2011-12-302011-12-30 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado3-1/+12
gdb/testsuite/ * gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64 * gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support is not enabled.
2011-12-30sim: cr16: add ifdefs around undefined syscallsMike Frysinger2-0/+17
The cr16 libgloss port does not define these syscall numbers, so trying to use them results in build failures [1]. The cr16 code already uses ifdefs around a bunch of syscalls, so extend that style to cover the ones that are currently missing. Now we can at least compile. [1] http://sourceware.org/ml/gdb-patches/2011-06/msg00118.html Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-12-30*** empty log message ***gdbadmin1-1/+1
2011-12-29daily updateAlan Modra1-1/+1
2011-12-29adjust mach-o default GAS sections.Iain Sandoe7-8/+69
gas: * as.c (perform_an_assembly_pass): Do not create text, data and bss sections for MACH-O. Do not switch to the text section. * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Forward decl. (mach_o_begin): Startup with only text section unless suppressed. * config/obj-macho.h (obj_begin): define to mach_o_begin (). gas/testsuite: * gas/mach-o/sections-1.d: Amend to recognize that bss is not emitted by default. * gas/mach-o/sections-2.d: New.
2011-12-29 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.Ian Lance Taylor2-0/+6
2011-12-29*** empty log message ***gdbadmin1-1/+1
2011-12-28daily updateAlan Modra1-1/+1
2011-12-28gdb/Jan Kratochvil3-2/+7
* gdbarch.sh (max_insn_length): Extend the comment by unit. * gdbarch.h: Regenerate.
2011-12-28varobj.c:varobj_update minor reformattingJoel Brobecker2-1/+7
gdb/ChangeLog: * varobj.c (varobj_update): Minor reformatting, putting the function name at the start of the next line.
2011-12-28*** empty log message ***gdbadmin1-1/+1
2011-12-27 * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,Doug Evans2-98/+11
cached_fn. (struct function_range): Delete. (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers updated. (check_cu_functions): Ditto.
2011-12-27daily updateAlan Modra1-1/+1
2011-12-272011-12-27 Mark Kettenis <kettenis@gnu.org>Mark Kettenis2-0/+65
* inf-ptrace.c [PT_IO && PIOD_READ_AUXV] (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV. (inf_ptrace_auxv_parse): New function. (inf_ptrace_target): Initialize to_auxv_parse field.
2011-12-27gdb/testsuite/Jan Kratochvil3-6/+18
* gdb.python/py-finish-breakpoint.c (test_exec_exit): Change the parameter to self_exec, adjust the function. (main): Check for argv[1] "exit". Use argv[0] for test_exec_exit. * gdb.python/py-finish-breakpoint.exp (set var self_exec = 0): New test. (set var do_exit = 0): Remove test. (newline at end of file): Add one.
2011-12-27New function ada-lang.c:should_use_wild_match...Joel Brobecker2-10/+30
... to avoid code duplication. gdb/ChangeLog: * ada-lang.c (should_use_wild_match): New function. (ada_lookup_simple_minsym): Use should_use_wild_match. Minor simplification. Add comment. (ada_lookup_symbol_list): Use should_use_wild_match. Minor simplification.
2011-12-27remove use of sprintf in py-finishbreakpoint.c...Joel Brobecker2-1/+6
... and replace it with call to xsnprintf, following GDB's coding rules. gdb/ChangeLog: * py-finishbreakpoint.c (bpfinishpy_init): Replace call to sprintf by call to xsnprintf.
2011-12-27Ignore data minimal symbols for breakpoint linespecsJoel Brobecker6-0/+176
gdb/ChangeLog: * linespec.c (struct collect_minsyms) [list_mode]: New field. (add_minsym): Ignore data symbols if not in list mode. (search_minsyms_for_name): Set local.list_mode. gdb/testsuite/ChangeLog: * gdb.base/dmsym.c, gdb.base/dmsym_main.c, gdb.base/dmsym.exp: New files.
2011-12-27Improve gdb_realpath for Windows hostsJoel Brobecker2-0/+23
On Windows hosts, gdb_realpath is just an xstrdup. This makes filename comparisons on Windows very chancy. Normally, we would normalize both paths, and then compare. But since the normalization doesn't do anything, two equivalent names on Windows might not match. This can happen when trying to insert a breakpoint using the fullpath of a file. For instance, if the compiler generated debug info that says that the compilation directory is: `c:\\some\\double\\slashes\\dir', then trying to insert a breakpoint on `c:/some/double/slashes/dir/foo.c:4' does not work: (gdb) b c:/some/double/slashes/dir/foo.c:4 No source file named c:/some/double/slashes/dir/foo.c:4. (gdb) b c:\some\double\slashes\dir\foo.c:4 No source file named c:\some\double\slashes\dir\foo.c:4. This fixes the problem by enhancing gdb_realpath on Windows hosts. The code is inspired from libiberty's lrealpath. gdb/ChangeLog: * utils.c (gdb_realpath): Add better support for Windows hosts.
2011-12-27*** empty log message ***gdbadmin1-1/+1
2011-12-26daily updateAlan Modra1-1/+1
2011-12-26gdb/testsuite/Jan Kratochvil2-0/+15
Fix racy FAILs. * gdb.threads/fork-thread-pending.c (barrier): New variable. (thread_function, thread_forker): Call pthread_barrier_wait for it. (main): Call pthread_barrier_init for it.
2011-12-26gdb/testsuite/Jan Kratochvil6-23/+23
Fix double send_gdb leading to racy FAILs. * gdb.base/break.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.base/fileio.exp: Replace 2x send_gdb by gdb_exit and sleep. * gdb.base/foll-vfork.exp (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step): Use gdb_test_no_output instead of send_gdb. Twice. * gdb.base/sepdebug.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.mi/mi-nsmoribund.exp: Replace 3x send_gdb by mi_gdb_test.
2011-12-26*** empty log message ***gdbadmin1-1/+1
2011-12-25*** empty log message ***gdbadmin1-1/+1
2011-12-24gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.linespec/linespec.exp: Compile using {c++}.
2011-12-24bfd/Jan Kratochvil2-23/+5
* elf32-rl78.c (rl78_elf_relocate_section, rl78_dump_symtab) (rl78_elf_relax_section): Remove debug prints.
2011-12-24*** empty log message ***gdbadmin1-1/+1
2011-12-23bfd/Jan Kratochvil2-3/+10
* elf32-rl78.c (rl78_elf_relocate_section, rl78_elf_relax_section): Use BFD_VMA_FMT.
2011-12-23bfd/Jan Kratochvil2-8/+4
* elf32-rl78.c (prev_alignment, sec_start): Remove unused variables.
2011-12-23gdb/testsuite/Jan Kratochvil2-2/+28
* gdb.cp/templates.exp (test_template_typedef): Import gdb_prompt. (print destructor of template typedef): Extend it for gcc/51668 XFAIL. (verify GCC PR debug/51668): New test.
2011-12-23 Introduce gdb.FinishBreakpoint in PythonKevin Pouget23-69/+1329
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o. (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c. Add build rule for this file. * infcmd.c (print_return_value): Split to create get_return_value. (get_return_value): New function based on print_return_value. Handle case where stop_registers are not set. * inferior.h (get_return_value): New prototype. * python/py-breakpoint.c (bppy_pending_object): Make non-static. (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary. (struct breakpoint_object): Move to python-internal.h (BPPY_REQUIRE_VALID): Likewise. (BPPY_SET_REQUIRE_VALID): Likewise. (gdbpy_breakpoint_created): Initialize is_finish_bp. (gdbpy_should_stop): Add pre/post hooks before/after calling stop method. * python/python-internal.h (breakpoint_object_type): Add as extern. (bppy_pending_object): Likewise. (typedef struct breakpoint_object) Removed. (struct breakpoint_object): Moved from py-breakpoint.c. Add field is_finish_bp. (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c. (BPPY_SET_REQUIRE_VALID): Likewise. (frame_object_to_frame_info): New prototype. (gdbpy_initialize_finishbreakpoints): New prototype. (bpfinishpy_is_finish_bp): Likewise. (bpfinishpy_pre_stop_hook): Likewise. (bpfinishpy_post_stop_hook): Likewise. * python/py-finishbreakpoint.c: New file. * python/py-frame.c(frame_object_to_frame_info): Make non-static and accept PyObject instead of frame_object. (frapy_is_valid): Don't cast to frame_object. (frapy_name): Likewise. (frapy_type): Likewise. (frapy_unwind_stop_reason): Likewise. (frapy_pc): Likewise. (frapy_block): Likewise. (frapy_function): Likewise. (frapy_older): Likewise. (frapy_newer): Likewise. (frapy_find_sal): Likewise. (frapy_read_var): Likewise. (frapy_select): Likewise. * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function. (_initialize_python): Add gdbpy_initialize_finishbreakpoints. * python/python.h: Include breakpoint.h (gdbpy_is_stopped_at_finish_bp): New prototype. doc/ * gdb.texinfo (Finish Breakpoints in Python): New subsection. (Python API): Add menu entry for Finish Breakpoints. testsuite/ * Makefile.in (EXECUTABLES): Add py-finish-breakpoint and py-finish-breakpoint2 (MISCALLANEOUS): Add py-events-shlib.so and py-events-shlib-nodebug.so * gdb.python/py-breakpoint.exp (mult_line): Define and use variable instead of line number. * gdb.python/py-finish-breakpoint.c: New file. * gdb.python/py-finish-breakpoint.exp: New file. * gdb.python/py-finish-breakpoint.py: New file. * gdb.python/py-finish-breakpoint2.cc: New file. * gdb.python/py-finish-breakpoint2.exp: New file. * gdb.python/py-finish-breakpoint2.py: New file.
2011-12-23gdb/testsuite/Jan Kratochvil2-1/+4
Fix compatibility with gcc-4.7. * gdb.python/py-frame-inline.c (f): Use inline for __always_inline__.
2011-12-23gdb/testsuite/Jan Kratochvil2-14/+23
Partial fix of compatibility with gcc-4.7. * gdb.cp/templates.exp (ptype T5<int>, ptype t5i): Turn all PASS cases into XFAIL "new without size_t". Permit size_t for the KFAIL case. Add comment to add a PASS case in the future.
2011-12-232011-12-23 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-5/+9
* vms-lib.c (vms_traverse_index): Move pointer update code.
2011-12-23[bfd]DJ Delorie9-82/+1242
* elf32-rl78.c (rl78_elf_howto_table): Add R_RL78_RH_RELAX. (rl78_reloc_map): Add BFD_RELOC_RL78_RELAX. (rl78_elf_relocate_section): Add R_RL78_RH_RELAX, R_RL78_RH_SFR, and R_RL78_RH_SADDR. (rl78_elf_finish_dynamic_sections): Only validate PLT section if we didn't relax anything, as relaxing might remove a PLT reference after we've set up the table. (elf32_rl78_relax_delete_bytes): New. (reloc_bubblesort): New. (rl78_offset_for_reloc): New. (relax_addr16): New. (rl78_elf_relax_section): Add support for relaxing long instructions into short ones. [gas] * config/rl78-defs.h (rl78_linkrelax_addr16): Add. (rl78_linkrelax_dsp, rl78_linkrelax_imm): Remove. * config/rl78-parse.y: Tag all addr16 and branch patterns with relaxation markers. * config/tc-rl78.c (rl78_linkrelax_addr16): New. (rl78_linkrelax_branch): New. (OPTION_RELAX): New. (md_longopts): Add relax option. (md_parse_option): Add OPTION_RELAX. (rl78_frag_init): Support relaxation. (rl78_handle_align): New. (md_assemble): Support relaxation. (md_apply_fix): Likewise. (md_convert_frag): Likewise. * config/tc-rl78.h (MAX_MEM_FOR_RS_ALIGN_CODE): New. (HANDLE_ALIGN): New. (rl78_handle_align): Declare. * config/rl78-parse.y (rl78_bit_insn): New. Set it for all bit insn patterns. (find_bit_index): New. Strip .BIT suffix off relevent expressions for bit insns. (rl78_lex): Exclude bit suffixes from expression parsing. [include/elf] * rl78.h (R_RL78_RH_RELAX, R_RL78_RH_SFR, R_RL78_RH_SADDR): New. (RL78_RELAXA_BRA, RL78_RELAXA_ADDR16: New.
2011-12-23*** empty log message ***gdbadmin1-1/+1
2011-12-22 PR python/12533:Tom Tromey5-10/+50
* value.h (release_value_or_incref): Declare. * value.c (struct value) <released>: New field. (free_all_values, release_value, value_release_to_mark): Update 'released'. (release_value_or_incref): New function. * python/py-value.c (valpy_new): Use release_value_or_incref. (value_to_value_object): Likewise. * varobj.c (install_new_value): Move value_incref earlier.
2011-12-22 * value.c (struct value) <modifiable, lazy, optimized_out,Tom Tromey2-35/+44
initialized, stack>: Now bitfields. Move to top. <reference_count>: Move earlier.
2011-12-222011-12-22 Martin Schwidefsky <schwidefsky@de.ibm.com>Martin Schwidefsky3-2/+9
* elf32-s390.c (elf_s390_relocate_section): Add check for debugging section in LD to LE linker relaxation for R_390_TLS_LDO32. * elf64-s390.c (elf_s390_relocate_section): Likewise for R_390_TLS_LDO64.
2011-12-22 * minsyms.h: Rearrange. Document header and all functions.Tom Tromey3-70/+196
* minsyms.c: Move some comments to minsyms.h.
2011-12-22*** empty log message ***gdbadmin1-1/+1
2011-12-21 * symtab.h: Include minsyms.h.Tom Tromey5-95/+150
(prim_record_minimal_symbol, prim_record_minimal_symbol_full) (prim_record_minimal_symbol_and_info, msymbol_hash_iw) (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile) (lookup_minimal_symbol, lookup_minimal_symbol_text) (lookup_minimal_symbol_solib_trampoline) (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc) (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile) (lookup_minimal_symbol_by_pc_section) (lookup_solib_trampoline_symbol_by_pc) (init_minimal_symbol_collection) (make_cleanup_discard_minimal_symbols, install_minimal_symbols) (msymbols_sort): Move to minsyms.h. * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c. * minsyms.c (terminate_minimal_symbol_table): Move from objfiles.c. * minsyms.h: New file.
2011-12-21 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): UseTom Tromey3-9/+11
ALL_OBJFILE_MSYMBOLS. (hppa_hpux_find_dummy_bpaddr): Likewise. * jit.c (jit_object_close_impl): Use terminate_minimal_symbol_table.
2011-12-21 * elfread.c (elf_symtab_read): Put the filename in the filenameTom Tromey2-5/+10
bcache.
2011-12-21 * symtab.h (struct minimal_symbol) <filename>: Now const.Tom Tromey2-1/+5
2011-12-21 * elf32-arm.c (elf32_arm_nabi_grok_psinfo): Fill in core_pid.Ulrich Weigand2-0/+6