aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-12-15 * exceptions.c (catcher_list_size): New function.Doug Evans2-7/+58
(last_message): Delete. (exception_messages, exception_messages_size): New static globals. (throw_it): Use exception_messages array to handle nested calls.
2011-12-15 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove badTom Tromey2-2/+5
do_cleanups call.
2011-12-15gdb/testsuite/Yao Qi3-0/+155
* gdb.trace/strace.c: New * gdb.trace/strace.exp: New.
2011-12-15gdb/gdbserver/Yao Qi2-2/+7
* tracepoint.c: Include sys/syscall.h. (gdb_ust_thread): Remove preprocessor conditional.
2011-12-15*** empty log message ***gdbadmin1-1/+1
2011-12-14 * defs.h (wait_to_die_with_timeout): Declare.Doug Evans4-5/+106
* utils.c: #include "gdb_wait.h". (sigalrm_handler, wait_to_die_with_timeout): New functions. * ser-pipe.c: Don't #include "gdb_wait.h". (pipe_close): Give child a chance to die on its own after closing its stdin before SIGTERM'ing it.
2011-12-14Fix latest ChangeLog entry (forgot to give credit to reporter)Joel Brobecker1-0/+1
2011-12-14fix uninitialized field in ada-lang.c (struct match_data)Joel Brobecker2-1/+6
Field found_sym in add_nonlocal_symbols's struct match_data is used uninitialized. Rather than adding the initialization of this field (to zero), we set the entire structure to zero first, and then set the fields that need to be initialized to non-zero next. gdb/ChangeLog: * ada-lang.c (add_nonlocal_symbols): Initialize data to all zeros. Remove setting of data.arg_sym to NULL.
2011-12-14 * gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.Tom Tromey2-1/+7
2011-12-14 * lib/gdb.exp (gdb_start_cmd): Fix error return value.Doug Evans2-1/+5
2011-12-14Fix typo in "Changes since ...".Doug Evans1-1/+1
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+7
* linux-low.c (linux_detach_one_lwp): Call the_low_target.prepare_to_resume before detaching.
2011-12-14gdb/Pedro Alves21-214/+658
2011-12-14 Pedro Alves <pedro@codesourcery.com> PR threads/10729 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp pointer. (linux_nat_prepare_to_resume): New global. (lwp_free): New. (purge_lwp_list): Use it. (add_lwp): Call linux_nat_new_thread even on the first LWP. Adjust to interface change. (delete_lwp): Call lwp_free instead of xfree. (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume) (linux_handle_syscall_trap, linux_handle_extended_wait) (linux_nat_filter_event, resume_stopped_resumed_lwps): Call linux_nat_prepare_to_resume before resuming. (linux_stop_lwp): New. (linux_nat_set_new_thread): Adjust. (linux_nat_set_prepare_to_resume): New. * linux-nat.h (struct arch_lwp_info): Forward declare. (struct lwp_info) <arch_private>: New field. (linux_stop_lwp): Declare. (linux_nat_set_new_thread): Adjust. (linux_nat_set_prepare_to_resume): New. * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL) (struct i386_debug_reg_state): Move to i386-nat.h. (dr_mirror): Comment. (i386_debug_reg_state): New. (i386_update_inferior_debug_regs): Simplify. (i386_stopped_data_address): Use the debug register state from the inferior, not from the local cache. * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and unset_status fields. New get_addr and get_control fields. (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c. (DR_NADDR, DR_STATUS): New. (struct i386_debug_reg_state): Moved from i386-nat.c. * amd64-linux-nat.c (struct arch_lwp_info): New. (amd64_linux_dr): Delete global. (amd64_linux_dr_get_addr): New. (amd64_linux_dr_get_control): New. (amd64_linux_dr_unset_status): Delete. (amd64_linux_dr_set_addr): Reimplement. (amd64_linux_dr_reset_addr): Delete. (update_debug_registers_callback): New. (amd64_linux_dr_set_control): Reimplement. (amd64_linux_dr_set_addr): Reimplement. (amd64_linux_prepare_to_resume): New. (amd64_linux_new_thread): Change parameter to an lwp pointer. Reimplement. (_initialize_amd64_linux_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install amd64_linux_dr_get_control as i386_dr_low.get_control. Install amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install amd64_linux_prepare_to_resume. * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) (DR_CONTROL): Delete. (struct arch_lwp_info): New. (i386_linux_dr): Delete global. (i386_linux_dr_set_control): Reimplement. (i386_linux_dr_get_addr): New. (i386_linux_dr_set_addr): Reimplement. (i386_linux_dr_get_control): New. (update_debug_registers_callback): New. (i386_linux_dr_unset_status): Delete. (i386_linux_dr_set_addr): Reimplement. (i386_linux_prepare_to_resume): New. (i386_linux_new_thread): Change parameter to an lwp pointer. Reimplement. (_initialize_i386_linux_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install i386_linux_dr_get_control as i386_dr_low.get_control. Install i386_linux_dr_get_addr as i386_dr_low.get_addr. Install i386_linux_prepare_to_resume. * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an lwp pointer. Adjust. * ia64-linux-nat.c (ia64_linux_new_thread): Likewise. * mips-linux-nat.c (mips_linux_new_thread): Likewise. * ppc-linux-nat.c (ppc_linux_new_thread): Likewise. * s390-nat.c (s390_fix_watch_points): Likewise. * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) (DR_CONTROL): Delete. (i386_darwin_dr_reset_addr): Delete. (i386_darwin_dr_get_addr): New. (i386_darwin_dr_get_control): New. * go32-nat.c (go32_get_dr7, go32_get_dr): New. (init_go32_ops): No longer install i386_dr_low.reset_addr. Install go32_get_dr7 as i386_dr_low.get_control. Install go32_get_dr as i386_dr_low.get_addr. * i386bsd-nat.c (i386bsd_dr_get): New. (i386bsd_dr_reset_addr): Delete. (i386bsd_dr_get_addr): New. (i386bsd_dr_get_status): Use i386bsd_dr_get. (i386bsd_dr_get_control): New. * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete. (i386bsd_dr_get_addr): New. (i386bsd_dr_get_control): New. * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install i386bsd_dr_get_control as i386_dr_low.get_control. Install i386bsd_dr_get_addr as i386_dr_low.get_addr. * windows-nat.c (init_windows_ops): No longer install i386_dr_low.reset_addr and i386_dr_low.unset_status. Install cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr as i386_dr_low.get_addr. (cygwin_get_dr): New. (cygwin_get_dr7): New. gdb/testsuite/ 2011-12-14 Pedro Alves <pedro@codesourcery.com> PR threads/10729 * gdb.mi/watch-nonstop.c: New file. * gdb.mi/mi-watch-nonstop.exp: New file.
2011-12-14Add PR gdb/8367 to basenames-may-differ patch.Doug Evans1-0/+1
2011-12-14Add PR # 7200 to: Make "!" an alias for "shell".Doug Evans1-1/+1
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-4/+16
* ia64-tdep.c (ia64_memory_remove_breakpoint): Use target_write_raw_memory. * m32r-tdep.c (m32r_memory_remove_breakpoint): Use target_write_raw_memory. * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint): Use target_write_raw_memory. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use target_write_raw_memory.
2011-12-142011-12-14 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+18
* 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.
2011-12-14Make decode_line_internal static.Joel Brobecker2-1/+5
gdb/ChangeLog: * linespec.c (decode_line_internal): Make static.
2011-12-14gdb/Yao Qi2-0/+6
* breakpoint.c (create_breakpoint): Set canonical.addr_string for static tracepoint.
2011-12-14gdb/gdbserver/Yao Qi2-1/+7
* tracepoint.c (gdb_ust_thread): Don't ignore return value of write.
2011-12-142011-12-14 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+6
* i386-low.c (i386_low_stopped_data_address): Initialize local variable `control'.
2011-12-14*** empty log message ***gdbadmin1-1/+1
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-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-13Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.gdbadmin2-1/+6
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-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-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* 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-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-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.