aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-13gdb/doc/Pedro Alves96-579/+182
2011-12-13 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (Implementing a Remote Stub): Explain that you should transfer control to the stub in the startup code instead of in main. Mention the need to get past the initial breakpoint. gdb/testsuite/ 2011-12-13 Pedro Alves <pedro@codesourcery.com> Doug Evans <dje@google.com> * lib/gdb.exp (gdb_run_cmd, runto_main, gdb_compile) (clean_restart): Remove references to the gdb_stub target board variable. (gdb_step_for_stub): Delete. * gdb.base/annota1.exp: Remove all references to [target_info exists gdb_stub], gdb_step_for_stub and usestubs. * gdb.base/annota3.exp: Ditto. * gdb.base/async.exp: Ditto. * gdb.base/break.exp: Ditto. * gdb.base/code-expr.exp: Ditto. * gdb.base/commands.exp: Ditto. * gdb.base/completion.exp: Ditto. * gdb.base/condbreak.exp: Ditto. * gdb.base/consecutive.exp: Ditto. * gdb.base/cvexpr.exp: Ditto. * gdb.base/define.exp: Ditto. * gdb.base/display.exp: Ditto. * gdb.base/ena-dis-br.exp: Ditto. * gdb.base/environ.exp: Ditto. * gdb.base/gnu-ifunc.exp: Ditto. * gdb.base/maint.exp: Ditto. * gdb.base/pending.exp: Ditto. * gdb.base/sect-cmd.exp: Ditto. * gdb.base/sepdebug.exp: Ditto. * gdb.base/unload.exp: Ditto. * gdb.base/watchpoint-solib.exp: Ditto. * gdb.cp/annota2.exp: Ditto. * gdb.cp/annota3.exp: Ditto. * gdb.dwarf2/dw2-inline-param.exp: Ditto. * gdb.hp/gdb.compat/xdb1.exp: Ditto. * gdb.mi/mi-pending.exp: Ditto. * gdb.trace/circ.exp: Ditto. * gdb.cp/ovldbreak.exp: Ditto. Adjust expected line numbers. * gdb.base/list.exp: Ditto. * gdb.base/all-types.c: Remove all calls to set_debug_traps and breakpoint function and all references to the usestubs macro. * gdb.base/exprs.c: Ditto. * gdb.base/freebpcmd.c: Ditto. * gdb.base/bitfields.c: Ditto. * gdb.base/bitfields2.c: Ditto. * gdb.base/break.c: Ditto. * gdb.base/call-sc.c: Ditto. * gdb.base/call-signals.c: Ditto. * gdb.base/callfuncs.c: Ditto. * gdb.base/charset.c: Ditto. * gdb.base/consecutive.c: Ditto. * gdb.base/constvars.c: Ditto. * gdb.base/funcargs.c: Ditto. * gdb.base/int-type.c: Ditto. * gdb.base/interrupt.c: Ditto. * gdb.base/langs0.c: Ditto. * gdb.base/list0.c: Ditto. * gdb.base/mips_pro.c: Ditto. * gdb.base/miscexprs.c: Ditto. * gdb.base/nodebug.c: Ditto. * gdb.base/opaque0.c: Ditto. * gdb.base/pointers.c: Ditto. * gdb.base/printcmds.c: Ditto. * gdb.base/ptype.c: Ditto. * gdb.base/recurse.c: Ditto. * gdb.base/reread1.c: Ditto. * gdb.base/reread2.c: Ditto. * gdb.base/restore.c: Ditto. * gdb.base/return.c: Ditto. * gdb.base/run.c: Ditto. * gdb.base/scope0.c: Ditto. * gdb.base/sepdebug.c: Ditto. * gdb.base/setshow.c: Ditto. * gdb.base/setvar.c: Ditto. * gdb.base/sigall.c: Ditto. * gdb.base/signals.c: Ditto. * gdb.base/structs.c: Ditto. * gdb.base/structs2.c: Ditto. * gdb.base/testenv.c: Ditto. * gdb.base/twice.c: Ditto. * gdb.base/unwindonsignal.c: Ditto. * gdb.base/watchpoint.c: Ditto. * gdb.base/watchpoints.c: Ditto. * gdb.base/whatis.c: Ditto. * gdb.cp/classes.cc: Ditto. * gdb.cp/cplusfuncs.cc: Ditto. * gdb.cp/derivation.cc: Ditto. * gdb.cp/formatted-ref.cc: Ditto. * gdb.cp/misc.cc: Ditto. * gdb.cp/overload.cc: Ditto. * gdb.cp/ovldbreak.cc: Ditto. * gdb.cp/ref-params.cc: Ditto. * gdb.cp/ref-types.cc: Ditto. * gdb.cp/templates.cc: Ditto. * gdb.cp/virtfunc.cc: Ditto. * gdb.hp/gdb.aCC/run.c: Ditto. * gdb.hp/gdb.base-hp/callfwmall.c: Ditto. * gdb.hp/gdb.compat/xdb0.c: Ditto. * gdb.reverse/consecutive-reverse.c: Ditto. * gdb.reverse/sigall-reverse.c: Ditto. * gdb.reverse/until-reverse.c: Ditto. * gdb.reverse/watch-reverse.c: Ditto. * gdb.trace/actions.c: Ditto. * gdb.trace/circ.c: Ditto. * gdb.trace/collection.c: Ditto.
2011-12-132011-12-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-13/+68
PR remote/13492 * i386-low.c (i386_low_stopped_data_address): Avoid fetching DR_CONTROL unless necessary. Extend comments. * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
2011-12-132011-12-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-0/+112
* gdb.base/watchpoint.c (struct foo2, foo2, struct foo4, foo4) (func6, func7): New. (main): Call func6 and func7. * gdb.base/watchpoint.exp (test_wide_location_1) (test_wide_location_2): New. (top level): Re-enable hardware watchpoints if necessary. Call test_wide_location_1 and test_wide_location_2.
2011-12-132011-12-13 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>Tristan Gingold9-18/+76
* dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an argument like other functions to support formats other than ELF. * elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h. * elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info in tdata as a parameter. * libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from elf-bfd.h. * libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate. * mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the fallback macro. (bfd_mach_o_find_nearest_line): Likewise. * mach-o.c (bfd_mach_o_find_nearest_line): Add the definition which calls _bfd_dwarf2_find_nearest_line. (bfd_mach_o_close_and_cleanup): Likewise. * mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info. (bfd_mach_o_find_nearest_line): Add declaration. (bfd_mach_o_close_and_cleanup): Add declaration.
2011-12-13Create new section in NEWS for next release branchJoel Brobecker2-0/+8
gdb/ChangeLog: * NEWS: Create a new section for the next release branch. Rename the section of the current branch, now that it has been cut.
2011-12-13 * po/it.po: New Italian translation.Nick Clifton4-2/+2244
* configure.in (ALL_LINGUAS): Add it. * configure: Regenerate.
2011-12-13Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.gdbadmin2-1/+6
2011-12-13 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): UpdateNick Clifton2-2/+6
to match code.
2011-12-13Missing file from my previous commit.Tristan Gingold1-0/+798
2011-12-13bfd/gdb_7_4-branchpointTristan Gingold9-684/+76
2011-12-13 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_symtab_symbols): Make global. Remove prototype. (bfd_mach_o_section_get_entry_size): Make global. (bfd_mach_o_section_get_nbr_indirect): Likewise. (bfd_mach_o_read_symtab_strtab): Likewise. (struct bfd_mach_o_xlat_name): Move to mach-o.h (bfd_mach_o_print_flags): Move to binutils/od-macho.c (bfd_mach_o_get_name_of_null, bfd_mach_o_get_name): Likewise. (bfd_mach_o_cpu_name, bfd_mach_o_filetype_name): Likewise. (bfd_mach_o_header_flags_name): Likewise. (bfd_mach_o_load_command_name): Likewise. (bfd_mach_o_print_private_header): Likewise. (bfd_mach_o_print_section_map, bfd_mach_o_print_section): Likwise. (bfd_mach_o_print_segment, bfd_mach_o_print_dysymtab): Likewise. (bfd_mach_o_print_dyld_info): Likewise. (bfd_mach_o_print_private_bfd_data): Remove. (bfd_mach_o_type_name): Make global. (bfd_mach_o_section_attribute_name): Likewise. * mach-o.h (bfd_mach_o_xlat_name): Added. (bfd_mach_o_section_get_nbr_indirect) (bfd_mach_o_section_get_entry_size) (bfd_mach_o_read_symtab_symbols) (bfd_mach_o_read_symtab_strtab) (bfd_mach_o_section_attribute_name) (bfd_mach_o_section_type_name): Likewise. * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): Define. binutils/ 2011-12-13 Tristan Gingold <gingold@adacore.com> * od-macho.c: New file. * objdump.h (objdump_private_desc_mach_o): Add. * configure.in: Add Mach-O od_vectors. * Makefile.am (CFILES): Add od-macho.c * configure: Regenerate. * Makefile.in: Regenerate.
2011-12-13 * ppc-opc.c (ISA_V2): Define and use for relevant BO field tests.Alan Modra3-338/+359
(valid_bo_pre_v2, valid_bo_post_v2): New functions, extracted from.. (valid_bo): ..here. When disassembling, accept either 'y' or 'at' type encoding on second pass. (powerpc_opcodes): Use ISA_V2 to enable branch insns rather than POWER4. * ppc-dis.c (print_insn_powerpc): Delete dialect_orig. Instead ignore deprecated on second pass.
2011-12-132011-12-13 Chung-Lin Tang <cltang@codesourcery.com>Chung-Lin Tang2-4/+11
* elfxx-mips.c (mips_elf_calculate_relocation): Correct R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits, update comments.
2011-12-132011-12-13 Yao Qi <yao@codesourcery.com>Yao Qi2-7/+14
* tracepoint.c (trace_buffer_alloc): Replace magic numbers with macros. (upload_fast_traceframes, upload_fast_traceframes): Likewise.
2011-12-13*** empty log message ***gdbadmin1-1/+1
2011-12-12daily updateAlan Modra1-1/+1
2011-12-122011-12-12 Iain Sandoe <iains@gcc.gnu.org>Tristan Gingold2-2/+7
* mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname. (bfd_mach_o_read_section_64): Likewise.
2011-12-122011-12-11 Yao Qi <yao@codesourcery.com>Yao Qi2-0/+14
* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.
2011-12-12*** empty log message ***gdbadmin1-1/+1
2011-12-11daily updateAlan Modra1-1/+1
2011-12-11[Ada] improve message when cannot insert Ada exception catchpoint.Joel Brobecker2-1/+6
gdb/ChangeLog: * ada-lang.c (ada_exception_support_info_sniffer): Improve error message.
2011-12-11[Ada] Make the exception_support_info data per inferior.Joel Brobecker2-30/+35
The ada-lang module was using a static global called "exception_info" for all inferiors. But each inferior might be different, and thus this patch makes this data per-inferior. gdb/ChangeLog: * ada-lang.c (struct ada_inferior_data) [exception_info]: New field. (exception_info): Delete. (ada_exception_support_info_sniffer): Get exception_support_info data from our per-inferior data. Adjust code accordingly. (ada_unhandled_exception_name_addr_from_raise): Likewise. (ada_exception_name_addr_1, ada_exception_sym_name): Ditto. (ada_executable_changed_observer): Delete. (_initialize_ada_language): Remove call to observer_attach_executable_changed.
2011-12-11Warn if missing debug info for Ada exception catchpointsJoel Brobecker5-3/+35
This patch should help the user understand why the debugger is not able to insert Ada exception catchpoints when the Ada runtime was stripped of debugging info, as is often the case on many GNU/Linux distros: (gdb) catch exception Your Ada runtime appears to be missing some debugging information. Cannot insert Ada exception catchpoint in this configuration. gdb/ChangeLog: * ada-lang.c (ada_has_this_exception_support): Raise an error if we could find the Ada exception hook in the Ada runtime, but no debugging info for that hook. gdb/testsuite/ChangeLog: * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust expected output for unsupported case.
2011-12-11Ada exception catchpoint support cleanup.Joel Brobecker2-35/+48
This patch cleans up a bit the way we detect which type of runtime the program uses with respect to Ada exceptions. It also removes an unnecessary check in ada_exception_sal which is already performed by ada_exception_support_info_sniffer. Some of the changes are preparation work for detecting the situation where the Ada runtime is found, but lacking debugging info. gdb/ChangeLog: * ada-lang.c (ada_has_this_exception_support): New function, extracted out of ada_exception_sal and ada_exception_sal. (ada_exception_support_info_sniffer): Simplify by using ada_has_this_exception_support. (ada_exception_sal): Replace unnecessary checks by assertions. Minor simplifications.
2011-12-11 PR binutils/13476Dave Anglin2-39/+53
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to R_PARISC_DPREL21L when not doing a shared link. Likewise convert R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to R_PARISC_DPREL14R. Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.
2011-12-11* breakpoint.c (update_global_location_list): Remove nestedAndrey Smirnov2-1/+6
definition of `b'(-Wshadow).
2011-12-11* breakpoint.c (insert_breakpoint_locations): Rename `error' toAndrey Smirnov2-4/+9
`error_flag'(-Wshadow).
2011-12-11* bfd-target.c (target_bfd_reopen): Rename `bfd' toAndrey Smirnov2-3/+8
`abfd'(-Wshadow).
2011-12-11* annotate.c (annotate_array_section_begin): Rename `index' toAndrey Smirnov2-2/+7
`idx'(-Wshadow).
2011-12-11* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' toAndrey Smirnov2-2/+7
`idx'(-Wshadow).
2011-12-11* amd64-linux-tdep.c (amd64_canonicalize_syscall): RenameAndrey Smirnov2-2/+7
`syscall' to `syscall_number'(-Wshadow).
2011-12-11* ada-lang.c (remove_extra_symbols): Rename `remove' toAndrey Smirnov2-4/+9
`remove_p'(-Wshadow).
2011-12-11* ada-exp.y (write_var_or_type): Rename nested `renaming' toAndrey Smirnov2-3/+8
`ren_sym'(-Wshadow).
2011-12-112011-12-10 David Daney <david.daney@cavium.com>David Daney2-30/+39
* elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove. (mips_elf_link_hash_table.rld_symbol): New field; (MIPS_ELF_RLD_MAP_SIZE): New macro. (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol in rld_symbol. (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol in rld_symbol. (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map. (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling. (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to calculate DT_MIPS_RLD_MAP value. (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol, quit initializing rld_value.
2011-12-112011-12-10 David Daney <david.daney@cavium.com>David Daney2-1/+6
* ld-mips-elf/pic-and-nonpic-6-n64.dd: Use correct encoding for 64-bit MOVE instruction.
2011-12-11*** empty log message ***gdbadmin1-1/+1
2011-12-10 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section toDoug Evans2-32/+37
debug_types_section. All uses updated. (partial_read_comp_unit_head): Rename parameter is_debug_type_section to is_debug_types_section.
2011-12-10gdb/testsuite/Jan Kratochvil2-2/+9
PR testsuite/12649 * gdb.trace/ftrace.exp (test_fast_tracepoints): Import gdb_prompt. Protect gdb_test_multiple by final $gdb_prompt match.
2011-12-10daily updateAlan Modra1-1/+1
2011-12-10 * python/py-auto-load.c (source_section_scripts): Call xfreeDoug Evans2-1/+6
instead of free.
2011-12-10gdb/testsuite/Jan Kratochvil2-0/+43
* gdb.cp/static-method.exp (have_gcc_45682_fixed, info addr A::func()): New variable, new test. (list static-method.cc:xxx::(anonymous namespace)::A::func) (list 'static-method.cc:xxx::(anonymous namespace)::A::func') (list 'static-method.cc':'xxx::(anonymous namespace)::A::func') (list static-method.cc:'xxx::(anonymous namespace)::A::func'): KFAIL them if HAVE_GCC_45682_FIXED is not set.
2011-12-102011-12-10 Hui Zhu <teawater@gmail.com>Yao Qi5-0/+186
Yao Qi <yao@codesourcery.com> * tracepoint.c (start_tracing): Clear `inserted' flag. 2011-12-10 Yao Qi <yao@codesourcery.com> * gdb.trace/status-stop.exp: New. * gdb.trace/status-stop.c: New.
2011-12-102011-12-10 Hui Zhu <teawater@gmail.com>Hui Zhu2-4/+16
* tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
2011-12-102011-12-09 David Daney <david.daney@cavium.com>David Daney4-3/+10
* ld-mips-elf/tls-multi-got-1.r: Add "0x" to match value for MIPS_BASE_ADDRESS. * ld-mips-elf/textrel-1.d: Same. * ld-mips-elf/multi-got-1.d: Same.
2011-12-10* breakpoint.c (bp_loc_is_permanent): Rename `brk' toAndrey Smirnov2-4/+9
`bpoint'(-Wshadow).
2011-12-10* breakpoint.c (update_static_tracepoint): Rename nested `sal' andAndrey Smirnov2-15/+21
`marker' variables to `sal2' and `tpmarker' respectively (-Wshadow).
2011-12-10*** empty log message ***gdbadmin1-1/+1
2011-12-09daily updateAlan Modra1-1/+1
2011-12-092011-12-09 Andrew Pinski <apinski@cavium.com>Andrew Pinski2-1/+8
* linespec.c (hash_address_entry): Use iterative_hash_object on each field rather than the struct itself.
2011-12-09 * breakpoint.c (compare_breakpoints): New function.Tom Tromey2-1/+49
(clear_command): Remove duplicate breakpoints. Properly clean up.
2011-12-09gdb/testsuite/Jan Kratochvil2-0/+9
* gdb.reverse/until-precsave.exp (run to end of main) Extend the timeout.