* win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
index e9324d100fb69ed0a210b8628cce9c573a1d3f73..04f706df58fe97956664daaa34cc4697b0cc774a 100644 (file)
@@ -1,3 +1,265 @@
+2010-04-20  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
+       be consistent with other sources of this directory.
+       (init_registers_amd64): Correct name of source file of this function
+       in the comment.
+
+2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * configure.srv (x86_64-*-mingw*): New configuration for Windows
+       64-bit executables.
+
+2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-i386-low.c: Add 64-bit support.
+       (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
+       (init_registers_amd64): Declare.
+       (mappings): Add 64-bit version of array.
+       (init_windows_x86): New function.
+       (the_low_target): Change init_arch field to init_windows_x86.
+
+2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-low.c: Adapt to support also 64-bit architecture.
+       (child_xfer_memory): Use uintptr_t type for local variable `addr'.
+       (get_image_name): Use SIZE_T type for local variable `done'.
+       (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
+       (toolhelp_get_dll_name): Idem.
+       (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
+       Use uintptr_t typecast to avoid warning.
+       (handle_unload_dll): Use uintptr_t typecast to avoid warning.
+       (handle_exception): Use phex_nz to avoid warning.
+       (win32_wait): Remove unused local variable `process'.
+
+2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
+       `amd64-avx.o'.
+
+2010-04-17  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * configure.ac: Use `ws2_32' library for srv_mingw.
+       * configure: Regenerate.
+       * gdbreplay.c: Include winsock2.h instead of winsock.h.
+       * remote-utils.c: Likewise.
+
+2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
+       if __x86_64__ is defined.
+
+2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * configure: Regenerate.
+
+2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * server.c (handle_query): Handle 'qGetTIBAddr' query.
+       * target.h (target_ops): New get_tib_address field.
+       * win32-low.h (win32_thread_info): Add thread_local_base field.
+       * win32-low.c (child_add_thread): Add tlb argument.
+       Set thread_local_base field to TLB.
+       (get_child_debug_event): Adapt to child_add_thread change.
+       (win32_get_tib_address): New function.
+       (win32_target_ops): Set get_tib_address field to
+       win32_get_tib_address.
+       * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
+
+2010-04-12  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-low.c (linux_mourn): Also remove the process.
+       * server.c (handle_target_event): Don't remove the process here.
+       * nto-low.c (nto_mourn): New.
+       (nto_target_ops): Install it.
+       * spu-low.c (spu_mourn): New.
+       (spu_target_ops): Install it.
+       * win32-low.c (win32_mourn): New.
+       (win32_target_ops): Install it.
+
+2010-04-12  Pedro Alves  <pedro@codesourcery.com>
+
+       * server.h (buffer_xml_printf): Remove redundant `;'.
+
+2010-04-12  Pedro Alves  <pedro@codesourcery.com>
+
+       * regcache.c (set_register_cache): Invalidate regcaches before
+       changing the register cache layout.
+       (regcache_invalidate_one): Allow a NULL regcache.
+       * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
+       regcaches before changing the register cache layout or the target
+       regsets.
+
+2010-04-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
+       variable warning on Linux/x86-64.
+
+2010-04-11  Pedro Alves  <pedro@codesourcery.com>
+
+       GDBserver disconnected tracing support.
+
+       * linux-low.c (linux_remove_process): Delete.
+       (add_lwp): Don't set last_resume_kind here.
+       (linux_kill): Use `mourn'.
+       (linux_detach): Use `thread_db_detach', and `mourn'.
+       (linux_mourn): New.
+       (linux_attach_lwp_1): Adjust comment.
+       (linux_attach): last_resume_kind moved the thread_info; adjust.
+       (status_pending_p_callback): Adjust.
+       (linux_wait_for_event_1): Adjust.
+       (count_events_callback, select_singlestep_lwp_callback)
+       (select_event_lwp_callback, cancel_breakpoints_callback)
+       (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
+       (proceed_one_lwp): Adjust.
+       (linux_async): Add debug output.
+       (linux_thread_stopped): New.
+       (linux_pause_all): New.
+       (linux_target_ops): Install linux_mourn, linux_thread_stopped and
+       linux_pause_all.
+       * linux-low.h (struct lwp_info): Delete last_resume_kind field.
+       (thread_db_free): Delete declaration.
+       (thread_db_detach, thread_db_mourn): Declare.
+       * thread-db.c (thread_db_init): Use thread_db_mourn.
+       (thread_db_free): Delete, split in two.
+       (disable_thread_event_reporting): New.
+       (thread_db_detach): New.
+       (thread_db_mourn): New.
+
+       * server.h (struct thread_info) <last_resume_kind>: New field.
+       <attached>: Add comment.
+       <gdb_detached>: New field.
+       (handler_func): Change return type to int.
+       (handle_serial_event, handle_target_event): Ditto.
+       (gdb_connected): Declare.
+       (tracing): Delete.
+       (disconnected_tracing): Declare.
+       (stop_tracing): Declare.
+
+       * server.c (handle_query) <qSupported>: Report support for
+       disconnected tracing.
+       (queue_stop_reply_callback): Account for running threads.
+       (gdb_wants_thread_stopped): New.
+       (gdb_wants_all_threads_stopped): New.
+       (gdb_reattached_process): New.
+       (handle_status): Clear the `gdb_detached' flag of all processes.
+       In all-stop, stop all threads.
+       (main): Be sure to leave tfind mode.  Handle disconnected tracing.
+       (process_serial_event): If the remote connection breaks, or if an
+       exit was forced with "monitor exit", force an event loop exit.
+       Handle disconnected tracing on detach.
+       (handle_serial_event): Adjust.
+       (handle_target_event): If GDB isn't connected, forward events back
+       to the inferior, unless the last process exited, in which case,
+       exit gdbserver.  Adjust interface.
+
+       * remote-utils.c (remote_open): Don't block in accept.  Instead
+       register an event loop source on the listen socket file
+       descriptor.  Refactor bits into ...
+       (listen_desc): ... this new global.
+       (gdb_connected): ... this new function.
+       (enable_async_notification): ... this new function.
+       (handle_accept_event): ... this new function.
+       (remote_close): Clear remote_desc.
+
+       * inferiors.c (add_thread): Set the new thread's last_resume_kind.
+
+       * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
+       New fields.
+       (mourn_inferior): Define.
+       (target_process_qsupported): Avoid the dangling else problem.
+       (thread_stopped): Define.
+       (pause_all): Define.
+       (target_waitstatus_to_string): Declare.
+       * target.c (target_waitstatus_to_string): New.
+
+       * tracepoint.c (tracing): Make extern.
+       (disconnected_tracing): New.
+       (stop_tracing): Make extern.  Handle tracing stops due to GDB
+       disconnecting.
+       (cmd_qtdisconnected): New.
+       (cmd_qtstatus): Report disconnected tracing status in trace reply.
+       (handle_tracepoint_general_set): Handle QTDisconnected.
+
+       * event-loop.c (event_handler_func): Change return type to int.
+       (process_event): Bail out if the event handler wants the event
+       loop to stop.
+       (handle_file_event): Ditto.
+       (start_event_loop): Bail out if the event handler wants the event
+       loop to stop.
+
+       * nto-low.c (nto_target_ops): Adjust.
+       * spu-low.c (spu_wait): Don't remove the process here.
+       (spu_target_ops): Adjust.
+       * win32-low.c (win32_wait): Don't remove the process here.
+       (win32_target_ops): Adjust.
+
+2010-04-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * regcache.c (realloc_register_cache): Invalidate inferior's
+       regcache before recreating it.
+
+2010-04-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
+
+2010-04-09  Stan Shebs  <stan@codesourcery.com>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * server.h (LONGEST): New.
+       (struct thread_info) <while_stepping>: New field.
+       (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
+       Declare.
+       (initialize_tracepoint, handle_tracepoint_general_set)
+       (handle_tracepoint_query, tracepoint_finished_step)
+       (tracepoint_was_hit, release_while_stepping_state_list):
+       (current_traceframe): Declare.
+       * server.c (handle_general_set): Handle tracepoint packets.
+       (read_memory): New.
+       (write_memory): New.
+       (handle_search_memory_1): Use read_memory.
+       (handle_query): Report support for conditional tracepoints, trace
+       state variables, and tracepoint sources.  Handle tracepoint
+       queries.
+       (main): Initialize the tracepoints module.
+       (process_serial_event): Handle traceframe reads/writes.
+
+       * linux-low.c (handle_tracepoints): New.
+       (linux_wait_1): Call it.
+       (linux_resume_one_lwp): Handle while-stepping.
+       (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
+       (linux_target_ops): Install them.
+       * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
+       New field.
+       * linux-x86-low.c (x86_supports_tracepoints): New.
+       (the_low_target). Install it.
+
+       * mem-break.h (delete_breakpoint): Declare.
+       * mem-break.c (delete_breakpoint): Make external.
+
+       * target.h (struct target_ops): Add `supports_tracepoints',
+       `read_pc', and `write_pc' fields.
+       (target_supports_tracepoints): Define.
+       * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
+       (phex_nz): New.
+
+       * regcache.h (struct regcache) <registers_owned>: New field.
+       (init_register_cache, regcache_cpy): Declare.
+       (regcache_read_pc, regcache_write_pc): Declare.
+       (register_cache_size): Declare.
+       (supply_regblock): Declare.
+       * regcache.c (init_register_cache): New.
+       (new_register_cache): Use it.
+       (regcache_cpy): New.
+       (register_cache_size): New.
+       (supply_regblock): New.
+       (regcache_read_pc, regcache_write_pc): New.
+       
+       * tracepoint.c: New.
+
+       * Makefile.in (OBS): Add tracepoint.o.
+       (tracepoint.o): New rule.
+
 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
This page took 0.026894 seconds and 4 git commands to generate.