aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-05-06*** empty log message ***gdbadmin1-1/+1
2011-05-05 Demote to sw watchpoint only in update_watchpoint.Thiago Jung Bauermann2-50/+66
* breakpoint.c (update_watchpoint): Change between software and hardware watchpoint for all kinds of watchpoints, not just read/write ones. Determine b->exact value here instead of in watch_command_1. Error out if there are not enough resources for a read or access hardware watchpoint. (watch_command_1): Remove logic of checking whether there are enough resources available, since update_watchpoint will do that work now. Don't set b->exact here. Catch exceptions thrown by update_watchpoint and delete the watchpoint. (can_use_hardware_watchpoint): Remove exact_watchpoints argument. Use target_exact_watchpoints instead. (delete_breakpoint): Notify observers only if deleted watchpoint has a breakpoint number assigned to it.
2011-05-05fix typoJanis Johnson1-1/+1
2011-05-05 * lib/gdb.exp (exec_target_file, exec_symbol_file,Janis Johnson3-8/+63
gdb_rename_execfile, gdb_touch_execfile): New. * gdb.base/reread.exp: Use new procs to handle multiple exec files.
2011-05-05 * MAINTAINERS: Add myself as a write-after-approval maintainer.Janis Johnson2-0/+5
2011-05-052011-05-05 Jerome Guitton <guitton@adacore.com>Jerome Guitton2-25/+167
* i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): New functions. (i386_stack_tramp_frame_unwind): New static global. (i386_match_pattern): New function, extracted from i386_match_insn. (i386_match_insn): Use i386_match_pattern. (i386_match_insn_block): New function. (i386_tramp_chain_in_reg_insns) (i386_tramp_chain_on_stack_insns): New static variables. (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list of unwinders.
2011-05-052011-05-05 Yao Qi <yao@codesourcery.com>Yao Qi3-0/+174
* gdb.arch/arm-disp-step.S(test_ldr_literal): New. (test_adr_32bit, test_pop_pc): New. * gdb.arch/arm-disp-step.exp (test_ldr_literal): New. (test_adr_32bit, test_pop_pc): New.
2011-05-05*** empty log message ***gdbadmin1-1/+1
2011-05-04 * linux-low.c (linux_join): Skip process lookup.Doug Evans4-23/+9
* spu-low.c (spu_join): Ditto. * server.c (join_inferiors_callback): Delete. (process_serial_event): For 'D' packet (detach) call join_inferior directly.
2011-05-04gdb:Joseph Myers10-17/+25
* configure.host (xscale*): Don't handle target. * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't handle targets. gdb/gdbserver: * README: Don't mention xscale*-*-linux*. * configure.srv (xscale*-*-linux*): Don't handle target. gdb/testsuite: * gdb.base/a2-run.exp (strongarm-*-coff): Don't handle target. * gdb.base/float.exp (xscale*-*-*, strongarm*-*-*): Don't handle targets. * gdb.base/long_long.exp (xscale*-*-*, strongarm*-*-*): Don't handle targets. sim: * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't handle targets. * configure: Regenerate. sim/testsuite: * configure: Regenerate. * sim/arm/allinsn.exp (xscale*-*-*): Don't handle target. * sim/arm/misc.exp (thumb*-*-*, xscale*-*-*): Don't handle targets. * sim/arm/iwmmxt/iwmmxt.exp: Test for arm*-*-* instead of xscale*-*-*. * sim/arm/thumb/allthumb.exp (thumb*-*-*): Don't handle target. * sim/arm/xscale/xscale.exp: Test for arm*-*-* instead of xscale*-*-*.
2011-05-04gdb/testsuite/Jan Kratochvil2-12/+19
* gdb.base/completion.exp (complete help info wat): Rename to ... (complete 'help info wat'): ... here. Remove all `-re ".*' and `-re "^.*' redundant regexes. (complete 'p 'arg', complete (2) 'p 'arg'): Remove redundant backslash.
2011-05-042011-05-04 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-441/+326
* gdb.base/completion.exp: Use gdb_test_multiple instead of gdb_test and explicit $gdb_prompt/timeout matches.
2011-05-042011-05-04 Yao Qi <yao@codesourcery.com>Yao Qi2-6/+11
* gdb.arch/arm-disp-step.S: Fix usage of macros __thumb__ and __thumb2__.
2011-05-042011-05-04 Yao Qi <yao@codesourcery.com>Yao Qi2-6/+4
* gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2011-05-04*** empty log message ***gdbadmin1-1/+1
2011-05-03Fix races in gdb.base/pr10179.exp.Marek Polacek2-2/+8
2011-05-03Revert "elfread.c (elf_symtab_read): Stop memory leak"Joel Brobecker2-3/+6
It turns out that this change is not correct, and it causes a crash on sparc-solaris while trying to load ld.so. This is because the memory is actually still referenced after elf_symtab_read completes. gdb/ChangeLog: * elfread.c (elf_symtab_read): Revert the previous change that tried to stop a memory leak.
2011-05-03Fix uses of litteral `GDB' in `In Memoriam' appendix.Joel Brobecker2-8/+14
@value{GDBN} should be used in place of GDB, so this patch fixes it. gdb/doc/ChangeLog: * gdb.texinfo (In Memoriam): Replace litteral uses of `GDB' with `@value{GDBN}'.
2011-05-03new `In Memoriam' appendix in GDB ManualJoel Brobecker2-4/+26
This change removes the dedication of the manual to Fred Fish. It also creates a new `In Memoriam' appendix, where Fred Fish and Michael Snyder are mentioned. gdb/doc/ChangeLog: * gdb.texinfo (titlepage): Remove dedication. (In Memoriam): New appendix.
2011-05-03 * nto-tdep.c (nto_target): Replace deprecated call toPierre Muller2-2/+7
cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2011-05-03gdb/Jan Kratochvil2-1/+7
Fix false GCC warning. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2011-05-03 * breakpoint.c (update_watchpoint): Move code to changeThiago Jung Bauermann2-9/+10
the enable state of breakpoint from here ... (do_enable_breakpoint): ... to here.
2011-05-03*** empty log message ***gdbadmin1-1/+1
2011-05-022011-05-02 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-99/+47
PR testsuite/12649 Fix races. * gdb.base/completion.exp: Remove all sleep calls. Remove unnecessary regexs. Don't explicitly expect anything after the prompt. Eat the prompt if necessary.
2011-05-02* gdb.opt/inline-cmds.exp: Adjust checks with "finish" command toEdjunior Barbosa Machado2-2/+28
accept to show the caller line again as well as the line after.
2011-05-02Properly TABify ChangeLog; take 2Paul Pluzhnikov1-61/+61
2011-05-02Properly TABify ChangeLogPaul Pluzhnikov1-3/+3
2011-05-02*** empty log message ***gdbadmin1-1/+1
2011-05-01*** empty log message ***gdbadmin1-1/+1
2011-04-30*** empty log message ***gdbadmin1-1/+1
2011-04-292011-04-26 Andrew Gontarek <andrewg@cray.com>Tom Tromey2-8/+20
* valprint.c (val_print_array_elements): Fixed poor performance of printing very large arrays with repeat_count_threshold set to unlimited. New comment.
2011-04-29 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.Tom Tromey3-5/+14
(mi_parse): Likewise. * breakpoint.c (break_range_command): Use sizeof char*, not char**. (create_breakpoint): Likewise. (parse_breakpoint_sals): Likewise.
2011-04-29 * linux-nat.c (linux_child_remove_fork_catchpoint)Pedro Alves2-0/+28
(linux_child_remove_vfork_catchpoint) (linux_child_remove_exec_catchpoint): New functions. (linux_target_install_ops): Install them.
2011-04-292011-04-29 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon5-0/+76
PR mi/12531 * varobj.c (install_default_visualizer): Do not install a visualizer if the varobj is CPLUS_FAKE_CHILD. (construct_visualizer): Likewise. 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> PR mi/12531 * gdb.python/py-mi.exp: Add CPLUS_FAKE_CHILD tests and a C++ compile target. * gdb.python/py-prettyprint.exp: Add C++ object for CPLUS_FAKE_CHILD test.
2011-04-29*** empty log message ***gdbadmin1-1/+1
2011-04-28gdb/Jan Kratochvil2-1/+9
* symtab.c (expand_partial_symbol_name): New variable NCMP. Support case insensitive comparison.
2011-04-28 gdb/Ulrich Weigand5-36/+195
* infrun.c (proceed): Revert previous change. (resume): Instead, handle the case of signal delivery while stepping off a breakpoint location here, and only if software single-stepping is used. Handle nested signals. gdb/testsuite/ * gdb.base/signest.exp: New file. * gdb.base/signest.c: Likewise.
2011-04-28gdb/testsuite/Jan Kratochvil2-1/+6
* lib/mi-support.exp (mi_expect_stop) <stopped at wrong place>: Accept thread and breakpoint notifications.
2011-04-282011-04-28 Yao Qi <yao@codesourcery.com>Yao Qi2-287/+425
* arm-tdep.c (copy_unmodified): Rename to ... (arm_copy_unmodified): .. this. New. (copy_preload): Move common part to ... (install_preload): .. this. New. (arm_copy_preload): New. (copy_preload_reg): Move common part to ... (install_preload_reg): ... this. New. (arm_copy_preload_reg): New. (copy_b_bl_blx): Move common part to ... (install_b_bl_blx): .. this. New. (arm_copy_b_bl_blx): New. (copy_bx_blx_reg): Move common part to ... (install_bx_blx_reg): ... this. New. (arm_copy_bx_blx_reg): New. (copy_alu_reg): Move common part to ... (install_alu_reg): ... this. New. (arm_copy_alu_reg): New. (copy_alu_shifted_reg): Move common part to ... (install_alu_shifted_reg): ... this. New. (copy_ldr_str_ldrb_strb): Move common part to ... (install_ldr_str_ldrb_strb): ... this. New. (arm_copy_ldr_str_ldrb_strb): New. (copy_copro_load_store): Move some common part to ... (install_copy_copro_load_store): ... this. New. (arm_copy_copro_load_store): New. (copy_svc): Delete. (arm_copy_svc): Renamed from copy_svc. (copy_undef): Delete. (arm_copy_undef): Renamed from copy_undef. (decode_ext_reg_ld_st): Delete. (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. (decode_svc_copro): Delete. (arm_decode_svc_copro): Renamed from decode_svc_copro. (copy_copro_load_store, copy_alu_imm): update callers. (copy_extra_ld_st, copy_block_xfer): Likewise. (decode_misc_memhint_neon, decode_unconditional): Likewise. (decode_miscellaneous, decode_dp_misc): Likewise. (decode_ld_st_word_ubyte, decode_media): Likewise. (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. (decode_svc_copro, decode_misc_memhint_neon): Likewise. (decode_unconditional, decode_miscellaneous): Likewise. (decode_media, decode_b_bl_ldmstm): Likewise. (arm_process_displaced_insn): Likewise.. (decode_misc_memhint_neon): Delete. (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. (decode_miscellaneous): Delete. (arm_decode_miscellaneous): Renamed from decode_miscellaneous. (decode_dp_misc): Delete. (arm_decode_dp_misc): Renamed from decode_dp_misc. (decode_ld_st_word_ubyte): Delete. (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. (decode_media): Delete. (arm_decode_media): Renamed from decode_media. (decode_b_bl_ldmstm): Delete. (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. (decode_ext_reg_ld_st): Delete. (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. (decode_unconditional): Delete. (arm_decode_unconditional): Renamed from decode_unconditional.
2011-04-28*** empty log message ***gdbadmin1-1/+1
2011-04-27gdb/doc/Jan Kratochvil15-45/+398
* gdb.texinfo (Index Section Format): Change the version to 5. Describe the different formula. gdb/ Case insensitive lookups implementation. * dwarf2read.c: Include ctype.h. (struct mapped_index): New field version. (mapped_index_string_hash): New parameter index_version. New comment for it. Call tolower appropriately. (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. Choose the right index version for mapped_index_string_hash. (dwarf2_read_index): Support also the index version 5. Initialize the new struct mapped_index field version. (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. (find_slot): Explain the version needs. Pass INT_MAX for the new parameter. (write_psymtabs_to_index): Produce version 5. * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. * psymtab.c (lookup_partial_symbol): Find the SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching entries. * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off NAME lowercasing. (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. (completion_list_add_name): New variable ncmp, initialize it, use it. * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. * utils.c (strcmp_iw): Support case_sensitive_off. (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. New function comment part. New variables saved_string1, saved_string2 and case_pass. Add a proper second pass. gdb/testsuite/ * gdb.base/fortran-sym-case.c: New file. * gdb.base/fortran-sym-case.exp: New file. * gdb.dwarf2/dw2-case-insensitive-debug.S: New file. * gdb.dwarf2/dw2-case-insensitive.c: New file. * gdb.dwarf2/dw2-case-insensitive.exp: New file.
2011-04-27gdb/Jan Kratochvil2-16/+46
Replace re_comp/re_exec by regcomp/regexec. * symtab.c (struct search_symbols_data): New fields preg, preg_p. (search_symbols_name_matches): Use them, use regexec. (search_symbols): New variable retval_chain, adjust the use of old_chain against it. Replace re_comp by regcomp. Use the new struct search_symbols_data fields, use regexec instead of re_exec.
2011-04-27gdb/Jan Kratochvil3-36/+55
Format the code for the next patch. * dwarf2read.c (struct mapped_index): Include delimiting newlines. * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. New variables c1 and c2.
2011-04-27gdb/testsuite/Jan Kratochvil3-3/+16
* lib/gdb.exp (gdb_test_multiple): Eror on newline in $message. * gdb.base/ifelse.exp: Give names to the "" tests as `if true else false #1', `if true else false #2' and `if true else false #3'.
2011-04-27fix strict-aliasing warningsNathan Froyd2-10/+19
* linux-x86-low.c (amd64_emit_const): Call memcpy instead of casting pointers. (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): (i386_emit_void_call_2): Likewise.
2011-04-27ChangeLog:Ulrich Weigand4-26/+62
* infrun.c (proceed): Do not single-step into signal delivery when stepping off a breakpoint location. (insert_step_resume_breakpoint_at_frame): Move prototype earlier. (insert_step_resume_breakpoint_at_caller): Likewise. (insert_step_resume_breakpoint_at_sal): Likewise. (insert_longjmp_resume_breakpoint): Likewise. testsuite/ChangeLog: * gdb.base/annota1.exp: Accept breakpoints-invalid annotation while delivering signal.
2011-04-272011-04-27 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+4
* common/linux-ptrace.h: Remove include <sys/wait.h>.
2011-04-27fix procfs.c:procfs_pass_signals advance declarationJoel Brobecker2-1/+5
gdb/ChangeLog: * procfs.c (procfs_pass_signals): Fix advance declaration.
2011-04-27 * target.h (struct target_ops): Remove to_notice_signals;Ulrich Weigand8-137/+230
add to_pass_signals. (target_notice_signals): Remove. (target_pass_signals): Add prototype. * target.c (update_current_target): Remove to_notice_signals; mention to_pass_signals. (target_pass_signals): New function. (debug_to_notice_signals): Remove. (setup_target_debug): Do not install debug_to_notice_signals. * infrun.c (signal_pass): New global. (resume): Call target_pass_signals. (handle_inferior_event): Report all signals while stepping over non-steppable watchpoint. Reset trap_expected to ensure breakpoints are re-inserted when stepping over a signal handler. (signal_cache_update): New function. (signal_stop_update): Call it. (signal_print_update): Likewise. (signal_pass_update): Likewise. (handle_command): Call signal_cache_update and target_pass_signals instead of target_notice_signals. (_initialize_infrun): Initialize signal_pass. * linux-nat.c (pass_mask): New global. (linux_nat_pass_signals): New function. (linux_nat_create_inferior): Report all signals initially. (linux_nat_attach): Likewise. (linux_nat_resume): Use pass_mask to decide whether to directly handle an inferior signal. (linux_nat_wait_1): Likewise. (linux_nat_add_target): Install to_pass_signals callback. * nto-procfs.c (notice_signals): Remove. (procfs_resume): Do not call notice_signals. (procfs_notice_signals): Remove. (procfs_pass_signals): New function. (init_procfs_ops): Install to_pass_signals callback instead of to_notice_signals callback. (_initialize_procfs): Report all signals initially. * procfs.c (procfs_notice_signals): Remove. (procfs_pass_signals): New function. (procfs_target): Install to_pass_signals callback instead of to_notice_signals callback. (register_gdb_signals): Remove. (procfs_debug_inferior): Report all signals initially. (procfs_init_inferior): Remove redundant register_gdb_signals call. * remote.c (remote_pass_signals): Add numsigs and pass_signals parameters; use them instead of calling signal_..._state routines. (remote_notice_signals): Remove. (remote_start_remote): Report all signals initially. (remote_resume): Do not call remote_pass_signals. (_initialize_remote): Install to_pass_signals callback instead of to_notice_signals callback.
2011-04-272011-04-27 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-97/+36
gdb/ * breakpoint.c (user_settable_breakpoint): Delete. (user_breakpoint_p): Remove check on user_settable_breakpoint. (delete_command): Check user_breakpoint_p instead of looking at the breakpoint's type. (disable_command): Ditto. (enable_command): Ditto. (delete_trace_command): Use user_breakpoint_p instead of looking at the breakpoint number directly. When checking if there are user visible tracepoints, in order to know whether to ask the user for confirmation, check whether the breakpoint is actually a tracepoint.