2012-02-24 Luis Machado <lgustavo@codesourcery>
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
index 83af7f8b8a45ed361be6d7033a5bc83097d062cb..1f28604448d0deb67fd13c86da00d9b2c07b9e4a 100644 (file)
@@ -1,3 +1,147 @@
+2012-02-24  Luis Machado  <lgustavo@codesourcery>
+
+       * server.c (handle_query): Advertise support for target-side
+       breakpoint condition evaluation.
+       (process_point_options): New function.
+       (process_serial_event): When inserting a breakpoint, check for
+       a target-side condition that should be evaluated.
+
+       * mem-break.c: Include regcache.h and ax.h.
+       (point_cond_list_t): New data structure.
+       (breakpoint) <cond_list>: New field.
+       (find_gdb_breakpoint_at): Make non-static.
+       (delete_gdb_breakpoint_at): Clear any target-side
+       conditions.
+       (clear_gdb_breakpoint_conditions): New function.
+       (add_condition_to_breakpoint): Likewise.
+       (add_breakpoint_condition): Likewise.
+       (gdb_condition_true_at_breakpoint): Likewise.
+       (gdb_breakpoint_here): Return result directly instead
+       of going through a local variable.
+
+       * mem-break.h (find_gdb_breakpoint_at): New prototype.
+       (clear_gdb_breakpoint_conditions): Likewise.
+       (add_breakpoint_condition): Likewise.
+       (gdb_condition_true_at_breakpoint): Likewise.
+
+       * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
+       (need_step_over_p): Take target-side breakpoint condition into
+       consideration.
+
+2012-02-24  Luis Machado  <lgustavo@codesourcery>
+
+       * server.h: Include tracepoint.h.
+       (agent_mem_read, agent_get_trace_state_variable_value,
+       agent_set_trace_state_variable_value,
+       agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
+       get_set_tsv_func_addr): New prototypes.
+
+       * ax.h: New include file.
+       * ax.c: New source file.
+
+       * tracepoint.c: Include ax.h.
+       (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
+       agent_expr, eval_result_type): Move to ax.h.
+       (parse_agent_expr): Rename to ...
+       (gdb_parse_agent_expr): ... this, make it non-static and move
+       to ax.h.
+       (unparse_agent_expr) Rename to ...
+       (gdb_unparse_agent_expr): ... this, make it non-static and move
+       to ax.h.
+       (eval_agent_expr): Rename to ...
+       (eval_tracepoint_agent_expr): ... this.
+       (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
+       forward declarations.
+       (add_tracepoint_action): Call gdb_parse_agent_expr (...).
+       (agent_get_trace_state_variable_value): New function.
+       (agent_set_trace_state_variable_value): New function.
+       (cmd_qtdp): Call gdb_parse_agent_expr (...).
+       (response_tracepoint): Call gdb_unparse_agent_expr (...).
+       (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
+       (condition_true_at_tracepoint): Likewise.
+       (parse_agent_expr): Rename to ...
+       (gdb_parse_agent_expr): ... this and move to ax.c.
+       (unparse_agent_expr): Rename to ...
+       (gdb_unparse_agent_expr): ... this and move to ax.c.
+       (gdb_agent_op_name): Move to ax.c.
+       (eval_agent_expr): Rename to ...
+       (gdb_eval_agent_expr): ... this, use regcache passed as parameter
+       and move to ax.c.
+       (eval_tracepoint_agent_expr): New function.
+       (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
+       non-static. 
+       (current_insn_ptr, emit_error, struct bytecode_address): Move to
+       ax.c.
+       (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
+       emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
+       emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
+       emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
+       emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
+       emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
+       emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
+       emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
+       (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
+       (compile_bytecodes): Remove forward declaration.
+       (is_goto_target): Move to ax.c.
+       (compile_bytecodes): Move to ax.c and call
+       agent_get_trace_state_variable_value (...) and
+       agent_set_trace_state_variable_value (...).
+
+       * Makefile.in: Update ax.c and IPA dependencies.
+
+2012-02-24  Pedro Alves  <palves@redhat.com>
+
+       * tracepoint.c (cmd_bigqtbuffer): Rename as ...
+       (cmd_bigqtbuffer_circular): ... this.  Only handle
+       'QTBuffer:circular:'.
+       (handle_tracepoint_general_set): Adjust.
+
+2012-02-16  Yao Qi  <yao@codesourcery.com>
+
+       * inferiors.c: Move code to ...
+       * dll.c: .... here.  New.
+       * server.h: Declare clear_dlls.
+       * Makefile.in (SFILES): Add dll.c.
+       (OBS): Add dll.o
+       (dll.o): New rule.
+
+2012-02-11  Yao Qi  <yao@codesourcery.com>
+
+       * server.c: (handle_monitor_command): Add a new parameter
+       `own_buf'.
+       (handle_query): Update caller.
+
+2012-02-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac: Add readlink to AC_CHECK_FUNCS list.
+       * configure, config.in: Regenerate.
+       * hostio.c: Provide an alternate implementation if HAVE_READLINK
+       is not defined.
+
+2012-02-02  Pedro Alves  <palves@redhat.com>
+
+       Try SIGKILL first, then PTRACE_KILL.
+       * linux-low.c (linux_kill_one_lwp): New.
+       (linux_kill_one_lwp): Rename to ...
+       (kill_one_lwp_callback): ... this.  Use the new
+       linux_kill_one_lwp.
+
+2012-02-02  Pedro Alves  <palves@redhat.com>
+
+       * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
+       inferior.
+
+2012-01-27  Pedro Alves  <palves@redhat.com>
+
+       * linux-low.c (linux_child_pid_to_exec_file): Delete.
+       (elf_64_file_p): Make static.
+       (linux_pid_exe_is_elf_64_file): New.
+       * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
+       Delete declarations.
+       (linux_pid_exe_is_elf_64_file): Declare.
+       * linux-x86-low.c (x86_arch_setup): Use
+       linux_pid_exe_is_elf_64_file.
+
 2012-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * linux-low.c (linux_wait_for_event_1): Rename to ...
This page took 0.027223 seconds and 4 git commands to generate.