aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-03-06New Ada testcase (bp_on_var.exp).Joel Brobecker5-0/+119
gdb/testsuite/ChangeLog: * gdb.ada/bp_on_var: New testcase.
2012-03-062012-03-06 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+8
* gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2012-03-06New Ada testcase (bp_enum_homonym).Joel Brobecker5-0/+133
gdb/testsuite/ChangeLog: * gdb.ada/bp_enum_homonym: New testcase.
2012-03-06gdb/testsuite/Yao Qi2-1/+9
* gdb.trace/ftrace.exp (test_fast_tracepoints): Run test on target x86_64-*-* and i?86-*-*. Set up KFAIL for gdb/13808.
2012-03-06*** empty log message ***gdbadmin1-1/+1
2012-03-05Add Maciej W. Rozycki as mips maintainer.Joel Brobecker2-0/+5
gdb/ChangeLog: * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2012-03-05 * gdb.ada/operator_bp.exp: Clear debug-file-directory.Tom Tromey3-0/+11
* gdb.ada/mi_task_arg.exp: Clear debug-file-directory.
2012-03-05gdb/Jan Kratochvil5-70/+18
Code cleanup. * common/linux-osdata.c (linux_common_core_of_thread): New function comment. * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1 call by linux_common_core_of_thread. (linux_nat_core_of_thread_1): Remove. * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration. * linux-thread-db.c: Include linux-osdata.h. (update_thread_core): Replace linux_nat_core_of_thread_1 call by linux_common_core_of_thread.
2012-03-05 * value.c (value_primitive_field): Don't fetch contents forTom Tromey2-5/+16
non-virtual bases.
2012-03-05 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.Tom Tromey4-1/+13
gdb/testsuite * gdb.java/jprint.java (jprint.main): Keep 'x' live.
2012-03-05Include "gregset.h" in s390-nat.c (-Wmissing-prototypes).Joel Brobecker2-0/+6
gdb/ChangeLog: * s390-nat.c: Include "gregset.h".
2012-03-05gdb/Jan Kratochvil2-3/+28
* libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8. [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define. (libunwind_load): New variable so_error, use it for dlerror. Try to load also LIBUNWIND_SO_7.
2012-03-05gdb/gdbserver/Jan Kratochvil2-1/+16
* linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. New comment why.
2012-03-052012-03-05 Pedro Alves <palves@redhat.com>Pedro Alves2-22/+16
* i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer is not NULL, and remove resulting dead code.
2012-03-05 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the functionThomas Schwinge2-15/+38
prologue to sh_analyze_prologue. (sh_analyze_prologue): Make better use of such an upper limit, and generally be more cautious about accessing memory.
2012-03-05 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename fromTom Tromey2-2/+7
_initialize_ia64_hpux_tdep.
2012-03-05Mention PR gdb/13766Pedro Alves1-0/+2
2012-03-052012-03-05 Pedro Alves <palves@redhat.com>Pedro Alves2-33/+60
* i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and the register state is clear, supply explicit zero, instead of marking the register unavailable.
2012-03-052012-03-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+5
* NEWS: Mention OpenVMS ia64 new target.
2012-03-052012-03-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-0/+2617
* buildvms.com: New file. * ia64vms-stub.c: New file.
2012-03-052012-03-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold6-5/+197
* ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h. (ia64_unw_accessors, ia64_unw_rse_accessors) (ia64_libunwind_descr): Declare. * ia64-vms-tdep.c: New file. * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors) (ia64_libunwind_descr): Make them public. * configure.tgt: Add ia64-*-*vms*. * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o (ALLDEPFILES): Add ia64-vms-tdep.c
2012-03-052012-03-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold5-4/+47
* target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB. * remote.c (PACKET_qXfer_uib): New enum value. (remote_protocol_features): Add entry for PACKET_qXfer_uib. (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB. (_initialize_remote): Call add_packet_config_cmd for xfer:uib packet. doc/ 2012-03-05 Tristan Gingold <gingold@adacore.com> * gdb.texinfo (General Query Packets): Document xfer:uib:read.
2012-03-052012-03-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-0/+12
* osabi.c (gdb_osabi_names): Add OpenVMS. (generic_elf_osabi_sniffer): Likewise. * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2012-03-05*** empty log message ***gdbadmin1-1/+1
2012-03-04gdb/Jan Kratochvil3-24/+7
Removed unused code. * libunwind-frame.c (libunwind_frame_unwind) (libunwind_frame_base_address): Remove. * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2012-03-04gdb/Yao Qi2-9/+16
* common/agent.c (gdb_connect_sync_socket): Add _ markup and remove trailing new line. (agent_run_command, agent_run_command): Add _ markup. (agent_capability_check): Likewise.
2012-03-04Fix indent of changelog entries.Yao Qi1-3/+3
2012-03-04gdb/testsuite/Yao Qi2-0/+9
* gdb.base/disp-step-syscall.exp (disp_step_cross_syscall): Catch error messages for KFAIL.
2012-03-04*** empty log message ***gdbadmin1-1/+1
2012-03-03gdb/testsuite/Jan Kratochvil2-0/+38
* gdb.ada/arrayidx.exp: Call get_compiler_info. New variable old_gcc. (print one_two_three, indexes off, print few_reps, indexes off) (print many_reps, indexes off, print empty, indexes off) (print one_two_three, print few_reps, print many_reps, print empty): Call setup_xfail if $gcc_old.
2012-03-03gdb/Jan Kratochvil4-16/+39
* breakpoint.c (set_condition_evaluation_mode): Set CONDITION_EVALUATION_MODE unconditionally. gdb/testsuite/ Implement testsuite workaround for PR breakpoints/13781. * gdb.cp/mb-templates.exp: New loop with variable $workaround. (set breakpoint condition-evaluation host): New conditional command.
2012-03-03gdb/testsuite/Jan Kratochvil2-21/+24
Code cleanup. * gdb.cp/mb-templates.exp: New variables executable. Use it for binfile. use clean_restart. Replace gdb_expect by gdb_test_multiple. Replace GDB restart by kill and delete_breakpoints. Replace breakpoint number 1 by $bpnum. Four times.
2012-03-03gdb:Yao Qi14-33/+182
* common/agent.c (agent_look_up_symbols): Add one parameter 'arg'. * common/agent.h: Update declaration. * inf-child.c (inf_child_use_agent): New. (inf_child_can_use_agent): New. (inf_child_target): Initialize fields `to_use_agent' and `to_can_use_agent'. * agent.c (agent_new_objfile): New. (_initialize_agent): Add agent_new_objfile to new_objfile observer. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): New. (linux_target_install_ops): Initialize field `to_static_tracepoint_markers_by_strid'. * remote.c (free_current_marker): Move it to ... * tracepoint.c (free_current_marker): ... here. New. (cleanup_target_stop): New. * tracepoint.h: Declare free_current_marker. * NEWS: Add one entry about `info static-tracepoint-marker'. gdb/gdbserver: * tracepoint.c (tracepoint_look_up_symbols): Update call to agent_look_up_symbols. gdb/testsuite: * gdb.trace/strace.exp: run strace_info_marker in linux native gdb.
2012-03-03gdb/testsuite/Jan Kratochvil2-1/+19
Setup KFAIL for PR server/13796. * gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.
2012-03-03gdb:Yao Qi9-32/+49
* common/agent.c (agent_loaded_p): New. (agent_look_up_symbols): New global. * common/agent.h: Declare agent_loaded_p. gdb/gdbserver: * Makefile.in (linux-low.o): Keep dependence on agent.h. (linux-x86-low.o): Likewise. * server.h: Remove in_process_agent_loaded. * tracepoint.c (in_process_agent_loaded): Removed. Moved it common/agent.c. Update callers.
2012-03-03gdb:Yao Qi6-9/+98
* common/agent.c (struct ipa_sym_addresses) <addr_capability>: New. (agent_capability_check, agent_capability_invalidate): New. (symbol_list): New array element. * common/agent.h (enum agent_capa): New. * target.c (target_pre_inferior): Call agent_capability_invalidate. gdb/gdbserver: * tracepoint.c (gdb_agent_capability): New global. (in_process_agent_loaded_ust): Renamed to `in_process_agent_supports_ust'. Update callers. (in_process_agent_supports_ust): Call agent_capability_check. (clear_installed_tracepoints): Assert that agent supports agent.
2012-03-03gdb:Yao Qi16-3/+300
* target.h (struct target_ops) <to_use_agent>: New field. (struct target_ops) <to_can_use_agent>: New field. (target_use_agent, target_can_use_agent): New macro. * target.c (update_current_target): Update. * remote.c: New enum `PACKET_QAgent'. (remote_protocol_features): Add a new element. (remote_use_agent, remote_can_use_agent): New. (init_remote_ops): Initialize field `can_use_agent' with remote_can_use_agent. Intiailize field `use_agent' with remote_use_agent. * common/agent.c (use_agent): New global. * common/agent.h: Declare it. * tracepoint.c (info_static_tracepoint_markers_command): Add comment. * Makefile.in (SFILES): Add common/agent.c and agent.c. (COMMON_OBS): Add common/agent.o and agent.o (common-agent.o): New rule. * agent.c: New. gdb/doc: * gdb.texinfo (In-Process Agent): New node. Document new commands. (General Query Packets): Add packet `QAgent'. gdb/gdbserver: * linux-low.c (linux_supports_agent): New. (linux_target_ops): Initialize field `supports_agent' with linux_supports_agent. * target.h (struct target_ops) <supports_agent>: New. (target_supports_agent): New macro. * server.c (handle_general_set): Handle packet 'QAgent'. (handle_query): Send `QAgent+'. * Makefile.in (server.o): Depends on agent.h.
2012-03-03gdb:Yao Qi12-231/+443
* common/agent.c: New. * common/agent.h: New. * configure.ac: Add `sys/socket.h' and `sys/un.h' to AC_CHECK_HEADERS. * configure, configh.in: Regenerated. gdb/gdbserver: * Makefile.in (OBS): Add agent.o. Add new rule for agent.o. Track dependence of tracepoint.c on agent.h. * tracepoint.c (run_inferior_command_1): (run_inferior_command): Call agent_run_command. (gdb_ust_connect_sync_socket): Deleted. Move it to common/agent.c. (resume_thread, stop_thread): Likewise. (gdb_ust_socket_init): Renamed to ... (gdb_agent_socket_init): ... New. (gdb_ust_thread): Renamed to ... (gdb_agent_helper_thread): ... New. (gdb_ust_init): Move some code to ... (gdb_agent_init): ... here. New. [HAVE_UST]: Call gdb_ust_init. (initialize_tracepoint_ftlib): Call gdb_agent_init. * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. * config.in, configure: Regenerated.
2012-03-03 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR registerKevin Buettner2-1/+15
unless it exists for this architecture.
2012-03-03*** empty log message ***gdbadmin1-1/+1
2012-03-02New Ada testcase for breakpoints on operators.Joel Brobecker5-0/+324
gdb/testsuite/ChangeLog: * gdb.ada/operator_bp: New testcase.
2012-03-02Testcase: "info locals" with Ada renamings.Joel Brobecker5-0/+103
gdb/testsuite/ChangeLog: * gdb.ada/info_locals_renaming: New testcase.
2012-03-02 * gdb.base/nextoverexit.c: New file.Tom Tromey3-0/+61
* gdb.base/nextoverexit.exp: New file.
2012-03-02language-specific read_var_value for Ada renamingsJoel Brobecker14-6/+105
The purpose of this patch is to better support renamings in the "info locals" command. Consider ... procedure Foo is GV : Integer renames Pck.Global_Variable; begin Increment (GV); -- STOP end Foo; ... Pck.Global_Variable is just an integer. After having stopped at the "STOP" line, "info locals" yields: (gdb) info locals gv = <error reading variable gv (Cannot access memory at address 0xffffffffffffffff)> In reality, two things are happening: (1) Variable "GV" does not exist, which is normal, since there is "GV" the renaming of another variable; (2) But to allow the user access to that renaming the same way the code has, the compiler produces an artificial variable whose name encodes the renaming: gv___XR_pck__global_variable___XE For practical reasons, the artificial variable itself is given irrelevant types and addresses. But the "info locals" command does not act as if it was a short-cut of "foreach VAR in locals, print VAR". Instead it gets the value of each VAR directly, which does not work in this case, since the variable is artificial and needs to be decoded first. This patch makes the "read_var_value" routine language-specific. The old implementation of "read_var_value" gets renamed to "default_read_var_value" and all languages now use it (unchanged behavior), except for Ada. In Ada, the new function ada_read_var_value checks if we have a renaming, and if so, evaluates its value, or else defers to default_read_var_value. gdb/ChangeLog: * language.h (struct language_defn): New "method" la_read_var_value. * findvar.c: #include "language.h". (default_read_var_value): Renames read_var_value. Rewrite function description. (read_var_value): New function. * value.h (default_read_var_value): Add prototype. * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value): New functions. (ada_language_defn): Add entry for la_read_var_value. * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c, * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update language_defn structures to add entry for new la_read_var_value field.
2012-03-022012-03-02 Tom Tromey <tromey@redhat.com>Pedro Alves5-2/+45
Pedro Alves <palves@redhat.com> PR breakpoints/13776: * breakpoint.c (breakpoint_init_inferior): Delete step-resume breakpoints. (delete_longjmp_breakpoint_at_next_stop): New. * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare. * target.c (generic_mourn_inferior): Call mark_breakpoints_out before deleting the inferior. Add comments. * thread.c (clear_thread_inferior_resources): Don't delete lonjmp breakpoints immediately, but only on next stop. Move that code next to where we mark other breakpoints for deletion.
2012-03-02Fix ARI violations in mips-linux-nat.c and mips-tdep.cJoel Brobecker3-2/+9
gdb/ChangeLog: * mips-linux-nat.c (mips_linux_read_description): Add missing i18n marker. * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI violation.
2012-03-02gdb/testsuite/Edjunior Barbosa Machado2-1/+6
2012-03-02 Edjunior Machado <emachado@linux.vnet.ibm.com> * gdb.arch/altivec-abi.exp (altivec_abi_tests): Remove obsolete parameter.
2012-03-022012-03-02 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+7
* linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2012-03-022012-03-02 Pedro Alves <palves@redhat.com>Pedro Alves4-38/+60
* inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. * linux-low.c (struct simple_pid_list): New. (stopped_pids): New a struct simple_pid_list pointer. (add_to_pid_list, pull_pid_from_list): New. (handle_extended_wait): Don't assume the first signal new children report is SIGSTOP. Adjust call to pull_pid_from_list. (linux_wait_for_lwp): Adjust.
2012-03-02 Fix -Wmissing-prototypes build.Ulrich Weigand3-3/+11
* ppc-linux-nat.c (ppc_linux_get_hwcap): Make static. * remote-sim.c (gdbsim_has_all_memory): Likewise. (gdbsim_has_memory): Likewise.