* server.c (handle_query): Assign, not compare.
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
index fc6b6e222eb67d3526246da241cd97ab496ca0b4..ad6c68ed2b6f10082080b3b7df839b5522ee7c96 100644 (file)
@@ -1,3 +1,223 @@
+2010-03-24  Pedro Alves  <pedro@codesourcery.com>
+
+       * server.c (handle_query): Assign, not compare.
+
+2010-03-24  Pedro Alves  <pedro@codesourcery.com>
+
+       Teach linux gdbserver to step-over-breakpoints.
+
+       * linux-low.c (can_hardware_single_step): New.
+       (supports_breakpoints): New.
+       (handle_extended_wait): If stopping threads, read the stop pc of
+       the new cloned LWP.
+       (get_pc): New.
+       (get_stop_pc): Add `lwp' parameter.  Handle it.  Bail out if the
+       low target doesn't support retrieving the PC.
+       (add_lwp): Set last_resume_kind to resume_continue.
+       (linux_attach_lwp_1): Adjust comments.  Always set stop_expected.
+       (linux_attach): Don't clear stop_expected.  Set the lwp's
+       last_resume_kind to resume_stop.
+       (linux_detach_one_lwp): Don't check for removed breakpoints.
+       (check_removed_breakpoint): Delete.
+       (status_pending_p): Rename to ...
+       (status_pending_p_callback): ... this.  Don't check for removed
+       breakpoints.  Don't consider threads that are stopped from GDB's
+       perspective.
+       (linux_wait_for_lwp): Always read the stop_pc here.
+       (cancel_breakpoint): New.
+       (step_over_bkpt): New global.
+       (linux_wait_for_event_1): Implement stepping over breakpoints.
+       (gdb_wants_lwp_stopped): New.
+       (gdb_wants_all_stopped): New.
+       (linux_wait_1): Tag threads as gdb-wants-stopped.  Cancel finished
+       single-step traps here.  Store the thread's last reported target
+       wait status.
+       (send_sigstop): Don't clear stop_expected.  Always set it,
+       instead.
+       (mark_lwp_dead): Remove reference to pending_is_breakpoint.
+       (cancel_finished_single_step): New.
+       (cancel_finished_single_steps): New.
+       (wait_for_sigstop): Don't cancel finished single-step traps here.
+       (linux_resume_one_lwp): Don't check for removed breakpoints.
+       Don't set `step' on non-hardware step archs.
+       (linux_set_resume_request): Ignore resume_stop requests if already
+       stopping or stopped.  Set the lwp's last_resume_kind.
+       (resume_status_pending_p): Don't check for removed breakpoints.
+       (need_step_over_p): New.
+       (start_step_over): New.
+       (finish_step_over): New.
+       (linux_resume_one_thread): Always queue a sigstop for resume_stop
+       requests.  Clear the thread's last reported target waitstatus.
+       Don't use the `suspended' flag.  Don't consider pending breakpoints.
+       (linux_resume): Start a step-over if necessary.
+       (proceed_one_lwp): New.
+       (proceed_all_lwps): New.
+       (unstop_all_lwps): New.
+       * linux-low.h (struct lwp_info): Rewrite comment for the
+       `suspended' flag.  Add the `stop_pc' field.  Delete the
+       `pending_stop_pc' field.  Tweak the `stepping' flag's comment.
+       Add `'last_resume_kind' and `need_step_over' fields.
+       * inferiors.c (struct thread_info): Delete, moved elsewhere.
+       * mem-break.c (struct breakpoint): Delete `reinserting' flag.
+       Delete `breakpoint_to_reinsert' field.  New flag `inserted'.
+       (set_raw_breakpoint_at): New.
+       (set_breakpoint_at): Rewrite to use it.
+       (reinsert_breakpoint_handler): Delete.
+       (set_reinsert_breakpoint): New.
+       (reinsert_breakpoint_by_bp): Delete.
+       (delete_reinsert_breakpoints): New.
+       (uninsert_breakpoint): Rewrite.
+       (uninsert_breakpoints_at): New.
+       (reinsert_breakpoint): Rewrite.
+       (reinsert_breakpoints_at): New.
+       (check_breakpoints): Rewrite.
+       (breakpoint_here): New.
+       (breakpoint_inserted_here): New.
+       (check_mem_read): Adjust.
+       * mem-break.h (breakpoints_supported, breakpoint_here)
+       (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
+       (reinsert_breakpoint_by_bp): Delete declaration.
+       (delete_reinsert_breakpoints): Declare.
+       (reinsert_breakpoint): Delete declaration.
+       (reinsert_breakpoints_at): Declare.
+       (uninsert_breakpoint): Delete declaration.
+       (uninsert_breakpoints_at): Declare.
+       (check_breakpoints): Adjust prototype.
+       * server.h: Adjust include order.
+       (struct thread_info): Declare here.  Add a `last_status' field.
+
+2010-03-23  Michael Snyder  <msnyder@vmware.com>
+
+       * server.c (crc32): New function.
+       (handle_query): Add handling for 'qCRC:' request.
+
+2010-03-23  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
+       lwp had been stopped by a watchpoint.
+
+2010-03-16  Pedro Alves  <pedro@codesourcery.com>
+
+       * server.h (internal_error): Declare.
+       (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
+       * utils.c (internal_error): New function.
+
+2010-03-15  Andreas Schwab  <schwab@redhat.com>
+
+       * configure.srv: Fix typo setting srv_regobj.
+
+2010-03-15  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-low.c (fetch_register): Avoid passing a non string literal
+       format to `error'.
+       (usr_store_inferior_registers): Ditto.
+
+2010-03-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-low.c (linux_write_memory): Bail out early if peeking
+       memory failed.
+
+2010-03-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-low.h (struct lwp_info): New fields
+       `stopped_by_watchpoint' and `stopped_data_address'.
+       * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
+       here, and cache them in the lwp object.
+       (wait_for_sigstop): Check stopped_by_watchpoint lwp field
+       directly.
+       (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
+       field.
+       (linux_stopped_by_watchpoint): Rewrite.
+       (linux_stopped_data_address): Rewrite.
+
+2010-03-06  Simo Melenius  <simo.melenius@iki.fi>
+
+       * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
+       switching the current inferior, not before.
+
+2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
+       reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
+       i386-linux.c and amd64-linux.c.
+       (reg-i386.o): Removed.
+       (reg-i386.c): Likewise.
+       (reg-i386-linux.o): Likewise.
+       (reg-i386-linux.c): Likewise.
+       (reg-x86-64.o): Likewise.
+       (reg-x86-64.c): Likewise.
+       (reg-x86-64-linux.o): Likewise.
+       (reg-x86-64-linux.c): Likewise.
+       (i386.o): New.
+       (i386.c): Likewise.
+       (i386-linux.o): Likewise.
+       (i386-linux.c): Likewise.
+       (amd64.o): Likewise.
+       (amd64.c): Likewise.
+       (amd64-linux.o): Likewise.
+       (amd64-linux.c): Likewise.
+
+       * configure.srv (srv_i386_regobj): New.
+       (srv_i386_linux_regobj): Likewise.
+       (srv_amd64_regobj): Likewise.
+       (srv_amd64_linux_regobj): Likewise.
+       (srv_i386_32bit_xmlfiles): Likewise.
+       (srv_i386_64bit_xmlfiles): Likewise.
+       (srv_i386_xmlfiles): Likewise.
+       (srv_amd64_xmlfiles): Likewise.
+       (srv_i386_linux_xmlfiles): Likewise.
+       (srv_amd64_linux_xmlfiles): Likewise.
+       (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj.  Set
+       srv_xmlfiles to $srv_i386_xmlfiles.
+       (i[34567]86-*-mingw32ce*): Likewise.
+       (i[34567]86-*-mingw*): Likewise.
+       (i[34567]86-*-nto*): Likewise.
+       (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
+       and $srv_amd64_linux_regobj.  Set srv_xmlfiles to
+       $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
+       (x86_64-*-linux*): Likewise.
+
+       * linux-x86-low.c (init_registers_x86_64_linux): Removed.
+       (init_registers_amd64_linux): New.
+       (x86_arch_setup): Replace init_registers_x86_64_linux with
+       init_registers_amd64_linux.
+
+2010-02-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       * configure.ac: Check for libdl.  If it is not available link against
+       static libthread_db.
+       * configure: Regenerate.
+
+2010-02-22  Pedro Alves  <pedro@codesourcery.com>
+
+       PR9605
+
+       * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
+       handing a read watchpoint.
+       (i386_low_insert_watchpoint): Read watchpoints aren't supported.
+
+2010-02-12  Doug Evans  <dje@google.com>
+
+       * linux-low.c (linux_supports_tracefork_flag): Document.
+       (linux_look_up_symbols): Add comment.
+
+2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * regcache.c (supply_register): Clear regcache if buf is NULL.
+
+2010-02-02  Nicolas Roche  <roche@sourceware.org>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * inferiors.c (find_inferior): Add function documentation.
+       (unloaded_dll): Handle the case where the unloaded dll has not
+       been previously registered in the dll list.
+
+2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-arm-low.c (thumb_breakpoint_len): Delete.
+       (thumb2_breakpoint): New.
+       (arm_breakpoint_at): Check for Thumb-2 breakpoints.
+
 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * linux-low.c (get_stop_pc): Check for SIGTRAP.
This page took 0.029914 seconds and 4 git commands to generate.