* inferiors.c (change_inferior_id): Delete.
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
index 76561ffa4130141c6c903baaf74859b810cce2e6..229e7b144edf597ca3438a1e6b6fac7ab8a7df5a 100644 (file)
@@ -1,3 +1,153 @@
+2007-10-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * inferiors.c (change_inferior_id): Delete.
+       (add_pid_to_list, pull_pid_from_list): New.
+       * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
+       (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
+       (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
+       (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
+       (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
+       (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
+       (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
+       (using_threads): Always set to 1.
+       (handle_extended_wait): New.
+       (add_process): Do not set TID.
+       (linux_create_inferior): Set must_set_ptrace_flags.
+       (linux_attach_lwp): Remove TID argument.  Do not check using_threads.
+       Use PTRACE_SETOPTIONS.  Call new_thread_notify.  Update all callers.
+       (linux_thread_alive): Rename TID argument to LWPID.
+       (linux_wait_for_process): Handle unknown processes.  Do not use TID.
+       (linux_wait_for_event): Do not use TID or check using_threads.  Update
+       call to dead_thread_notify.  Call handle_extended_wait.
+       (linux_create_inferior): Use PTRACE_SETOPTIONS.
+       (send_sigstop): Delete sigstop_sent.
+       (wait_for_sigstop): Avoid TID.
+       (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
+       (linux_test_for_tracefork): New.
+       (linux_lookup_signals): Use thread_db_active and
+       linux_supports_tracefork_flag.
+       (initialize_low): Use thread_db_active and linux_test_for_tracefork.
+       * linux-low.h (get_process_thread): Avoid TID.
+       (struct process_ifo): Move thread_known and tid to the end.  Remove
+       sigstop_sent.
+       (linux_attach_lwp, thread_db_init): Update prototypes.
+       * server.h (change_inferior_id): Delete prototype.
+       (add_pid_to_list, pull_pid_from_list): New prototypes.
+       * thread-db.c (thread_db_use_events): New.
+       (find_first_thread): Rename to...
+       (find_one_thread): ...this.  Update callers and messages.  Do not
+       call fatal.  Check thread_db_use_events.  Do not call
+       change_inferior_id or new_thread_notify.
+       (maybe_attach_thread): Update.  Do not call new_thread_notify.
+       (thread_db_init): Set thread_db_use_events.  Check use_events.
+       * utils.c (fatal, warning): Correct message prefix.
+
+2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.in (clean): Remove new files.
+       (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
+       (powerpc-64.o, powerpc-64.c): New rules.
+       * configure.srv: Use alternate register sets for powerpc64-*-linux*
+       with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
+       with SPE.
+       * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
+       SPE targets.
+       (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
+       (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
+       (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
+       (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
+       (target_regsets): Add AltiVec and SPE register sets.
+       * configure.ac: Check for AltiVec and SPE.
+       * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
+       (ppc_fill_vrregset, ppc_store_vrregset): New.
+       (target_regsets): Add AltiVec register set.
+       * configure: Regenerated.
+
+2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-low.c (O_LARGEFILE): Define.
+       (linux_read_memory): Use /proc/PID/mem.
+       * configure.ac: Use AC_GNU_SOURCE.  Check for pread64.
+       * configure, config.in: Regenerated.
+
+2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-low.c (linux_wait_for_event): Do not pass signals while
+       single-stepping.
+
+2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * win32-low.c (create_process): New.
+       (win32_create_inferior): Use create_process instead of
+       CreateProcess.  If create_process failed retry appending an ".exe"
+       suffix.  Store the GetLastError result immediatelly after
+       create_process calls and use it on the call to error.
+
+2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac: Switch license to GPLv3.
+
+2007-08-01  Michael Snyder  <msnyder@access-company.com>
+
+       * remote-utils.c (putpkt_binary): Memory leak, free buf2.
+
+2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
+       typedef.
+       (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
+       (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL.  Get
+       CloseToolhelp32Snapshot.
+       (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
+       CloseToolhelp32Snapshot.
+
+2007-07-27  Michael Snyder  <michael.snyder@access-company.com>
+
+       * server.c (main): Check for inferior exit before main loop.
+
+2007-07-18  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
+       instead of on tmp_desc.
+
+2007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * inferiors.c (all_dlls, dlls_changed, get_dll): New.
+       (add_thread): Minor cleanups.
+       (clear_inferiors): Move lower in the file.  Clear the DLL
+       list.
+       (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
+       * remote-utils.c (prepare_resume_reply): Check dlls_changed.
+       (xml_escape_text): New.
+       * server.c (handle_query): Handle qXfer:libraries:read.  Report it
+       for qSupported.
+       (handle_v_cont): Report errors.
+       (gdbserver_version): Update.
+       (main): Correct size of own_buf.  Do not report initial DLL events.
+       * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
+       (unloaded_dll, xml_escape_text): New.
+       * win32-low.c (enum target_waitkind): Update comments.
+       (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
+       (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
+       (win32_EnumProcessModules, win32_GetModuleInformation)
+       (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
+       (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
+       (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
+       (win32_Module32First, win32_Module32Next, load_toolhelp)
+       (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
+       (get_child_debug_event): Handle DLL events.
+       (win32_wait): Likewise.
+
+2007-07-12  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
+       * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
+
 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * win32-low.c (handle_output_debug_string): Ignore event if not
This page took 0.028023 seconds and 4 git commands to generate.