-2014-01-13 Eli Zaretskii <eliz@gnu.org>\r
-\r
- * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from\r
- "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC\r
- versions.\r
-\r
-2014-01-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbserver.c (gdbserver_version): Set copyright year to 2014.\r
- * gdbreplay.c (gdbreplay_version): Likewise.\r
-\r
-2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>\r
-\r
- * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set\r
- iov.iov_len with the real length in use.\r
-\r
-2013-12-13 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * Makefile.in (safe-ctype.o, lbasename.o): New rules.\r
- * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj\r
- for all targets that use win32-low.c.\r
- * win32-low.c (win32_ensure_ntdll_loaded): New function.\r
- (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.\r
-\r
-2013-12-13 Pedro Alves <palves@redhat.com>\r
-\r
- * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED\r
- if equal to TARGET_WAITKIND_LOADED.\r
- * win32-low.c (cached_status): New static global.\r
- (win32_wait): Add declaration.\r
- (do_initial_child_stuff): Flush all initial pending debug events\r
- up to the initial breakpoint.\r
- (win32_wait): If CACHED_STATUS was set, return that instead\r
- of doing a real wait. Remove the code resuming the execution\r
- of the inferior after receiving a TARGET_WAITKIND_LOADED event\r
- during the initial phase. Also remove the code changing\r
- OURSTATUS->KIND from TARGET_WAITKIND_LOADED to\r
- TARGET_WAITKIND_STOPPED.\r
-\r
-2013-12-11 Yao Qi <yao@codesourcery.com>\r
-\r
- * notif.c (handle_notif_ack): Return 0 if no notification\r
- matches.\r
-\r
-2013-11-20 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_set_resume_request): Fix comment.\r
-\r
-2013-11-20 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (resume_status_pending_p): Tweak comment.\r
-\r
-2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>\r
-\r
- * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,\r
- amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.\r
- * configure.srv (srv_i386_regobj): Add i386-mpx.o.\r
- (srv_i386_linux_regobj): Add i386-mpx-linux.o.\r
- (srv_amd64_regobj): Add amd64-mpx.o.\r
- (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.\r
- (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.\r
- (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.\r
- * i387-fp.c (num_pl_bnd_register) Added constant.\r
- (num_pl_bnd_cfg_registers) Added constant.\r
- (struct i387_xsave) Added reserved area and MPX fields.\r
- (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.\r
- * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new\r
- function.\r
- (tdesc_i386_mpx_linux): Add MPX amd64 target.\r
- (init_registers_amd64_mpx_linux): Declare new function.\r
- (tdesc_amd64_mpx_linux): Add MPX amd64 target.\r
- (x86_64_regmap): Add MPX registers.\r
- (x86_linux_read_description): Add MPX case.\r
- (initialize_low_arch): Initialize MPX targets.\r
-\r
-2013-11-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * configure: Rebuild.\r
- * configure.ac: Don't check for stdlib.h.\r
- * gdbreplay.c: Unconditionally include stdlib.h.\r
-\r
-2013-11-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * config.in: Rebuild.\r
- * configure: Rebuild.\r
- * configure.ac: Don't use AC_HEADER_DIRENT.\r
-\r
-2013-11-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * server.h: Don't check HAVE_STRING_H.\r
- * gdbreplay.c: Don't check HAVE_STRING_H.\r
- * configure: Rebuild.\r
-\r
-2013-11-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against\r
- LIBGNU.\r
-\r
-2013-11-08 Tom Tromey <tromey@redhat.com>\r
-\r
- * configure, config.in: Rebuild.\r
- * configure.ac: Remove unused configury.\r
-\r
-2013-11-08 Tom Tromey <tromey@redhat.com>\r
-\r
- * acinclude.m4: Include common.m4, codeset.m4.\r
- * configure, config.in: Rebuild.\r
- * configure.ac: Use GDB_AC_COMMON.\r
-\r
-2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>\r
-\r
- * linux-s390-low.c (HWCAP_S390_TE): New define.\r
- (s390_arch_setup): Consider the TE field in the HWCAP for\r
- determining 'have_regset_tdb'.\r
-\r
-2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>\r
-\r
- PR gdb/16014\r
- * tracepoint.c (download_tracepoint_1): Remove unnecessary double\r
- call to sizeof.\r
-\r
-2013-10-02 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (process_serial_event): Don't output "GDBserver\r
- exiting" if GDB is connected through stdio.\r
- * target.c (mywait): Likewise, be silent if GDB is connected\r
- through stdio.\r
-\r
-2013-10-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_add_threads_after_attach): New function.\r
- (lynx_attach): Remove call to add_thread. Add call to\r
- lynx_add_threads_after_attach instead.\r
-\r
-2013-09-28 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h\r
- * config.in, configure: Regenerated.\r
-\r
-2013-09-18 Yao Qi <yao@codesourcery.com>\r
-\r
- PR server/15959\r
- * server.c (start_inferior): Clear 'resume_info'.\r
-\r
-2013-09-16 Jiong Wang <jiwang@tilera.com>\r
-\r
- * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit\r
- for each register.\r
-\r
-2013-09-16 Jiong Wang <jiwang@tilera.com>\r
-\r
- * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add\r
- linux-tile-low.o to srv_tgtobj.\r
-\r
-2013-09-16 Will Newton <will.newton@linaro.org>\r
-\r
- * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero\r
- out regs.\r
-\r
-2013-09-06 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)\r
- (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)\r
- (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)\r
- (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)\r
- (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)\r
- (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.\r
-\r
-2013-09-06 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove\r
- explicit header dependencies and use $COMPILE/$POSTCOMPILE.\r
-\r
-2013-09-06 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-amd64-ipa.c: Include tracepoint.h.\r
- * linux-i386-ipa.c: Include tracepoint.h.\r
-\r
-2013-09-06 Ricard Wanderlof <ricardw@axis.com>\r
-\r
- * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.\r
- (ps_get_thread_area): New function.\r
-\r
-2013-09-06 Ricard Wanderlof <ricardw@axis.com>\r
-\r
- * linux-crisv32-low.c (elf_gregset_t): Delete typedef.\r
- (initialize_low_arch): Call init_registers_crisv32 rather than\r
- init_register_crisv32.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (handle_vFile, hostio_last_error_from_errno): Move\r
- to ...\r
- * hostio.h: ... this new file.\r
- * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,\r
- win32-low.c: Include hostio.h.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (gdb_client_data, handler_func, callback_handler_func)\r
- (delete_file_handler, add_file_handler, append_callback_event)\r
- (delete_callback_event, start_event_loop, initialize_event_loop):\r
- Move to event-loop.h and include it.\r
- * event-loop.h: New file.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".\r
- * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)\r
- (loaded_dll, unloaded_dll): Move to ...\r
- * dll.h: ... this new file.\r
- * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (current_process, get_thread_process, all_processes)\r
- (add_inferior_to_list, for_each_inferior, current_inferior)\r
- (remove_inferior, add_process, remove_process, find_process_pid)\r
- (have_started_inferiors_p, have_attached_inferiors_p)\r
- (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)\r
- (clear_inferiors, find_inferior, find_inferior_id)\r
- (inferior_target_data, set_inferior_target_data)\r
- (inferior_regcache_data, set_inferior_regcache_data): Move to\r
- inferiors.h, and include it.\r
- * inferiors.h: New file.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (struct emit_ops, current_insn_ptr, emit_error):\r
- Move ...\r
- * ax.h: ... here.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * ax.c, linux-low.c, linux-x86-low.c, server.c: Include\r
- tracepoint.h.\r
- * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)\r
- (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing\r
- (handle_tracepoint_general_set, handle_tracepoint_query)\r
- (tracepoint_finished_step, tracepoint_was_hit)\r
- (release_while_stepping_state_list, current_traceframe)\r
- (in_readonly_region, traceframe_read_mem)\r
- (fetch_traceframe_registers, traceframe_read_sdata)\r
- (traceframe_read_info, struct fast_tpoint_collect_status)\r
- (fast_tracepoint_collecting, force_unlock_trace_buffer)\r
- (handle_tracepoit_bkpts, initialize_low_tracepoint)\r
- (supply_fast_tracepoint_registers)\r
- (supply_static_tracepoint_registers, set_trampoline_buffer_space)\r
- (ipa_tdesc, claim_trampoline_space)\r
- (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)\r
- (agent_mem_read, agent_get_trace_state_variable_value)\r
- (agent_set_trace_state_variable_value, agent_tsv_read)\r
- (agent_mem_read_string, get_raw_reg_func_addr)\r
- (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...\r
- * tracepoint.h: ... this new file.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (perror_with_name, error, fatal, warning, paddress)\r
- (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and\r
- include it.\r
- * utils.h: New file.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (remote_debug, noack_mode, transport_is_reliable)\r
- (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)\r
- (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)\r
- (getpkt, remote_prepare, remote_open, remote_close, write_ok)\r
- (write_enn, initialize_async_io, enable_async_io)\r
- (disable_async_io, check_remote_input_interrupt_request)\r
- (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)\r
- (dead_thread_notify, prepare_resume_reply)\r
- (decode_address_to_semicolon, decode_address, decode_m_packet)\r
- (decode_M_packet, decode_X_packet, decode_xfer_write)\r
- (decode_search_memory_packet, unhexify, hexify)\r
- (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)\r
- (look_up_one_symbol, relocate_instruction)\r
- (monitor_output): Move to remote-utils.h, and include it.\r
- * remote-utils.h: New file.\r
-\r
-2013-09-05 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h (_): Delete.\r
-\r
-2013-09-02 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.\r
- (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is\r
- allocated.\r
- (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.\r
-\r
-2013-09-02 Pierre Muller <muller@sourceware.org>\r
-\r
- * win32-low.c (child_xfer_memory): Check if ReadProcessMemory\r
- or WriteProcessMemory complete successfully and handle\r
- ERROR_PARTIAL_COPY error.\r
-\r
-2013-09-02 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (gdb_read_memory): Return -1 on traceframe memory read\r
- error instead of EIO.\r
-\r
-2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- PR server/15604\r
- * linux-low.c: Include filestuff.h.\r
- (linux_create_inferior) <pid == 0>: Call close_most_fds.\r
- * lynx-low.c: Include filestuff.h.\r
- (lynx_create_inferior) <pid == 0>: Call close_most_fds.\r
- * server.c: Include filestuff.h.\r
- (main): Call notice_open_fds.\r
- * spu-low.c: Include filestuff.h.\r
- (spu_create_inferior) <pid == 0>: Call close_most_fds.\r
-\r
-2013-08-22 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * Makefile.in: Explain why ../target and ../nat are not\r
- listed as include file search paths.\r
- (linux-waitpid.o): New object file rule.\r
- * configure.srv (srv_native_linux_obj): New variable.\r
- Replace all occurrences of linux native object files with\r
- $srv_native_linux_obj.\r
- * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.\r
- (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.\r
- (linux_enable_event_reporting): Remove declaration.\r
- (my_waitpid): Moved to common/linux-waitpid.c.\r
- (linux_wait_for_event): Pass ptid when calling\r
- linux_enable_event_reporting.\r
- (linux_supports_tracefork_flag): Remove.\r
- (linux_enable_event_reporting): Likewise.\r
- (linux_tracefork_grandchild): Remove.\r
- (STACK_SIZE): Moved to common/linux-ptrace.c.\r
- (linux_tracefork_child): Remove.\r
- (linux_test_for_tracefork): Remove.\r
- (linux_look_up_symbols): Call linux_supports_traceclone.\r
- (initialize_low): Remove call to linux_test_for_tracefork.\r
- * linux-low.h (PTRACE_TYPE_ARG3): Move to\r
- common/linux-ptrace.h.\r
- (PTRACE_TYPE_ARG4): Likewise.\r
- Include linux-ptrace.h.\r
-\r
-2013-08-21 Pedro Alves <palves@redhat.com>\r
-\r
- * config.in: Renegerate.\r
-\r
-2013-08-19 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.\r
- (SFILES): Remove $(srcdir)/common/target-common.c and\r
- add $(srcdir)/target/waitstatus.c.\r
- (OBS): Remove target-common.o and add waitstatus.o.\r
- (server_h): Remove $(srcdir)/../common/target-common.h and\r
- add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h\r
- and $(srcdir)/../target/waitstatus.h.\r
- (target-common.o): Remove.\r
- (waitstatus.o): New target object file.\r
- * target.h: Do not include target-common.h and\r
- include target/resume.h, target/wait.h and\r
- target/waitstatus.h.\r
-\r
-2013-08-13 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE\r
- to PTRACE_TYPE_ARG3.\r
- * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE\r
- to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to\r
- PTRACE_TYPE_ARG4.\r
- * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.\r
- (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.\r
-\r
-2013-07-27 Jie Zhang <jie@codesourcery.com>\r
- Daniel Jacobowitz <dan@codesourcery.com>\r
- Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (SFILES): Add common/mips-linux-watch.c.\r
- (mips-linux-watch.o): New rule.\r
- (mips_linux_watch_h): New variable.\r
- * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to\r
- srv_tgtobj.\r
- * linux-mips-low.c: Include mips-linux-watch.h.\r
- (struct arch_process_info, struct arch_lwp_info): New.\r
- (update_watch_registers_callback): New function.\r
- (mips_linux_new_process, mips_linux_new_thread) New functions.\r
- (mips_linux_prepare_to_resume, mips_insert_point): New\r
- functions.\r
- (mips_remove_point, mips_stopped_by_watchpoint): New\r
- functions.\r
- (rsp_bp_type_to_target_hw_bp_type): New function.\r
- (mips_stopped_data_address): New function.\r
- (the_low_target): Add watchpoint support functions.\r
-\r
-2013-07-27 Yao Qi <yao@codesourcery.com>\r
-\r
- * i386-low.c: Include break-common.h.\r
- (enum target_hw_bp_type): Remove.\r
-\r
-2013-07-24 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * Makefile.in (SFILES): /common/target-common.c.\r
- (OBS): Add target-common.o.\r
- (server_h): Add $(srcdir)/../common/target-common.h.\r
- (target-common.o): New target.\r
- * server.c (queue_stop_reply_callback): Free\r
- status string after use.\r
- * target.c (target_waitstatus_to_string): Remove.\r
- * target.h: Include target-common.h.\r
- (resume_kind): Likewise.\r
- (target_waitkind): Likewise.\r
- (target_waitstatus): Likewise.\r
- (TARGET_WNOHANG): Likewise.\r
-\r
-2013-07-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (host_alias): Use @host_noncanonical@.\r
- (target_alias): Use @target_noncanonical@.\r
- * configure.ac: Use ACX_NONCANONICAL_TARGET and\r
- ACX_NONCANONICAL_HOST.\r
- * configure: Regenerated.\r
-\r
- Revert:\r
- 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>\r
-\r
- * configure.ac (version_host, version_target): Set and AC_SUBST them.\r
- * configure: Rebuild.\r
- * Makefile.in (version_host, version_target): Get from configure.\r
- (version.c): Use $(version_host) and $(version_target).\r
-\r
-2013-07-03 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (config.status): Depend on development.sh.\r
- * acinclude.m4: Include libmcheck.m4.\r
- * configure: Regenerate.\r
-\r
-2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>\r
-\r
- * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI\r
- attribute inside the parentheses.\r
- (winapi_DebugSetProcessKillOnExit): Ditto.\r
- (winapi_DebugBreakProcess): Ditto.\r
- (winapi_GenerateConsoleCtrlEvent): Ditto.\r
-\r
-2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>\r
-\r
- * notif.h (notif_event): Add a dummy member to avoid compiler\r
- errors.\r
-\r
-2013-07-01 Pedro Alves <palves@redhat.com>\r
-\r
- * hostio.c (HOSTIO_PATH_MAX): Define.\r
- (require_filename, handle_open, handle_unlink, handle_readlink):\r
- Use it.\r
-\r
-2013-07-01 Pedro Alves <palves@redhat.com>\r
-\r
- * server.h: Include "pathmax.h".\r
- * linux-low.c: Don't include sys/param.h.\r
- (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of\r
- MAXPATHLEN.\r
- * win32-low.c: Don't include sys/param.h.\r
- (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.\r
-\r
-2013-07-01 Pedro Alves <palves@redhat.com>\r
-\r
- * event-loop.c: Don't check HAVE_UNISTD_H before including\r
- <unistd.h>.\r
- * gdbreplay.c: Likewise.\r
- * remote-utils.c: Likewise.\r
- * server.c: Likewise.\r
- * configure.ac: Don't check for unistd.h.\r
- * configure: Regenerate.\r
-\r
-2013-06-28 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (version.c): Use version.in, not\r
- common/version.in.\r
-\r
-2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>\r
-\r
- * configure.ac (version_host, version_target): Set and AC_SUBST them.\r
- * configure: Rebuild.\r
- * Makefile.in (version_host, version_target): Get from configure.\r
- (version.c): Use $(version_host) and $(version_target).\r
-\r
-2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>\r
-\r
- Fix trace-status to output user name without trailing colon.\r
- * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.\r
-\r
-2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>\r
-\r
- Fix trace-status to output proper start-time and stop-time.\r
- * tracepoint.c (cmd_qtstatus): Modify trace-status output to\r
- output start time and stop time in hex as gdb expects.\r
-\r
-2013-06-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * tracepoint.c (build_traceframe_info_xml): Output trace state\r
- variables present in the trace buffer.\r
-\r
-2013-06-24 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (version.c): Use bfd/version.h, common/version.in,\r
- create-version.sh.\r
- (version.o): Remove.\r
- * gdbreplay.c: Include version.h.\r
- (version, host_name): Don't declare.\r
- * server.h: Include version.h.\r
- (version, host_name): Don't declare.\r
-\r
-2013-06-12 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-x86-low.c (linux_is_elf64): Delete global.\r
- (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global\r
- with local linux_pid_exe_is_elf_64_file use.\r
-\r
-2013-06-11 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (regset_disabled, disable_regset): New functions.\r
- (regsets_fetch_inferior_registers)\r
- (regsets_store_inferior_registers): Use them.\r
- (initialize_regsets_info); Don't allocate the disabled_regsets\r
- array here.\r
- * linux-low.h (struct regsets_info) <disabled_regsets>: Extend\r
- comment.\r
-\r
-2013-06-11 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (initialize_regsets_info): Use xcalloc instead of\r
- xmalloc.\r
-\r
-2013-06-11 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-x86-low.c (initialize_low_arch): Call\r
- init_registers_x32_avx_linux.\r
-\r
-2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- Fix compatibility with Android Bionic.\r
- * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if\r
- it is not empty.\r
-\r
-2013-06-07 Pedro Alves <palves@redhat.com>\r
-\r
- PR server/14823\r
- * Makefile.in (OBS): Add tdesc.o.\r
- (IPA_OBJS): Add tdesc-ipa.o.\r
- (tdesc-ipa.o): New rule.\r
- * ax.c (gdb_eval_agent_expr): Adjust register_size call to new\r
- interface.\r
- * linux-low.c (new_inferior): Delete.\r
- (disabled_regsets, num_regsets): Delete.\r
- (linux_add_process): Adjust to set the new per-process\r
- new_inferior flag.\r
- (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.\r
- (linux_wait_for_lwp): Adjust. Only call arch_setup if the event\r
- was a stop. When calling arch_setup, switch the current inferior\r
- to the thread that got an event.\r
- (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.\r
- (regsets_fetch_inferior_registers)\r
- (regsets_store_inferior_registers): New regsets_info parameter.\r
- Adjust to use it.\r
- (linux_register_in_regsets): New regs_info parameter. Adjust to\r
- use it.\r
- (register_addr, fetch_register, store_register): New usrregs_info\r
- parameter. Adjust to use it.\r
- (usr_fetch_inferior_registers, usr_store_inferior_registers): New\r
- parameter regs_info. Adjust to use it.\r
- (linux_fetch_registers): Get the current inferior's regs_info, and\r
- adjust to use it.\r
- (linux_store_registers): Ditto.\r
- [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.\r
- (initialize_low): Don't initialize the target_regsets here. Call\r
- initialize_low_arch.\r
- * linux-low.h (target_regsets): Delete declaration.\r
- (struct regsets_info): New.\r
- (struct usrregs_info): New.\r
- (struct regs_info): New.\r
- (struct process_info_private) <new_inferior>: New field.\r
- (struct linux_target_ops): Delete the num_regs, regmap, and\r
- regset_bitmap fields. New field regs_info.\r
- [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.\r
- * i387-fp.c (num_xmm_registers): Delete.\r
- (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno\r
- calls to new interface.\r
- (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)\r
- (i387_xsave_to_cache): Adjust find_regno calls to new interface.\r
- Infer the number of xmm registers from the regcache's target\r
- description.\r
- * i387-fp.h (num_xmm_registers): Delete.\r
- * inferiors.c (add_thread): Don't install the thread's regcache\r
- here.\r
- * proc-service.c (gregset_info): Fetch the current inferior's\r
- regs_info. Adjust to use it.\r
- * regcache.c: Include tdesc.h.\r
- (register_bytes, reg_defs, num_registers)\r
- (gdbserver_expedite_regs): Delete.\r
- (get_thread_regcache): If the thread doesn't have a regcache yet,\r
- create one, instead of aborting gdbserver.\r
- (regcache_invalidate_one): Rename to ...\r
- (regcache_invalidate_thread): ... this.\r
- (regcache_invalidate_one): New.\r
- (regcache_invalidate): Only invalidate registers of the current\r
- process.\r
- (init_register_cache): Add target_desc parameter, and use it.\r
- (new_register_cache): Ditto. Assert the target description has a\r
- non zero registers_size.\r
- (regcache_cpy): Add assertions. Adjust.\r
- (realloc_register_cache, set_register_cache): Delete.\r
- (registers_to_string, registers_from_string): Adjust.\r
- (find_register_by_name, find_regno, find_register_by_number)\r
- (register_cache_size): Add target_desc parameter, and use it.\r
- (free_register_cache_thread, free_register_cache_thread_one)\r
- (regcache_release, register_cache_size): New.\r
- (register_size): Add target_desc parameter, and use it.\r
- (register_data, supply_register, supply_register_zeroed)\r
- (supply_regblock, supply_register_by_name, collect_register)\r
- (collect_register_as_string, collect_register_by_name): Adjust.\r
- * regcache.h (struct target_desc): Forward declare.\r
- (struct regcache) <tdesc>: New field.\r
- (init_register_cache, new_register_cache): Add target_desc\r
- parameter.\r
- (regcache_invalidate_thread): Declare.\r
- (regcache_invalidate_one): Delete declaration.\r
- (regcache_release): Declare.\r
- (find_register_by_number, register_cache_size, register_size)\r
- (find_regno): Add target_desc parameter.\r
- (gdbserver_expedite_regs, gdbserver_xmltarget): Delete\r
- declarations.\r
- * remote-utils.c: Include tdesc.h.\r
- (outreg, prepare_resume_reply): Adjust.\r
- * server.c: Include tdesc.h.\r
- (gdbserver_xmltarget): Delete declaration.\r
- (get_features_xml, process_serial_event): Adjust.\r
- * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward\r
- declare.\r
- (struct process_info) <tdesc>: New field.\r
- (ipa_tdesc): Declare.\r
- * tdesc.c: New file.\r
- * tdesc.h: New file.\r
- * tracepoint.c: Include tdesc.h.\r
- [IN_PROCESS_AGENT] (ipa_tdesc): Define.\r
- (get_context_regcache): Adjust to pass ipa_tdesc down.\r
- (do_action_at_tracepoint): Adjust to get the register cache size\r
- from the context regcache's description.\r
- (traceframe_walk_blocks): Adjust to get the register cache size\r
- from the current trace frame's description.\r
- (traceframe_get_pc): Adjust to get current trace frame's\r
- description and pass it down.\r
- (gdb_collect): Adjust to get the register cache size from the\r
- IPA's description.\r
- * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.\r
- (gdbserver_xmltarget): Delete.\r
- (initialize_low_tracepoint): Set the ipa's target description.\r
- * linux-i386-ipa.c (tdesc_i386_linux): Declare.\r
- (initialize_low_tracepoint): Set the ipa's target description.\r
- * linux-x86-low.c: Include tdesc.h.\r
- [__x86_64__] (is_64bit_tdesc): New.\r
- (ps_get_thread_area, x86_get_thread_area): Use it.\r
- (i386_cannot_store_register): Rename to ...\r
- (x86_cannot_store_register): ... this. Use is_64bit_tdesc.\r
- (i386_cannot_fetch_register): Rename to ...\r
- (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.\r
- (x86_fill_gregset, x86_store_gregset): Adjust register_size calls\r
- to new interface.\r
- (target_regsets): Rename to ...\r
- (x86_regsets): ... this.\r
- (x86_get_pc, x86_set_pc): Adjust register_size calls to new\r
- interface.\r
- (x86_siginfo_fixup): Use is_64bit_tdesc.\r
- [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)\r
- (tdesc_x32_avx_linux, tdesc_x32_linux)\r
- (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):\r
- Declare.\r
- (x86_linux_update_xmltarget): Delete.\r
- (I386_LINUX_XSAVE_XCR0_OFFSET): Define.\r
- (have_ptrace_getfpxregs, have_ptrace_getregset): New.\r
- (AMD64_LINUX_USER64_CS): New.\r
- (x86_linux_read_description): New, based on\r
- x86_linux_update_xmltarget.\r
- (same_process_callback): New.\r
- (x86_arch_setup_process_callback): New.\r
- (x86_linux_update_xmltarget): New.\r
- (x86_regsets_info): New.\r
- (amd64_linux_regs_info): New.\r
- (i386_linux_usrregs_info): New.\r
- (i386_linux_regs_info): New.\r
- (x86_linux_regs_info): New.\r
- (x86_arch_setup): Reimplement.\r
- (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.\r
- (x86_emit_ops): Ditto.\r
- (the_low_target): Adjust. Install x86_linux_regs_info,\r
- x86_cannot_fetch_register, and x86_cannot_store_register.\r
- (initialize_low_arch): New.\r
- * linux-ia64-low.c (tdesc_ia64): Declare.\r
- (ia64_fetch_register): Adjust.\r
- (ia64_usrregs_info, regs_info): New globals.\r
- (ia64_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-sparc-low.c (tdesc_sparc64): Declare.\r
- (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):\r
- Adjust.\r
- (sparc_arch_setup): New function.\r
- (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)\r
- (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)\r
- (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)\r
- (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)\r
- (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)\r
- (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)\r
- (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)\r
- (tdesc_powerpc_isa205_vsx64l): Declare.\r
- (ppc_cannot_store_register, ppc_collect_ptrace_register)\r
- (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)\r
- (ppc_set_pc, ppc_get_hwcap): Adjust.\r
- (ppc_usrregs_info): Forward declare.\r
- (!__powerpc64__) ppc_regmap_adjusted: New global.\r
- (ppc_arch_setup): Adjust to the current process'es target\r
- description.\r
- (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)\r
- (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)\r
- (ppc_store_evrregset): Adjust.\r
- (target_regsets): Rename to ...\r
- (ppc_regsets): ... this, and make static.\r
- (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.\r
- (ppc_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)\r
- (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)\r
- (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)\r
- (tdesc_s390x_linux64v2): Declare.\r
- (s390_collect_ptrace_register, s390_supply_ptrace_register)\r
- (s390_fill_gregset, s390_store_last_break): Adjust.\r
- (target_regsets): Rename to ...\r
- (s390_regsets): ... this, and make static.\r
- (s390_get_pc, s390_set_pc): Adjust.\r
- (s390_get_hwcap): New target_desc parameter, and use it.\r
- [__s390x__] (have_hwcap_s390_high_gprs): New global.\r
- (s390_arch_setup): Adjust to set the current process'es target\r
- description. Don't adjust the regmap.\r
- (s390_usrregs_info, s390_regsets_info, regs_info): New globals.\r
- [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)\r
- (regs_info_3264): New globals.\r
- (s390_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)\r
- (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.\r
- [__mips64] (init_registers_mips_linux)\r
- (init_registers_mips_dsp_linux): Delete defines.\r
- [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.\r
- (have_dsp): New global.\r
- (mips_read_description): New, based on mips_arch_setup.\r
- (mips_arch_setup): Reimplement.\r
- (get_usrregs_info): New function.\r
- (mips_cannot_fetch_register, mips_cannot_store_register)\r
- (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)\r
- (mips_fill_fpregset, mips_store_fpregset): Adjust.\r
- (target_regsets): Rename to ...\r
- (mips_regsets): ... this, and make static.\r
- (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)\r
- (dsp_regs_info, regs_info): New globals.\r
- (mips_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)\r
- (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):\r
- Declare.\r
- (arm_fill_vfpregset, arm_store_vfpregset): Adjust.\r
- (arm_read_description): New, with bits factored from\r
- arm_arch_setup.\r
- (arm_arch_setup): Reimplement.\r
- (target_regsets): Rename to ...\r
- (arm_regsets): ... this, and make static.\r
- (arm_regsets_info, arm_usrregs_info, regs_info): New globals.\r
- (arm_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-m68k-low.c (tdesc_m68k): Declare.\r
- (target_regsets): Rename to ...\r
- (m68k_regsets): ... this, and make static.\r
- (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.\r
- (m68k_regs_info): New function.\r
- (m68k_arch_setup): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-sh-low.c (tdesc_sharch): Declare.\r
- (target_regsets): Rename to ...\r
- (sh_regsets): ... this, and make static.\r
- (sh_regsets_info, sh_usrregs_info, regs_info): New globals.\r
- (sh_regs_info, sh_arch_setup): New functions.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-bfin-low.c (tdesc_bfin): Declare.\r
- (bfin_arch_setup): New function.\r
- (bfin_usrregs_info, regs_info): New globals.\r
- (bfin_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-cris-low.c (tdesc_cris): Declare.\r
- (cris_arch_setup): New function.\r
- (cris_usrregs_info, regs_info): New globals.\r
- (cris_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-cris-low.c (tdesc_crisv32): Declare.\r
- (cris_arch_setup): New function.\r
- (cris_regsets_info, cris_usrregs_info, regs_info): New globals.\r
- (cris_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-m32r-low.c (tdesc_m32r): Declare.\r
- (m32r_arch_setup): New function.\r
- (m32r_usrregs_info, regs_info): New globals.\r
- (m32r_regs_info): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)\r
- (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.\r
- (tic6x_usrregs_info): Forward declare.\r
- (tic6x_read_description): New function, based on ...\r
- (tic6x_arch_setup): ... this. Reimplement.\r
- (target_regsets): Rename to ...\r
- (tic6x_regsets): ... this, and make static.\r
- (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.\r
- (tic6x_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-xtensa-low.c (tdesc_xtensa): Declare.\r
- (xtensa_fill_gregset, xtensa_store_gregset): Adjust.\r
- (target_regsets): Rename to ...\r
- (xtensa_regsets): ... this, and make static.\r
- (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New\r
- globals.\r
- (xtensa_arch_setup, xtensa_regs_info): New functions.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-nios2-low.c (tdesc_nios2_linux): Declare.\r
- (nios2_arch_setup): Set the current process'es tdesc.\r
- (target_regsets): Rename to ...\r
- (nios2_regsets): ... this.\r
- (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.\r
- (nios2_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-aarch64-low.c (tdesc_aarch64): Declare.\r
- (aarch64_arch_setup): Set the current process'es tdesc.\r
- (target_regsets): Rename to ...\r
- (aarch64_regsets): ... this.\r
- (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.\r
- (aarch64_regs_info): New function.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare\r
- globals.\r
- (target_regsets): Rename to ...\r
- (tile_regsets): ... this.\r
- (tile_regsets_info, tile_usrregs_info, regs_info): New globals.\r
- (tile_regs_info): New function.\r
- (tile_arch_setup): Set the current process'es tdesc.\r
- (the_low_target): Adjust.\r
- (initialize_low_arch): New function.\r
- * spu-low.c (tdesc_spu): Declare.\r
- (spu_create_inferior, spu_attach): Set the new process'es tdesc.\r
- * win32-arm-low.c (tdesc_arm): Declare.\r
- (arm_arch_setup): New function.\r
- (the_low_target): Install arm_arch_setup instead of\r
- init_registers_arm.\r
- * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.\r
- (init_windows_x86): Rename to ...\r
- (i386_arch_setup): ... this. Set `win32_tdesc'.\r
- (the_low_target): Adjust.\r
- * win32-low.c (win32_tdesc): New global.\r
- (child_add_thread): Don't create the thread cache here.\r
- (do_initial_child_stuff): Set the new process'es tdesc.\r
- * win32-low.h (struct target_desc): Forward declare.\r
- (win32_tdesc): Declare.\r
- * lynx-i386-low.c (tdesc_i386): Declare global.\r
- (lynx_i386_arch_setup): Set `lynx_tdesc'.\r
- * lynx-low.c (lynx_tdesc): New global.\r
- (lynx_add_process): Set the new process'es tdesc.\r
- * lynx-low.h (struct target_desc): Forward declare.\r
- (lynx_tdesc): Declare global.\r
- * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.\r
- (lynx_ppc_arch_setup): Set `lynx_tdesc'.\r
- * nto-low.c (nto_tdesc): New global.\r
- (do_attach): Set the new process'es tdesc.\r
- * nto-low.h (struct target_desc): Forward declare.\r
- (nto_tdesc): Declare.\r
- * nto-x86-low.c (tdesc_i386): Declare.\r
- (nto_x86_arch_setup): Set `nto_tdesc'.\r
-\r
-2013-06-04 Gary Benson <gbenson@redhat.com>\r
-\r
- * server.c (handle_query): Add "augmented-libraries-svr4-read+"\r
- to qSupported response when appropriate.\r
- (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read\r
- with nonzero-length annex.\r
- * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle\r
- arguments supplied in annex.\r
-\r
-2013-05-31 Doug Evans <dje@google.com>\r
-\r
- PR server/15594\r
- * linux-x86-low.c (ps_get_thread_area): Properly extend address to\r
- 64 bits in 64-cross-32 environment.\r
-\r
-2013-05-28 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.\r
- (aarch64-without-fpu.c): Delete rule.\r
- * configure.srv (aarch64*-*-linux*): Remove references to\r
- aarch64-without-fpu.o and aarch64-without-fpu.xml.\r
- * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove\r
- declaration.\r
-\r
-2013-05-24 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex\r
- instead of strchr/decode_address. Error if the range isn't split\r
- with a ','. Don't assume there's be a ':' in the action.\r
-\r
-2013-05-23 Yao Qi <yao@codesourcery.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (lwp_in_step_range): New function.\r
- (linux_wait_1): If the thread was range stepping and stopped\r
- outside the stepping range, report the stop to GDB. Otherwise,\r
- continue stepping. Add range stepping debug output.\r
- (linux_set_resume_request): Copy the step range from the resume\r
- request to the lwp.\r
- (linux_supports_range_stepping): New.\r
- (linux_target_ops) <supports_range_stepping>: Set to\r
- linux_supports_range_stepping.\r
- * linux-low.h (struct linux_target_ops)\r
- <supports_range_stepping>: New field.\r
- (struct lwp_info) <step_range_start, step_range_end>: New fields.\r
- * linux-x86-low.c (x86_supports_range_stepping): New.\r
- (the_low_target) <supports_range_stepping>: Set to\r
- x86_supports_range_stepping.\r
- * server.c (handle_v_cont): Handle 'r' action.\r
- (handle_v_requests): Append ";r" if the target supports range\r
- stepping.\r
- * target.h (struct thread_resume) <step_range_start,\r
- step_range_end>: New fields.\r
- (struct target_ops) <supports_range_stepping>:\r
- New field.\r
- (target_supports_range_stepping): New macro.\r
-\r
-2013-05-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid\r
- confusion in comment.\r
-\r
-2013-05-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (struct process_info_private): New type.\r
- (lynx_add_process): New function.\r
- (lynx_create_inferior, lynx_attach): Replace calls to\r
- add_process by calls to lynx_add_process.\r
- (lynx_resume): If PTID is null, then try using\r
- current_process()->private->last_wait_event_ptid.\r
- Add comments.\r
- (lynx_clear_inferiors): Delete. The contents of that function\r
- has been inlined in lynx_mourn;\r
- (lynx_wait_1): Save the ptid in the process's private data.\r
- (lynx_mourn): Free the process' private data. Replace call\r
- to lynx_clear_inferiors by call to clear_inferiors.\r
-\r
-2013-05-17 Yao Qi <yao@codesourcery.com>\r
-\r
- * i386-low.c (i386_length_and_rw_bits): Move the comment to\r
- the right place.\r
-\r
-2013-05-16 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,\r
- PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.\r
- (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and\r
- PT_TEXT_END_ADDR guards. Update comments.\r
- (linux_target_op) <read_offsets>: Conditionally define to\r
- linux_read_offsets if the target is UCLIBC and if it defines\r
- PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.\r
-\r
-2013-05-06 Sandra Loosemore <sandra@codesourcery.com>\r
- Andrew Jenner <andrew@codesourcery.com>\r
-\r
- * Makefile.in (SFILES): Add linux-nios2-low.c.\r
- (clean): Add action to delete nios2-linux.c.\r
- (nios2-linux.c): New rule.\r
- * configure.srv: Add nios2*-*-linux*.\r
- * linux-nios2-low.c: New.\r
-\r
-2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.\r
-\r
-2013-04-25 Hui Zhu <hui@codesourcery.com>\r
-\r
- PR gdb/15186\r
- * ax.c (ax_printf): Add fflush.\r
-\r
-2013-04-22 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (SFILES): Add filestuff.c.\r
- (OBS): Add filestuff.o.\r
- (filestuff.o): New target.\r
- * config.in, configure: Rebuild.\r
- * configure.ac: Check for fdwalk, pipe2.\r
-\r
-2013-04-17 Pedro Alves <palves@redhat.com>\r
-\r
- * configure.ac (USE_THREAD_DB): Delete variable.\r
- (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.\r
- Don't AC_SUBST USE_THREAD_DB.\r
- * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.\r
- * config.in, configure: Regenerate.\r
-\r
-2013-04-16 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.h (struct lwp_info) <thread_known>: Move under\r
- the USE_THREAD_DB #ifdef.\r
-\r
-2013-04-16 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.\r
- (linux-low.o): Delete rule.\r
- * linux-low.h: Always include "gdb_thread_db.h" instead of\r
- conditionally including thread_db.h.\r
- (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of\r
- HAVE_THREAD_DB_H.\r
-\r
-2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * Makefile.in (install-only): Fix make install regression.\r
-\r
-2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- Convert man pages to texinfo, new gdbinit.5 texinfo page.\r
- * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1\r
- installation.\r
- * gdbserver.1: Remove.\r
-\r
-2013-03-22 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (handle_extended_wait): Don't call\r
- linux_enable_event_reporting.\r
-\r
-2013-03-15 Tony Theodore <tonyt@logyst.com>\r
-\r
- PR build/9098:\r
- * Makefile.in (SHELL): Use @SHELL@.\r
-\r
-2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>\r
-\r
- * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing\r
- compiler warning.\r
-\r
-2013-03-13 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:\r
- Remove extraneous NULL element.\r
-\r
-2013-03-13 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (traceframe_read_tsv): Look for the last matched\r
- 'V' block in trace frame.\r
-\r
-2013-03-11 Markus Metzger <markus.t.metzger@intel.com>\r
-\r
- * target.h (struct target_ops): Add btrace ops.\r
- (target_supports_btrace): New macro.\r
- (target_enable_btrace): New macro.\r
- (target_disable_btrace): New macro.\r
- (target_read_btrace): New macro.\r
- * gdbthread.h (struct thread_info): Add btrace field.\r
- * server.c: Include btrace-common.h.\r
- (handle_btrace_general_set): New function.\r
- (handle_btrace_enable): New function.\r
- (handle_btrace_disable): New function.\r
- (handle_general_set): Call handle_btrace_general_set.\r
- (handle_qxfer_btrace): New function.\r
- (struct qxfer qxfer_packets[]): Add btrace entry.\r
- * inferiors.c (remove_thread): Disable btrace.\r
- * linux-low: Include linux-btrace.h.\r
- (linux_low_enable_btrace): New function.\r
- (linux_low_read_btrace): New function.\r
- (linux_target_ops): Add btrace ops.\r
- * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.\r
- Add srv_linux_btrace=yes.\r
- (x86_64-*-linux*): Add linux-btrace.o.\r
- Add srv_linux_btrace=yes.\r
- * configure.ac: Define HAVE_LINUX_BTRACE.\r
- * config.in: Regenerated.\r
- * configure: Regenerated.\r
-\r
-2013-03-11 Markus Metzger <markus.t.metzger@intel.com>\r
-\r
- * server.c (handle_qxfer): Preserve error message if -3 is\r
- returned.\r
- (qxfer): Document the -3 return value.\r
-\r
-2013-03-11 Markus Metzger <markus.t.metzger@intel.com>\r
-\r
- * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.\r
- (linux_btrace_h): New variable.\r
- (linux-btrace.o): New rule.\r
-\r
-2013-03-08 Stan Shebs <stan@codesourcery.com>\r
- Hafiz Abid Qadeer <abidh@codesourcery.com>\r
-\r
- * tracepoint.c (trace_buffer_size): New global.\r
- (DEFAULT_TRACE_BUFFER_SIZE): New define.\r
- (init_trace_buffer): Change to one-argument function. Allocate\r
- trace buffer memory.\r
- (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to\r
- handle QTBuffer:size packet.\r
- (cmd_bigqtbuffer_size): New function.\r
- (initialize_tracepoint): Call init_trace_buffer with\r
- DEFAULT_TRACE_BUFFER_SIZE.\r
- * server.c (handle_query): Add QTBuffer:size in the\r
- supported packets.\r
-\r
-2013-03-07 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cur_action, cur_step_action): Make them unsigned.\r
- (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead\r
- of -1.\r
- (cmd_qtsp): Adjust condition. Do post increment.\r
- Set cur_action and cur_step_action back to 0.\r
-\r
-2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>\r
-\r
- PR server/15236\r
- * linux-low.c (linux_write_memory): Return early success if LEN is\r
- zero.\r
-\r
-2013-03-05 Corinna Vinschen <vinschen@redhat.de>\r
-\r
- * configure.srv: Add x86_64-*-cygwin* as target.\r
-\r
-2013-02-28 Tom Tromey <tromey@redhat.com>\r
-\r
- * configure.ac: Invoke AC_SYS_LARGEFILE.\r
- * configure, config.in: Rebuild.\r
-\r
-2013-02-28 Corinna Vinschen <vinschen@redhat.com>\r
-\r
- * win32-low.c: Throughout, fix format strings and casts of\r
- printf-like functions to avoid type related warnings on all\r
- platforms.\r
- (get_child_debug_event): Print dwDebugEventCode as hex since\r
- that's how it's usually documented.\r
-\r
-2013-02-28 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of\r
- pulongest.\r
-\r
-2013-02-27 Jiong Wang <jiwang@tilera.com>\r
-\r
- * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.\r
- (reg-tilegx32.c): New rule.\r
- * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.\r
- * linux-tile-low.c (tile_arch_setup): New function. Invoke\r
- different register info initializer according to elf class.\r
- (init_registers_tilgx32): New function. The tilegx32 register info\r
- initializer.\r
- (tile_fill_gregset): Use "uint_reg_t" to represent register size.\r
- (tile_store_gregset): Likewise.\r
-\r
-2013-02-27 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.c (process_point_options): Print debug message when\r
- debug_threads is true.\r
-\r
-2013-02-26 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.\r
-\r
-2013-02-19 Pedro Alves <palves@redhat.com>\r
- Kai Tietz <ktietz@redhat.com>\r
-\r
- PR gdb/15161\r
-\r
- * server.c (handle_query) <CRC check>: Use unpack_varlen_hex\r
- instead of strtoul to extract address from packet.\r
- (process_serial_event) <'z'>: Likewise.\r
-\r
-2013-02-18 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-bfin-low.c (the_low_target): Use NULL instead of 0.\r
-\r
-2013-02-14 Pedro Alves <palves@redhat.com>\r
-\r
- Plug memory leak.\r
-\r
- * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,\r
- TRACING_NOTES and TRACING_STOP_NOTE before clobbering.\r
-\r
-2013-02-14 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (cmd_qtdpsrc): Use savestring.\r
-\r
-2013-02-14 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (save_string): Delete.\r
- (add_tracepoint_action): Use savestring instead of save_string.\r
-\r
-2013-02-12 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-xtensa-low.c: Ditto.\r
- * xtensa-xtregs.c: Ditto.\r
-\r
-2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>\r
-\r
- * thread-db.c (thread_db_get_tls_address): NULL pointer check\r
- thread_db.\r
-\r
-2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>\r
-\r
- * linux-aarch64-low.c (aarch64_arch_setup): Clamp\r
- aarch64_num_wp_regs and aarch64_num_bp_regs to\r
- AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.\r
-\r
-2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>\r
-\r
- * linux-aarch64-low.c (ps_get_thread_area): Replace\r
- PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.\r
-\r
-2013-02-04 Jim MacArthur <jim.macarthur@arm.com>\r
- Marcus Shawcroft <marcus.shawcroft@arm.com>\r
- Nigel Stephens <nigel.stephens@arm.com>\r
- Yufeng Zhang <yufeng.zhang@arm.com>\r
-\r
- * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.\r
- (aarch64.c, aarch64-without-fpu.c): New targets.\r
- * configure.srv (aarch64*-*-linux*): New.\r
- * linux-aarch64-low.c: New file.\r
-\r
-2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>\r
-\r
- * linux-low.c (handle_extended_wait, linux_create_inferior)\r
- (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)\r
- (dequeue_one_deferred_signal, linux_resume_one_thread)\r
- (fetch_register, linux_write_memory, linux_enable_event_reporting)\r
- (linux_tracefork_grandchild, linux_test_for_tracefork)\r
- (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add\r
- PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments\r
- where the argument is 0.\r
-\r
-2013-01-25 Yao Qi <yao@codesourcery.com>\r
-\r
- * event-loop.c: Include "queue.h".\r
- (gdb_event_p): New typedef.\r
- (struct gdb_event) <next_event>: Remove.\r
- (event_queue): Change to QUEUE(gdb_event_p).\r
- (async_queue_event): Remove.\r
- (gdb_event_xfree): New.\r
- (initialize_event_loop): New.\r
- (process_event): Use API from QUEUE.\r
- (wait_for_event): Likewise.\r
- * server.c (main): Call initialize_event_loop.\r
- * server.h (initialize_event_loop): Declare.\r
-\r
-2013-01-18 Yao Qi <yao@codesourcery.com>\r
-\r
- * ax.h (struct eval_agent_expr_context): New.\r
- (gdb_eval_agent_expr): Update declaration.\r
- * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and\r
- TFRAME. Add new argument CTX.\r
- * server.h (struct eval_agent_expr_context): Declare.\r
- (agent_mem_read, agent_tsv_read): Update declaration.\r
- (agent_mem_read_string): Likewise.\r
- * tracepoint.c (eval_tracepoint_agent_expr): Remove.\r
- (add_traceframe_block): Add new argument TPOINT.\r
- Increase TPOINT->traceframe_usage.\r
- (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of\r
- eval_tracepoint_agent_expr.\r
- (condition_true_at_tracepoint): Likewise.\r
- (agent_mem_read): Remove argument TFRAME. Add argument CTX.\r
- (agent_mem_read_string, agent_tsv_read): Likewise.\r
-\r
-2013-01-16 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c (linux_resume_one_lwp): Don't check\r
- 'lwp->bp_reinsert != 0'.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- * lynx-low.c (ptrace_request_to_str): Define a temporary\r
- macro and use it to simplify this function's implementation.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace\r
- sets errno.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_resume): Use the resume_info parameter\r
- to determine the ptid for the lynx_ptrace call, unless\r
- it is equal to minus_one_ptid, in which case we use the\r
- ptid of the current_inferior.\r
- (lynx_wait_1): After having received a thread create/exit\r
- event, resume the inferior's execution using the signaling\r
- thread's ptid, rather than the old ptid.\r
-\r
-2013-01-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_resume): Delete variable ret.\r
-\r
-2013-01-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbreplay.c (gdbreplay_version): Update copyright year.\r
- * server.c (gdbserver_version): Likewise.\r
-\r
-2012-12-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_wait_1): Add debug trace before adding\r
- new thread.\r
-\r
-2012-12-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (ptrace_request_to_str): Add handling for\r
- PTRACE_GETTRACESIG.\r
-\r
-2012-12-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_attach): Delete variable new_process.\r
-\r
-2012-12-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (lynx_create_inferior): Delete variable\r
- new_process.\r
-\r
-2012-12-17 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (ptrace_request_to_str): Do not handle\r
- PTRACE_GETTHREADLIST if this macro does not exist.\r
-\r
-2012-12-15 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (OBS): Add notif.o.\r
- * notif.c, notif.h: New.\r
- * server.c: Include "notif.h".\r
- (struct vstop_notif) <next>: Remove.\r
- <base>: New field.\r
- (queue_stop_reply): Update.\r
- (push_event, send_next_stop_reply): Remove.\r
- (discard_queued_stop_replies): Update.\r
- (notif_stop): New variable.\r
- (handle_v_stopped): Remove.\r
- (handle_v_requests): Don't call handle_v_stopped. Call\r
- handle_ack_notif instead.\r
- (queue_stop_reply_callback): Call notif_event_enque instead\r
- of queue_stop_reply.\r
- (handle_status): Don't call send_next_stop_reply, call\r
- notif_write_event instead.\r
- (kill_inferior_callback): Likewise.\r
- (detach_or_kill_inferior_callback): Likewise.\r
- (main): Call initialize_notif.\r
- (process_serial_event): Call QUEUE_is_empty.\r
- (handle_target_event): Call notif_push instead of push event.\r
- * server.h (push_event): Remove declaration.\r
-\r
-2012-12-10 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)\r
- (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New\r
- macros.\r
- (.c.o): Rewrite.\r
- (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)\r
- (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)\r
- (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)\r
- (amd64-linux-ipa.o, ax.o): Rewrite.\r
- (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)\r
- (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)\r
- (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.\r
- (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)\r
- (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)\r
- (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.\r
- (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)\r
- (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)\r
- (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)\r
- (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)\r
- (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)\r
- (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)\r
- (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)\r
- (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)\r
- (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)\r
- (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)\r
- (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)\r
- (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)\r
- (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)\r
- (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)\r
- (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)\r
- (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)\r
- (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)\r
- (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)\r
- (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)\r
- (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)\r
- (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)\r
- (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)\r
- (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)\r
- (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)\r
- (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)\r
- (reg-tilegx.o): Remove.\r
- (all_object_files): New macro.\r
- Include .deps files.\r
- * aclocal.m4, configure: Rebuild.\r
- * acinclude.m4: Include depstand.m4, lead-dot.m4.\r
- * configure.ac: Invoke ZW_CREATE_DEPDIR,\r
- ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.\r
-\r
-2012-12-05 Tom Tromey <tromey@redhat.com>\r
-\r
- PR gdb/14917:\r
- * server.h (current_insn_ptr, emit_error): Declare 'extern'.\r
-\r
-2012-11-28 Markus Metzger <markus.t.metzger@intel.com>\r
-\r
- * configure.ac: Check for linux/perf_event.h.\r
- * config.in: Regenerated.\r
- * configure: Regenerated.\r
-\r
-2012-11-26 Maxime Villard <rustyBSD@gmx.fr>\r
-\r
- * hostio.c (handle_readlink): Decrease buffer size\r
- parameter passed to readlink by one byte.\r
-\r
-2012-11-26 Yao Qi <yao@codesourcery.com>\r
-\r
- * configure.ac (build_warnings): Append '-Wempty-body'.\r
- * configure: Regenerated.\r
- * linux-low.c (linux_create_inferior): Use braces for empty 'if'\r
- body.\r
-\r
-2012-11-15 Pierre Muller <muller@sourceware.org>\r
-\r
- * configure.ac (AC_CHECK_HEADERS): Add wait.h header.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
- * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.\r
- Use "gdb_wait.h" header instead of <sys/wait.h> header.\r
- * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.\r
- * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>\r
- header.\r
- * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header\r
- instead of <sys/wait.h> header.\r
- * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.\r
-\r
-2012-11-13 Markus Metzger <markus.t.metzger@intel.com>\r
-\r
- * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER\r
- (various make rules): Remove -DGDBSERVER\r
-\r
-2012-11-09 Yao Qi <yao@codesourcery.com>\r
-\r
- * spu-low.c (current_ptid): Move it to ..\r
- * gdbthread.h: ... here. New.\r
- * remote-utils.c (read_ptid): Use macro 'current_ptid'.\r
- * server.c (myresume, process_serial_event): Likewise.\r
- * thread-db.c (thread_db_find_new_threads): Likewise.\r
- * tracepoint.c (run_inferior_command): Likewise.\r
-\r
-2012-10-01 Andrew Burgess <aburgess@broadcom.com>\r
-\r
- * server.c (handle_search_memory_1): Include access length in\r
- warning message.\r
-\r
-2012-09-05 Michael Brandt <michael.brandt@axis.com>\r
-\r
- * linux-crisv32-low.c: Fix compile errors.\r
-\r
-2012-09-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtsv): Adjust debug message.\r
- Don't check CUR_TPOINT.\r
-\r
-2012-08-28 Yao Qi <yao@codesourcery.com>\r
-\r
- * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.\r
- * server.h: Include 'libiberty.h' and 'ansidecl.h'.\r
- (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.\r
- Remove declarations of xmalloc, xreallloc, xstrdup and\r
- freeargv.\r
- * Makefile.in (libiberty_h): New.\r
- (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.\r
- (linux-bfin-low.o): Append dependency 'libiberty.h'.\r
-\r
-2012-08-23 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.h: Remove declaration of 'xsnprintf'.\r
-\r
-2012-08-22 Keith Seitz <keiths@redhat.com>\r
-\r
- * server.h: Include build-gnulib-gbserver/config.h.\r
- * gdbreplay.c: Likewise.\r
-\r
-2012-08-08 Doug Evans <dje@google.com>\r
-\r
- * Makefile.in (SFILES): Add gdb_vecs.c.\r
- (OBS): Add gdb_vecs.o.\r
- (gdb_vecs_h, host_defs_h): New variables.\r
- (thread-db.o): Add $(gdb_vecs_h) dependency.\r
- (gdb_vecs.o): New rule.\r
- * thread-db.c: #include "gdb_vecs.h".\r
- (thread_db_load_search): Use a vector to iterate over path elements.\r
- Handle text appearing after "$pdir".\r
-\r
- * configure.ac: Add check for strstr.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * hostio.c (handle_pread): If pread fails, fall back to attempting\r
- lseek/read.\r
- (handle_pwrite): Likewise for pwrite.\r
-\r
-2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish\r
- between unsupported TYPE and unimplementable ADDR/LEN combination.\r
- (arm_insert_point): Act on new return value.\r
-\r
-2012-07-31 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (process_point_options): Only skip tokens if we find\r
- one that is unrecognized. Don't treat 'X' specially while\r
- skipping unrecognized tokens.\r
-\r
-2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt\r
- to 4-byte-align HW breakpoint addresses for Thumb.\r
-\r
-2012-07-27 Yao Qi <yao@codesourcery.com>\r
-\r
- PR remote/14161.\r
-\r
- * server.h: Declare gdb_agent_about_to_close.\r
- * target.c (kill_inferior): Include "agent.h".\r
- New. Send command 'kill'.\r
- * target.h (kill_inferior): Removed macro.\r
- * tracepoint.c (gdb_agent_about_to_close): New.\r
- (gdb_agent_helper_thread): Handle command 'close'.\r
- Wait endlessly until the inferior stops.\r
- Install gdb_agent_remove_socket to atexit hook.\r
- (agent_socket_name): New static variable.\r
- (gdb_agent_socket_init): Replace local variable 'name' with\r
- 'agent_socket_name'.\r
- (gdb_agent_remove_socket): New.\r
-\r
-2012-07-27 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.c (process_point_options): Stop at 'X' when parsing.\r
-\r
-2012-07-19 Michael Eager <eager@eagercon.com>\r
-\r
- * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate\r
- to hw_execute.\r
- * linux-x86-low.c (x86_insert_point, x86_remove_point):\r
- Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del\r
- hardware breakpoint.\r
-\r
-2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * gdbserver/linux-low.c (initialize_low): Call\r
- linux_ptrace_init_warnings.\r
-\r
-2012-07-02 Doug Evans <dje@google.com>\r
-\r
- * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from\r
- pointer to int.\r
-\r
-2012-07-02 Stan Shebs <stan@codesourcery.com>\r
-\r
- * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.\r
- (ax.o): Add it to build rule.\r
- (ax-ipa.o): Ditto.\r
- (OBS): Add format.o.\r
- (IPA_OBS): Add format.o.\r
- * server.c (handle_query): Claim support for breakpoint commands.\r
- (process_point_options): Add command case.\r
- (process_serial_event): Leave running if there are printfs in\r
- effect.\r
- * mem-break.h (any_persistent_commands): Declare.\r
- (add_breakpoint_commands): Declare.\r
- (gdb_no_commands_at_breakpoint): Declare.\r
- (run_breakpoint_commands): Declare.\r
- * mem-break.c (struct point_command_list): New struct.\r
- (struct breakpoint): New field command_list.\r
- (any_persistent_commands): New function.\r
- (add_commands_to_breakpoint): New function.\r
- (add_breakpoint_commands): New function.\r
- (gdb_no_commands_at_breakpoint): New function.\r
- (run_breakpoint_commands): New function.\r
- * linux-low.c (linux_wait_1): Test for and run breakpoint commands\r
- locally.\r
- * ax.c: Include format.h.\r
- (ax_printf): New function.\r
- (gdb_eval_agent_expr): Add printf opcode.\r
-\r
-2012-06-13 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.c (start_inferior): Remove duplicated writes to fields\r
- 'last_resume_kind' and 'last_status' of 'current_inferior'.\r
-\r
-2012-06-12 Yao Qi <yao@codesourcery.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (linux_set_resume_request): Simplify predicate. Add\r
- comment.\r
- * server.c (handle_v_cont): Extend comment.\r
-\r
-2012-06-11 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c (linux_attach): Add 'static'.\r
-\r
-2012-06-06 Yao Qi <yao@codesourcery.com>\r
-\r
- * ax.c (gdb_eval_agent_expr): Print `top' in hex.\r
-\r
-2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- Fix gcc -flto compilation warning.\r
- * server.c (main): Make variable multi_mode and attach volatile.\r
-\r
-2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>\r
-\r
- * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP\r
- if the platform doesn't know about it.\r
-\r
-2012-05-30 Jeff Kenton <jkenton@tilera.com>\r
-\r
- * Makefile.in (SFILES): Add linux-tile-low.c.\r
- (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.\r
- * configure.srv: Handle tilegx-*-linux*.\r
- * linux-tile-low.c: New file.\r
-\r
-2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.\r
-\r
-2012-05-24 Pedro Alves <palves@redhat.com>\r
-\r
- PR gdb/7205\r
-\r
- Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.\r
-\r
-2012-05-24 Pedro Alves <palves@redhat.com>\r
-\r
- PR gdb/7205\r
-\r
- Replace target_signal with gdb_signal throughout.\r
-\r
-2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.c (linux_store_registers): Avoid the copying sequence\r
- when no data has been retrieved by ptrace.\r
-\r
-2012-05-22 Will Deacon <will.deacon@arm.com>\r
-\r
- * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):\r
- Include asm/ptrace.h.\r
- (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not\r
- already defined.\r
-\r
-2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.c (linux_store_registers): Don't re-retrieve data\r
- with ptrace that has already been obtained from /proc. Always\r
- copy any data retrieved with ptrace to the buffer supplied.\r
-\r
-2012-05-11 Yao Qi <yao@codesourcery.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (enum stopping_threads_kind): New.\r
- (stopping_threads): Change type to `enum stopping_threads_kind'.\r
- (handle_extended_wait): If stopping and suspending threads, leave\r
- the new_lwp suspended too.\r
- (linux_wait_for_event): Adjust.\r
- (stop_all_lwps): Set `stopping_threads' to\r
- STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on\r
- whether we're suspending threads or just stopping them. Assert no\r
- recursion happens.\r
-\r
-2012-04-29 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.h: Move some code to ...\r
- * gdbthread.h: ... here. New.\r
- * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h\r
- (remote-utils.o, server.o, target.o tracepoint.o): Likewise.\r
- (nto-low.o, win32-low.o): Likewise.\r
- * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.\r
- * regcache.c, remote-utils.c, server.c: Likewise.\r
- * target.c, tracepoint.c, win32-low.c: Likewise.\r
-\r
-2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>\r
-\r
- * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.\r
- (PTRACE_ARG4_TYPE): Likewise.\r
- (PTRACE_XFER_TYPE): Likewise.\r
- * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of\r
- ptrace to PTRACE_ARG3_TYPE.\r
- * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.\r
- (PTRACE_ARG4_TYPE): Likewise.\r
- (PTRACE_XFER_TYPE): Likewise.\r
- (linux_detach_one_lwp): Cast fourth argument of\r
- ptrace to long then PTRACE_ARG4_TYPE.\r
- (regsets_fetch_inferior_registers): Cast third argument of\r
- ptrace to long then PTRACE_ARG3_TYPE.\r
- (regsets_store_inferior_registers): Likewise.\r
-\r
-2012-04-20 Pedro Alves <palves@redhat.com>\r
-\r
- * configure: Regenerate.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (GNULIB_BUILDDIR): New.\r
- (LIBGNU, INCGNU, GNULIB_H): Adjust.\r
- (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.\r
- (all, install-only, uninstall, clean-info, all-lib, clean): No\r
- longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.\r
- (maintainer-clean realclean distclean): Use subdir_do.\r
- (subdir_do): New.\r
- (gnulib/import/Makefile): Adjust. Replace gnulib/import with\r
- $(GNULIB_BUILDDIR). Don't pass argument to config.status.\r
- * acinclude.m4: Include acx_configure_dir.m4.\r
- * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE\r
- calls. Call AC_PROG_RANLIB. Configure gnulib using\r
- ACX_CONFIGURE_DIR.\r
- (GNULIB): New.\r
- (GNULIB_STDINT_H): Adjust.\r
- (AC_OUTPUT): Don't output gnulib/Makefile anymore.\r
- * gdbreplay.c: Include build-gnulib/config.h.\r
- * server.h: Likewise.\r
- * aclocal.m4: Regenerate.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (LIBGNU, INCGNU): Adjust.\r
- (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.\r
- (all, install-only, uninstall, clean-info, all-lib, clean)\r
- (maintainer-clean, Makefile, gnulib/Makefile): Adjust.\r
- * configure.ac: Adjust AC_OUTPUT output.\r
- * aclocal.m4: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (generated_files): New.\r
- (server_h): Remove the explicit dependency on config.h, and depend\r
- on $generated_files.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (INCGNU): Add -Ignulib.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...\r
- (INCGNU): ... this, and spell out -I here.\r
- (GNULIB_LIB): Rename to ...\r
- (LIBGNU): ... this.\r
- (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * config.in: Regenerate.\r
-\r
-2012-04-19 Pedro Alves <palves@redhat.com>\r
-\r
- * configure.ac: Remove AC_CHECK_DECLS check for memmem.\r
- * server.h (memmem): Remove declaration.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2012-04-19 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (SFILES): Add common/vec.c.\r
- (OBS): Add vec.o.\r
- (vec.o): New rule.\r
-\r
-2012-04-19 Yao Qi <yao@codesourcery.com>\r
-\r
- * remote-utils.c (prepare_resume_reply): Replace with macro\r
- target_core_of_thread.\r
- * server.c (handle_qxfer_threads_proper): Likewise.\r
- * target.h (traget_core_of_thread): New macro.\r
-\r
-2012-04-18 Pedro Alves <palves@redhat.com>\r
-\r
- * aclocal.m4: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2012-04-16 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtstart): Download tracepoints even when they are\r
- duplicated on address.\r
-\r
-2012-04-16 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (COPY_FIELD_TO_BUF): New macro.\r
- (struct tracepoint_action_ops) <send>: New field.\r
- (m_tracepoint_action_send, r_tracepoint_action_send): New.\r
- (agent_expr_send, x_tracepoint_action_send): New.\r
- (l_tracepoint_action_send): New.\r
- (cmd_qtdp): Download and install tracepoint\r
- according to `use_agent'.\r
- (run_inferior_command): Add one more parameter `len'.\r
- Update callers.\r
- (tracepoint_send_agent): New.\r
- (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.\r
-\r
-2012-04-16 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (download_tracepoints): Moved to ...\r
- (cmd_qtstart): ... here.\r
-\r
-2012-04-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c: Include inttypes.h.\r
- (struct collect_memory_action): Use sized types.\r
- (struct tracepoint): Likewise.\r
- (cmd_qtdp, stop_tracing): Update print specifiers.\r
- (cmd_qtp, response_tracepoint): Likewise.\r
- (collect_data_at_tracepoint): Likewise.\r
- (collect_data_at_step): Likewise.\r
-\r
-2012-04-14 Yao Qi <yao@codesourcery.com>\r
-\r
- Import gnulib module inttypes.\r
- * aclocal.m4, config.in, configure: Regenerated.\r
-\r
-2012-04-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (maintainer-clean, realclean, distclean): Remove\r
- Makefile and config.status at last.\r
-\r
-2012-04-13 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c: Include stdint.h unconditionally.\r
-\r
-2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>\r
-\r
- * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based\r
- on BFD_HAVE_SYS_PROCFS_TYPE.\r
- * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.\r
- * configure: Regenerate.\r
- * config.in: Likewise.\r
-\r
-2012-04-13 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * Makefile.in (clean): Also remove x32.c x32-linux.c\r
- x32-avx.c x32-avx-linux.c.\r
- (x32.o): New target.\r
- (x32.c): Likewise.\r
- (x32-linux.o): Likewise.\r
- (x32-linux.c): Likewise.\r
- (x32-avx.o): Likewise.\r
- (x32-avx.c): Likewise.\r
- (x32-avx-linux.o): Likewise.\r
- (x32-avx-linux.c): Likewise.\r
-\r
- * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.\r
- (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.\r
- (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.\r
- (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.\r
- (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml\r
- i386/x32-avx-linux.xml.\r
-\r
- * linux-x86-low.c (init_registers_x32_linux): New prototype.\r
- (init_registers_x32_avx_linux): Likwise.\r
- (x86_linux_update_xmltarget): Call init_registers_x32_linux\r
- or init_registers_x32_avx_linux if linux_is_elf64 is false.\r
-\r
-2012-04-13 Pedro Alves <palves@redhat.com>\r
-\r
- * Makefile.in (GNULIB_FLAGS_TO_PASS): New.\r
- (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.\r
- (all, uninstall, clean-info, all-lib, clean, maintainer-clean)\r
- (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to\r
- the sub-make.\r
-\r
-2012-04-12 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * linux-x86-low.c (compat_x32_clock_t): New.\r
- (compat_x32_siginfo_t): Likewise.\r
- (compat_x32_siginfo_from_siginfo): Likewise.\r
- (siginfo_from_compat_x32_siginfo): Likewise.\r
- (linux_is_elf64): Likewise.\r
- (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo\r
- and siginfo_from_compat_x32_siginfo for x32.\r
- (x86_arch_setup): Set linux_is_elf64.\r
-\r
-2012-04-12 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- PR gdb/13969\r
- * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the\r
- e_machine field.\r
- (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.\r
- * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.\r
- * linux-x86-low.c (x86_arch_setup): Check if GDBserver is\r
- compatible with process.\r
-\r
-2012-04-12 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in: Define abs_top_srcdir and abs_srcdir.\r
- (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.\r
- (install-only, install-info, clean): Handle sub dir gnulib.\r
- (all-lib, am--refresh): New targets.\r
- (memmem.o): Remove target.\r
- * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.\r
- Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.\r
- (AC_REPLACE_FUNCS): Remove memmem.\r
- Invoke gl_INIT and AM_INIT_AUTOMAKE.\r
- (AC_OUTPUT): Generate Makefile in gnulib/.\r
- * aclocal.m4, config.in, configure: Regenerated.\r
-\r
-2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.\r
-\r
-2012-04-05 Pedro Alves <palves@redhat.com>\r
-\r
- -Werror=strict-aliasing\r
-\r
- * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned\r
- pointer.\r
-\r
-2012-04-04 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-sparc-low.c (sparc_fill_gregset_to_stack)\r
- (sparc_store_gregset_from_stack, sparc_store_gregset)\r
- (sparc_breakpoint_at): Fix formatting.\r
-\r
-2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>\r
-\r
- * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t\r
- are available.\r
- * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.\r
- [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.\r
- * config.in: Regenerate.\r
- * configure: Likewise.\r
-\r
-2012-03-29 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (regsets_store_inferior_registers) [__sparc__]:\r
- Correct ptrace arguments.\r
-\r
-2012-03-28 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.\r
- (IA64_GR0_REGNUM, IA64_FR0_REGNUM)\r
- (IA64_FR1_REGNUM): New defines.\r
- (ia64_fetch_register): New.\r
- (the_low_target): Install it.\r
- * linux-low.h (struct linux_target_ops) <fetch_register>: New\r
- field.\r
- * linux-low.c (linux_fetch_registers): Try the\r
- the_low_target.fetch_register hook first.\r
-\r
- * linux-arm-low.c (the_low_target): Adjust.\r
- * linux-bfin-low.c (the_low_target): Adjust.\r
- * linux-cris-low.c (the_low_target): Adjust.\r
- * linux-crisv32-low.c (the_low_target): Adjust.\r
- * linux-m32r-low.c (the_low_target): Adjust.\r
- * linux-m68k-low.c (the_low_target): Adjust.\r
- * linux-mips-low.c (the_low_target): Adjust.\r
- * linux-ppc-low.c (the_low_target): Adjust.\r
- * linux-s390-low.c (the_low_target): Adjust.\r
- * linux-sh-low.c (the_low_target): Adjust.\r
- * linux-sparc-low.c (the_low_target): Adjust.\r
- * linux-tic6x-low.c (the_low_target): Adjust.\r
- * linux-x86-low.c (the_low_target): Adjust.\r
- * linux-xtensa-low.c (the_low_target): Adjust.\r
-\r
-2012-03-26 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (handle_qxfer_libraries): Don't bail early if\r
- the_target->qxfer_libraries_svr4 is not NULL.\r
-\r
-2012-03-26 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.\r
-\r
-2012-03-23 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (linux_qxfer_libraries_svr4): Terminate the\r
- "library-list-svr4" element's start tag when the the DSO list is\r
- empty.\r
-\r
-2012-03-23 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (read_one_ptr): Read the inferior's pointer through\r
- a variable whose type size is the same as the inferior's pointer\r
- size.\r
-\r
-2012-03-21 Thomas Schwinge <thomas@codesourcery.com>\r
-\r
- * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of\r
- struct siginfo.\r
- * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.\r
- * linux-x86-low.c (x86_siginfo_fixup): Likewise.\r
- * linux-low.h: Include <signal.h>.\r
- (struct siginfo): Remove forward declaration.\r
- (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of\r
- struct siginfo.\r
-\r
-2012-03-21 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * .gitignore: Ignore more files.\r
-\r
-2012-03-19 Pedro Alves <palves@redhat.com>\r
- Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * server.c (cont_thread, general_thread): Add describing comments.\r
- (start_inferior): Clear `cont_thread'.\r
- (handle_v_cont): Don't set `cont_thread' if resuming all threads\r
- of a process.\r
-\r
-2012-03-15 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (install_tracepoint): Move duplicated tracepoint\r
- handling to ...\r
- (cmd_qtdp): ... here.\r
-\r
-2012-03-15 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (struct tracepoint_action_ops): New.\r
- (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.\r
- (m_tracepoint_action_download): New.\r
- (r_tracepoint_action_download): New.\r
- (x_tracepoint_action_download): New.\r
- (l_tracepoint_action_download): New.\r
- (add_tracepoint_action): Install `action->ops' according type.\r
- (download_tracepoint_1): Move code `download' function pointer\r
- of various tracepoint_action_ops.\r
-\r
-2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_attach_lwp_1): New variable buffer. Call\r
- linux_ptrace_attach_warnings.\r
-\r
-2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * Makefile.in (linux-ptrace.o): New.\r
- * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)\r
- (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)\r
- (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)\r
- (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)\r
- (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ\r
- of these targets.\r
- * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.\r
-\r
-2012-03-08 Yao Qi <yao@codesourcery.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- Fix PR server/13392.\r
- * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check\r
- offset of JMP insn.\r
- * tracepoint.c (remove_tracepoint): New.\r
- (cmd_qtdp): Call remove_tracepoint when failed to install.\r
-\r
-2012-03-07 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (get_detach_signal): New.\r
- (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.\r
- Pass on pending signals to PTRACE_DETACH. Check the result of the\r
- ptrace call.\r
- * server.c (program_signals, program_signals_p): New.\r
- (handle_general_set): Handle QProgramSignals.\r
- * server.h (program_signals, program_signals_p): Declare.\r
-\r
-2012-03-05 Pedro Alves <palves@redhat.com>\r
- Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.\r
- New comment why.\r
-\r
-2012-03-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (tracepoint_look_up_symbols): Update call to\r
- agent_look_up_symbols.\r
-\r
-2012-03-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (linux-low.o): Keep dependence on agent.h.\r
- (linux-x86-low.o): Likewise.\r
- * server.h: Remove in_process_agent_loaded.\r
- * tracepoint.c (in_process_agent_loaded): Removed. Moved it\r
- common/agent.c.\r
- Update callers.\r
-\r
-2012-03-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (gdb_agent_capability): New global.\r
- (in_process_agent_loaded_ust): Renamed to\r
- `in_process_agent_supports_ust'.\r
- Update callers.\r
- (in_process_agent_supports_ust): Call agent_capability_check.\r
- (clear_installed_tracepoints): Assert that agent supports\r
- agent.\r
-\r
-2012-03-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c (linux_supports_agent): New.\r
- (linux_target_ops): Initialize field `supports_agent' with\r
- linux_supports_agent.\r
- * target.h (struct target_ops) <supports_agent>: New.\r
- (target_supports_agent): New macro.\r
- * server.c (handle_general_set): Handle packet 'QAgent'.\r
- (handle_query): Send `QAgent+'.\r
- * Makefile.in (server.o): Depends on agent.h.\r
-\r
-2012-03-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (OBS): Add agent.o.\r
- Add new rule for agent.o.\r
- Track dependence of tracepoint.c on agent.h.\r
- * tracepoint.c (run_inferior_command_1):\r
- (run_inferior_command): Call agent_run_command.\r
- (gdb_ust_connect_sync_socket): Deleted. Move it to\r
- common/agent.c.\r
- (resume_thread, stop_thread): Likewise.\r
- (gdb_ust_socket_init): Renamed to ...\r
- (gdb_agent_socket_init): ... New.\r
- (gdb_ust_thread): Renamed to ...\r
- (gdb_agent_helper_thread): ... New.\r
- (gdb_ust_init): Move some code to ...\r
- (gdb_agent_init): ... here. New.\r
- [HAVE_UST]: Call gdb_ust_init.\r
- (initialize_tracepoint_ftlib): Call gdb_agent_init.\r
- * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.\r
- * config.in, configure: Regenerated.\r
-\r
-2012-03-02 Pedro Alves <palves@redhat.com>\r
-\r
- * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.\r
- * linux-low.c (struct simple_pid_list): New.\r
- (stopped_pids): New a struct simple_pid_list pointer.\r
- (add_to_pid_list, pull_pid_from_list): New.\r
- (handle_extended_wait): Don't assume the first signal new children\r
- report is SIGSTOP. Adjust call to pull_pid_from_list.\r
- (linux_wait_for_lwp): Adjust.\r
-\r
-2012-03-02 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in\r
- debug log.\r
-\r
-2012-03-02 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters\r
- `stop_pc' and `tpoint'. Update caller.\r
-\r
-2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.h (linux_target_ops): Add regset_bitmap member.\r
- * linux-low.c (use_linux_regsets): New macro.\r
- [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.\r
- [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.\r
- (linux_register_in_regsets): New function.\r
- (usr_fetch_inferior_registers): Skip registers covered by\r
- regsets.\r
- (usr_store_inferior_registers): Likewise.\r
- (usr_fetch_inferior_registers): New macro.\r
- (usr_store_inferior_registers): Likewise.\r
- (linux_fetch_registers): Handle mixed regset/non-regset targets.\r
- (linux_store_registers): Likewise.\r
- * linux-mips-low.c (init_registers_mips_dsp_linux): New\r
- prototype.\r
- (init_registers_mips64_dsp_linux): Likewise.\r
- (init_registers_mips_linux): New macro.\r
- (init_registers_mips_dsp_linux): Likewise.\r
- (mips_dsp_num_regs): Likewise.\r
- (DSP_BASE, DSP_CONTROL): New fallback macros.\r
- (mips_base_regs): New macro.\r
- (mips_regmap): Use it. Fix the size.\r
- (mips_dsp_regmap): New variable.\r
- (mips_dsp_regset_bitmap): Likewise.\r
- (mips_arch_setup): New function.\r
- (mips_cannot_fetch_register): Use the_low_target.regmap rather\r
- than mips_regmap.\r
- (mips_cannot_store_register): Likewise.\r
- (the_low_target): Update .arch_setup, .num_regs and .regmap\r
- initializers. Add .regset_bitmap initializer.\r
- * linux-arm-low.c (the_low_target): Add .regset_bitmap\r
- initializer.\r
- * linux-bfin-low.c (the_low_target): Likewise.\r
- * linux-cris-low.c (the_low_target): Likewise.\r
- * linux-crisv32-low.c (the_low_target): Likewise.\r
- * linux-ia64-low.c (the_low_target): Likewise.\r
- * linux-m32r-low.c (the_low_target): Likewise.\r
- * linux-m68k-low.c (the_low_target): Likewise.\r
- * linux-ppc-low.c (the_low_target): Likewise.\r
- * linux-s390-low.c (the_low_target): Likewise.\r
- * linux-sh-low.c (the_low_target): Likewise.\r
- * linux-sparc-low.c (the_low_target): Likewise.\r
- * linux-tic6x-low.c (the_low_target): Likewise.\r
- * linux-x86-low.c (the_low_target): Likewise.\r
- * linux-xtensa-low.c (the_low_target): Likewise.\r
- * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and\r
- mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,\r
- mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to\r
- srv_xmlfiles.\r
- * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.\r
- (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.\r
-\r
-2012-02-29 Yao Qi <yao@codesourcery.com>\r
- Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when\r
- `step_over_finished' is true.\r
-\r
-2012-02-27 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (pid_is_stopped): Delete, moved to common/.\r
- (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.\r
-\r
-2012-02-27 Pedro Alves <palves@redhat.com>\r
-\r
- PR server/9684\r
- * linux-low.c (pid_is_stopped): New.\r
- (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.\r
-\r
-2012-02-25 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation\r
- of conditions.\r
-\r
-2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-mips-low.c (mips_regmap): Correct the index of $f9.\r
-\r
-2012-02-24 Luis Machado <lgustavo@codesourcery>\r
-\r
- * server.c (handle_query): Advertise support for target-side\r
- breakpoint condition evaluation.\r
- (process_point_options): New function.\r
- (process_serial_event): When inserting a breakpoint, check for\r
- a target-side condition that should be evaluated.\r
-\r
- * mem-break.c: Include regcache.h and ax.h.\r
- (point_cond_list_t): New data structure.\r
- (breakpoint) <cond_list>: New field.\r
- (find_gdb_breakpoint_at): Make non-static.\r
- (delete_gdb_breakpoint_at): Clear any target-side\r
- conditions.\r
- (clear_gdb_breakpoint_conditions): New function.\r
- (add_condition_to_breakpoint): Likewise.\r
- (add_breakpoint_condition): Likewise.\r
- (gdb_condition_true_at_breakpoint): Likewise.\r
- (gdb_breakpoint_here): Return result directly instead\r
- of going through a local variable.\r
-\r
- * mem-break.h (find_gdb_breakpoint_at): New prototype.\r
- (clear_gdb_breakpoint_conditions): Likewise.\r
- (add_breakpoint_condition): Likewise.\r
- (gdb_condition_true_at_breakpoint): Likewise.\r
-\r
- * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.\r
- (need_step_over_p): Take target-side breakpoint condition into\r
- consideration.\r
-\r
-2012-02-24 Luis Machado <lgustavo@codesourcery>\r
-\r
- * server.h: Include tracepoint.h.\r
- (agent_mem_read, agent_get_trace_state_variable_value,\r
- agent_set_trace_state_variable_value,\r
- agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,\r
- get_set_tsv_func_addr): New prototypes.\r
-\r
- * ax.h: New include file.\r
- * ax.c: New source file.\r
-\r
- * tracepoint.c: Include ax.h.\r
- (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,\r
- agent_expr, eval_result_type): Move to ax.h.\r
- (parse_agent_expr): Rename to ...\r
- (gdb_parse_agent_expr): ... this, make it non-static and move\r
- to ax.h.\r
- (unparse_agent_expr) Rename to ...\r
- (gdb_unparse_agent_expr): ... this, make it non-static and move\r
- to ax.h.\r
- (eval_agent_expr): Rename to ...\r
- (eval_tracepoint_agent_expr): ... this.\r
- (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove\r
- forward declarations.\r
- (add_tracepoint_action): Call gdb_parse_agent_expr (...).\r
- (agent_get_trace_state_variable_value): New function.\r
- (agent_set_trace_state_variable_value): New function.\r
- (cmd_qtdp): Call gdb_parse_agent_expr (...).\r
- (response_tracepoint): Call gdb_unparse_agent_expr (...).\r
- (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).\r
- (condition_true_at_tracepoint): Likewise.\r
- (parse_agent_expr): Rename to ...\r
- (gdb_parse_agent_expr): ... this and move to ax.c.\r
- (unparse_agent_expr): Rename to ...\r
- (gdb_unparse_agent_expr): ... this and move to ax.c.\r
- (gdb_agent_op_name): Move to ax.c.\r
- (eval_agent_expr): Rename to ...\r
- (gdb_eval_agent_expr): ... this, use regcache passed as parameter\r
- and move to ax.c.\r
- (eval_tracepoint_agent_expr): New function.\r
- (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make\r
- non-static.\r
- (current_insn_ptr, emit_error, struct bytecode_address): Move to\r
- ax.c.\r
- (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,\r
- emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,\r
- emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,\r
- emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,\r
- emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,\r
- emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,\r
- emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,\r
- emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.\r
- (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.\r
- (compile_bytecodes): Remove forward declaration.\r
- (is_goto_target): Move to ax.c.\r
- (compile_bytecodes): Move to ax.c and call\r
- agent_get_trace_state_variable_value (...) and\r
- agent_set_trace_state_variable_value (...).\r
-\r
- * Makefile.in: Update ax.c and IPA dependencies.\r
-\r
-2012-02-24 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (cmd_bigqtbuffer): Rename as ...\r
- (cmd_bigqtbuffer_circular): ... this. Only handle\r
- 'QTBuffer:circular:'.\r
- (handle_tracepoint_general_set): Adjust.\r
-\r
-2012-02-16 Yao Qi <yao@codesourcery.com>\r
-\r
- * inferiors.c: Move code to ...\r
- * dll.c: .... here. New.\r
- * server.h: Declare clear_dlls.\r
- * Makefile.in (SFILES): Add dll.c.\r
- (OBS): Add dll.o\r
- (dll.o): New rule.\r
-\r
-2012-02-11 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.c: (handle_monitor_command): Add a new parameter\r
- `own_buf'.\r
- (handle_query): Update caller.\r
-\r
-2012-02-09 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * configure.ac: Add readlink to AC_CHECK_FUNCS list.\r
- * configure, config.in: Regenerate.\r
- * hostio.c: Provide an alternate implementation if HAVE_READLINK\r
- is not defined.\r
-\r
-2012-02-02 Pedro Alves <palves@redhat.com>\r
-\r
- Try SIGKILL first, then PTRACE_KILL.\r
- * linux-low.c (linux_kill_one_lwp): New.\r
- (linux_kill_one_lwp): Rename to ...\r
- (kill_one_lwp_callback): ... this. Use the new\r
- linux_kill_one_lwp.\r
-\r
-2012-02-02 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current\r
- inferior.\r
-\r
-2012-01-27 Pedro Alves <palves@redhat.com>\r
-\r
- * linux-low.c (linux_child_pid_to_exec_file): Delete.\r
- (elf_64_file_p): Make static.\r
- (linux_pid_exe_is_elf_64_file): New.\r
- * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):\r
- Delete declarations.\r
- (linux_pid_exe_is_elf_64_file): Declare.\r
- * linux-x86-low.c (x86_arch_setup): Use\r
- linux_pid_exe_is_elf_64_file.\r
-\r
-2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_wait_for_event_1): Rename to ...\r
- (linux_wait_for_event): ... here and merge it with former\r
- linux_wait_for_event - new variable wait_ptid, use it.\r
- (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.\r
-\r
-2012-01-23 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (main): Avoid yet another case of infinite loop while\r
- detaching/killing after a longjmp.\r
-\r
-2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- Code cleanup.\r
- * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.\r
-\r
-2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * hostio.c (handle_readlink): New function.\r
- (handle_vFile): Call it to handle "vFile:readlink" packets.\r
-\r
-2012-01-20 Pedro Alves <palves@redhat.com>\r
- Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * server.c (handle_v_requests): Only support vAttach and vRun to\r
- start multiple processes when in extended protocol mode.\r
-\r
-2012-01-17 Pedro Alves <palves@redhat.com>\r
-\r
- * tracepoint.c (initialize_tracepoint): Use mmap instead of\r
- memalign plus mprotect to allocate the scratch buffer.\r
-\r
-2012-01-13 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (attach_inferior): Clear `cont_thread'.\r
-\r
-2012-01-13 Pedro Alves <palves@redhat.com>\r
-\r
- * server.c (main): Avoid infinite loop while detaching/killing\r
- after a longjmp.\r
-\r
-2012-01-09 Doug Evans <dje@google.com>\r
-\r
- * server.c (start_inferior): Set last_ptid in --wrapper case.\r
-\r
-2012-01-06 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro\r
- defined.\r
- [IN_PROCESS_AGENT] (debug_agent): New global variable.\r
-\r
-2012-01-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtdp): Print debug message\r
- for static tracepoint.\r
-\r
-2012-01-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (trace_vdebug): Differentiate debug message\r
- between gdbserver and IPA.\r
-\r
-2012-01-03 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (tracepoint_was_hit): Don't collect for\r
- static tracepoint.\r
-\r
-2012-01-02 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * terminal.h: Reformat copyright header.\r
-\r
-2012-01-02 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * server.c (gdbserver_version): Update copyright year.\r
- * gdbreplay.c (gdbreplay_version): Likewise.\r
-\r
-2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_create_inferior): Put empty if clause for write.\r
-\r
- Revert:\r
- 2011-12-18 Hui Zhu <teawater@gmail.com>\r
- * linux-low.c (linux_create_inferior): Save return value to ret.\r
-\r
-2011-12-18 Hui Zhu <teawater@gmail.com>\r
-\r
- * linux-low.c (linux_create_inferior): Save return value to ret.\r
-\r
-2011-12-16 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_create_inferior): If stdio connection,\r
- redirect stdin from /dev/null, stdout to stderr.\r
- * remote-utils.c (remote_is_stdio): New static global.\r
- (remote_connection_is_stdio): New function.\r
- (remote_prepare): Handle stdio connection.\r
- (remote_open): Ditto.\r
- (remote_close): Don't close stdin for stdio connections.\r
- (read_prim,write_prim): New functions. Replace all calls to\r
- read/write to these.\r
- * server.c (main): Watch for "-" argument. Move call to\r
- remote_prepare before start_inferior.\r
- * server.h (STDIO_CONNECTION_NAME): New macro.\r
- (remote_connection_is_stdio): Declare.\r
-\r
- * remote-utils.c (prepare_resume_reply): Remove extraneous \n\r
- in debugging output.\r
-\r
-2011-12-15 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c: Include sys/syscall.h.\r
- (gdb_ust_thread): Remove preprocessor conditional.\r
-\r
-2011-12-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_detach_one_lwp): Call\r
- the_low_target.prepare_to_resume before detaching.\r
-\r
-2011-12-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (gdb_ust_thread): Don't ignore return value\r
- of write.\r
-\r
-2011-12-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * i386-low.c (i386_low_stopped_data_address): Initialize local\r
- variable `control'.\r
-\r
-2011-12-13 Pedro Alves <pedro@codesourcery.com>\r
-\r
- PR remote/13492\r
-\r
- * i386-low.c (i386_low_stopped_data_address): Avoid fetching\r
- DR_CONTROL unless necessary. Extend comments.\r
- * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to\r
- DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.\r
-\r
-2011-12-13 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (trace_buffer_alloc): Replace magic numbers with\r
- macros.\r
- (upload_fast_traceframes, upload_fast_traceframes): Likewise.\r
-\r
-2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.\r
- Print new debug message for such case.\r
-\r
-2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- Fix overlapping memcpy.\r
- * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for\r
- the read_inferior_memory transfer.\r
- (delete_fast_tracepoint_jump): New variable buf. Use it for the\r
- write_inferior_memory transfer.\r
- (set_fast_tracepoint_jump): New variable buf. Use it for the\r
- read_inferior_memory and write_inferior_memory transfers.\r
- (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)\r
- (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.\r
- Use it for the write_inferior_memory transfer.\r
- (check_mem_read, check_mem_write): New gdb_asserts for overlapping\r
- buffers.\r
-\r
-2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.c (fetch_register, store_register): Make code\r
- consistent, fix formatting.\r
-\r
-2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>\r
-\r
- * linux-low.c (usr_store_inferior_registers): Factor out code\r
- to handle individual registers into...\r
- (store_register): ... this new function.\r
-\r
-2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.\r
- (s390-linux32v2.o, s390-linux32v2.c): Likewise.\r
- (s390-linux64v1.o, s390-linux64v1.c): Likewise.\r
- (s390-linux64v2.o, s390-linux64v2.c): Likewise.\r
- (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.\r
- (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.\r
- * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.\r
- (srv_xmlfiles): Add new XML files.\r
-\r
- * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,\r
- and <sys/uio.h>.\r
- (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.\r
- (init_registers_s390_linux32v1): Add prototype.\r
- (init_registers_s390_linux32v2): Likewise.\r
- (init_registers_s390_linux64v1): Likewise.\r
- (init_registers_s390_linux64v2): Likewise.\r
- (init_registers_s390x_linux64v1): Likewise.\r
- (init_registers_s390x_linux64v2): Likewise.\r
- (s390_num_regs): Increment to 52.\r
- (s390_regmap): Add orig_r2 register.\r
- (s390_num_regs_3264): Increment to 68.\r
- (s390_regmap_3264): Add orig_r2 register.\r
- (s390_collect_ptrace_register): Handle orig_r2 register.\r
- (s390_supply_ptrace_register): Likewise.\r
- (s390_fill_last_break): New function.\r
- (s390_store_last_break): Likewise.\r
- (s390_fill_system_call): New function.\r
- (s390_store_system_call): Likewise.\r
- (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL\r
- register sets.\r
- (s390_check_regset): New function.\r
- (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and\r
- NT_S390_SYSTEM_CALL regsets and use appropriate description.\r
- Update target_regsets for available register sets.\r
-\r
-2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>\r
- Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)\r
- (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):\r
- New.\r
- (struct linux_target_ops): Install linux_qxfer_libraries_svr4.\r
- * linux-low.h (struct process_info_private): New member r_debug.\r
- * server.c (handle_qxfer_libraries): Call\r
- the_target->qxfer_libraries_svr4.\r
- (handle_qxfer_libraries_svr4): New function.\r
- (qxfer_packets): New entry "libraries-svr4".\r
- (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.\r
- * target.h (struct target_ops): New member qxfer_libraries_svr4.\r
- * remote.c (remote_xfer_partial): Call add_packet_config_cmd for\r
- PACKET_qXfer_libraries_svr4.\r
-\r
-2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-s390-low.c (s390_collect_ptrace_register): Fully convert\r
- PSW address/mask between 8-byte and 16-byte formats.\r
- (s390_supply_ptrace_register): Likewise.\r
- (s390_get_pc, s390_set_pc): 4-byte PSW address always includes\r
- basic addressing mode bit.\r
-\r
-2011-11-24 Stan Shebs <stan@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.\r
-\r
-2011-11-17 Stan Shebs <stan@codesourcery.com>\r
-\r
- * tracepoint.c (struct tracepoint): New field traceframe_usage.\r
- (tracing_start_time): New global.\r
- (tracing_stop_time): New global.\r
- (tracing_user_name): New global.\r
- (tracing_notes): New global.\r
- (tracing_stop_note): New global.\r
- (cmd_qtstart): Set traceframe_usage, start_time.\r
- (stop_tracing): Set stop_time.\r
- (cmd_qtstatus): Report additional status.\r
- (cmd_qtp): New function.\r
- (handle_tracepoint_query): Call it.\r
- (cmd_qtnotes): New function.\r
- (handle_tracepoint_general_set): Call it.\r
- (get_timestamp): Rename from tsv_get_timestamp.\r
-\r
-2011-11-14 Stan Shebs <stan@codesourcery.com>\r
- Kwok Cheung Yeung <kcy@codesourcery.com>\r
-\r
- * linux-x86-low.c (small_jump_insn): New.\r
- (i386_install_fast_tracepoint_jump_pad): Add arguments for\r
- trampoline and error message, build a trampoline and issue a small\r
- jump instruction to it.\r
- (x86_install_fast_tracepoint_jump_pad): Add arguments for\r
- trampoline and error message.\r
- (x86_get_min_fast_tracepoint_insn_len): New.\r
- (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.\r
- * linux-low.h (struct linux_target_ops): Add arguments to\r
- install_fast_tracepoint_jump_pad operation, add new operation.\r
- * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add\r
- arguments.\r
- (linux_get_min_fast_tracepoint_insn_len): New function.\r
- (linux_target_op): Add new operation.\r
- * tracepoint.c (gdb_trampoline_buffer): New IPA variable.\r
- (gdb_trampoline_buffer_end): Ditto.\r
- (gdb_trampoline_buffer_error): Ditto.\r
- (struct ipa_sym_addresses): Add fields for new IPA variables.\r
- (symbol_list): Add entries for new IPA variables.\r
- (struct tracepoint): Add fields to hold the address range of the\r
- trampoline used by the tracepoint.\r
- (trampoline_buffer_head): New static variable.\r
- (trampoline_buffer_tail): Ditto.\r
- (claim_trampoline_space): New function.\r
- (have_fast_tracepoint_trampoline_buffer): New function.\r
- (clone_fast_tracepoint): Fill in trampoline fields of tracepoint\r
- structure.\r
- (install_fast_tracepoint): Ditto, also add error buffer argument.\r
- (cmd_qtminftpilen): New function.\r
- (handle_tracepoint_query): Add response to qTMinFTPILen packet.\r
- (fast_tracepoint_from_trampoline_address): New function.\r
- (fast_tracepoint_collecting): Handle trampoline as part of jump\r
- pad space.\r
- (set_trampoline_buffer_space): New function.\r
- (initialize_tracepoint): Initialize new IPA variables.\r
- * target.h (struct target_ops): Add arguments to\r
- install_fast_tracepoint_jump_pad operation, add new\r
- get_min_fast_tracepoint_insn_len operation.\r
- (target_get_min_fast_tracepoint_insn_len): New.\r
- (install_fast_tracepoint_jump_pad): Add arguments.\r
- * server.h (IPA_BUFSIZ): Define.\r
- * linux-i386-ipa.c: Include extra header files.\r
- (initialize_fast_tracepoint_trampoline_buffer): New function.\r
- (initialize_low_tracepoint): Call it.\r
- * server.h (set_trampoline_buffer_space): Declare.\r
- (claim_trampoline_space): Ditto.\r
- (have_fast_tracepoint_trampoline_buffer): Ditto.\r
-\r
-2011-11-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * server.c (handle_query): Handle InstallInTrace for qSupported.\r
- * tracepoint.c (add_tracepoint): Sort list.\r
- (install_tracepoint, download_tracepoint): New.\r
- (cmd_qtdp): Call them to install and download tracepoints.\r
- (sort_tracepoints): Removed.\r
- (cmd_qtstart): Update.\r
-\r
-2011-11-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * mem-break.c (inc_ref_fast_tracepoint_jump): New.\r
- * mem-break.h: Declare.\r
- * tracepoint.c (cmd_qtstart): Move some code to ...\r
- (clone_fast_tracepoint, install_fast_tracepoint): ... here.\r
- New.\r
- (download_tracepoints): Move some code to ...\r
- (download_tracepoint_1): ... here. New.\r
-\r
-2011-11-08 Yao Qi <yao@codesourcery.com>\r
-\r
- * remote-utils.c (relocate_instruction): A comment fix.\r
-\r
-2011-11-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.\r
- (i386_dr_low_get_control, i386_dr_low_get_status): Use\r
- dr_status_mirror and dr_control_mirror from debug_reg_state.\r
- (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror\r
- (i386_initial_stuff): Remove use of deleted globals.\r
- (i386_get_thread_context, i386_set_thread_context,\r
- i386_thread_added): Use dr_status_mirror and dr_control_mirror\r
- from debug_reg_state.\r
-\r
-2011-11-05 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (gdb_collect): Loop over tracepoints of same\r
- address as TPOINT's.\r
-\r
-2011-11-02 Stan Shebs <stan@codesourcery.com>\r
-\r
- * tracepoint.c (agent_mem_read_string): New function.\r
- (eval_agent_expr): Call it for tracenz.\r
- * server.c (handle_query): Report support for tracenz.\r
-\r
-2011-11-02 Yao Qi <yao@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtstart): Remove unused local variables.\r
-\r
-2011-11-02 Yao Qi <yao@codesourcery.com>\r
-\r
- * target.h: Fix a typo in comment.\r
-\r
-2011-10-31 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't\r
- clobber the breakpoints' shadows with fast tracepoint jumps.\r
- * mem-break.h (check_mem_write): Add `myaddr' parameter.\r
- * target.c (write_inferior_memory): Also pass MYADDR down to\r
- check_mem_write.\r
-\r
-2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * configure.ac: Check support for personality routine.\r
- * configure: Regenerate.\r
- * config.in: Likewise.\r
- * linux-low.c: Include <sys/personality.h>.\r
- Define ADDR_NO_RANDOMIZE if necessary.\r
- (linux_create_inferior): Disable address space randomization when\r
- forking inferior, if requested.\r
- (linux_supports_disable_randomization): New function.\r
- (linux_target_ops): Install it.\r
- * server.h (disable_randomization): Declare.\r
- * server.c (disable_randomization): New global variable.\r
- (handle_general_set): Handle QDisableRandomization.\r
- (handle_query): Likewise for qSupported.\r
- (main): Support --disable-randomization and --no-disable-randomization\r
- command line arguments.\r
- * target.h (struct target_ops): Add supports_disable_randomization.\r
- (target_supports_disable_randomization): New macro.\r
-\r
-2011-09-29 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the\r
- ifdef check.\r
- [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.\r
- [!PT_GETDSBT] (target_loadmap): New definition.\r
- (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.\r
- (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to\r
- LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,\r
- and PT_GETDSBT to LINUX_LOADMAP.\r
- [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.\r
- (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.\r
-\r
-2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.\r
- (arm_linux_hwbp_cap): New static variable.\r
- (arm_linux_get_hwbp_cap): Replace by ...\r
- (arm_linux_init_hwbp_cap): ... this new function.\r
- (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.\r
- (arm_linux_get_hw_watchpoint_count): Likewise.\r
- (arm_linux_get_hw_watchpoint_max_length): Likewise.\r
- (arm_arch_setup): Call arm_linux_init_hwbp_cap.\r
- (arm_prepare_to_resume): Use perror_with_name instead of error.\r
-\r
-2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>\r
-\r
- * linux-arm-low.c: Include <signal.h>.\r
- (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.\r
- (struct arm_linux_hwbp_cap): New data type.\r
- (arm_hwbp_type, arm_hwbp_control_t): New typedefs.\r
- (struct arm_linux_hw_breakpoint): New data type.\r
- (MAX_BPTS, MAX_WPTS): Define.\r
- (struct arch_process_info, struct arch_lwp_info): New data types.\r
- (arm_linux_get_hwbp_cap): New function.\r
- (arm_linux_get_hw_breakpoint_count): Likewise.\r
- (arm_linux_get_hw_watchpoint_count): Likewise.\r
- (arm_linux_get_hw_watchpoint_max_length): Likewise.\r
- (arm_hwbp_control_initialize): Likewise.\r
- (arm_hwbp_control_is_enabled): Likewise.\r
- (arm_hwbp_control_is_initialized): Likewise.\r
- (arm_hwbp_control_disable): Likewise.\r
- (arm_linux_hw_breakpoint_equal): Likewise.\r
- (arm_linux_hw_point_initialize): Likewise.\r
- (struct update_registers_data): New data structure.\r
- (update_registers_callback: New function.\r
- (arm_insert_point): Likewise.\r
- (arm_remove_point): Likewise.\r
- (arm_stopped_by_watchpoint): Likewise.\r
- (arm_stopped_data_address): Likewise.\r
- (arm_new_process): Likewise.\r
- (arm_new_thread): Likewise.\r
- (arm_prepare_to_resume): Likewise.\r
- (the_low_target): Register arm_insert_point, arm_remove_point,\r
- arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,\r
- arm_new_thread, and arm_prepare_to_resume.\r
-\r
-2011-09-15 Stan Shebs <stan@codesourcery.com>\r
-\r
- * server.h (struct emit_ops): Add compare-goto fields.\r
- * tracepoint.c (gdb_agent_op_sizes): New table.\r
- (emit_eq_goto): New function.\r
- (emit_ne_goto): New function.\r
- (emit_lt_goto): New function.\r
- (emit_le_goto): New function.\r
- (emit_gt_goto): New function.\r
- (emit_ge_goto): New function.\r
- (is_goto_target): New function.\r
- (compile_bytecodes): Recognize special cases of compare-goto\r
- combinations and call specialized emitters for them.\r
- * linux-x86-low.c (amd64_emit_eq_goto): New function.\r
- (amd64_emit_ne_goto): New function.\r
- (amd64_emit_lt_goto): New function.\r
- (amd64_emit_le_goto): New function.\r
- (amd64_emit_gt_goto): New function.\r
- (amd64_emit_ge_goto): New function.\r
- (amd64_emit_ops): Add the new functions.\r
- (i386_emit_eq_goto): New function.\r
- (i386_emit_ne_goto): New function.\r
- (i386_emit_lt_goto): New function.\r
- (i386_emit_le_goto): New function.\r
- (i386_emit_gt_goto): New function.\r
- (i386_emit_ge_goto): New function.\r
- (i386_emit_ops): Add the new functions.\r
-\r
-2011-09-08 Stan Shebs <stan@codesourcery.com>\r
-\r
- * linux-x86-low.c (i386_emit_prologue): Save %ebx.\r
- (i386_emit_epilogue): Restore %ebx.\r
-\r
-2011-08-31 Jie Zhang <jzhang918@gmail.com>\r
-\r
- * server.c (step_thread): Remove definition.\r
- (process_serial_event): Don't handle Hs.\r
- * server.h (step_thread): Remove declaration.\r
- * target.c (set_desired_inferior): Remove use of step_thread.\r
-\r
-2011-08-24 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * linux-low.c: Include linux-procfs.h.\r
- (linux_attach_lwp_1): Update comments.\r
- (linux_attach): Scan for existing threads when attaching to a\r
- process that is the tgid.\r
- * Makefile.in: Update dependencies.\r
-\r
-2011-08-24 Luis Machado <lgustavo@codesourcery.com>\r
-\r
- * configure.srv: Add linux-procfs.o dependencies.\r
-\r
-2011-08-14 Yao Qi <yao@codesourcery.com>\r
-\r
- * target.h (struct target_ops): Fix indent.\r
- * win32-low.c (win32_target_ops): Fix comment.\r
-\r
-2011-08-14 Andrew Jenner <andrew@codesourcery.com>\r
- Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (clean): Remove tic6x-*.c files.\r
- (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.\r
- (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.\r
- (tic6x-c64xp-linux.c): Likewise.\r
- * configure.srv: Add support for tic6x-*-uclinux.\r
- * linux-tic6x-low.c: New.\r
- * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.\r
-\r
-2011-08-14 Andrew Stubbs <ams@codesourcery.com>\r
- Yao Qi <yao@codesourcery.com>\r
-\r
- * target.h (struct target_ops): Add read_loadmap.\r
- * linux-low.c (struct target_loadseg): New type.\r
- (struct target_loadmap): New type.\r
- (linux_read_loadmap): New function.\r
- (linux_target_ops): Add linux_read_loadmap.\r
- * server.c (handle_query): Support qXfer:fdpic:read packet.\r
- * win32-low.c (win32_target_ops): Initialize field `read_loadmap'\r
- to NULL.\r
-\r
-2011-08-05 Eli Zaretskii <eliz@gnu.org>\r
-\r
- * win32-low.c: Include <stdint.h>.\r
-\r
-2011-07-22 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info\r
- to the inferior here.\r
- (i386_remove_aligned_watchpoint): Ditto.\r
- (i386_handle_nonaligned_watchpoint): Return immediate on fail to\r
- fit part of the watchpoint in the debug registers.\r
- (i386_update_inferior_debug_regs): New.\r
- (i386_low_insert_watchpoint): Work on a local mirror of the debug\r
- registers, and only update the inferior on success.\r
- (i386_low_remove_watchpoint): Ditto.\r
-\r
-2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>\r
-\r
- * linux-low.c (compare_ints, unique, list_threads, show_process,\r
- linux_core_of_thread): Delete.\r
- (linux_target_ops): Change linux_core_of_thread to\r
- linux_common_core_of_thread.\r
- (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.\r
- * utils.c (malloc_failure): Change type of argument.\r
- (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.\r
- * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,\r
- common/linux-osdata.c, common/ptid.c and common/buffer.c.\r
- (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.\r
- (IPA_OBJS): Add common-utils-ipa.o.\r
- (ptid_h, linux_osdata_h): New macros.\r
- (server_h): Add common/common-utils.h, common/xml-utils.h,\r
- common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and\r
- common/ptid.h.\r
- (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,\r
- ptid.o, buffer.o): New rules.\r
- (linux-low.o): Add common/linux-osdata.h as a dependency.\r
- * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.\r
- * configure.ac: Add AC_HEADER_DIRENT check.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
- * remote-utils.c (xml_escape_text): Delete.\r
- (buffer_grow, buffer_free, buffer_init, buffer_finish,\r
- buffer_xml_printf): Move to common/buffer.c.\r
- * server.c (main): Remove call to initialize_inferiors.\r
- * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,\r
- ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,\r
- ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,\r
- internal_error, gdb_assert, gdb_assert_fail): Delete.\r
- (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,\r
- buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to\r
- common/buffer.h.\r
- * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,\r
- ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,\r
- initialize_inferiors): Delete.\r
-\r
-2011-07-20 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * tracepoint.c (tracepoint_look_up_symbols): Return upon the first\r
- symbol error.\r
-\r
-2011-05-31 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in\r
- assertion.\r
- * win32-i386-low.c (i386_dr_low_get_addr): Ditto.\r
-\r
-2011-05-26 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (thread-db.o): Track dependence to\r
- common/gdb_thread_db.h.\r
- * thread-db.c: include gdb_thread_db.h from right place.\r
-\r
-2011-05-16 Adrian Cornish <gnu@bluedreamer.com>\r
-\r
- * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass\r
- __FILE__ and __LINE__ to internal_error.\r
-\r
-2011-05-13 Doug Evans <dje@google.com>\r
-\r
- * thread-db.c (try_thread_db_load_from_sdir): New function.\r
- (try_thread_db_load_from_dir): New function.\r
- (thread_db_load_search): Handle $sdir, ignore $pdir.\r
- Remove trying of system directories if search of\r
- libthread-db-search-path fails, that is now done via $sdir.\r
-\r
-2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>\r
-\r
- * server.c (handle_query): Add EnableDisableTracepoints to the list\r
- of supported features.\r
- * tracepoint.c (clear_installed_tracepoints): Uninstall disabled\r
- tracepoints.\r
- (cmd_qtenable_disable): New.\r
- (cmd_qtstart): Install tracepoints even if disabled.\r
- (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on\r
- receiving a QTEnable or QTDisable packet.\r
- (gdb_collect): Skip data collection if fast tracepoint is disabled.\r
- (ust_marker_to_static_tracepoint): Do not ignore disabled static\r
- tracepoints.\r
- (gdb_probe): Skip data collection if static tracepoint is disabled.\r
-\r
-2011-05-10 Doug Evans <dje@google.com>\r
-\r
- * thread-db.c (thread_db_handle_monitor_command): Handle elided path.\r
-\r
-2011-05-04 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_join): Skip process lookup.\r
- * spu-low.c (spu_join): Ditto.\r
- * server.c (join_inferiors_callback): Delete.\r
- (process_serial_event): For 'D' packet (detach) call join_inferior\r
- directly.\r
-\r
-2011-05-04 Joseph Myers <joseph@codesourcery.com>\r
-\r
- * README: Don't mention xscale*-*-linux*.\r
- * configure.srv (xscale*-*-linux*): Don't handle target.\r
-\r
-2011-04-27 Nathan Froyd <froydnj@codesourcery.com>\r
-\r
- * linux-x86-low.c (amd64_emit_const): Call memcpy instead of\r
- casting pointers.\r
- (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):\r
- (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):\r
- (i386_emit_void_call_2): Likewise.\r
-\r
-2011-04-26 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c: Move common macros to linux-ptrace.h.\r
- Include linux-ptrace.h.\r
- * Makefile.in (linux_ptrace_h): New.\r
- (linux-low.o): Depends on linux-ptrace.h.\r
-\r
-2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if\r
- RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.\r
- (remote_prepare): New function with most of the TCP code from ...\r
- (remote_open): ... here. Detect PORT here unconditionally. Move also\r
- setting transport_is_reliable.\r
- * server.c (run_once): New variable.\r
- (gdbserver_usage): Document it.\r
- (main): Set run_once for `--once'. Call remote_prepare. Exit after\r
- the first run if RUN_ONCE.\r
- * server.h (run_once, remote_prepare): New declarations.\r
-\r
-2011-04-19 Tom Tromey <tromey@redhat.com>\r
-\r
- * win32-low.c (handle_load_dll): Remove duplicate "the".\r
-\r
-2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- Remove support for old Cygwin 1.5 versions.\r
- * win32-low.c (win32_create_inferior): Use new cygwin_path_list\r
- function to avoid warning.\r
- (win32_add_one_solib): Use cygwin_conv_path function to avoid\r
- warning.\r
-\r
-2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * gdbserver/server.h (Macro _): Define it if not available.\r
-\r
-2011-03-14 Michael Snyder <msnyder@vmware.com>\r
-\r
- * hostio.c (handle_close): Remove unnecessary null test.\r
-\r
-2011-03-10 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * Makefile.in (maintainer-clean realclean distclean): Remove\r
- "make ... subdir_do" command.\r
-\r
-2011-03-10 Michael Snyder <msnyder@vmware.com>\r
-\r
- * tracepoint.c (tracepoint_finish_step): Fix loop variable.\r
-\r
- * server.c (handle_v_run): Free alloced buffer on early return.\r
-\r
-2011-03-09 Yao Qi <yao@codesourcery.com>\r
-\r
- Revert:\r
- 2011-03-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in: Remove GNU make feature --directory.\r
-\r
- 2011-03-05 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.\r
- (subdir_do): New make target. Copied from gdb/Makefile.\r
- (maintainer-clean, realclean, distclean, clean): Call corresponding\r
- make targets in common/Makefile.\r
-\r
- 2011-02-11 Yao Qi <yao@codesourcery.com>\r
-\r
- * configure.ac: Call AC_PROG_RANLIB.\r
- * Makefile.in: Remove signals.o from OBS. Link libcommon.a.\r
- * configure: Regenerate.\r
-\r
-2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.\r
-\r
-2011-03-06 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).\r
-\r
-2011-03-05 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.\r
- (subdir_do): New make target. Copied from gdb/Makefile.\r
- (maintainer-clean, realclean, distclean, clean): Call corresponding\r
- make targets in common/Makefile.\r
-\r
-2011-03-04 Yao Qi <yao@codesourcery.com>\r
-\r
- * Makefile.in: Remove GNU make feature --directory.\r
-\r
-2011-03-04 Michael Snyder <msnyder@vmware.com>\r
-\r
- * server.c (queue_stop_reply): Call xmalloc not malloc.\r
-\r
-2011-03-02 Michael Snyder <msnyder@vmware.com>\r
-\r
- * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.\r
-\r
-2011-02-28 Michael Snyder <msnyder@vmware.com>\r
-\r
- * tracepoint.c (cmd_qtv): Discard unused value 'packet'.\r
- (cmd_qtframe): Ditto.\r
- (cmd_qtbuffer): Ditto.\r
- (cmd_bigqtbuffer): Ditto.\r
-\r
- * utils.c (decimal2str): Initialize 'width' to nine, then\r
- don't mess with it.\r
-\r
-2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * hostio.c (require_data): Free *data, not data.\r
-\r
-2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * hostio.c (require_data): Use free, not xfree.\r
-\r
-2011-02-27 Michael Snyder <msnyder@vmware.com>\r
-\r
- * server.c (handle_query): Discard unused value.\r
-\r
- * hostio.c (require_data): Free malloc memory before returning\r
- error.\r
-\r
-2011-02-26 Michael Snyder <msnyder@vmware.com>\r
-\r
- * linux-low.c (list_threads): Call closedir for dirent.\r
-\r
-2011-02-27 Michael Snyder <msnyder@vmware.com>\r
-\r
- * i386-low.c (i386-length_and_rw_bits): Comment the fact that\r
- a case statement falls through.\r
-\r
- * linux-low.c (linux_xfer_siginfo): Fix fencepost error.\r
-\r
- * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error\r
- in comparison.\r
-\r
-2011-02-26 Michael Snyder <msnyder@vmware.com>\r
-\r
- * utils.c (decimal2str): Eliminate dead code and dead param.\r
- (pulongest): Drop dead param from call to decimal2str.\r
- (plongest): Ditto.\r
-\r
-2011-02-24 Joel Brobecker <brobecker@adacore.com>\r
-\r
- Revert the following patch (not approved yet):\r
- 2011-02-21 Hui Zhu <teawater@gmail.com>\r
- * tracepoint.c (tp_printf): New function.\r
- (eval_agent_expr): Handle gdb_agent_op_printf.\r
-\r
-2011-02-21 Hui Zhu <teawater@gmail.com>\r
-\r
- * tracepoint.c (tp_printf): New function.\r
- (eval_agent_expr): Handle gdb_agent_op_printf.\r
-\r
-2011-02-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * Makefile.in (tracepoint-ipa.o): Depend on ax.def.\r
- (tracepoint.o): Likewise.\r
- * tracepoint.c (enum gdb_agent_op): Use ax.def.\r
- (gdb_agent_op_names): Likewise.\r
-\r
-2011-02-18 Tom Tromey <tromey@redhat.com>\r
-\r
- * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,\r
- gdb_agent_op_rot>: New constants.\r
- (gdb_agent_op_names): Add pick and roll.\r
- (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New\r
- cases.\r
-\r
-2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * aclocal.m4: Regenerated with aclocal-1.11.1.\r
-\r
-2011-02-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_qxfer_traceframe_info): New.\r
- (qxfer_packets): Register "traceframe-info".\r
- (handle_query): Report support for qXfer:traceframe-info:read+.\r
- * tracepoint.c (match_blocktype): New.\r
- (traceframe_find_block_type): Rename to ...\r
- (traceframe_walk_blocks): ... this. Add callback filter argument,\r
- and use it.\r
- (traceframe_find_block_type): New, reimplemented on top of\r
- traceframe_walk_blocks.\r
- (build_traceframe_info_xml): New.\r
- (traceframe_read_info): New.\r
- * server.h (traceframe_read_info): Declare.\r
-\r
-2011-02-11 Yao Qi <yao@codesourcery.com>\r
-\r
- * configure.ac: Call AC_PROG_RANLIB.\r
- * Makefile.in: Remove signals.o from OBS. Link libcommon.a.\r
- * configure: Regenerate.\r
-\r
-2011-02-07 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (gdb_read_memory): Change return semantics to allow\r
- partial transfers.\r
- (handle_search_memory_1): Adjust.\r
- (process_serial_event) <'m' packet>: Handle partial transfers.\r
- * tracepoint.c (traceframe_read_mem): Handle partial transfers.\r
-\r
-2011-01-28 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * regcache.c (init_register_cache): Initialize\r
- regcache->register_status.\r
- (free_register_cache): Release regcache->register_status.\r
- (regcache_cpy): Copy register_status.\r
- (registers_to_string): Print 'x's for unavailable registers.\r
- (supply_register): Mark the register's status valid or\r
- unavailable, depending on whether a buffer was passed in or not.\r
- (supply_register_zeroed): New.\r
- (supply_regblock): Mark the registers' status valid or\r
- unavailable, depending on whether a buffer was passed in or not.\r
- * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.\r
- (struct regcache): New `register_status' field.\r
- (supply_register_zeroed): Declare.\r
- * i387-fp.c (i387_xsave_to_cache): Zero out registers using\r
- supply_register_zeroed, rather than passing a NULL buffer to\r
- supply_register.\r
- * tracepoint.c (fetch_traceframe_registers): Update comment.\r
-\r
-2011-01-28 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register\r
- buffer explicit.\r
-\r
-2011-01-25 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.h (decode_xfer_write): Change prototype.\r
- * remote-utils.c (decode_xfer_write): Remove `annex' parameter,\r
- and don't extract the annex here.\r
- * server.c (decode_xfer_read): Remove `annex' parameter,\r
- and don't extract the annex here.\r
- (decode_xfer): New.\r
- (struct qxfer): New.\r
- (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)\r
- (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)\r
- (handle_qxfer_statictrace): New functions, abstracted out from\r
- handle_query, and made to use the struct qxfer interface.\r
- (handle_threads_qxfer_proper): Rename to ...\r
- (handle_qxfer_threads_proper): ... this.\r
- (handle_threads_qxfer): Rename to ...\r
- (handle_qxfer_threads): ... this. Adjust.\r
- (qxfer_packets): New array.\r
- (handle_qxfer): New function.\r
- (handle_query): Use handle_qxfer.\r
-\r
-2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>\r
-\r
- * gdbreplay.c: Shorten lines of >= 80 columns.\r
- * linux-low.c: Ditto.\r
- * linux-ppc-low.c: Ditto.\r
- * linux-s390-low.c: Ditto.\r
- * linux-sparc-low.c: Ditto.\r
- * linux-x86-low.c: Ditto.\r
- * linux-xtensa-low.c: Ditto.\r
- * mem-break.c: Ditto.\r
- * nto-low.c: Ditto.\r
- * regcache.h: Ditto.\r
- * remote-utils.c: Ditto.\r
- * server.c: Ditto.\r
- * server.h: Ditto.\r
- * thread-db.c: Ditto.\r
- * tracepoint.c: Ditto.\r
- * utils.c: Ditto.\r
- * win32-low.h: Ditto.\r
-\r
-2011-01-05 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year\r
- update.\r
-\r
-2011-01-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * server.c (gdbserver_version): Update copyright year in version\r
- output.\r
- * gdbreplay.c (gdbreplay_version): Ditto.\r
-\r
-2010-12-29 Jie Zhang <jie.zhang@analog.com>\r
-\r
- * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.\r
- * linux-bfin-low.c: New file.\r
- * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and\r
- PT_DATA_ADDR for BFIN targets.\r
- * Makefile.in (SFILES): Add linux-bfin-low.c.\r
- (clean): Remove reg-bfin.c.\r
- (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.\r
- * README: Mention supported Blackfin targets.\r
-\r
-2010-12-23 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * .gitignore: New file.\r
-\r
-2010-11-16 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * linux-low.c (linux_tracefork_child): Add char* cast to arg.\r
-\r
-2010-10-22 Jie Zhang <jie@codesourcery.com>\r
-\r
- * Makefile.in: Add FLAGS_TO_PASS variable.\r
- (install): Remove dependency of install-only and recursively\r
- invoke make for install-only.\r
-\r
-2010-10-04 Doug Evans <dje@google.com>\r
-\r
- * Makefile.in (uninstall): Use $(DESTDIR).\r
-\r
-2010-09-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- PR gdb/11842\r
-\r
- * linux-x86-low.c (compat_siginfo_from_siginfo)\r
- (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when\r
- si_code is < 0. Check for si_code == SI_TIMER before checking for\r
- si_code < 0.\r
-\r
-2010-09-13 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-i386-low.c: New file.\r
- * configure.srv: Add handling of i[34567]86-*-lynxos* targets.\r
-\r
-2010-09-13 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c (ptrace_request_to_str): Remove handling for\r
- request values that have been removed in LynxOS 5.x.\r
-\r
-2010-09-13 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of\r
- <ptrace.h>\r
-\r
-2010-09-09 Nathan Sidwell <nathan@codesourcery.com>\r
-\r
- * configure.ac: Add --enable-inprocess-agent option.\r
- * configure: Rebuilt.\r
-\r
-2010-09-06 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill): Remove unused variable.\r
- (linux_stabilize_threads): Likewise.\r
- * server.c (start_inferior): Likewise.\r
- (queue_stop_reply_callback): Likewise.\r
- * tracepoint.c (do_action_at_tracepoint): Likewise.\r
-\r
-2010-09-06 Yao Qi <yao@codesourcery.com>\r
-\r
- * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior\r
- on return.\r
-\r
-2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.\r
-\r
-2010-09-06 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * Makefile.in (install-only): Replace $IPA_DEPFILES with\r
- "$(IPA_DEPFILES)".\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbserver/lynx-low.c, gdbserver/lynx-low.h,\r
- gdbserver/lynx-ppc-low.c: New files.\r
- * Makefile.in (lynx_low_h): New variable.\r
- (lynx-low.o, lynx-ppc-low.o): New rules.\r
- * configure.ac: On LynxOS, link with -lnetinet.\r
- * configure.srv: Add handling of powerpc-*-lynxos* targets.\r
- * configure: regenerate.\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * Makefile.in (vasprintf.o, vsnprintf.o): New rules.\r
- * configure.ac: Add check for vasprintf and vsnprintf.\r
- * configure, config.in: Regenerate.\r
- * server.h (vasprintf, vsnprintf): Add conditional declarations.\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbreplay.c: Move include of alloca.h up, next to include of\r
- malloc.h.\r
- * server.h: Add include of malloc.h.\r
- * mem-break.c: Remove include of malloc.h.\r
- * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * Makefile.in (memmem.o): Build with -Wno-error.\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * utils.c (xsnprintf): Make non-static.\r
- * server.h: Add xsnprintf declaration.\r
- * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:\r
- replace calls to snprintf by calls to xsnprintf throughout.\r
-\r
-2010-09-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * configure.ac: Add configure check for alloca.\r
- * configure, config.in: Regenerate.\r
- * server.h: Include alloca.h if it exists.\r
- * gdbreplay.c: Include alloca.h if it exists.\r
-\r
-2010-08-28 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (__SIGRTMIN): Define if not already defined.\r
- (linux_create_inferior): Check for __ANDROID__ rather than\r
- __SIGRTMIN.\r
- (enqueue_one_deferred_signal): Don't requeue non-RT signals that\r
- are already deferred.\r
- (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.\r
- (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is\r
- stopped and already has a pending signal to report.\r
- (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has\r
- a pending signal to report or is moving out of a jump pad.\r
- (linux_init_signals): Check for __ANDROID__ rather than\r
- __SIGRTMIN.\r
-\r
-2010-08-28 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_stabilize_threads): Wrap debug output in a\r
- debug_threads check. Avoid a linear search when not doing debug\r
- output.\r
-\r
-2010-08-27 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.\r
- (struct gdb_event) <fd>: Change type to gdb_fildes_t.\r
- (struct file_handler) <fd>: Change type to gdb_fildes_t.\r
- (process_event): Change local fd's type to gdb_fildes_t.\r
- (create_file_handler): Adjust prototype.\r
- (delete_file_handler): Adjust prototype.\r
- (handle_file_event): Adjust prototype. Use pfildes.\r
- (create_file_event): Adjsut prototype.\r
- * remote-utils.c (remote_desc, listen_desc): Change type to\r
- gdb_fildes_t.\r
- * server.h: New gdb_fildes_t typedef.\r
- [USE_WIN32API]: Include winsock2.h.\r
- (delete_file_handler, add_file_handler): Adjust prototypes.\r
- (pfildes): Declare.\r
- * utils.c (pfildes): New.\r
-\r
-2010-08-27 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * configure.ac (build_warnings): Add -Wno-char-subscripts.\r
- * configure: Regenerate.\r
-\r
-2010-08-27 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_unprepare_to_access_memory): Rename to ...\r
- (linux_done_accessing_memory): ... this.\r
- (linux_target_ops): Adjust.\r
- * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.\r
- * nto-low.c (nto_target_ops): Adjust comment.\r
- * server.c (gdb_read_memory, gdb_write_memory): Adjust.\r
- * spu-low.c (spu_target_ops): Adjust comment.\r
- * target.h (target_ops): Rename unprepare_to_access_memory field\r
- to done_accessing_memory.\r
- (unprepare_to_access_memory): Rename to ...\r
- (done_accessing_memory): ... this.\r
-\r
-2010-08-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_prepare_to_access_memory): New.\r
- (linux_unprepare_to_access_memory): New.\r
- (linux_target_ops): Install them.\r
- * server.c (read_memory): Rename to ...\r
- (gdb_read_memory): ... this. Use\r
- prepare_to_access_memory/prepare_to_access_memory.\r
- (write_memory): Rename to ...\r
- (gdb_write_memory): ... this. Use\r
- prepare_to_access_memory/prepare_to_access_memory.\r
- (handle_search_memory_1): Adjust.\r
- (process_serial_event): Adjust.\r
- * target.h (struct target_ops): New fields\r
- prepare_to_access_memory and unprepare_to_access_memory.\r
- (prepare_to_access_memory, unprepare_to_access_memory): New.\r
- * linux-x86-low.c (x86_insert_point, x86_remove_point): Use\r
- prepare_to_access_memory/prepare_to_access_memory.\r
- * nto-low.c (nto_target_ops): Adjust.\r
- * spu-low.c (spu_target_ops): Adjust.\r
- * win32-low.c (win32_target_ops): Adjust.\r
-\r
-2010-08-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * Makefile.in (WARN_CFLAGS): Get it from configure.\r
- (WERROR_CFLAGS): New.\r
- (INTERNAL_CFLAGS): Add WERROR_CFLAGS.\r
- * configure.ac: Introduce --enable-werror, which adds -Werror to\r
- the compiler command line. Enabled by default. Disable with\r
- --disable-werror. Add -Wdeclaration-after-statement\r
- Wpointer-arith and -Wformat-nonliteral to warning flags.\r
- * configure: Regenerate.\r
-\r
-2010-08-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.\r
-\r
-2010-08-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * gdbreplay.c (remote_error): New.\r
- (gdbchar): New.\r
- (expect): Use gdbchar. Check for error reading from GDB.\r
- Clarify sync error output.\r
- (play): Check for errors writing to GDB.\r
- * linux-low.c (sigchld_handler): Really ignore `write' errors.\r
- * remote-utils.c (getpkt): Check for errors writing to the remote\r
- descriptor.\r
-\r
-2010-08-25 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_1): Move non-debugging code out of\r
- `debug_threads' control.\r
-\r
-2010-08-25 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_1): Don't set last_status here.\r
- * server.c (push_event, queue_stop_reply_callback): Assert we're\r
- not pushing a TARGET_WAITKIND_IGNORE event.\r
- (start_inferior, start_inferior, attach_inferior, handle_v_cont)\r
- (myresume, handle_target_event): Set the thread's last_resume_kind\r
- and last_status from the target returned status.\r
-\r
-2010-08-25 Pedro Alves <pedro@codesourcery.com>\r
-\r
- PR threads/10729\r
-\r
- * linux-x86-low.c (update_debug_registers_callback): New.\r
- (i386_dr_low_set_addr): Use it.\r
- (i386_dr_low_get_addr): New.\r
- (i386_dr_low_set_control): Use update_debug_registers_callback.\r
- (i386_dr_low_get_control): New.\r
- (i386_dr_low_get_status): Adjust.\r
- * linux-low.c (linux_stop_lwp): New.\r
- * linux-low.h (linux_stop_lwp): Declare.\r
-\r
- * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as\r
- argument instead of a i386_debug_reg_state.\r
- (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of\r
- a i386_debug_reg_state.\r
- (i386_insert_aligned_watchpoint): Adjust.\r
- (i386_remove_aligned_watchpoint): Adjust.\r
- (i386_low_stopped_data_address): Read the debug registers from the\r
- inferior instead of from the mirrors.\r
- * i386-low.h (struct i386_debug_reg_state): Extend comment.\r
- (i386_dr_low_get_addr): Declare.\r
- (i386_dr_low_get_control): Declare.\r
- (i386_dr_low_get_status): Change prototype.\r
-\r
- * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.\r
- (i386_dr_low_get_addr): New.\r
- (i386_dr_low_get_control): New.\r
- (i386_dr_low_get_status): Adjust prototype. Return\r
- dr_status_mirror.\r
- (i386_initial_stuff): Clear dr_status_mirror and\r
- dr_control_mirror.\r
- (i386_get_thread_context): Adjust.\r
- (i386_set_thread_context): Adjust.\r
- (i386_thread_added): Adjust.\r
-\r
-2010-08-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.h (linux_thread_area): Delete declaration.\r
-\r
-2010-08-11 Thomas Schwinge <thomas@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_1): Correctly return the ptid of the child\r
- after its termination.\r
-\r
-2010-08-09 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (gdb_wants_lwp_stopped): Delete.\r
- (gdb_wants_all_stopped): Delete.\r
- (linux_wait_1): Don't call them.\r
- * server.c (handle_v_cont): Tag all threads as want-stopped.\r
- (gdb_wants_thread_stopped): Fix comments. Tag the thread that\r
- stopped as "client-wants-stopped".\r
-\r
-2010-07-31 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * Makefile.in (signals_h): New.\r
- (server_h): Depend on it.\r
- (server.o): Don't depend on $(signals_def).\r
- (signals.o): Depend on $(signals_def).\r
-\r
-2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * Makefile.in (signals_def): New.\r
- (server_h): Append include/gdb/signals.h and signals_def.\r
- (server.o): Append signals_def.\r
-\r
-2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * server.c (handle_target_event): Use target_signal_to_host for\r
- resume_info.sig initialization.\r
- * target.h (struct thread_resume) <sig>: New comment.\r
-\r
-2010-07-20 Ozkan Sezer <sezeroz@gmail.com>\r
-\r
- * server.c (handle_query): strcpy() the returned string from paddress()\r
- instead of sprintf().\r
- * utils.c (paddress): Return phex_nz().\r
-\r
-2010-07-07 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * server.c (handle_v_cont): Call mourn_inferior if process\r
- just exited.\r
- (myresume): Likewise.\r
-\r
-2010-07-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Static tracepoints, and integration with UST.\r
-\r
- * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.\r
- * mem-break.c (uninsert_all_breakpoints)\r
- (reinsert_all_breakpoints): New.\r
- * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):\r
- * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.\r
- (gdb_agent_ust_loaded, helper_thread_id)\r
- (gdb_agent_helper_thread_id): New macros.\r
- (struct ipa_sym_addresses): Add addr_ust_loaded,\r
- addr_helper_thread_id, addr_cmd_buf.\r
- (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.\r
- (in_process_agent_loaded_ust): New.\r
- (write_e_ust_not_loaded): New.\r
- (maybe_write_ipa_ust_not_loaded): New.\r
- (struct collect_static_trace_data_action): New.\r
- (enum tracepoint_type) <static_tracepoint>: New.\r
- (struct tracepoint) <handle>: Mention static tracepoints.\r
- (struct static_tracepoint_ctx): New.\r
- (CMD_BUF_SIZE): New.\r
- (add_tracepoint_action): Handle static tracepoint actions.\r
- (unprobe_marker_at): New.\r
- (clear_installed_tracepoints): Handle static tracepoints.\r
- (cmd_qtdp): Handle static tracepoints.\r
- (probe_marker_at): New.\r
- (cmd_qtstart): Handle static tracepoints.\r
- (response_tracepoint): Handle static tracepoints.\r
- (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.\r
- (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.\r
- (get_context_regcache): Handle static tracepoints.\r
- (do_action_at_tracepoint): Handle static tracepoint actions.\r
- (traceframe_find_block_type): Handle static trace data blocks.\r
- (traceframe_read_sdata): New.\r
- (download_tracepoints): Download static tracepoint actions.\r
- [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.\r
- (GDB_PROBE_NAME): New.\r
- (ust_ops): New.\r
- (GET_UST_SYM): New.\r
- (USTF): New.\r
- (dlsym_ust): New.\r
- (ust_marker_to_static_tracepoint): New.\r
- (gdb_probe): New.\r
- (collect_ust_data_at_tracepoint): New.\r
- (gdb_ust_probe): New.\r
- (UNIX_PATH_MAX, SOCK_DIR): New.\r
- (gdb_ust_connect_sync_socket): New.\r
- (resume_thread, stop_thread): New.\r
- (run_inferior_command): New.\r
- (init_named_socket): New.\r
- (gdb_ust_socket_init): New.\r
- (cstr_to_hexstr): New.\r
- (next_st): New.\r
- (first_marker, next_marker): New.\r
- (response_ust_marker): New.\r
- (cmd_qtfstm, cmd_qtsstm): New.\r
- (unprobe_marker_at, probe_marker_at): New.\r
- (cmd_qtstmat, gdb_ust_thread): New.\r
- (gdb_ust_init): New.\r
- (initialize_tracepoint_ftlib): Call gdb_ust_init.\r
- * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h\r
- (ST_REGENTRY): New.\r
- (x86_64_st_collect_regmap): New.\r
- (X86_64_NUM_ST_COLLECT_GREGS): New.\r
- (AMD64_RIP_REGNUM): New.\r
- (supply_static_tracepoint_registers): New.\r
- * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h\r
- (ST_REGENTRY): New.\r
- (i386_st_collect_regmap): New.\r
- (i386_NUM_ST_COLLECT_GREGS): New.\r
- (supply_static_tracepoint_registers): New.\r
- * server.c (handle_query): Handle qXfer:statictrace:read.\r
- <qSupported>: Report support for StaticTracepoints, and\r
- qXfer:statictrace:read features.\r
- * server.h (traceframe_read_sdata)\r
- (supply_static_tracepoint_registers): Declare.\r
- * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)\r
- (unpack_varlen_hex): Include in IPA build.\r
- * Makefile.in (ustlibs, ustinc): New.\r
- (IPA_OBJS): Add remote-utils-ipa.o.\r
- ($(IPA_LIB)): Link -ldl and -lpthread.\r
- (UST_CFLAGS): New.\r
- (IPAGENT_CFLAGS): Add UST_CFLAGS.\r
- * config.in, configure: Regenerate.\r
-\r
-2010-06-20 Ian Lance Taylor <iant@google.com>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-x86-low.c (always_true): Delete.\r
- (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of\r
- trying to fool the compiler with always_true.\r
-\r
-2010-06-20 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * tracepoint.c (condition_true_at_tracepoint): Don't run compiled\r
- conditions in gdbserver.\r
-\r
-2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * spu-low.c (spu_read_memory): Wrap around local store limit.\r
- (spu_write_memory): Likewise.\r
-\r
-2010-06-15 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)\r
- (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with\r
- LONGEST uses.\r
- * server.h (struct emit_ops): Replace int64_t uses with LONGEST\r
- uses.\r
- * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t\r
- uses with LONGEST uses.\r
-\r
-2010-06-14 Stan Shebs <stan@codesourcery.com>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- Bytecode compiler.\r
-\r
- * linux-x86-low.c: Include limits.h.\r
- (add_insns): New.\r
- (always_true): New.\r
- (EMIT_ASM): New.\r
- (EMIT_ASM32): New.\r
- (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)\r
- (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)\r
- (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,\r
- (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)\r
- (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,\r
- (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,\r
- (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)\r
- (amd64_emit_const, amd64_emit_call, amd64_emit_reg)\r
- (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)\r
- (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)\r
- (amd64_emit_void_call_2): New.\r
- (amd64_emit_ops): New.\r
- (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)\r
- (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)\r
- (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)\r
- (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)\r
- (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)\r
- (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)\r
- (i386_emit_goto, i386_write_goto_address, i386_emit_const)\r
- (i386_emit_call, i386_emit_reg, i386_emit_pop)\r
- (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)\r
- (i386_emit_stack_adjust, i386_emit_int_call_1)\r
- (i386_emit_void_call_2): New.\r
- (i386_emit_ops): New.\r
- (x86_emit_ops): New.\r
- (the_low_target): Install x86_emit_ops.\r
- * server.h (struct emit_ops): New.\r
- (get_raw_reg_func_addr): Declare.\r
- (current_insn_ptr, emit_error): Declare.\r
- * tracepoint.c (get_raw_reg, get_trace_state_variable_value)\r
- (set_trace_state_variable_value): New defines.\r
- (struct ipa_sym_addresses): New fields addr_get_raw_reg,\r
- addr_get_trace_state_variable_value and\r
- addr_set_trace_state_variable_value.\r
- (symbol_list): New fields for get_raw_reg,\r
- get_trace_state_variable_value and set_trace_state_variable_value.\r
- (condfn): New typedef.\r
- (struct tracepoint): New field `compiled_cond'.\r
- (do_action_at_tracepoint): Clear compiled_cond.\r
- (get_trace_state_variable_value, set_trace_state_variable_value):\r
- Export in the IPA.\r
- (condition_true_at_tracepoint): If there's a compiled condition,\r
- run that.\r
- (current_insn_ptr, emit_error): New globals.\r
- (struct bytecode_address): New.\r
- (get_raw_reg_func_addr): New.\r
- (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)\r
- (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)\r
- (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)\r
- (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)\r
- (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)\r
- (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)\r
- (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.\r
- (compile_tracepoint_condition, compile_bytecodes): New.\r
- * target.h (emit_ops): Forward declare.\r
- (struct target_ops): New field emit_ops.\r
- (target_emit_ops): New.\r
- * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.\r
- * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.\r
- * linux-low.c (linux_emit_ops): New.\r
- (linux_target_ops): Install it.\r
- * linux-low.h (struct linux_target_ops): New field emit_ops.\r
-\r
-2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.\r
- * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.\r
-\r
-2010-06-01 Pedro Alves <pedro@codesourcery.com>\r
- Stan Shebs <stan@codesourcery.com>\r
-\r
- * Makefile.in (IPA_DEPFILES, extra_libraries): New.\r
- (all): Depend on $(extra_libraries).\r
- (install-only): Install the IPA.\r
- (IPA_OBJS, IPA_LIB): New.\r
- (clean): Remove the IPA lib.\r
- (IPAGENT_CFLAGS): New.\r
- (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)\r
- (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)\r
- (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.\r
- * linux-amd64-ipa.c, linux-i386-ipa.c: New files.\r
- * configure.ac: Check for atomic builtins support in the compiler.\r
- (IPA_DEPFILES, extra_libraries): Define.\r
- * configure.srv (ipa_obj): Add description.\r
- (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.\r
- (i[34567]86-*-linux*): Set ipa_obj.\r
- (x86_64-*-linux*): Set ipa_obj.\r
- * linux-low.c (stabilizing_threads): New.\r
- (supports_fast_tracepoints): New.\r
- (linux_detach): Stabilize threads before detaching.\r
- (handle_tracepoints): Handle internal tracing breakpoints. Assert\r
- the lwp is either not stabilizing, or is moving out of a jump pad.\r
- (linux_fast_tracepoint_collecting): New.\r
- (maybe_move_out_of_jump_pad): New.\r
- (enqueue_one_deferred_signal): New.\r
- (dequeue_one_deferred_signal): New.\r
- (linux_wait_for_event_1): If moving out of a jump pad, defer\r
- pending signals to later.\r
- (linux_stabilize_threads): New.\r
- (linux_wait_1): Check if threads need moving out of jump pads, and\r
- do it if so.\r
- (stuck_in_jump_pad_callback): New.\r
- (move_out_of_jump_pad_callback): New.\r
- (lwp_running): New.\r
- (linux_resume_one_lwp): Handle moving out of jump pads.\r
- (linux_set_resume_request): Dequeue deferred signals.\r
- (need_step_over_p): Also step over fast tracepoint jumps.\r
- (start_step_over): Also uninsert fast tracepoint jumps.\r
- (finish_step_over): Also reinsert fast tracepoint jumps.\r
- (linux_install_fast_tracepoint_jump): New.\r
- (linux_target_ops): Install linux_stabilize_threads and\r
- linux_install_fast_tracepoint_jump_pad.\r
- * linux-low.h (linux_target_ops) <get_thread_area,\r
- install_fast_tracepoint_jump_pad>: New fields.\r
- (struct lwp_info) <collecting_fast_tracepoint,\r
- pending_signals_to_report, exit_jump_pad_bkpt>: New fields.\r
- (linux_get_thread_area): Declare.\r
- * linux-x86-low.c (jump_insn): New.\r
- (x86_get_thread_area): New.\r
- (append_insns): New.\r
- (push_opcode): New.\r
- (amd64_install_fast_tracepoint_jump_pad): New.\r
- (i386_install_fast_tracepoint_jump_pad): New.\r
- (x86_install_fast_tracepoint_jump_pad): New.\r
- (the_low_target): Install x86_get_thread_area and\r
- x86_install_fast_tracepoint_jump_pad.\r
- * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.\r
- (struct fast_tracepoint_jump): New.\r
- (fast_tracepoint_jump_insn): New.\r
- (fast_tracepoint_jump_shadow): New.\r
- (find_fast_tracepoint_jump_at): New.\r
- (fast_tracepoint_jump_here): New.\r
- (delete_fast_tracepoint_jump): New.\r
- (set_fast_tracepoint_jump): New.\r
- (uninsert_fast_tracepoint_jumps_at): New.\r
- (reinsert_fast_tracepoint_jumps_at): New.\r
- (set_breakpoint_at): Use write_inferior_memory.\r
- (uninsert_raw_breakpoint): Use write_inferior_memory.\r
- (check_mem_read): Mask out fast tracepoint jumps.\r
- (check_mem_write): Mask out fast tracepoint jumps.\r
- * mem-break.h (struct fast_tracepoint_jump): Forward declare.\r
- (set_fast_tracepoint_jump): Declare.\r
- (delete_fast_tracepoint_jump)\r
- (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)\r
- (reinsert_fast_tracepoint_jumps_at): Declare.\r
- * regcache.c: Don't compile many functions when building the\r
- in-process agent library.\r
- (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating\r
- the register buffer in the heap.\r
- (free_register_cache): If the register buffer isn't owned by the\r
- regcache, don't free it.\r
- (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate\r
- pre-existing register caches.\r
- * remote-utils.c (convert_int_to_ascii): Constify `from' parameter\r
- type.\r
- (convert_ascii_to_int): : Constify `from' parameter type.\r
- (decode_M_packet, decode_X_packet): Replace the `to' parameter by\r
- a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc\r
- the needed buffer in-place.\r
- (relocate_instruction): New.\r
- * server.c (handle_query) <qSymbols>: If the target supports\r
- tracepoints, give it a chance of looking up symbols. Report\r
- support for fast tracepoints.\r
- (handle_status): Stabilize threads.\r
- (process_serial_event): Adjust.\r
- * server.h (struct fast_tracepoint_jump): Forward declare.\r
- (struct process_info) <fast_tracepoint_jumps>: New field.\r
- (convert_ascii_to_int, convert_int_to_ascii): Adjust.\r
- (decode_X_packet, decode_M_packet): Adjust.\r
- (relocate_instruction): Declare.\r
- (in_process_agent_loaded): Declare.\r
- (tracepoint_look_up_symbols): Declare.\r
- (struct fast_tpoint_collect_status): Declare.\r
- (fast_tracepoint_collecting): Declare.\r
- (force_unlock_trace_buffer): Declare.\r
- (handle_tracepoint_bkpts): Declare.\r
- (initialize_low_tracepoint)\r
- (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.\r
- * target.h (struct target_ops) <stabilize_threads,\r
- install_fast_tracepoint_jump_pad>: New fields.\r
- (stabilize_threads, install_fast_tracepoint_jump_pad): New.\r
- * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.\r
- [HAVE_STDINT_H]: Include stdint.h.\r
- (trace_debug_1): Rename to ...\r
- (trace_vdebug): ... this.\r
- (trace_debug): Rename to ...\r
- (trace_debug_1): ... this. Add `level' parameter.\r
- (trace_debug): New.\r
- (ATTR_USED, ATTR_NOINLINE): New.\r
- (IP_AGENT_EXPORT): New.\r
- (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)\r
- (collecting, gdb_collect, stop_tracing, flush_trace_buffer)\r
- (about_to_request_buffer_space, trace_buffer_is_full)\r
- (stopping_tracepoint, expr_eval_result, error_tracepoint)\r
- (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)\r
- (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)\r
- (traceframe_write_count, traceframes_created)\r
- (trace_state_variables)\r
- New renaming defines.\r
- (struct ipa_sym_addresses): New.\r
- (STRINGIZE_1, STRINGIZE, IPA_SYM): New.\r
- (symbol_list): New.\r
- (ipa_sym_addrs): New.\r
- (all_tracepoint_symbols_looked_up): New.\r
- (in_process_agent_loaded): New.\r
- (write_e_ipa_not_loaded): New.\r
- (maybe_write_ipa_not_loaded): New.\r
- (tracepoint_look_up_symbols): New.\r
- (debug_threads) [IN_PROCESS_AGENT]: New.\r
- (read_inferior_memory) [IN_PROCESS_AGENT]: New.\r
- (UNKNOWN_SIDE_EFFECTS): New.\r
- (stop_tracing): New.\r
- (flush_trace_buffer): New.\r
- (stop_tracing_bkpt): New.\r
- (flush_trace_buffer_bkpt): New.\r
- (read_inferior_integer): New.\r
- (read_inferior_uinteger): New.\r
- (read_inferior_data_pointer): New.\r
- (write_inferior_data_pointer): New.\r
- (write_inferior_integer): New.\r
- (write_inferior_uinteger): New.\r
- (struct collect_static_trace_data_action): Delete.\r
- (enum tracepoint_type): New.\r
- (struct tracepoint) <type>: New field `type'.\r
- <actions_str, step_actions, step_actions_str>: Only include in\r
- GDBserver.\r
- <orig_size, obj_addr_on_target, adjusted_insn_addr>\r
- <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.\r
- (tracepoints): Use IP_AGENT_EXPORT.\r
- (last_tracepoint): Don't include in the IPA.\r
- (stopping_tracepoint): Use IP_AGENT_EXPORT.\r
- (trace_buffer_is_full): Use IP_AGENT_EXPORT.\r
- (alloced_trace_state_variables): New.\r
- (trace_state_variables): Use IP_AGENT_EXPORT.\r
- (traceframe_t): Delete unused variable.\r
- (circular_trace_buffer): Don't include in the IPA.\r
- (trace_buffer_start): Delete.\r
- (struct trace_buffer_control): New.\r
- (trace_buffer_free): Delete.\r
- (struct ipa_trace_buffer_control): New.\r
- (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)\r
- (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):\r
- New.\r
- (trace_buffer_ctrl): New.\r
- (TRACE_BUFFER_CTRL_CURR): New.\r
- (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):\r
- Reimplement as macros.\r
- (trace_buffer_wrap): Delete.\r
- (traceframe_write_count, traceframe_read_count)\r
- (traceframes_created, tracing): Use IP_AGENT_EXPORT.\r
- (struct tracepoint_hit_ctx) <type>: New field.\r
- (struct fast_tracepoint_ctx): New.\r
- (memory_barrier): New.\r
- (cmpxchg): New.\r
- (record_tracepoint_error): Update atomically in the IPA.\r
- (clear_inferior_trace_buffer): New.\r
- (about_to_request_buffer_space): New.\r
- (trace_buffer_alloc): Handle GDBserver and inferior simulatenous\r
- updating the same buffer.\r
- (add_tracepoint): Default the tracepoint's type to trap\r
- tracepoint, and orig_size to -1.\r
- (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated\r
- internal variables.\r
- (create_trace_state_variable): New parameter `gdb'. Handle it.\r
- (clear_installed_tracepoints): Clear fast tracepoint jumps.\r
- (cmd_qtdp): Handle fast tracepoints.\r
- (cmd_qtdv): Adjust.\r
- (max_jump_pad_size): New.\r
- (gdb_jump_pad_head): New.\r
- (get_jump_space_head): New.\r
- (claim_jump_space): New.\r
- (sort_tracepoints): New.\r
- (MAX_JUMP_SIZE): New.\r
- (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the\r
- IPA.\r
- (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected\r
- support. Upload fast traceframes, and delete internal IPA\r
- breakpoints.\r
- (stop_tracing_handler): New.\r
- (flush_trace_buffer_handler): New.\r
- (cmd_qtstop): Upload fast tracepoints.\r
- (response_tracepoint): Handle fast tracepoints.\r
- (tracepoint_finished_step): Upload fast traceframes. Set the\r
- tracepoint hit context's tracepoint type.\r
- (handle_tracepoint_bkpts): New.\r
- (tracepoint_was_hit): Set the tracepoint hit context's tracepoint\r
- type. Add comment about fast tracepoints.\r
- (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the\r
- non-existing action_str field.\r
- (get_context_regcache): Handle fast tracepoints.\r
- (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC\r
- to the regcache.\r
- (fast_tracepoint_from_jump_pad_address): New.\r
- (fast_tracepoint_from_ipa_tpoint_address): New.\r
- (collecting_t): New.\r
- (force_unlock_trace_buffer): New.\r
- (fast_tracepoint_collecting): New.\r
- (collecting): New.\r
- (gdb_collect): New.\r
- (write_inferior_data_ptr): New.\r
- (target_tp_heap): New.\r
- (target_malloc): New.\r
- (download_agent_expr): New.\r
- (UALIGN): New.\r
- (download_tracepoints): New.\r
- (download_trace_state_variables): New.\r
- (upload_fast_traceframes): New.\r
- (IPA_FIRST_TRACEFRAME): New.\r
- (IPA_NEXT_TRACEFRAME_1): New.\r
- (IPA_NEXT_TRACEFRAME): New.\r
- [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.\r
- [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)\r
- (gdb_jump_pad_buffer_end): New.\r
- [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.\r
- (initialize_tracepoint): Adjust.\r
- [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch\r
- buffer. Initialize the low module.\r
- * utils.c (PREFIX, TOOLNAME): New.\r
- (malloc_failure): Use PREFIX.\r
- (error): In the IPA, an error causes an exit.\r
- (fatal, warning): Use PREFIX.\r
- (internal_error): Use TOOLNAME.\r
- (NUMCELLS): Increase to 10.\r
- * configure, config.in: Regenerate.\r
-\r
-2010-06-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_query) <qSupported>: Do two passes over the\r
- qSupported string to avoid nesting strtok.\r
-\r
-2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.\r
- (CDEPS): New.\r
- * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also\r
- -Wl,--dynamic-list.\r
- * configure: Regenerate.\r
- * proc-service.list: New.\r
-\r
-2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.\r
- New comment.\r
-\r
-2010-05-26 Ozkan Sezer <sezeroz@gmail.com>\r
-\r
- * gdbreplay.c (remote_open): Check error return from socket() call by\r
- its equality to -1 not by it being negative.\r
- * remote-utils.c (remote_open): Likewise.\r
-\r
-2010-05-23 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * config.h: Regenerate.\r
-\r
-2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>\r
-\r
- * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel\r
- doesn't provide PTRACE_GET_THREAD_AREA.\r
-\r
-2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>\r
-\r
- * linux-m68k-low.c: Include <asm/ptrace.h>\r
- (ps_get_thread_area): Implement.\r
-\r
-2010-05-03 Doug Evans <dje@google.com>\r
-\r
- * event-loop.c (struct callback_event): New struct.\r
- (callback_list): New global.\r
- (append_callback_event, delete_callback_event): New functions.\r
- (process_callback): New function.\r
- (start_event_loop): Call it.\r
- * remote-utils.c (NOT_SCHEDULED): Define.\r
- (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,\r
- moved out of readchar.\r
- (readchar): Rewrite. Call reschedule before returning.\r
- (reset_readchar): New function.\r
- (remote_close): Call it.\r
- (process_remaining, reschedule): New functions.\r
- * server.h (callback_handler_func): New typedef.\r
- (append_callback_event, delete_callback_event): Declare.\r
-\r
-2010-05-03 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * proc-service.c (ps_pglobal_lookup): Use\r
- thread_db_look_up_one_symbol.\r
- * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'\r
- parameter. Use it instead of all_symbols_looked_up.\r
- * server.h (struct process_info) <all_symbols_looked_up>: Delete\r
- field.\r
- (all_symbols_looked_up): Don't declare.\r
- (look_up_one_symbol): Add new `may_ask_gdb' parameter.\r
- * thread-db.c (struct thread_db) <all_symbols_looked_up>: New\r
- field.\r
- (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.\r
- Set all_symbols_looked_up here.\r
- (thread_db_look_up_one_symbol): New.\r
- (thread_db_get_tls_address): Adjust.\r
- (thread_db_load_search, try_thread_db_load_1): Always allocate the\r
- thread_db object on the heap, and tentatively set it in the\r
- process structure.\r
- (thread_db_init): Don't set all_symbols_looked_up here.\r
- * linux-low.h (thread_db_look_up_one_symbol): Declare.\r
-\r
-2010-05-03 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill, linux_detach): Adjust.\r
- (status_pending_p_callback): Remove redundant statement. Check\r
- for !TARGET_WAITIKIND_IGNORE, instead of\r
- TARGET_WAITKIND_STOPPED.\r
- (handle_tracepoints): Make sure LWP is locked. Adjust.\r
- (linux_wait_for_event_1): Adjust.\r
- (linux_cancel_breakpoints): New.\r
- (unsuspend_one_lwp): New.\r
- (unsuspend_all_lwps): New.\r
- (linux_wait_1): If finishing a step-over, unsuspend all lwps.\r
- (send_sigstop_callback): Change return type to int, add new\r
- `except' parameter and handle it.\r
- (suspend_and_send_sigstop_callback): New.\r
- (stop_all_lwps): Add new `suspend' and `expect' parameters, and\r
- pass them down. If SUSPEND, also increment the lwp's suspend\r
- count.\r
- (linux_resume_one_lwp): Add notice about resuming a suspended LWP.\r
- (need_step_over_p): Don't consider suspended LWPs.\r
- (start_step_over): Adjust.\r
- (proceed_one_lwp): Change return type to int, add new `except'\r
- parameter and handle it.\r
- (unsuspend_and_proceed_one_lwp): New.\r
- (proceed_all_lwps): Use find_inferior instead of\r
- for_each_inferior.\r
- (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them\r
- also decrement the suspend count of LWPs. Pass `except' down,\r
- instead of hacking its suspend count.\r
- (linux_pause_all): Add `freeze' parameter. Adjust.\r
- (linux_unpause_all): New.\r
- (linux_target_ops): Install linux_unpause_all.\r
- * server.c (handle_status): Adjust.\r
- * target.h (struct target_ops): New fields `unpause_all' and\r
- `cancel_breakpoints'. Add new parameter to `pause_all'.\r
- (pause_all): Add new `freeze' parameter.\r
- (unpause_all): New.\r
- (cancel_breakpoints): New.\r
- * tracepoint.c (clear_installed_tracepoints): Pause threads, and\r
- cancel breakpoints.\r
- (cmd_qtstart): Pause threads.\r
- (stop_tracing): Pause threads, and cancel breakpoints.\r
- * win32-low.c (win32_target_ops): Adjust.\r
-\r
-2010-05-03 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_for_event_1): Move passing the signal to\r
- the inferior right away from here...\r
- (linux_wait_1): ... to here, and adjust to check the thread's\r
- last_resume_kind instead of the lwp's step or stop_expected flags.\r
-\r
-2010-05-02 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * README: Use consistent `GDB' and `GDBserver' spellings.\r
-\r
-2010-05-02 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.\r
- (linux_kill): Stop all lwps here. Don't delete the main lwp here.\r
- (linux_detach_one_lwp): Assume the lwp is stopped.\r
- (any_thread_of): Delete.\r
- (linux_detach): Stop all lwps here. Don't blindly delete all\r
- breakpoints.\r
- (delete_lwp_callback): New.\r
- (linux_mourn): Delete all lwps of the process that is gone.\r
- (linux_wait_1): Don't delete the last lwp of the process here.\r
- * mem-break.h (mark_breakpoints_out): Declare.\r
- * mem-break.c (mark_breakpoints_out): New.\r
- (free_all_breakpoints): Use it.\r
- * server.c (handle_target_event): If the process is gone, mark\r
- breakpoints out.\r
- * thread-db.c (struct thread_db) <create_bp>: New field.\r
- (thread_db_enable_reporting): Fix prototype. Store a thread event\r
- breakpoint reference in the thread_db struct.\r
- (thread_db_load_search): Clear the thread_db object.\r
- (try_thread_db_load_1): Ditto.\r
- (switch_to_process): New.\r
- (disable_thread_event_reporting): Use it.\r
- (remove_thread_event_breakpoints): New.\r
- (thread_db_detach, thread_db_mourn): Use it.\r
-\r
-2010-05-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_enable_event_reporting): New.\r
- (linux_wait_for_event_1, handle_extended_wait): Use it.\r
-\r
-2010-04-30 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill_one_lwp, linux_kill)\r
- (linux_detach_one_lwp): Adjust to send_sigstop interface change.\r
- (send_sigstop): Take an lwp_info as parameter instead. Queue a\r
- SIGSTOP even if the LWP is stopped.\r
- (send_sigstop_callback): New.\r
- (stop_all_lwps): Use send_sigstop_callback instead.\r
- (linux_resume_one_thread): Adjust.\r
- (proceed_one_lwp): Still proceed an LWP that the client has\r
- requested to stop, if we haven't reported it as stopped yet. Make\r
- sure that LWPs the client want stopped, have a pending SIGSTOP.\r
-\r
-2010-04-26 Doug Evans <dje@google.com>\r
-\r
- * server.c (handle_general_set): Make static.\r
-\r
- * remote-utils.c (putpkt_binary_1): Call readchar instead of read.\r
- Print received char after testing for error/eof instead of before.\r
- (input_interrupt): Tweak comment.\r
-\r
-2010-04-23 Doug Evans <dje@google.com>\r
-\r
- * server.c (start_inferior): Print inferior argv if --debug.\r
-\r
-2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>\r
-\r
- * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.\r
- * nto-x86-low.c: Include server.h\r
-\r
-2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to\r
- be consistent with other sources of this directory.\r
- (init_registers_amd64): Correct name of source file of this function\r
- in the comment.\r
-\r
-2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * configure.srv (x86_64-*-mingw*): New configuration for Windows\r
- 64-bit executables.\r
-\r
-2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * win32-i386-low.c: Add 64-bit support.\r
- (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.\r
- (init_registers_amd64): Declare.\r
- (mappings): Add 64-bit version of array.\r
- (init_windows_x86): New function.\r
- (the_low_target): Change init_arch field to init_windows_x86.\r
-\r
-2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * win32-low.c: Adapt to support also 64-bit architecture.\r
- (child_xfer_memory): Use uintptr_t type for local variable `addr'.\r
- (get_image_name): Use SIZE_T type for local variable `done'.\r
- (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.\r
- (toolhelp_get_dll_name): Idem.\r
- (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.\r
- Use uintptr_t typecast to avoid warning.\r
- (handle_unload_dll): Use uintptr_t typecast to avoid warning.\r
- (handle_exception): Use phex_nz to avoid warning.\r
- (win32_wait): Remove unused local variable `process'.\r
-\r
-2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by\r
- `amd64-avx.o'.\r
-\r
-2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * configure.ac: Use `ws2_32' library for srv_mingw.\r
- * configure: Regenerate.\r
- * gdbreplay.c: Include winsock2.h instead of winsock.h.\r
- * remote-utils.c: Likewise.\r
-\r
-2010-04-17 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only\r
- if __x86_64__ is defined.\r
-\r
-2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * configure: Regenerate.\r
-\r
-2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * server.c (handle_query): Handle 'qGetTIBAddr' query.\r
- * target.h (target_ops): New get_tib_address field.\r
- * win32-low.h (win32_thread_info): Add thread_local_base field.\r
- * win32-low.c (child_add_thread): Add tlb argument.\r
- Set thread_local_base field to TLB.\r
- (get_child_debug_event): Adapt to child_add_thread change.\r
- (win32_get_tib_address): New function.\r
- (win32_target_ops): Set get_tib_address field to\r
- win32_get_tib_address.\r
- * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.\r
-\r
-2010-04-12 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_mourn): Also remove the process.\r
- * server.c (handle_target_event): Don't remove the process here.\r
- * nto-low.c (nto_mourn): New.\r
- (nto_target_ops): Install it.\r
- * spu-low.c (spu_mourn): New.\r
- (spu_target_ops): Install it.\r
- * win32-low.c (win32_mourn): New.\r
- (win32_target_ops): Install it.\r
-\r
-2010-04-12 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.h (buffer_xml_printf): Remove redundant `;'.\r
-\r
-2010-04-12 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * regcache.c (set_register_cache): Invalidate regcaches before\r
- changing the register cache layout.\r
- (regcache_invalidate_one): Allow a NULL regcache.\r
- * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate\r
- regcaches before changing the register cache layout or the target\r
- regsets.\r
-\r
-2010-04-12 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused\r
- variable warning on Linux/x86-64.\r
-\r
-2010-04-11 Pedro Alves <pedro@codesourcery.com>\r
-\r
- GDBserver disconnected tracing support.\r
-\r
- * linux-low.c (linux_remove_process): Delete.\r
- (add_lwp): Don't set last_resume_kind here.\r
- (linux_kill): Use `mourn'.\r
- (linux_detach): Use `thread_db_detach', and `mourn'.\r
- (linux_mourn): New.\r
- (linux_attach_lwp_1): Adjust comment.\r
- (linux_attach): last_resume_kind moved the thread_info; adjust.\r
- (status_pending_p_callback): Adjust.\r
- (linux_wait_for_event_1): Adjust.\r
- (count_events_callback, select_singlestep_lwp_callback)\r
- (select_event_lwp_callback, cancel_breakpoints_callback)\r
- (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)\r
- (proceed_one_lwp): Adjust.\r
- (linux_async): Add debug output.\r
- (linux_thread_stopped): New.\r
- (linux_pause_all): New.\r
- (linux_target_ops): Install linux_mourn, linux_thread_stopped and\r
- linux_pause_all.\r
- * linux-low.h (struct lwp_info): Delete last_resume_kind field.\r
- (thread_db_free): Delete declaration.\r
- (thread_db_detach, thread_db_mourn): Declare.\r
- * thread-db.c (thread_db_init): Use thread_db_mourn.\r
- (thread_db_free): Delete, split in two.\r
- (disable_thread_event_reporting): New.\r
- (thread_db_detach): New.\r
- (thread_db_mourn): New.\r
-\r
- * server.h (struct thread_info) <last_resume_kind>: New field.\r
- <attached>: Add comment.\r
- <gdb_detached>: New field.\r
- (handler_func): Change return type to int.\r
- (handle_serial_event, handle_target_event): Ditto.\r
- (gdb_connected): Declare.\r
- (tracing): Delete.\r
- (disconnected_tracing): Declare.\r
- (stop_tracing): Declare.\r
-\r
- * server.c (handle_query) <qSupported>: Report support for\r
- disconnected tracing.\r
- (queue_stop_reply_callback): Account for running threads.\r
- (gdb_wants_thread_stopped): New.\r
- (gdb_wants_all_threads_stopped): New.\r
- (gdb_reattached_process): New.\r
- (handle_status): Clear the `gdb_detached' flag of all processes.\r
- In all-stop, stop all threads.\r
- (main): Be sure to leave tfind mode. Handle disconnected tracing.\r
- (process_serial_event): If the remote connection breaks, or if an\r
- exit was forced with "monitor exit", force an event loop exit.\r
- Handle disconnected tracing on detach.\r
- (handle_serial_event): Adjust.\r
- (handle_target_event): If GDB isn't connected, forward events back\r
- to the inferior, unless the last process exited, in which case,\r
- exit gdbserver. Adjust interface.\r
-\r
- * remote-utils.c (remote_open): Don't block in accept. Instead\r
- register an event loop source on the listen socket file\r
- descriptor. Refactor bits into ...\r
- (listen_desc): ... this new global.\r
- (gdb_connected): ... this new function.\r
- (enable_async_notification): ... this new function.\r
- (handle_accept_event): ... this new function.\r
- (remote_close): Clear remote_desc.\r
-\r
- * inferiors.c (add_thread): Set the new thread's last_resume_kind.\r
-\r
- * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:\r
- New fields.\r
- (mourn_inferior): Define.\r
- (target_process_qsupported): Avoid the dangling else problem.\r
- (thread_stopped): Define.\r
- (pause_all): Define.\r
- (target_waitstatus_to_string): Declare.\r
- * target.c (target_waitstatus_to_string): New.\r
-\r
- * tracepoint.c (tracing): Make extern.\r
- (disconnected_tracing): New.\r
- (stop_tracing): Make extern. Handle tracing stops due to GDB\r
- disconnecting.\r
- (cmd_qtdisconnected): New.\r
- (cmd_qtstatus): Report disconnected tracing status in trace reply.\r
- (handle_tracepoint_general_set): Handle QTDisconnected.\r
-\r
- * event-loop.c (event_handler_func): Change return type to int.\r
- (process_event): Bail out if the event handler wants the event\r
- loop to stop.\r
- (handle_file_event): Ditto.\r
- (start_event_loop): Bail out if the event handler wants the event\r
- loop to stop.\r
-\r
- * nto-low.c (nto_target_ops): Adjust.\r
- * spu-low.c (spu_wait): Don't remove the process here.\r
- (spu_target_ops): Adjust.\r
- * win32-low.c (win32_wait): Don't remove the process here.\r
- (win32_target_ops): Adjust.\r
-\r
-2010-04-11 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * regcache.c (realloc_register_cache): Invalidate inferior's\r
- regcache before recreating it.\r
-\r
-2010-04-09 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.\r
-\r
-2010-04-09 Stan Shebs <stan@codesourcery.com>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.h (LONGEST): New.\r
- (struct thread_info) <while_stepping>: New field.\r
- (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):\r
- Declare.\r
- (initialize_tracepoint, handle_tracepoint_general_set)\r
- (handle_tracepoint_query, tracepoint_finished_step)\r
- (tracepoint_was_hit, release_while_stepping_state_list):\r
- (current_traceframe): Declare.\r
- * server.c (handle_general_set): Handle tracepoint packets.\r
- (read_memory): New.\r
- (write_memory): New.\r
- (handle_search_memory_1): Use read_memory.\r
- (handle_query): Report support for conditional tracepoints, trace\r
- state variables, and tracepoint sources. Handle tracepoint\r
- queries.\r
- (main): Initialize the tracepoints module.\r
- (process_serial_event): Handle traceframe reads/writes.\r
-\r
- * linux-low.c (handle_tracepoints): New.\r
- (linux_wait_1): Call it.\r
- (linux_resume_one_lwp): Handle while-stepping.\r
- (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.\r
- (linux_target_ops): Install them.\r
- * linux-low.h (struct linux_target_ops) <supports_tracepoints>:\r
- New field.\r
- * linux-x86-low.c (x86_supports_tracepoints): New.\r
- (the_low_target). Install it.\r
-\r
- * mem-break.h (delete_breakpoint): Declare.\r
- * mem-break.c (delete_breakpoint): Make external.\r
-\r
- * target.h (struct target_ops): Add `supports_tracepoints',\r
- `read_pc', and `write_pc' fields.\r
- (target_supports_tracepoints): Define.\r
- * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)\r
- (phex_nz): New.\r
-\r
- * regcache.h (struct regcache) <registers_owned>: New field.\r
- (init_register_cache, regcache_cpy): Declare.\r
- (regcache_read_pc, regcache_write_pc): Declare.\r
- (register_cache_size): Declare.\r
- (supply_regblock): Declare.\r
- * regcache.c (init_register_cache): New.\r
- (new_register_cache): Use it.\r
- (regcache_cpy): New.\r
- (register_cache_size): New.\r
- (supply_regblock): New.\r
- (regcache_read_pc, regcache_write_pc): New.\r
-\r
- * tracepoint.c: New.\r
-\r
- * Makefile.in (OBS): Add tracepoint.o.\r
- (tracepoint.o): New rule.\r
-\r
-2010-04-08 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.\r
- (i386-mmx.o): New.\r
- (i386-mmx.c): Likewise.\r
- (i386-mmx-linux.o): Likewise.\r
- (i386-mmx-linux.c): Likewise.\r
-\r
- * configure.srv (srv_i386_regobj): Add i386-mmx.o.\r
- (srv_i386_linux_regobj): Add i386-mmx-linux.o.\r
- (srv_i386_xmlfiles): Add i386/i386-mmx.xml.\r
- (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.\r
-\r
- * linux-x86-low.c (init_registers_i386_mmx_linux): New.\r
- (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux\r
- and return if ptrace PTRACE_GETFPXREGS failed in 32bit.\r
-\r
-2010-04-07 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * Makefile.in (clean): Updated.\r
- (i386-avx.o): New.\r
- (i386-avx.c): Likewise.\r
- (i386-avx-linux.o): Likewise.\r
- (i386-avx-linux.c): Likewise.\r
- (amd64-avx.o): Likewise.\r
- (amd64-avx.c): Likewise.\r
- (amd64-avx-linux.o): Likewise.\r
- (amd64-avx-linux.c): Likewise.\r
-\r
- * configure.srv (srv_i386_regobj): Add i386-avx.o.\r
- (srv_i386_linux_regobj): Add i386-avx-linux.o.\r
- (srv_amd64_regobj): Add amd64-avx.o.\r
- (srv_amd64_linux_regobj): Add amd64-avx-linux.o.\r
- (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.\r
- (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.\r
- (srv_i386_xmlfiles): Add i386/i386-avx.xml.\r
- (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.\r
- (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.\r
- (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.\r
-\r
- * i387-fp.c: Include "i386-xstate.h".\r
- (i387_xsave): New.\r
- (i387_cache_to_xsave): Likewise.\r
- (i387_xsave_to_cache): Likewise.\r
- (x86_xcr0): Likewise.\r
-\r
- * i387-fp.h (i387_cache_to_xsave): Likewise.\r
- (i387_xsave_to_cache): Likewise.\r
- (x86_xcr0): Likewise.\r
-\r
- * linux-arm-low.c (target_regsets): Initialize nt_type to 0.\r
- * linux-crisv32-low.c (target_regsets): Likewise.\r
- * linux-m68k-low.c (target_regsets): Likewise.\r
- * linux-mips-low.c (target_regsets): Likewise.\r
- * linux-ppc-low.c (target_regsets): Likewise.\r
- * linux-s390-low.c (target_regsets): Likewise.\r
- * linux-sh-low.c (target_regsets): Likewise.\r
- * linux-sparc-low.c (target_regsets): Likewise.\r
- * linux-xtensa-low.c (target_regsets): Likewise.\r
-\r
- * linux-low.c: Include <sys/uio.h>.\r
- (regsets_fetch_inferior_registers): Support nt_type.\r
- (regsets_store_inferior_registers): Likewise.\r
- (linux_process_qsupported): New.\r
- (linux_target_ops): Add linux_process_qsupported.\r
-\r
- * linux-low.h (regset_info): Add nt_type.\r
- (linux_target_ops): Add process_qsupported.\r
-\r
- * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"\r
- and <sys/uio.h>.\r
- (init_registers_i386_avx_linux): New.\r
- (init_registers_amd64_avx_linux): Likewise.\r
- (xmltarget_i386_linux_no_xml): Likewise.\r
- (xmltarget_amd64_linux_no_xml): Likewise.\r
- (PTRACE_GETREGSET): Likewise.\r
- (PTRACE_SETREGSET): Likewise.\r
- (x86_fill_xstateregset): Likewise.\r
- (x86_store_xstateregset): Likewise.\r
- (use_xml): Likewise.\r
- (x86_linux_update_xmltarget): Likewise.\r
- (x86_linux_process_qsupported): Likewise.\r
- (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.\r
- (x86_arch_setup): Don't call init_registers_amd64_linux nor\r
- init_registers_i386_linux here. Call\r
- x86_linux_update_xmltarget.\r
- (the_low_target): Add x86_linux_process_qsupported.\r
-\r
- * server.c (handle_query): Call target_process_qsupported.\r
-\r
- * target.h (target_ops): Add process_qsupported.\r
- (target_process_qsupported): New.\r
-\r
-2010-04-03 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * inferiors.c (add_thread): Set last_status kind to\r
- TARGET_WAITKIND_IGNORE.\r
- * linux-low.c (cancel_breakpoint): Remove unnecessary regcache\r
- fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.\r
- (linux_wait_1): Move `thread' local definition to block that uses\r
- it. Don't NULL initialize `event_child'.\r
- (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.\r
- Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.\r
- * linux-x86-low.c (x86_breakpoint_at): Read raw memory.\r
-\r
-2010-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with\r
- an extended waitstatus, or by a watchpoint.\r
- (cancel_breakpoints_callback): Don't cancel a breakpoint if the\r
- thread was stepping or has been stopped by a watchpoint.\r
-\r
-2010-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * mem-break.c (struct raw_breakpoint): New field shlib_disabled.\r
- (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top\r
- of another, then delete the previous, and validate all\r
- breakpoints.\r
- (validate_inserted_breakpoint): New.\r
- (delete_disabled_breakpoints): New.\r
- (validate_breakpoints): New.\r
- (check_mem_read): Validate breakpoints before trusting their\r
- shadow. Delete disabled breakpoints.\r
- (check_mem_write): Validate breakpoints before trusting they\r
- should be inserted. Delete disabled breakpoints.\r
- * mem-break.h (validate_breakpoints):\r
- * server.c (handle_query): Validate breakpoints when we see a\r
- qSymbol query.\r
-\r
-2010-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_1): Avoid setting need_step_over is\r
- there's a GDB breakpoint at stop_pc. Always report a trap to GDB\r
- if we could tell there's a GDB breakpoint at stop_pc.\r
- (need_step_over_p): Don't do a step over if we find a GDB\r
- breakpoint at the resume PC.\r
-\r
- * mem-break.c (struct raw_breakpoint): New.\r
- (enum bkpt_type): New type `gdb_breakpoint'.\r
- (struct breakpoint): Delete the `PC', `old_data' and `inserted'\r
- fields. New field `raw'.\r
- (find_raw_breakpoint_at): New.\r
- (set_raw_breakpoint_at): Handle refcounting. Create a raw\r
- breakpoint instead.\r
- (set_breakpoint_at): Adjust.\r
- (delete_raw_breakpoint): New.\r
- (release_breakpoint): New.\r
- (delete_breakpoint): Rename to...\r
- (delete_breakpoint_1): ... this. Add proc parameter. Use\r
- release_breakpoint. Return ENOENT.\r
- (delete_breakpoint): Reimplement.\r
- (find_breakpoint_at): Delete.\r
- (find_gdb_breakpoint_at): New.\r
- (delete_breakpoint_at): Delete.\r
- (set_gdb_breakpoint_at): New.\r
- (delete_gdb_breakpoint_at): New.\r
- (gdb_breakpoint_here): New.\r
- (set_reinsert_breakpoint): Use release_breakpoint.\r
- (uninsert_breakpoint): Rename to ...\r
- (uninsert_raw_breakpoint): ... this.\r
- (uninsert_breakpoints_at): Adjust to handle raw breakpoints.\r
- (reinsert_raw_breakpoint): Change parameter type to\r
- raw_breakpoint.\r
- (reinsert_breakpoints_at): Adjust to handle raw breakpoints\r
- instead.\r
- (check_breakpoints): Adjust. Use release_breakpoint.\r
- (breakpoint_here): Rewrite using find_raw_breakpoint_at.\r
- (breakpoint_inserted_here): Ditto.\r
- (check_mem_read): Adjust to iterate over raw breakpoints instead.\r
- Don't trust the breakpoint's shadow if it is not inserted.\r
- (check_mem_write): Adjust to iterate over raw breakpoints instead.\r
- (delete_all_breakpoints): Adjust.\r
- (free_all_breakpoints): Mark all breakpoints as uninserted, and\r
- use delete_breakpoint_1.\r
-\r
- * mem-break.h (breakpoints_supported): Delete declaration.\r
- (set_gdb_breakpoint_at): Declare.\r
- (gdb_breakpoint_here): Declare.\r
- (delete_breakpoint_at): Delete.\r
- (delete_gdb_breakpoint_at): Declare.\r
-\r
- * server.h (struct raw_breakpoint): Forward declare.\r
- (struct process_info): New field `raw_breakpoints'.\r
-\r
- * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0\r
- breakpoints.\r
-\r
-2010-03-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (status_pending_p_callback): Fix comment.\r
- (linux_wait_for_event_1): Move most of the internal breakpoint\r
- handling from here...\r
- (linux_wait_1): ... to here.\r
- (count_events_callback): New.\r
- (select_singlestep_lwp_callback): New.\r
- (select_event_lwp_callback): New.\r
- (cancel_breakpoints_callback): New.\r
- (select_event_lwp): New.\r
- (linux_wait_1): Simplify internal breakpoint handling. Give equal\r
- priority to all LWPs that have had events that should be reported\r
- to the client. Cancel breakpoints when about to reporting the\r
- event to the client, not while stopping lwps. No longer cancel\r
- finished single-steps here.\r
- (cancel_finished_single_step): Delete.\r
- (cancel_finished_single_steps): Delete.\r
-\r
-2010-03-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * mem-break.c (enum bkpt_type): New.\r
- (struct breakpoint): New field `type'.\r
- (set_breakpoint_at): Change return type to struct breakpoint\r
- pointer. Set type to `other_breakpoint' by default.\r
- (delete_breakpoint): Rewrite, supporting more than one breakpoint\r
- in the breakpoint list.\r
- (delete_reinsert_breakpoints): Only delete reinsert breakpoints.\r
- (reinsert_breakpoint): Rename to ...\r
- (reinsert_raw_breakpoint): ... this.\r
- (reinsert_breakpoints_at): Adjust.\r
- * mem-break.h (struct breakpoint): Declare.\r
- (set_breakpoint_at): Change return type to struct breakpoint\r
- pointer.\r
-\r
-2010-03-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_query): Assign, not compare.\r
-\r
-2010-03-24 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Teach linux gdbserver to step-over-breakpoints.\r
-\r
- * linux-low.c (can_hardware_single_step): New.\r
- (supports_breakpoints): New.\r
- (handle_extended_wait): If stopping threads, read the stop pc of\r
- the new cloned LWP.\r
- (get_pc): New.\r
- (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the\r
- low target doesn't support retrieving the PC.\r
- (add_lwp): Set last_resume_kind to resume_continue.\r
- (linux_attach_lwp_1): Adjust comments. Always set stop_expected.\r
- (linux_attach): Don't clear stop_expected. Set the lwp's\r
- last_resume_kind to resume_stop.\r
- (linux_detach_one_lwp): Don't check for removed breakpoints.\r
- (check_removed_breakpoint): Delete.\r
- (status_pending_p): Rename to ...\r
- (status_pending_p_callback): ... this. Don't check for removed\r
- breakpoints. Don't consider threads that are stopped from GDB's\r
- perspective.\r
- (linux_wait_for_lwp): Always read the stop_pc here.\r
- (cancel_breakpoint): New.\r
- (step_over_bkpt): New global.\r
- (linux_wait_for_event_1): Implement stepping over breakpoints.\r
- (gdb_wants_lwp_stopped): New.\r
- (gdb_wants_all_stopped): New.\r
- (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished\r
- single-step traps here. Store the thread's last reported target\r
- wait status.\r
- (send_sigstop): Don't clear stop_expected. Always set it,\r
- instead.\r
- (mark_lwp_dead): Remove reference to pending_is_breakpoint.\r
- (cancel_finished_single_step): New.\r
- (cancel_finished_single_steps): New.\r
- (wait_for_sigstop): Don't cancel finished single-step traps here.\r
- (linux_resume_one_lwp): Don't check for removed breakpoints.\r
- Don't set `step' on non-hardware step archs.\r
- (linux_set_resume_request): Ignore resume_stop requests if already\r
- stopping or stopped. Set the lwp's last_resume_kind.\r
- (resume_status_pending_p): Don't check for removed breakpoints.\r
- (need_step_over_p): New.\r
- (start_step_over): New.\r
- (finish_step_over): New.\r
- (linux_resume_one_thread): Always queue a sigstop for resume_stop\r
- requests. Clear the thread's last reported target waitstatus.\r
- Don't use the `suspended' flag. Don't consider pending breakpoints.\r
- (linux_resume): Start a step-over if necessary.\r
- (proceed_one_lwp): New.\r
- (proceed_all_lwps): New.\r
- (unstop_all_lwps): New.\r
- * linux-low.h (struct lwp_info): Rewrite comment for the\r
- `suspended' flag. Add the `stop_pc' field. Delete the\r
- `pending_stop_pc' field. Tweak the `stepping' flag's comment.\r
- Add `'last_resume_kind' and `need_step_over' fields.\r
- * inferiors.c (struct thread_info): Delete, moved elsewhere.\r
- * mem-break.c (struct breakpoint): Delete `reinserting' flag.\r
- Delete `breakpoint_to_reinsert' field. New flag `inserted'.\r
- (set_raw_breakpoint_at): New.\r
- (set_breakpoint_at): Rewrite to use it.\r
- (reinsert_breakpoint_handler): Delete.\r
- (set_reinsert_breakpoint): New.\r
- (reinsert_breakpoint_by_bp): Delete.\r
- (delete_reinsert_breakpoints): New.\r
- (uninsert_breakpoint): Rewrite.\r
- (uninsert_breakpoints_at): New.\r
- (reinsert_breakpoint): Rewrite.\r
- (reinsert_breakpoints_at): New.\r
- (check_breakpoints): Rewrite.\r
- (breakpoint_here): New.\r
- (breakpoint_inserted_here): New.\r
- (check_mem_read): Adjust.\r
- * mem-break.h (breakpoints_supported, breakpoint_here)\r
- (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.\r
- (reinsert_breakpoint_by_bp): Delete declaration.\r
- (delete_reinsert_breakpoints): Declare.\r
- (reinsert_breakpoint): Delete declaration.\r
- (reinsert_breakpoints_at): Declare.\r
- (uninsert_breakpoint): Delete declaration.\r
- (uninsert_breakpoints_at): Declare.\r
- (check_breakpoints): Adjust prototype.\r
- * server.h: Adjust include order.\r
- (struct thread_info): Declare here. Add a `last_status' field.\r
-\r
-2010-03-23 Michael Snyder <msnyder@vmware.com>\r
-\r
- * server.c (crc32): New function.\r
- (handle_query): Add handling for 'qCRC:' request.\r
-\r
-2010-03-23 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the\r
- lwp had been stopped by a watchpoint.\r
-\r
-2010-03-16 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.h (internal_error): Declare.\r
- (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.\r
- * utils.c (internal_error): New function.\r
-\r
-2010-03-15 Andreas Schwab <schwab@redhat.com>\r
-\r
- * configure.srv: Fix typo setting srv_regobj.\r
-\r
-2010-03-15 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (fetch_register): Avoid passing a non string literal\r
- format to `error'.\r
- (usr_store_inferior_registers): Ditto.\r
-\r
-2010-03-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_write_memory): Bail out early if peeking\r
- memory failed.\r
-\r
-2010-03-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.h (struct lwp_info): New fields\r
- `stopped_by_watchpoint' and `stopped_data_address'.\r
- * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers\r
- here, and cache them in the lwp object.\r
- (wait_for_sigstop): Check stopped_by_watchpoint lwp field\r
- directly.\r
- (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint\r
- field.\r
- (linux_stopped_by_watchpoint): Rewrite.\r
- (linux_stopped_data_address): Rewrite.\r
-\r
-2010-03-06 Simo Melenius <simo.melenius@iki.fi>\r
-\r
- * linux-low.c (linux_wait_for_lwp): Fetch the regcache after\r
- switching the current inferior, not before.\r
-\r
-2010-03-01 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,\r
- reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,\r
- i386-linux.c and amd64-linux.c.\r
- (reg-i386.o): Removed.\r
- (reg-i386.c): Likewise.\r
- (reg-i386-linux.o): Likewise.\r
- (reg-i386-linux.c): Likewise.\r
- (reg-x86-64.o): Likewise.\r
- (reg-x86-64.c): Likewise.\r
- (reg-x86-64-linux.o): Likewise.\r
- (reg-x86-64-linux.c): Likewise.\r
- (i386.o): New.\r
- (i386.c): Likewise.\r
- (i386-linux.o): Likewise.\r
- (i386-linux.c): Likewise.\r
- (amd64.o): Likewise.\r
- (amd64.c): Likewise.\r
- (amd64-linux.o): Likewise.\r
- (amd64-linux.c): Likewise.\r
-\r
- * configure.srv (srv_i386_regobj): New.\r
- (srv_i386_linux_regobj): Likewise.\r
- (srv_amd64_regobj): Likewise.\r
- (srv_amd64_linux_regobj): Likewise.\r
- (srv_i386_32bit_xmlfiles): Likewise.\r
- (srv_i386_64bit_xmlfiles): Likewise.\r
- (srv_i386_xmlfiles): Likewise.\r
- (srv_amd64_xmlfiles): Likewise.\r
- (srv_i386_linux_xmlfiles): Likewise.\r
- (srv_amd64_linux_xmlfiles): Likewise.\r
- (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set\r
- srv_xmlfiles to $srv_i386_xmlfiles.\r
- (i[34567]86-*-mingw32ce*): Likewise.\r
- (i[34567]86-*-mingw*): Likewise.\r
- (i[34567]86-*-nto*): Likewise.\r
- (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj\r
- and $srv_amd64_linux_regobj. Set srv_xmlfiles to\r
- $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.\r
- (x86_64-*-linux*): Likewise.\r
-\r
- * linux-x86-low.c (init_registers_x86_64_linux): Removed.\r
- (init_registers_amd64_linux): New.\r
- (x86_arch_setup): Replace init_registers_x86_64_linux with\r
- init_registers_amd64_linux.\r
-\r
-2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>\r
-\r
- * configure.ac: Check for libdl. If it is not available link against\r
- static libthread_db.\r
- * configure: Regenerate.\r
-\r
-2010-02-22 Pedro Alves <pedro@codesourcery.com>\r
-\r
- PR9605\r
-\r
- * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if\r
- handing a read watchpoint.\r
- (i386_low_insert_watchpoint): Read watchpoints aren't supported.\r
-\r
-2010-02-12 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_supports_tracefork_flag): Document.\r
- (linux_look_up_symbols): Add comment.\r
-\r
-2010-02-03 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * regcache.c (supply_register): Clear regcache if buf is NULL.\r
-\r
-2010-02-02 Nicolas Roche <roche@sourceware.org>\r
- Joel Brobecker <brobecker@adacore.com>\r
-\r
- * inferiors.c (find_inferior): Add function documentation.\r
- (unloaded_dll): Handle the case where the unloaded dll has not\r
- been previously registered in the dll list.\r
-\r
-2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-arm-low.c (thumb_breakpoint_len): Delete.\r
- (thumb2_breakpoint): New.\r
- (arm_breakpoint_at): Check for Thumb-2 breakpoints.\r
-\r
-2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (get_stop_pc): Check for SIGTRAP.\r
- (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible\r
- breakpoints.\r
-\r
-2010-01-21 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.\r
-\r
-2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>\r
-\r
- * linux-s390-low.c (s390_collect_ptrace_register)\r
- (s390_supply_ptrace_register): Adjust it for the new regcache parameter.\r
-\r
-2010-01-21 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.\r
- (PTRACE_ARG4_TYPE): New macro.\r
- (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.\r
- (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.\r
- (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.\r
- (usr_store_inferior_registers): Ditto.\r
- (linux_read_memory, linux_write_memory): Ditto.\r
- (linux_test_for_tracefork): Ditto.\r
-\r
- * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.\r
- Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.\r
-\r
-2010-01-21 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * proc-service.c (ps_lgetregs): Don't refetch registers from the\r
- target.\r
-\r
-2010-01-21 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * spu-low.c (spu_fetch_registers, spu_store_registers): Change\r
- prototype to take a regcache. Adjust.\r
-\r
-2010-01-20 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * regcache.h (struct thread_info): Forward declare.\r
- (struct regcache): New.\r
- (new_register_cache): Adjust prototype.\r
- (get_thread_regcache): Declare.\r
- (free_register_cache): Adjust prototype.\r
- (registers_to_string, registers_from_string): Ditto.\r
- (supply_register, supply_register_by_name, collect_register)\r
- (collect_register_as_string, collect_register_by_name): Ditto.\r
- * regcache.c (struct inferior_regcache_data): Delete.\r
- (get_regcache): Rename to ...\r
- (get_thread_regcache): ... this. Adjust. Switch inferior before\r
- fetching registers.\r
- (regcache_invalidate_one): Adjust.\r
- (regcache_invalidate): Fix prototype.\r
- (new_register_cache): Return the new register cache.\r
- (free_register_cache): Change prototype.\r
- (realloc_register_cache): Adjust.\r
- (registers_to_string): Change prototype to take a regcache. Adjust.\r
- (registers_from_string): Ditto.\r
- (register_data): Ditto.\r
- (supply_register): Ditto.\r
- (supply_register_by_name): Ditto.\r
- (collect_register): Ditto.\r
- (collect_register_as_string): Ditto.\r
- (collect_register_by_name): Ditto.\r
- * server.c (process_serial_event): Adjust.\r
- * linux-low.h (regset_fill_func, regset_store_func): Change\r
- prototype.\r
- (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):\r
- Change prototype.\r
- * linux-low.c (get_stop_pc): Adjust.\r
- (check_removed_breakpoint): Adjust.\r
- (linux_wait_for_event): Adjust.\r
- (linux_resume_one_lwp): Adjust.\r
- (fetch_register): Add regcache parameter. Adjust.\r
- (usr_store_inferior_registers): Ditto.\r
- (regsets_fetch_inferior_registers): Ditto.\r
- (regsets_store_inferior_registers): Ditto.\r
- (linux_fetch_registers, linux_store_registers): Ditto.\r
- * i387-fp.c (i387_cache_to_fsave): Change prototype to take a\r
- regcache. Adjust.\r
- (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):\r
- Ditto.\r
- * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change\r
- prototype to take a regcache.\r
- (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.\r
- * remote-utils.c (convert_ascii_to_int, outreg)\r
- (prepare_resume_reply): Change prototype to take a regcache.\r
- Adjust.\r
- * target.h (struct target_ops) <fetch_registers, store_registers>:\r
- Change prototype to take a regcache.\r
- (fetch_inferior_registers, store_inferior_registers): Change\r
- prototype to take a regcache. Adjust.\r
- * proc-service.c (ps_lgetregs): Adjust.\r
- * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)\r
- (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)\r
- (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to\r
- take a regcache. Adjust.\r
- * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)\r
- (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)\r
- (arm_store_vfpregset, arm_get_pc, arm_set_pc):\r
- (arm_breakpoint_at): Change prototype to take a regcache. Adjust.\r
- * linux-cris-low.c (cris_get_pc, cris_set_pc)\r
- (cris_cannot_fetch_register):\r
- (cris_breakpoint_at): Change prototype to take a regcache.\r
- Adjust.\r
- * linux-crisv32-low.c (cris_get_pc, cris_set_pc,\r
- cris_reinsert_addr, cris_write_data_breakpoint): Change prototype\r
- to take a regcache. Adjust.\r
- (cris_breakpoint_at, cris_insert_point, cris_remove_point):\r
- Adjust.\r
- * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to\r
- take a regcache. Adjust.\r
- * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)\r
- (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,\r
- (m68k_set_pc): Change prototype to take a regcache. Adjust.\r
- * linux-mips-low.c (mips_get_pc):\r
- (mips_set_pc): Change prototype to take a regcache. Adjust.\r
- (mips_reinsert_addr): Adjust.\r
- (mips_collect_register): Change prototype to take a regcache.\r
- Adjust.\r
- (mips_supply_register):\r
- (mips_collect_register_32bit, mips_supply_register_32bit)\r
- (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)\r
- (mips_store_fpregset): Ditto.\r
- * linux-ppc-low.c (ppc_supply_ptrace_register)\r
- (ppc_supply_ptrace_register): Ditto.\r
- (parse_spufs_run): Adjust.\r
- (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)\r
- (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)\r
- (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to\r
- take a regcache. Adjust.\r
- * linux-s390-low.c (s390_collect_ptrace_register)\r
- (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)\r
- (s390_set_pc): Change prototype to take a regcache. Adjust.\r
- (s390_arch_setup): Adjust.\r
- * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)\r
- (sh_fill_gregset): Change prototype to take a regcache. Adjust.\r
- * linux-sparc-low.c (sparc_fill_gregset_to_stack)\r
- (sparc_fill_gregset, sparc_store_gregset_from_stack)\r
- (sparc_store_gregset, sparc_get_pc): Change prototype to take a\r
- regcache. Adjust.\r
- (sparc_breakpoint_at): Adjust.\r
- * linux-xtensa-low.c (xtensa_fill_gregset):\r
- (xtensa_store_gregset):\r
- (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)\r
- (xtensa_set_pc): Change prototype to take a regcache. Adjust.\r
- * nto-low.c (nto_fetch_registers, nto_store_registers): Change\r
- prototype to take a regcache. Adjust.\r
- * win32-arm-low.c (arm_fetch_inferior_register)\r
- (arm_store_inferior_register): Change prototype to take a\r
- regcache. Adjust.\r
- * win32-i386-low.c (i386_fetch_inferior_register)\r
- (i386_store_inferior_register): Change prototype to take a\r
- regcache. Adjust.\r
- * win32-low.c (child_fetch_inferior_registers)\r
- (child_store_inferior_registers): Change prototype to take a\r
- regcache. Adjust.\r
- (win32_wait): Adjust.\r
- (win32_fetch_inferior_registers): Change prototype to take a\r
- regcache. Adjust.\r
- (win32_store_inferior_registers): Adjust.\r
- * win32-low.h (struct win32_target_ops) <fetch_inferior_register,\r
- store_inferior_register>: Change prototype to take a regcache.\r
-\r
-2010-01-20 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in\r
- #ifdef.\r
- (linux_wait_for_event1, linux_init_signals): Ditto.\r
- (W_STOPCODE): Provide definition if missing.\r
-\r
-2010-01-13 Vladimir Prus <vladimir@codesourcery.com>\r
-\r
- * linux-low.c (linux_core_of_thread): New.\r
- (compare_ints, show_process, list_threads): New.\r
- (linux_qxfer_osdata): Report threads and cores.\r
- (linux_target_op): Register linux_core_of_thread.\r
- * remote-utils.c (prepare_resume_reply): Report the core.\r
- (buffer_xml_printf): Support %d specifier.\r
- * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):\r
- New.\r
- (handle_query): Handle qXfer:threads. Announce availability\r
- thereof.\r
- * target.h (struct target_ops): New field core_of_thread.\r
-\r
-2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * Makefile.in (clean): Remove new generated files.\r
- (reg-s390.o, reg-s390.c): Remove rules.\r
- (reg-s390x.o, reg-s390x.c): Likewise.\r
- (s390-linux32.o, s390-linux32.c): Add rules.\r
- (s390-linux64.o, s390-linux64.c): Likewise.\r
- (s390x-linux64.o, s390x-linux64.c): Likewise.\r
- * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.\r
- * linux-s390-low.c: Include <elf.h>.\r
- (HWCAP_S390_HIGH_GPRS): Define if undefined.\r
- (init_registers_s390): Remove prototype.\r
- (init_registers_s390x): Likewise.\r
- (init_registers_s390_linux32): Add prototype.\r
- (init_registers_s390_linux64): Likewise.\r
- (init_registers_s390x_linux64): Likewise.\r
- (s390_num_regs_3264): New define.\r
- (s390_regmap_3264): New global variable.\r
- (s390_cannot_fetch_register): Remove obsolete check.\r
- (s390_cannot_store_register): Likewise.\r
- (s390_collect_ptrace_register): Handle upper/lower register halves.\r
- (s390_supply_ptrace_register): Likewise.\r
- (s390_fill_gregset): Update to register number changes.\r
- (s390_get_hwcap): New routine.\r
- (s390_arch_setup): Detect 32-bit process running on 64-bit system.\r
- Install appropriate regmap and register set.\r
-\r
-2010-01-01 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * server.c (gdbserver_version): Update copyright year to 2010.\r
- * gdbreplay.c (gdbreplay_version): Likewise.\r
-\r
-2009-12-28 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,\r
- elf/external.h. Include <elf.h> instead but only if necessary.\r
-\r
-2009-12-28 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_remove_process): Remove `detaching'\r
- parameter. Don't release/detach from thread_db here.\r
- (linux_kill): Release/detach from thread_db here, ...\r
- (linux_detach): ... and here, before actually detaching.\r
- (linux_wait_1): ... and here, when a process exits.\r
- * thread-db.c (any_thread_of): New.\r
- (thread_db_free): Switch the current inferior to a thread of the\r
- passed in process.\r
-\r
-2009-12-21 Doug Evans <dje@google.com>\r
-\r
- * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.\r
-\r
- * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.\r
- Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc\r
- warning ifndef __NR_tkill. Move setting of errno there too.\r
- Delete unnecessary resetting of errno after syscall.\r
- Minor comment changes to match gdb/linux-nat.c:kill_lwp.\r
-\r
- * configure.ac: Check for dladdr.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
- * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.\r
- (try_thread_db_load): Update.\r
-\r
- * linux-low.c (my_waitpid): Delete unnecessary prototype.\r
-\r
-2009-12-18 Doug Evans <dje@google.com>\r
-\r
- * event-loop.c: Include unistd.h if it exists.\r
-\r
- * linux-low.c (my_waitpid): Move definition away from being in\r
- between linux_tracefork_child/linux_test_for_tracefork.\r
-\r
- * gdb_proc_service.h (psaddr_t): Fix type.\r
- * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix\r
- signature to match glibc.\r
-\r
-2009-12-16 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_read_memory): Fix argument to read.\r
-\r
-2009-11-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT\r
- events, don't leave current_inferior pointing at null.\r
-\r
-2009-11-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * win32-low.c (LOG): Delete.\r
- (OUTMSG): Output to stderr.\r
- (OUTMSG2): Conditionalize on `debug_threads' variable, instead of\r
- on compile time LOG macro.\r
- (win32_wait): Fix debug output.\r
-\r
-2009-11-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * win32-low.c (win32_add_one_solib): If the dll name is\r
- "ntdll.dll", prepend the system directory to the dll path.\r
-\r
-2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.\r
-\r
-2009-11-17 Nathan Sidwell <nathan@codesourcery.com>\r
- Vladimir Prus <vladimir@codesourcery.com>\r
-\r
- * Makefile.in (reg-cf.o, reg-cf.c): New targets.\r
- * configure.ac: Check for __mcoldfire__ and set\r
- gdb_cv_m68k_is_coldfire.\r
- * configure.srv: Use gdb_cv_m68k_is_coldfire to select between\r
- reg-cf.o and reg-m68k.o.\r
- * configure: Regenerated.\r
-\r
-2009-11-16 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_remove_process): Add `detaching' parameter.\r
- Pass it to thread_db_free.\r
- (linux_kill, linux_detach, linux_wait_1): Adjust to pass the\r
- proper `detaching' argument to linux_remove_process.\r
- * linux-low.h (thread_db_free): Add `detaching' parameter.\r
- * thread-db.c (thread_db_init): Pass false as `detaching' argument\r
- to thread_db_free.\r
- (thread_db_free): Add `detaching' parameter. Only\r
- call td_ta_clear_event if detaching from process.\r
-\r
-2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>\r
-\r
- * thread-db.c (thread_db_free): Fix typo.\r
-\r
-2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>\r
-\r
- PR gdb/10838\r
- * thread-db.c (thread_db_free): Call td_ta_clear_event.\r
-\r
-2009-11-03 Nathan Sidwell <nathan@codesourcery.com>\r
-\r
- * configure.ac (i[34567]86-*): Check if we're targetting x86-64\r
- with an i686 compiler.\r
- * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if\r
- needed.\r
- * configure: Rebuilt.\r
-\r
-2009-10-29 Sandra Loosemore <sandra@codesourcery.com>\r
-\r
- PR gdb/10783\r
-\r
- * server.c (handle_search_memory_1): Correct read_addr initialization\r
- in loop for searching subsequent chunks.\r
-\r
-2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>\r
-\r
- * configure.ac: New --with-libthread-db option.\r
- * thread-db.c: Allow direct dependence on libthread_db.\r
- (thread_db_free): Adjust.\r
- * config.in: Regenerate.\r
- * configure: Likewise.\r
-\r
-2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>\r
-\r
- PR gdb/10757\r
- * thread-db.c (attach_thread): New function.\r
- (maybe_attach_thread): Return success/failure.\r
- (find_new_threads_callback): Adjust.\r
- (thread_db_find_new_threads): Loop until no new threads.\r
-\r
-2009-10-13 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * proc-service.c (ps_lgetregs): Formatting.\r
-\r
-2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>\r
-\r
- * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.\r
- * configure.ac: Adjust.\r
- * linux-low.h (struct process_info_private): Move members to struct\r
- thread_db.\r
- (thread_db_free, thread_db_handle_monitor_command): New prototype.\r
- * linux-low.c (linux_remove_process): Adjust.\r
- (linux_wait_for_event_1, linux_look_up_symbols): Likewise.\r
- * server.c (handle_query): Move code ...\r
- (handle_monitor_command): ... here. New function.\r
- * target.h (struct target_ops): New member.\r
- * thread-db.c (struct thread_db): New.\r
- (libthread_db_search_path): New variable.\r
- (thread_db_create_event, thread_db_enable_reporting)\r
- (find_one_thread, maybe_attach_thread, find_new_threads_callback)\r
- (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.\r
- (try_thread_db_load_1, dladdr_to_soname): New functions.\r
- (try_thread_db_load, thread_db_load_search): New functions.\r
- (thread_db_init): Search for libthread_db.\r
- (thread_db_free): New function.\r
- (thread_db_handle_monitor_command): Likewise.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * spu-low.c (spu_kill): Wait for inferior to terminate.\r
- Call clear_inferiors.\r
- (spu_detach): Call clear_inferiors.\r
-\r
-2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>\r
-\r
- * aclocal.m4: Regenerate.\r
- * config.in: Likewise.\r
- * configure: Likewise.\r
-\r
-2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.\r
- (parse_spufs_run): New function.\r
- (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.\r
- (ppc_breakpoint_at): Handle SPU breakpoints.\r
-\r
-2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.\r
- (SPUFS_MAGIC): Define.\r
- (spu_enumerate_spu_ids): New function.\r
- (linux_qxfer_spu): New function.\r
- (linux_target_ops): Install linux_qxfer_spu.\r
-\r
-2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o\r
- and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml\r
- and rs6000/powerpc-cell64l.xml to srv_xmlfiles.\r
- * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.\r
- (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.\r
- (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.\r
- * linux-ppc-low.c (PPC_FEATURE_CELL): Define.\r
- (init_registers_powerpc_cell32l): Add prototype.\r
- (init_registers_powerpc_cell64l): Likewise.\r
- (ppc_arch_setup): Detect Cell/B.E. architecture.\r
-\r
-2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>\r
-\r
- * Makefile.in (datarootdir): New variable.\r
-\r
-2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_write_memory): Update debugging output.\r
- * Makefile.in (clean): Add new descriptions.\r
- (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)\r
- (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.\r
- * configure.srv: Add new files for arm*-*-linux*.\r
- * linux-arm-low.c: Add new declarations.\r
- (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.\r
- (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)\r
- (HWCAP_VFPv3D16): New.\r
- (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT\r
- instead of __IWMMXT__.\r
- (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)\r
- (arm_arch_setup): New.\r
- (target_regsets): Remove #ifdef. Add VFP regset.\r
- (the_low_target): Use arm_arch_setup.\r
-\r
-2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip\r
- the main thread again.\r
-\r
-2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>\r
-\r
- Adding Neutrino gdbserver.\r
- * configure: Regenerated.\r
- * configure.ac: Add case for srv_qnx and set LIBS accordingly.\r
- * configure.srv (i[34567]86-*-nto*): New target.\r
- * nto-low.c, nto-low.h, nto-x86-low.c: New files.\r
- * remote-utils.c [__QNX__]: Include sys/iomgr.h\r
- (nto_comctrl) [__QNX__]: New function.\r
- (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.\r
-\r
-2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>\r
-\r
- * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to\r
- srv_tgtobj.\r
-\r
-2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- * win32-i386-low.c (i386_get_thread_context): Handle systems that\r
- don't support CONTEXT_EXTENDED_REGISTERS.\r
- (i386_win32_breakpoint, i386_win32_breakpoint_len): New.\r
- (the_low_target): Install them.\r
- * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent\r
- failing with ERROR_PIPE_NOT_CONNECTED.\r
-\r
-2009-06-30 Doug Evans <dje@google.com>\r
- Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- Add h/w watchpoint support to x86-linux, win32-i386.\r
- * Makefile.in (SFILES): Add i386-low.c\r
- (i386_low_h): Define.\r
- (i386-low.o): Add dependencies.\r
- (linux-x86-low.o): Add i386-low.h dependency.\r
- (win32-i386-low.o): Ditto.\r
- * i386-low.c: New file.\r
- * i386-low.h: New file.\r
- * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.\r
- (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.\r
- * linux-low.c (linux_add_process): Initialize arch_private.\r
- (linux_remove_process): Free arch_private.\r
- (add_lwp): Initialize arch_private.\r
- (delete_lwp): Free arch_private.\r
- (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if\r
- provided.\r
- * linux-low.h (process_info_private): New member arch_private.\r
- (lwp_info): New member arch_private.\r
- (linux_target_ops): New members new_process, new_thread,\r
- prepare_to_resume.\r
- (ptid_of): New macro.\r
- * linux-x86-low.c: Include stddef.h, i386-low.h.\r
- (arch_process_info): New struct.\r
- (arch_lwp_info): New struct.\r
- (x86_linux_dr_get, x86_linux_dr_set): New functions.\r
- (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.\r
- (i386_dr_low_get_status): New function.\r
- (x86_insert_point, x86_remove_point): New functions.\r
- (x86_stopped_by_watchpoint): New function.\r
- (x86_stopped_data_address): New function.\r
- (x86_linux_new_process, x86_linux_new_thread): New functions.\r
- (x86_linux_prepare_to_resume): New function.\r
- (the_low_target): Add entries for insert_point, remove_point,\r
- stopped_by_watchpoint, stopped_data_address, new_process, new_thread,\r
- prepare_to_resume.\r
- * server.c (debug_hw_points): New global.\r
- (monitor_show_help): Document set debug-hw-points.\r
- (handle_query): Process "set debug-hw-points".\r
- * server.h (debug_hw_points): Declare.\r
- (paddress): Declare.\r
- * utils.c (NUMCELLS, CELLSIZE): New macros.\r
- (get_sell, xsnprintf, paddress): New functions.\r
- * win32-arm-low.c (the_low_target): Add entries for insert_point,\r
- remove_point, stopped_by_watchpoint, stopped_data_address.\r
- * win32-i386-low.c: Include i386-low.h.\r
- (debug_reg_state): Replaces dr.\r
- (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.\r
- (i386_dr_low_get_status): New function.\r
- (i386_insert_point, i386_remove_point): New functions.\r
- (i386_stopped_by_watchpoint): New function.\r
- (i386_stopped_data_address): New function.\r
- (i386_initial_stuff): Update.\r
- (get_thread_context,set_thread_context,i386_thread_added): Update.\r
- (the_low_target): Add entries for insert_point,\r
- remove_point, stopped_by_watchpoint, stopped_data_address.\r
- * win32-low.c (win32_insert_watchpoint): New function.\r
- (win32_remove_watchpoint): New function.\r
- (win32_stopped_by_watchpoint): New function.\r
- (win32_stopped_data_address): New function.\r
- (win32_target_ops): Add entries for insert_watchpoint,\r
- remove_watchpoint, stopped_by_watchpoint, stopped_data_address.\r
- * win32-low.h (win32_target_ops): New members insert_point,\r
- remove_point, stopped_by_watchpoint, stopped_data_address.\r
-\r
-2009-06-25 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (process_serial_event): Re-return unsupported, not\r
- error, if the type isn't recognized. Re-allow supporting only\r
- insert or remove packets. Also call require_running for\r
- breakpoints. Add missing break statement to default case. Tidy.\r
- * target.h (struct target_ops): Rename insert_watchpoint to\r
- insert_point, and remove_watchpoint to remove_point.\r
-\r
- * linux-low.h (struct linux_target_ops): Likewise.\r
- * linux-low.c (linux_insert_watchpoint): Rename to ...\r
- (linux_insert_point): ... this. Adjust.\r
- (linux_remove_watchpoint): Rename to ...\r
- (linux_remove_point): ... this. Adjust.\r
- (linux_target_ops): Adjust.\r
- * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...\r
- (cris_insert_point): ... this.\r
- (cris_remove_watchpoint): Rename to ...\r
- (cris_remove_point): ... this.\r
- (the_low_target): Adjust.\r
-\r
-2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * server.c (handle_v_kill): Pass signal_pid to\r
- kill_inferior if multi_process is zero.\r
-\r
-2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>\r
-\r
- * server.c (process_serial_event): Add support for Z0 and Z1 packet.\r
- * target.h (target_ops): Comment for *_watchpoint to make it clear\r
- the functions can get types '0' and '1'.\r
-\r
-2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>\r
-\r
- * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.\r
- * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.\r
- * regcache.c (get_regcache): Likewise.\r
- * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.\r
- * win32-low.c (child_fetch_inferior_registers): Remove check for\r
- regno 0.\r
-\r
-2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- * target.h (struct target_ops) <supports_multi_process>: New\r
- callback.\r
- (target_supports_multi_process): New.\r
- * server.c (handle_query): Even if GDB reports support, only\r
- enable multi-process if the target also supports it. Report\r
- multi-process support only if the target backend supports it.\r
- * linux-low.c (linux_supports_multi_process): New function.\r
- (linux_target_ops): Install it as target_supports_multi_process\r
- callback.\r
-\r
-2009-05-24 Doug Evans <dje@google.com>\r
-\r
- Global renaming of find_thread_pid to find_thread_ptid.\r
- * server.h (find_thread_ptid): Renamed from find_thread_pid.\r
- * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.\r
- All callers updated.\r
-\r
- * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp\r
- to resume the newly created thread, don't call ptrace (PTRACE_CONT)\r
- directly.\r
-\r
- * linux-low.c (get_stop_pc): Print pc if debug_threads.\r
- (check_removed_breakpoint, linux_wait_for_lwp): Ditto.\r
- (linux_resume_one_lwp): Ditto.\r
-\r
-2009-05-23 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_resume_one_lwp): Change type of first arg\r
- from struct inferior_list_entry * to struct lwp_info *.\r
- All callers updated.\r
-\r
-2009-05-13 Doug Evans <dje@google.com>\r
-\r
- * linux-x86-low.c: Don't include assert.h.\r
- (x86_siginfo_fixup): Use fatal, not assert.\r
- (x86_arch_setup): Fix comment.\r
-\r
-2009-05-12 Doug Evans <dje@google.com>\r
-\r
- Biarch support for i386/amd64 gdbserver.\r
- * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.\r
- Add linux-x86-low.c.\r
- (linux-i386-low.o, linux-x86-64-low.o): Delete.\r
- (linux-x86-low.o): Add.\r
- * linux-x86-64-low.c: Delete.\r
- * linux-i386-low.c: Delete.\r
- * linux-x86-low.c: New file.\r
- * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with\r
- linux-x86-low.o.\r
- (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with\r
- linux-x86-low.o.\r
- (x86_64-linux srv_regobj): Add reg-i386-linux.o.\r
- * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.\r
- (linux_child_pid_to_exec_file): New function.\r
- (elf_64_header_p, elf_64_file_p): New functions.\r
- (siginfo_fixup): New function.\r
- (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to\r
- give target a chance to convert layout.\r
- * linux-low.h (linux_target_ops): New member siginfo_fixup.\r
- (linux_child_pid_to_exec_file, elf_64_file_p): Declare.\r
-\r
-2009-05-07 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.\r
- (regsets_store_inferior_registers): Ditto.\r
-\r
-2009-05-06 Pedro Alves <pedro@codesourcery.com>\r
-\r
- PR server/10048\r
-\r
- * linux-low.c (must_set_ptrace_flags): Delete.\r
- (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead\r
- of the global.\r
- (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set\r
- `lwp->must_set_ptrace_flags' instead.\r
- (linux_wait_for_event_1): Set ptrace options here.\r
- (linux_wait_1): ... not here.\r
-\r
-2009-04-30 Doug Evans <dje@google.com>\r
-\r
- * inferiors.c (started_inferior_callback): New function.\r
- (attached_inferior_callback): New function.\r
- (have_started_inferiors_p, have_attached_inferiors_p): New functions.\r
- * server.c (print_started_pid, print_attached_pid): New functions.\r
- (detach_or_kill_for_exit): New function.\r
- (main): Call it instead of for_each_inferior (kill_inferior_callback).\r
- * server.h (have_started_inferiors_p): Declare.\r
- (have_attached_inferiors_p): Declare.\r
-\r
- * inferiors.c (remove_process): Fix memory leak, free process.\r
- * linux-low.c (linux_remove_process): New function.\r
- (linux_kill): Call it instead of remove_process.\r
- (linux_detach, linux_wait_1): Ditto.\r
-\r
-2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>\r
-\r
- * configure.srv: Add x86 Windows CE target.\r
-\r
-2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * inferiors.c (get_thread_process): Make global.\r
- * server.h (get_thread_process): Add prototype.\r
- * thread-db.c (find_one_thread): Use get_thread_process\r
- instead of current_process.\r
- (thread_db_get_tls_address): Do not crash if called when\r
- thread layer is not yet initialized.\r
-\r
-2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * remote-utils.c (prepare_resume_reply): Null-terminate packet.\r
- * spu-low.c (current_tid): Rename to ...\r
- (current_ptid): ... this.\r
- (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,\r
- spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use\r
- ptid_get_lwp (current_ptid) instead of current_tid.\r
- (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument\r
- instead of current_tid. Use find_process_pid to verify pid\r
- argument is valid. Pass proper argument to remove_process.\r
- (spu_thread_alive): Compare current_ptid instead of current_tid.\r
- (spu_resume): Likewise.\r
-\r
-2009-04-02 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (usr_store_inferior_registers): Declare local `pid'\r
- variable.\r
-\r
-2009-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Implement the multiprocess extensions, and add linux multiprocess\r
- support.\r
-\r
- * server.h (ULONGEST): Declare.\r
- (struct ptid, ptid_t): New.\r
- (minus_one_ptid, null_ptid): Declare.\r
- (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)\r
- (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.\r
- (struct inferior_list_entry): Change `id' type from unsigned from\r
- to ptid_t.\r
- (struct sym_cache, struct breakpoint, struct\r
- process_info_private): Forward declare.\r
- (struct process_info): Declare.\r
- (current_process): Declare.\r
- (all_processes): Declare.\r
- (initialize_inferiors): Declare.\r
- (add_thread): Adjust to use ptid_t.\r
- (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.\r
- (add_process, remove_process, find_thread_pid): Declare.\r
- (find_inferior_id): Adjust to use ptid_t.\r
- (cont_thread, general_thread, step_thread): Change type to ptid_t.\r
- (multi_process): Declare.\r
- (push_event): Adjust to use ptid_t.\r
- (read_ptid, write_ptid): Declare.\r
- (prepare_resume_reply): Adjust to use ptid_t.\r
- (clear_symbol_cache): Declare.\r
- * inferiors.c (all_processes): New.\r
- (null_ptid, minus_one_ptid): New.\r
- (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)\r
- (ptid_get_tid, ptid_equal, ptid_is_pid): New.\r
- (add_thread): Change unsigned long to ptid. Remove gdb_id\r
- parameter. Adjust.\r
- (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.\r
- (gdb_id_to_thread): Rename to ...\r
- (find_thread_pid): ... this. Change unsigned long to ptid.\r
- (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.\r
- (loaded_dll, pull_pid_from_list): Adjust.\r
- (add_process, remove_process, find_process_pid)\r
- (get_thread_process, current_process, initialize_inferiors): New.\r
- * target.h (struct thread_resume) <thread>: Change type to ptid_t.\r
- (struct target_waitstatus) <related_pid>: Ditto.\r
- (struct target_ops) <kill, detach>: Add `pid' argument. Change\r
- return type to int.\r
- (struct target_ops) <join>: Add `pid' argument.\r
- (struct target_ops) <thread_alive>: Change pid's type to ptid_t.\r
- (struct target_ops) <wait>: Add `ptid' field. Change return type\r
- to ptid.\r
- (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.\r
- (mywait): Add `ptid' argument. Change return type to ptid_t.\r
- (target_pid_to_str): Declare.\r
- * target.c (set_desired_inferior): Adjust to use ptids.\r
- (mywait): Add new `ptid' argument. Adjust.\r
- (target_pid_to_str): New.\r
- * mem-break.h (free_all_breakpoints): Declare.\r
- * mem-break.c (breakpoints): Delelete.\r
- (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)\r
- (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust\r
- to use per-process breakpoint list.\r
- (free_all_breakpoints): New.\r
- * remote-utils.c (struct sym_cache) <name>: Drop `const'.\r
- (symbol_cache, all_symbols_looked_up): Delete.\r
- (hexchars): New.\r
- (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,\r
- read_ptid): New.\r
- (prepare_resume_reply): Change ptid argument's type from unsigned\r
- long to ptid_t. Adjust. Implement W;process and X;process.\r
- (free_sym_cache, clear_symbol_cache): New.\r
- (look_up_one_symbol): Adjust to per-process symbol cache. *\r
- * server.c (cont_thread, general_thread, step_thread): Change type\r
- to ptid_t.\r
- (attached): Delete.\r
- (multi_process): New.\r
- (last_ptid): Change type to ptid_t.\r
- (struct vstop_notif) <ptid>: Change type to ptid_t.\r
- (queue_stop_reply, push_event): Change `ptid' argument's type to\r
- ptid_t.\r
- (discard_queued_stop_replies): Add `pid' argument.\r
- (start_inferior): Adjust to use ptids. Adjust to mywait interface\r
- changes. Don't reference the `attached' global.\r
- (attach_inferior): Adjust to mywait interface changes.\r
- (handle_query): Adjust to use ptids. Parse GDB's qSupported\r
- features. Handle and report "multiprocess+". Handle\r
- "qAttached:PID".\r
- (handle_v_cont): Adjust to use ptids. Adjust to mywait interface\r
- changes.\r
- (handle_v_kill): New.\r
- (handle_v_stopped): Adjust to use target_pid_to_str.\r
- (handle_v_requests): Allow multiple attaches and runs when\r
- multiprocess extensions are in effect. Handle "vKill".\r
- (myresume): Adjust to use ptids.\r
- (queue_stop_reply_callback): Add `arg' parameter. Handle it.\r
- (handle_status): Adjust to discard_queued_stop_replies interface\r
- change.\r
- (first_thread_of, kill_inferior_callback)\r
- (detach_or_kill_inferior_callback, join_inferiors_callback): New.\r
- (main): Call initialize_inferiors. Adjust to use ptids, killing\r
- and detaching from all inferiors. Handle multiprocess packet\r
- variants.\r
- * linux-low.h: Include gdb_proc_service.h.\r
- (struct process_info_private): New.\r
- (struct linux_target_ops) <pid_of>: Use ptid_get_pid.\r
- <lwpid_of>: Use ptid_get_lwp.\r
- (get_lwp_thread): Adjust.\r
- (struct lwp_info): Add `dead' member.\r
- (find_lwp_pid): Declare.\r
- * linux-low.c (thread_db_active): Delete.\r
- (new_inferior): Adjust comment.\r
- (inferior_pid): Delete.\r
- (linux_add_process): New.\r
- (handle_extended_wait): Adjust.\r
- (add_lwp): Change unsigned long to ptid.\r
- (linux_create_inferior): Add process to processes table. Adjust\r
- to use ptids. Don't set new_inferior here.\r
- (linux_attach_lwp): Rename to ...\r
- (linux_attach_lwp_1): ... this. Add `initial' argument. Handle\r
- it. Adjust to use ptids.\r
- (linux_attach_lwp): New.\r
- (linux_attach): Add process to processes table. Don't set\r
- new_inferior here.\r
- (struct counter): New.\r
- (second_thread_of_pid_p, last_thread_of_process_p): New.\r
- (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to\r
- multiple processes.\r
- (linux_kill): Add `pid' argument. Handle it. Adjust to multiple\r
- processes. Remove process from process table.\r
- (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust\r
- to multiple processes.\r
- (any_thread_of): New.\r
- (linux_detach): Add `pid' argument, and handle it. Remove process\r
- from processes table.\r
- (linux_join): Add `pid' argument. Handle it.\r
- (linux_thread_alive): Change unsighed long argument to ptid_t.\r
- Consider dead lwps as not being alive.\r
- (status_pending_p): Rename `dummy' argument to `arg'. Filter out\r
- threads we're not interested in.\r
- (same_lwp, find_lwp_pid): New.\r
- (linux_wait_for_lwp): Change `pid' argument's type from int to\r
- ptid_t. Adjust.\r
- (linux_wait_for_event): Rename to ...\r
- (linux_wait_for_event_1): ... this. Change `pid' argument's type\r
- from int to ptid_t. Adjust.\r
- (linux_wait_for_event): New.\r
- (linux_wait_1): Add `ptid' argument. Change return type to\r
- ptid_t. Adjust. Use last_thread_of_process_p. Remove processes\r
- that exit from the process table.\r
- (linux_wait): Add `ptid' argument. Change return type to ptid_t.\r
- Adjust.\r
- (mark_lwp_dead): New.\r
- (wait_for_sigstop): Adjust to use ptids. If a process exits while\r
- stopping all threads, mark its main lwp as dead.\r
- (linux_set_resume_request, linux_resume_one_thread): Adjust to use\r
- ptids.\r
- (fetch_register, usr_store_inferior_registers)\r
- (regsets_fetch_inferior_registers)\r
- (regsets_store_inferior_registers, linux_read_memory)\r
- (linux_write_memory): Inline `inferior_pid'.\r
- (linux_look_up_symbols): Adjust to use per-process\r
- `thread_db_active'.\r
- (linux_request_interrupt): Adjust to use ptids.\r
- (linux_read_auxv): Inline `inferior_pid'.\r
- (initialize_low): Don't reference thread_db_active.\r
- * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.\r
- * proc-service.c (ps_lgetregs): Use find_lwp_pid.\r
- (ps_getpid): Return the pid of the current inferior.\r
- * thread-db.c (proc_handle, thread_agent): Delete.\r
- (thread_db_create_event, thread_db_enable_reporting): Adjust to\r
- per-process data.\r
- (find_one_thread): Change argument type to ptid_t. Adjust to\r
- per-process data.\r
- (maybe_attach_thread): Adjust to per-process data and ptids.\r
- (thread_db_find_new_threads): Ditto.\r
- (thread_db_init): Ditto.\r
- * spu-low.c (spu_create_inferior, spu_attach): Add process to\r
- processes table. Adjust to use ptids.\r
- (spu_kill, spu_detach): Adjust interface. Remove process from\r
- processes table.\r
- (spu_join, spu_thread_alive): Adjust interface.\r
- (spu_wait): Adjust interface. Remove process from processes\r
- table. Adjust to use ptids.\r
- * win32-low.c (current_inferior_tid): Delete.\r
- (current_inferior_ptid): New.\r
- (debug_event_ptid): New.\r
- (thread_rec): Take a ptid. Adjust.\r
- (child_add_thread): Add `pid' argument. Adjust to use ptids.\r
- (child_delete_thread): Ditto.\r
- (do_initial_child_stuff): Add `attached' argument. Add process to\r
- processes table.\r
- (child_fetch_inferior_registers, child_store_inferior_registers):\r
- Adjust.\r
- (win32_create_inferior): Pass 0 to do_initial_child_stuff.\r
- (win32_attach): Pass 1 to do_initial_child_stuff.\r
- (win32_kill): Adjust interface. Remove process from processes\r
- table.\r
- (win32_detach): Ditto.\r
- (win32_join): Adjust interface.\r
- (win32_thread_alive): Take a ptid.\r
- (win32_resume): Adjust to use ptids.\r
- (get_child_debug_event): Ditto.\r
- (win32_wait): Adjust interface. Remove exiting process from\r
- processes table.\r
-\r
-2009-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Non-stop mode support.\r
-\r
- * server.h (non_stop): Declare.\r
- (gdb_client_data, handler_func): Declare.\r
- (delete_file_handler, add_file_handler, start_event_loop):\r
- Declare.\r
- (handle_serial_event, handle_target_event, push_event)\r
- (putpkt_notif): Declare.\r
- * target.h (enum resume_kind): New.\r
- (struct thread_resume): Replace `step' field by `kind' field.\r
- (TARGET_WNOHANG): Define.\r
- (struct target_ops) <wait>: Add `options' argument.\r
- <supports_non_stop, async, start_non_stop>: New fields.\r
- (target_supports_non_stop, target_async): New.\r
- (start_non_stop): Declare.\r
- (mywait): Add `options' argument.\r
- * target.c (mywait): Add `options' argument. Print child exit\r
- notifications here.\r
- (start_non_stop): New.\r
- * server.c (non_stop, own_buf, mem_buf): New globals.\r
- (struct vstop_notif): New.\r
- (notif_queue): New global.\r
- (queue_stop_reply, push_event, discard_queued_stop_replies)\r
- (send_next_stop_reply): New.\r
- (start_inferior): Adjust to use resume_kind. Adjust to mywait\r
- interface changes.\r
- (attach_inferior): In non-stop mode, don't wait for the target\r
- here.\r
- (handle_general_set): Handle QNonStop.\r
- (handle_query): When handling qC, return the current general\r
- thread, instead of the first thread of the list.\r
- (handle_query): If the backend supports non-stop mode, include\r
- QNonStop+ in the qSupported query response.\r
- (handle_v_cont): Adjust to use resume_kind. Handle resume_stop\r
- and non-stop mode.\r
- (handle_v_attach, handle_v_run): Handle non-stop mode.\r
- (handle_v_stopped): New.\r
- (handle_v_requests): Report support for vCont;t. Handle vStopped.\r
- (myresume): Adjust to use resume_kind. Handle non-stop.\r
- (queue_stop_reply_callback): New.\r
- (handle_status): Handle non-stop mode.\r
- (main): Clear non_stop flag on reconnection. Use the event-loop.\r
- Refactor serial protocol handling from here ...\r
- (process_serial_event): ... to this new function. When GDB\r
- selects any thread, select one here. In non-stop mode, wait until\r
- GDB acks all pending events before exiting.\r
- (handle_serial_event, handle_target_event): New.\r
- * remote-utils.c (remote_open): Install remote_desc in the event\r
- loop.\r
- (remote_close): Remove remote_desc from the event loop.\r
- (putpkt_binary): Rename to...\r
- (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.\r
- (putpkt_binary): New as wrapper around putpkt_binary_1.\r
- (putpkt_notif): New.\r
- (prepare_resume_reply): In non-stop mode, don't change the\r
- general_thread.\r
- * event-loop.c: New.\r
- * Makefile.in (OBJ): Add event-loop.o.\r
- (event-loop.o): New rule.\r
-\r
- * linux-low.h (pid_of): Moved here.\r
- (lwpid_of): New.\r
- (get_lwp_thread): Use lwpid_of.\r
- (struct lwp_info): Delete `lwpid' field. Add `suspended' field.\r
- * linux-low.c (pid_of): Delete.\r
- (inferior_pid): Use lwpid_of.\r
- (linux_event_pipe): New.\r
- (target_is_async_p): New.\r
- (delete_lwp): New.\r
- (handle_extended_wait): Use lwpid_of.\r
- (add_lwp): Don't set lwpid field.\r
- (linux_attach_lwp): Adjust debug output. Use lwpid_of.\r
- (linux_kill_one_lwp): If killing a running lwp, stop it first.\r
- Use lwpid_of. Adjust to linux_wait_for_event interface changes.\r
- (linux_detach_one_lwp): If detaching from a running lwp, stop it\r
- first. Adjust to linux_wait_for_event interface changes. Use\r
- lwpid_of.\r
- (linux_detach): Don't delete the main lwp here.\r
- (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.\r
- (status_pending_p): Don't consider explicitly suspended lwps.\r
- (linux_wait_for_lwp): Take an integer pid instead of a lwp_info\r
- pointer. Add OPTIONS argument. Change return type to int. Use\r
- my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.\r
- (linux_wait_for_event): Take an integer pid instead of a lwp_info\r
- pointer. Add status pointer argument. Return a pid instead of a\r
- status. Use lwpid_of. Adjust to linux_wait_for_lwp interface\r
- changes. In non-stop mode, don't switch to a random thread.\r
- (linux_wait): Rename to...\r
- (linux_wait_1): ... this. Add target_options argument, and handle\r
- it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,\r
- don't handle the continue thread. Handle TARGET_WNOHANG. Merge\r
- clean exit and signal exit code. Don't stop all threads in\r
- non-stop mode. In all-stop mode, only stop all threads when\r
- reporting a stop to GDB. Handle explicit thread stop requests.\r
- (async_file_flush, async_file_mark): New.\r
- (linux_wait): New.\r
- (send_sigstop): Use lwpid_of.\r
- (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event\r
- interface changes. In non-stop mode, don't switch to a random\r
- thread.\r
- (linux_resume_one_lwp): Use lwpid_of.\r
- (linux_continue_one_thread, linux_queue_one_thread): Merge into ...\r
- (linux_resume_one_thread): ... this. Handle resume_stop. In\r
- non-stop mode, don't look for pending flag in all threads.\r
- (resume_status_pending_p): Don't consider explicitly suspended\r
- threads.\r
- (my_waitpid): Reimplement. Emulate __WALL.\r
- (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):\r
- Use lwpid_of.\r
- (sigchld_handler, linux_supports_non_stop, linux_async)\r
- (linux_start_non_stop): New.\r
- (linux_target_ops): Register linux_supports_non_stop, linux_async\r
- and linux_start_non_stop.\r
- (initialize_low): Install SIGCHLD handler.\r
- * thread-db.c (thread_db_create_event, find_one_thread)\r
- (thread_db_get_tls_address): Use lwpid_of.\r
- * win32-low.c (win32_detach): Adjust to use resume_kind.\r
- (win32_wait): Add `options' argument.\r
- * spu-low.c (spu_resume): Adjust to use resume_kind.\r
- (spu_wait): Add `options' argument.\r
-\r
-2009-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Decouple target code from remote protocol.\r
-\r
- * target.h (enum target_waitkind): New.\r
- (struct target_waitstatus): New.\r
- (struct target_ops) <wait>: Return an unsigned long. Take a\r
- target_waitstatus pointer instead of a char pointer.\r
- (mywait): Likewise.\r
- * target.c (mywait): Change prototype to return an unsigned long.\r
- Take a target_waitstatus pointer instead of a char pointer. Adjust.\r
- * server.h (thread_from_wait, old_thread_from_wait): Delete\r
- declarations.\r
- (prepare_resume_reply): Change prototype to take a\r
- target_waitstatus.\r
- * server.c (thread_from_wait, old_thread_from_wait): Delete.\r
- (last_status, last_ptid): New.\r
- (start_inferior): Remove "statusptr" argument. Adjust. Return a\r
- pid instead of a signal.\r
- (attach_inferior): Remove "status" and "signal" parameters.\r
- Adjust.\r
- (handle_query): For qGetTLSAddr, parse the thread id with strtol,\r
- not as an address.\r
- (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)\r
- (handle_v_requests, myresume): Remove "status" and "signal"\r
- parameters. Adjust.\r
- (handle_status): New.\r
- (main): Delete local `status'. Adjust.\r
- * remote-utils.c: Include target.h.\r
- (prepare_resume_reply): Change prototype to take a\r
- target_waitstatus. Adjust.\r
-\r
- * linux-low.c (linux_wait): Adjust to new target_ops->wait\r
- interface.\r
- * spu-low.c (spu_wait): Adjust.\r
- * win32-low.c (enum target_waitkind, struct target_waitstatus):\r
- Delete.\r
- (win32_wait): Adjust.\r
-\r
-2009-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * target.h (struct thread_resume): Delete leave_stopped member.\r
- (struct target_ops): Add a `n' argument to the `resume' callback.\r
- * server.c (start_inferior): Adjust.\r
- (handle_v_cont, myresume): Adjust.\r
- * linux-low.c (check_removed_breakpoint): Adjust to resume\r
- interface change, and to removed leave_stopped field.\r
- (resume_ptr): Delete.\r
- (struct thread_resume_array): New.\r
- (linux_set_resume_request): Add new `arg' parameter. Adjust to\r
- resume interface change.\r
- (linux_continue_one_thread, linux_queue_one_thread)\r
- (resume_status_pending_p): Check if the resume field is NULL\r
- instead of checking the leave_stopped member.\r
- (linux_resume): Adjust to the target resume interface change.\r
- * spu-low.c (spu_resume): Adjust to the target resume interface\r
- change.\r
- * win32-low.c (win32_detach, win32_resume): Ditto.\r
-\r
-2009-04-01 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_for_event): Don't clear the `stepping'\r
- flag.\r
- (wait_for_sigstop): Don't leave a finished single-step SIGTRAP\r
- pending.\r
- (linux_continue_one_thread): Only preserve the stepping flag if\r
- there's a pending breakpoint.\r
-\r
-2009-03-31 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (main): After the inferior having exited, call\r
- remote_close before exiting gdbserver.\r
-\r
-2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>\r
-\r
- Fix size of FPSCR in Power 7 processors.\r
- * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.\r
- (PPC_FEATURE_HAS_DFP): New #define.\r
- (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on\r
- size of the FPSCR.\r
-\r
-2009-03-23 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_query) Whitespace and formatting.\r
-\r
-2009-03-22 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * i387-fp.c, linux-arm-low.c, linux-cris-low.c,\r
- linux-crisv32-low.c, linux-i386-low.c, linux-low.c,\r
- linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,\r
- linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,\r
- regcache.c, remote-utils.c, server.c, spu-low.c, target.h,\r
- thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,\r
- Makefile.in, configure.ac: Fix whitespace throughout.\r
- * configure: Regenerate.\r
-\r
-2009-03-22 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * inferiors.c (find_inferior): Make it safe for the callback\r
- function to delete the currently iterated inferior.\r
-\r
-2009-03-22 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * Makefile.in (linuw_low_h): Move higher.\r
- (thread-db.o): Depend on $(linux_low_h).\r
-\r
-2009-03-17 Pedro Alves <pedro@codesourcery.com>\r
-\r
- Rename "process" to "lwp" throughout.\r
-\r
- * linux-low.c (all_processes): Rename to...\r
- (all_lwps): ... this.\r
- (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.\r
- (add_process): Rename to ...\r
- (add_lwp): ... this. Adjust.\r
- (linux_create_inferior): Adjust.\r
- (linux_attach_lwp): Adjust.\r
- (linux_attach): Adjust.\r
- (linux_kill_one_process): Rename to ...\r
- (linux_kill_one_lwp): ... this. Adjust.\r
- (linux_kill): Adjust.\r
- (linux_detach_one_process): Rename to ...\r
- (linux_detach_one_lwp): ... this. Adjust.\r
- (linux_detach): Adjust.\r
- (check_removed_breakpoint): Adjust.\r
- (status_pending_p): Adjust.\r
- (linux_wait_for_process): Rename to ...\r
- (linux_wait_for_lwp): ... this. Adjust.\r
- (linux_wait_for_event): Adjust.\r
- (send_sigstop): Adjust.\r
- (wait_for_sigstop): Adjust.\r
- (stop_all_processes): Rename to ...\r
- (stop_all_lwps): ... this.\r
- (linux_resume_one_process): Rename to ...\r
- (linux_resume_one_lwp): ... this. Adjust.\r
- (linux_set_resume_request, linux_continue_one_thread)\r
- (linux_queue_one_thread, resume_status_pending_p)\r
- (usr_store_inferior_registers, regsets_store_inferior_registers)\r
- (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):\r
- Adjust.\r
- * linux-low.h (get_process): Rename to ...\r
- (get_lwp): ... this. Adjust.\r
- (get_thread_process): Rename to ...\r
- (get_thread_lwp): ... this. Adjust.\r
- (get_process_thread): Rename to ...\r
- (get_lwp_thread): ... this. Adjust.\r
- (struct process_info): Rename to ...\r
- (struct lwp_info): ... this.\r
- (all_processes): Rename to ...\r
- (all_lwps): ... this.\r
- * proc-service.c (ps_lgetregs): Adjust.\r
- * thread-db.c (thread_db_create_event, find_one_thread)\r
- (maybe_attach_thread, thread_db_get_tls_address): Adjust.\r
-\r
-2009-03-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_query): Handle "qAttached".\r
-\r
-2009-03-13 Nathan Sidwell <nathan@codesourcery.com>\r
-\r
- * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to\r
- GPLv3, update license URL.\r
-\r
-2009-03-01 Doug Evans <dje@google.com>\r
-\r
- * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.\r
- (server_h): Add gdb_signals.h.\r
- (signals.o): Update.\r
- * server.h (target_signal_from_host,target_signal_to_host_p)\r
- (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.\r
-\r
-2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>\r
-\r
- * remote-utils.c (getpkt): Also generate remote-debug\r
- information if noack_mode is set.\r
-\r
-2009-02-06 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_query): Report qXfer:siginfo:read and\r
- qXfer:siginfo:write as supported and handle them.\r
- * target.h (struct target_ops) <qxfer_siginfo>: New field.\r
- * linux-low.c (linux_xfer_siginfo): New.\r
- (linux_target_ops): Set it.\r
-\r
-2009-01-26 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (gdbserver_usage): Mention --remote-debug.\r
- (main): Accept '--remote-debug' switch.\r
-\r
-2009-01-18 Doug Evans <dje@google.com>\r
-\r
- * regcache.c (new_register_cache): No need to check result of xcalloc.\r
- * server.c (handle_search_memory): Back out calls to xmalloc,\r
- result is checked and error is returned to user upon failure.\r
- (handle_query): Ditto. Add more checks for result of malloc.\r
- (handle_v_cont): Check result of malloc, report error back to\r
- user upon failure.\r
- (handle_v_run): Ditto. Call freeargv.\r
- * server.h (freeargv): Declare.\r
- * utils.c (freeargv): New fn.\r
-\r
-2009-01-15 Doug Evans <dje@google.com>\r
-\r
- * gdbreplay.c (perror_with_name): Make arg const char *.\r
- * server.h (target_signal_to_name): Make return type const char *.\r
- * thread-db.c (thread_db_err_str): Make return type const char *.\r
- * utils.c (perror_with_name): Make arg const char *.\r
-\r
-2009-01-14 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE\r
- when handling a EXIT_PROCESS_DEBUG_EVENT.\r
-\r
-2009-01-06 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * gdbreplay.c (gdbreplay_version): Update copyright year.\r
- * server.c (gdbserver_version): Likewise.\r
-\r
-2009-01-05 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_attach_lwp): Add some comments/fixmes.\r
- (handle_extended_wait): Improve comment.\r
-\r
-2008-12-13 Doug Evans <dje@google.com>\r
-\r
- * utils.c (xmalloc,xcalloc,xstrdup): New fns.\r
- * server.h (ATTR_MALLOC): New macro.\r
- (xmalloc,xcalloc,xstrdup): Declare.\r
- * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.\r
- * inferiors.c: Ditto.\r
- * linux-low.c: Ditto.\r
- * mem-break.c: Ditto.\r
- * regcache.c: Ditto.\r
- * remote-utils.c: Ditto.\r
- * server.c: Ditto.\r
- * target.c: Ditto.\r
- * win32-low.c: Ditto.\r
-\r
-2008-12-12 Doug Evans <dje@google.com>\r
-\r
- * linux-low.c (linux_wait_for_process): Don't clobber current_inferior\r
- in debugging printf.\r
-\r
- * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.\r
-\r
-2008-12-09 Doug Evans <dje@google.com>\r
-\r
- * linux-low.h (struct process_info): Delete member tid, unused.\r
- * thread-db.c (find_one_thread): Update.\r
- (maybe_attach_thread): Update.\r
-\r
-2008-12-02 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * target.h (struct target_ops): Add qxfer_osdata member.\r
- * linux-low.c: Include ctype.h and pwd.h and sys/types.h\r
- and dirent.h.\r
- (linux_qxfer_osdata): New functions.\r
- (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata\r
- callback.\r
- * server.c (handle_query): Handle "qXfer:osdata:read:".\r
- * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)\r
- (buffer_xml_printf): New functions.\r
- * server.h (struct buffer): New.\r
- (buffer_grow_str, buffer_grow_str0): New macros.\r
- (buffer_grow, buffer_free, buffer_init, buffer_finish)\r
- (buffer_xml_printf): Declare.\r
-\r
-2008-11-24 Doug Evans <dje@google.com>\r
-\r
- * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.\r
-\r
-2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (handle_v_run): Always use the supplied argument list.\r
-\r
-2008-11-19 Bob Wilson <bob.wilson@acm.org>\r
-\r
- * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.\r
- (xtensa_regmap_table): Add entry for scompare1.\r
-\r
-2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>\r
-\r
- * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,\r
- powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,\r
- powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,\r
- powerpc-isa205-64l.o, powerpc-isa205-64l.c,\r
- powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,\r
- powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.\r
- * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and\r
- XML target descriptions.\r
- * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR\r
- when inferior is running on an ISA 2.05 or later processor. Add\r
- special case to return offset for full 64-bit slot of FPSCR when\r
- in 32-bits.\r
-\r
-2008-11-14 Daniel Gutson <dgutson@codesourcery.com>\r
-\r
- * Makefile.in (SFILES, clean): Added sparc64 files.\r
- (reg-sparc64.o, reg-sparc64.c): New.\r
- * configure.srv (sparc*-*-linux*): New configuration.\r
- * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace\r
- syscall arguments for SPARC.\r
- (regsets_store_inferior_registers): Likewise.\r
- * linux-sparc-low.c: New file.\r
-\r
-2008-10-21 Doug Evans <dje@google.com>\r
-\r
- * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.\r
- (READLINE_DIR,READLINE_DEP): Delete.\r
- (INTERNAL_CFLAGS): Update.\r
- (LINTFLAGS): Update.\r
-\r
-2008-10-10 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_v_run): If GDB didn't specify an argv, use the\r
- whole argv from the last run, not just argv[0].\r
-\r
-2008-09-08 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * regcache.c (new_register_cache): Return NULL if the register\r
- cache size isn't known yet.\r
- (free_register_cache): Avoid dereferencing a NULL regcache.\r
-\r
-2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.srv: Merge MIPS and MIPS64.\r
-\r
-2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>\r
-\r
- * Makefile.in (uninstall): Apply $(EXEEXT) too.\r
-\r
-2008-08-18 Luis Machado <luisgpm@br.ibm.com>\r
-\r
- * Makefile.in: Add required vsx dependencies.\r
-\r
- * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.\r
- Declare init_registers_powerpc_vsx32l.\r
- Declare init_registers_powerpc_vsx64l.\r
- Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.\r
- (ppc_arch_setup): Check for VSX in hwcap.\r
- (ppc_fill_vsxregset): New function.\r
- (ppc_store_vsxregset): New function.\r
- Add new VSX entry in regset_info target_regsets.\r
-\r
- * configure.srv: Add new VSX dependencies.\r
-\r
-2008-08-12 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * remote-utils.c (noack_mode, transport_is_reliable): New globals.\r
- (remote_open): Set or clear transport_is_reliable.\r
- (putpkt_binary): Don't expect acks in noack mode.\r
- (getpkt): Don't send ack/nac in noack mode.\r
- * server.c (handle_general_set): Handle QStartNoAckMode.\r
- (handle_query): If connected by tcp pass QStartNoAckMode+ in\r
- qSupported.\r
- (main): Reset noack_mode on every connection.\r
- * server.h (noack_mode): Declare.\r
-\r
-2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>\r
-\r
- * Makefile.in (GDBREPLAY_OBS): New variable.\r
- (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.\r
-\r
-2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>\r
- Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_resume_one_process): Ignore ESRCH.\r
- (usr_store_inferior_registers): Likewise.\r
- (regsets_store_inferior_registers): Likewise.\r
-\r
-2008-07-31 Rolf Jansen <rj@surtec.com>\r
- Pedro Alves <pedro@codesourcery.com>\r
-\r
- * configure.ac: Check for memmem declaration.\r
- * server.c [HAVE_MALLOC_H]: Include malloc.h.\r
- (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)\r
- (disable_packet_qfThreadInfo): Unconditionally compile.\r
- * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.\r
- * configure, config.in: Regenerate.\r
-\r
-2008-07-28 Doug Kwan <dougkwan@google.com>\r
-\r
- * linux-low.c (sys/dir.h, sys/user.h): Remove includes.\r
- (linux_write_memory): Remove declaration of errno.\r
-\r
-2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-low.c (handle_extended_wait): Do not use "status"\r
- variable uninitialized.\r
-\r
-2008-07-07 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_v_attach): Inhibit reporting dll changes.\r
-\r
-2008-06-27 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * remote-utils.c (prepare_resume_reply): If requested, don't\r
- output "thread:TID" in the T stop reply.\r
-\r
- * server.c (disable_packet_vCont, disable_packet_Tthread)\r
- (disable_packet_qC, disable_packet_qfThreadInfo): New globals.\r
- (handle_query): If requested, disable support for qC, qfThreadInfo\r
- and qsThreadInfo.\r
- (handle_v_requests): If requested, disable support for vCont.\r
- (gdbserver_show_disableable): New.\r
- (main): Handle --disable-packet and --disable-packet=LIST.\r
-\r
- * server.h (disable_packet_vCont, disable_packet_Tthread)\r
- (disable_packet_qC, disable_packet_qfThreadInfo): Declare.\r
-\r
-2008-06-20 Carlos O'Donell <carlos@codesourcery.com>\r
-\r
- * server.c (gdbserver_usage): Mention --version.\r
-\r
-2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (gdbreplay.o): New rule.\r
-\r
-2008-06-06 Joseph Myers <joseph@codesourcery.com>\r
-\r
- * gdbreplay.c (gdbreplay_version): Say gdbreplay in version\r
- message, not gdbserver.\r
-\r
-2008-06-05 Vladimir Prus <vladimir@codesourcery.com>\r
- Nathan Sidwell <nathan@codesourcery.com>\r
- Joseph Myers <joseph@codesourcery.com>\r
-\r
- * acinclude.m4: Include ../../config/acx.m4.\r
- * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.\r
- * configure, config.in: Regenerate.\r
- * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.\r
- * server.c (gdbserver_version): Print PKGVERSION.\r
- (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.\r
- (main): Adjust gdbserver_usage calls.\r
- * gdbreplay.c (version, host_name): Add declarations.\r
- (gdbreplay_version, gdbreplay_usage): New.\r
- (main): Accept --version and --help options.\r
-\r
-2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.\r
- (arm_breakpoint_at): Handle Thumb.\r
- (the_low_target): Add comment.\r
-\r
-2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.\r
-\r
-2008-05-09 Doug Evans <dje@google.com>\r
-\r
- * server.h (decode_search_memory_packet): Declare.\r
- * remote-utils.c (decode_search_memory_packet): New fn.\r
- * server.c (handle_search_memory_1): New fn.\r
- (handle_search_memory): New fn.\r
- (handle_query): Process qSearch:memory packets.\r
-\r
-2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * regcache.c (registers_length): Remove.\r
- (set_register_cache): Verify that PBUFSIZ is large enough to hold a\r
- full register packet.\r
- * regcache.h (registers_length): Remove prototype.\r
- * server.h (PBUFSIZ): Define to 16384.\r
-\r
-2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv (powerpc*-*-linux*): Set srv_regobj to\r
- powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,\r
- powerpc-64l.o, and powerpc-altivec64l.o.\r
- Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and\r
- rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,\r
- rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,\r
- rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,\r
- rs6000/power-linux.xml, and rs6000/power64-linux.xml\r
- to srv_xmlfiles.\r
-\r
- * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...\r
- (powerpc-32l.o, powerpc-32l.c): ... these new rules.\r
- (powerpc-32.o, powerpc-32.c): Remove, replace by ...\r
- (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.\r
- (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...\r
- (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.\r
- (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...\r
- (powerpc-64l.o, powerpc-64l.c): ... these new rules.\r
- (powerpc-64.o, powerpc-64.c): Remove, replace by ...\r
- (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.\r
- (clean): Update.\r
-\r
- * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...\r
- (init_registers_powerpc_32l): ... this new prototype.\r
- (init_registers_powerpc_32): Remove, replace by ...\r
- (init_registers_powerpc_altivec32l): ... this new prototype.\r
- (init_registers_powerpc_e500): Remove, replace by ...\r
- (init_registers_powerpc_e500l): ... this new prototype.\r
- (init_registers_ppc64): Remove, replace by ...\r
- (init_registers_powerpc_64l): ... this new prototype.\r
- (init_registers_powerpc_64): Remove, replace by ...\r
- (init_registers_powerpc_altivec64l): ... this new prototype.\r
- (ppc_num_regs): Set to 73.\r
- (PT_ORIG_R3, PT_TRAP): Define if necessary.\r
- (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.\r
- (ppc_cannot_store_register): Handle orig_r3 and trap.\r
- (ppc_arch_setup): Update init_registers_... calls.\r
- (ppc_fill_gregset): Handle orig_r3 and trap.\r
-\r
- * inferiors.c (clear_inferiors): Reset current_inferior.\r
-\r
-2008-04-23 Paolo Bonzini <bonzini@gnu.org>\r
-\r
- * acinclude.m4: Add override.m4.\r
- * configure: Regenerate.\r
-\r
-2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the\r
- initial call to init_register_ppc64.\r
-\r
-2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into\r
- single powerpc*-*-linux* case.\r
- (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.\r
-\r
-2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from\r
- srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml\r
- from reg_xmlfiles.\r
- * linux-ppc-low.c: Include <elf.h>.\r
- (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.\r
- (ppc_hwcap): New global variable.\r
- (ppc_regmap): Remove __SPE__ #ifdef sections.\r
- (ppc_regmap_e500): New global variable.\r
- (ppc_cannot_store_register): Update __SPE__ special case.\r
- (ppc_get_hwcap): New function.\r
- (ppc_arch_setup): Use it to determine whether inferior supports\r
- AltiVec or SPE registers. Set the_low_target.regmap if appropriate.\r
- (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.\r
- Do not access registers if target does not support AltiVec.\r
- (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.\r
- Do not access registers if target does not support SPE.\r
- (target_regsets): Unconditionally include AltiVec and SPE regsets.\r
-\r
-2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (disabled_regsets, num_regsets): New.\r
- (use_regsets_p): Delete.\r
- (linux_wait_for_process): Clear disabled_regsets.\r
- (regsets_fetch_inferior_registers): Check and set it.\r
- (regsets_store_inferior_registers): Likewise.\r
- (linux_fetch_registers, linux_store_registers): Do not use\r
- use_regsets_p.\r
- (initialize_low): Allocate disabled_regsets.\r
-\r
-2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (LIBOBJS): New.\r
- (OBS): Use LIBOBJS.\r
- (memmem.o): New rule.\r
- * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.\r
- * configure: Regenerated.\r
-\r
-2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * server.c (handle_query): Never return "unsupported" for\r
- qXfer:features:read queries.\r
-\r
-2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * server.c (get_features_xml): Fix inverted condition.\r
- (handle_query): Always support qXfer:feature:read.\r
-\r
-2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (wrapper_argv): New.\r
- (start_inferior): Handle wrapper_argv. If set, expect an extra\r
- trap.\r
- (gdbserver_usage): Document --wrapper.\r
- (main): Parse --wrapper.\r
-\r
-2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv [powerpc64-*-linux*]: Add all files mentioned for\r
- powerpc-*-linux* to srv_regobj and reg_xmlfiles.\r
- * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.\r
- (ppc_set_pc): Likewise.\r
- (ppc_arch_setup): New function.\r
- (ppc_fill_gregset): Call ppc_collect_ptrace_register instead\r
- of collect_register.\r
- (the_low_target): Use ppc_arch_setup as arch_setup initializer.\r
-\r
-2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o\r
- instead of linux-ppc64-low.o.\r
- * linux-ppc64-low.c: Remove file.\r
- * Makefile.in (SFILES): Remove linux-ppc64-low.c.\r
- (linux-ppc64-low.o): Remove rule.\r
-\r
- * linux-ppc-low.c (init_registers_ppc64): Add prototype.\r
- (init_registers_powerpc_64): Likewise.\r
- (ppc_regmap): Conditionally define depending on __powerpc64__.\r
- (ppc_cannot_store_register): Do not special-case "fpscr" when\r
- compiled on __powerpc64__.\r
- (ppc_collect_ptrace_register): New function.\r
- (ppc_supply_ptrace_register): New function.\r
- (ppc_breakpoint): Change type to "unsigned int".\r
- (ppc_breakpoint_at): Change type of "insn" to "unsigned int".\r
- (the_low_target): Conditionally provide initializers for the\r
- arch_setup member depending on __powerpc64__. Install\r
- collect_ptrace_register and supply_ptrace_register members.\r
-\r
-2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * regcache.h (gdbserver_xmltarget): Add extern declaration.\r
- * server.c (gdbserver_xmltarget): Define.\r
- (get_features_xml): Use it to replace "target.xml" and arch_string.\r
-\r
- * configure.srv: Remove srv_xmltarget. Add XML files that were\r
- mentioned there to srv_xmlfiles instead. Remove conditional tests\r
- on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set\r
- srv_xmlfiles and srv_regobj to include all possible choices.\r
- * configure.ac (srv_xmltarget): Remove.\r
- (srv_xmlfiles): Do not add "target.xml".\r
- (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove\r
- checks for supplementary target information.\r
- * configure: Regenerate.\r
- * Makefile.in (XML_TARGET): Remove.\r
- (target.xml): Remove rule.\r
- (clean): Do not clean up target.xml.\r
- (.PRECIOUS): Do not mention target.xml.\r
-\r
- * target.h (struct target_ops): Remove arch_string member.\r
- * linux-low.c (linux_arch_string): Remove.\r
- (linux_target_ops): Remove arch_string initializer.\r
- * linux-low.h (struct linux_target_ops): Remove arch_string member.\r
- * linux-i386-low.c (the_low_target): Remove arch_string initializer.\r
- * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.\r
- * spu-low.c (spu_arch_string): Remove.\r
- (spu_target_ops): Remove arch_string initializer.\r
- * win32-low.c (win32_arch_string): Remove.\r
- (win32_target_ops): Remove arch_string initializer.\r
- * win32-low.h (struct win32_target_ops): Remove arch_string member.\r
- * win32-arm-low.c (the_low_target): Remove arch_string initializer.\r
- * win32-i368-low.c (the_low_target): Remove arch_string initializer.\r
-\r
-2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field\r
- by collect_ptrace_register and supply_ptrace_register hooks.\r
- * linux-low.c (fetch_register): Use supply_ptrace_register callback\r
- instead of checking for the_low_target.left_pad_xfer.\r
- (usr_store_inferior_registers): Use collect_ptrace_register callback\r
- instead of checking for the_low_target.left_pad_xfer.\r
-\r
- * linux-s390-low.c (s390_collect_ptrace_register): New function.\r
- (s390_supply_ptrace_register): Likewise.\r
- (s390_fill_gregset): Call s390_collect_ptrace_register.\r
- (the_low_target): Update.\r
-\r
- * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.\r
- (ppc_supply_ptrace_register): Likewise.\r
- (the_low_target): Update.\r
-\r
- * linux-i386-low.c (the_low_target): Update.\r
- * linux-x86-64-low.c (the_low_target): Update.\r
-\r
-2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv [s390x-*-linux*]: Set srv_regobj to include both\r
- reg-s390.o and reg-s390x.o.\r
-\r
- * linux-low.c (new_inferior): New global variable.\r
- (linux_create_inferior, linux_attach): Set it.\r
- (linux_wait_for_process): Call the_low_target.arch_setup after the\r
- target has stopped for the first time.\r
- (initialize_low): Do not call the_low_target.arch_setup.\r
-\r
- * linux-s390-low.c (s390_get_pc): Support bi-arch operation.\r
- (s390_set_pc): Likewise.\r
- (s390_arch_setup): New function.\r
- (the_low_target): Use s390_arch_setup as arch_setup routine.\r
-\r
- * regcache.c (realloc_register_cache): New function.\r
- (set_register_cache): Call it for each existing regcache.\r
-\r
-2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * server.h (init_registers): Remove prototype.\r
-\r
- * linux-low.h (struct linux_target_ops): Add arch_setup field.\r
- * linux-low.c (initialize_low): Call the_low_target.arch_setup ()\r
- instead of init_registers ().\r
- * linux-arm-low.c (init_registers_arm): Add prototype.\r
- (init_registers_arm_with_iwmmxt): Likewise.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-cris-low.c (init_registers_cris): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-crisv32-low.c (init_registers_crisv32): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-i386-low.c (init_registers_i386_linux): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-ia64-low.c (init_registers_ia64): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-m32r-low.c (init_registers_m32r): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-m68k-low.c (init_registers_m68k): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-mips-low.c (init_registers_mips_linux): Add prototype.\r
- (init_registers_mips64_linux): Likewise.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-ppc-low.c (init_registers_ppc): Add prototype.\r
- (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-ppc64-low.c (init_registers_ppc64): Add prototype.\r
- (init_registers_powerpc_64): Likewise.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-s390-low.c (init_registers_s390): Add prototype.\r
- (init_registers_s390x): Likewise.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-sh-low.c (init_registers_sh): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * linux-xtensa-low.c (init_registers_xtensa): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
-\r
- * win32-low.h (struct win32_target_ops): Add arch_setup field.\r
- * win32-low.c (initialize_low): Call the_low_target.arch_setup ()\r
- instead of init_registers ().\r
- * win32-arm-low.c (init_registers_arm): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
- * win32-i386-low.c (init_registers_i386): Add prototype.\r
- (the_low_target): Add initializer for arch_setup field.\r
-\r
- * spu-low.c (init_registers_spu): Add prototype.\r
- (initialize_low): Call initialie_registers_spu () instead of\r
- initialize_registers ().\r
-\r
-2008-02-19 Pedro Alves <pedro@codesourcery.com>\r
-\r
- * server.c (handle_v_requests): When handling the vRun and vAttach\r
- packets, if already debugging a process, don't kill it. Return an\r
- error instead.\r
-\r
-2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (handle_query): Correct length check.\r
-\r
-2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (do_initial_child_stuff): Add process handle\r
- parameter. Set current_process_handle and current_process_id from the\r
- parameters. Clear globals.\r
- (win32_create_inferior): Don't set current_process_handle and\r
- current_process_id here. Instead pass them on the call to\r
- do_initial_child_stuff.\r
- (win32_attach): Likewise.\r
- (win32_clear_inferiors): New.\r
- (win32_kill): Don't close the current process handle or the\r
- current thread handle here. Instead call win32_clear_inferiors.\r
- (win32_detach): Don't open a new handle to the process. Call\r
- win32_clear_inferiors.\r
- (win32_join): Don't rely on current_process_handle; open a new\r
- handle using the process id.\r
- (win32_wait): Call win32_clear_inferiors when the inferior process\r
- has exited.\r
-\r
-2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (monitor_show_help): Add "exit".\r
-\r
-2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>\r
-\r
- * Makefile.in (SFILES): Add linux-xtensa-low.c.\r
- (clean): Add reg-xtensa.c.\r
- (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.\r
- * configure.srv (xtensa*-*-linux*) New target.\r
- * linux-xtensa-low.c: New.\r
- * xtensa-xtregs.c: New.\r
-\r
-2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * hostio.c: Don't include errno.h.\r
- (errno_to_fileio_errno): Move to hostio-errno.\r
- * hostio.c: (hostio_error): Remove the error parameter. Defer the\r
- error number outputting to the target->hostio_last_error callback.\r
- (hostio_packet_error): Use FILEIO_EINVAL directly.\r
- (handle_open, handle_pread, hostio_error, handle_unlink): Update\r
- calls to hostio_error.\r
- * hostio-errno.c: New.\r
- * server.h (hostio_last_error_from_errno): Declare.\r
- * target.h (target_ops): Add hostio_last_error member.\r
- * linux-low.c (linux_target_op): Register hostio_last_error_from_errno\r
- as hostio_last_error handler.\r
- * spu-low.c (spu_target_ops): Likewise.\r
- * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)\r
- (wince_hostio_last_error): New functions.\r
- (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error\r
- as hostio_last_error handler.\r
- (win32_target_ops) [!_WIN32_WCE]: Register\r
- hostio_last_error_from_errno as hostio_last_error handler.\r
- * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.\r
- (hostio-errno.o): New rule.\r
- * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.\r
- * configure.srv (srv_hostio_err_objs): New variable. Default to\r
- hostio-errno.o.\r
- (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".\r
- * configure: Regenerate.\r
-\r
-2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_attach_lwp): Do not _exit after errors.\r
- (linux_kill, linux_detach): Clean up the process list.\r
- * remote-utils.c (remote_open): Improve port number parsing.\r
- (putpkt_binary, input_interrupt): Only send interrupts if the target\r
- is running.\r
- * server.c (extended_protocol): Make static.\r
- (attached): Define earlier.\r
- (exit_requested, response_needed, program_argv): New variables.\r
- (target_running): New.\r
- (start_inferior): Clear attached here.\r
- (attach_inferior): Set attached here.\r
- (require_running): Define.\r
- (handle_query): Use require_running and target_running. Implement\r
- "monitor exit".\r
- (handle_v_attach, handle_v_run): New.\r
- (handle_v_requests): Use require_running. Handle vAttach and vRun.\r
- (gdbserver_usage): Update.\r
- (main): Redo argument parsing. Handle --debug and --multi. Handle\r
- --attach along with other options or after the port. Save\r
- program_argv. Support no initial program. Resynchronize\r
- communication with GDB after an error. Handle "monitor exit".\r
- Use require_running and target_running. Always allow the extended\r
- protocol. Do not error out for Hc0 or Hc-1. Do not automatically\r
- restart in extended mode.\r
- * README: Refer to the GDB manual. Update --attach usage.\r
-\r
-2007-12-20 Andreas Schwab <schwab@suse.de>\r
-\r
- * linux-low.c (STACK_SIZE): Define.\r
- (linux_tracefork_child): Use it. Use __clone2 on ia64.\r
- (linux_test_for_tracefork): Likewise.\r
-\r
-2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_for_event): Update messages. Do not\r
- reinsert auto-delete breakpoints.\r
- * mem-break.c (struct breakpoint): Change return type of handler to\r
- int.\r
- (set_breakpoint_at): Update handler type.\r
- (reinsert_breakpoint_handler): Return 1 instead of calling\r
- delete_breakpoint.\r
- (reinsert_breakpoint_by_bp): Check for the original breakpoint before\r
- setting a new one.\r
- (check_breakpoints): Delete auto-delete breakpoints and return 2.\r
- * mem-break.h (set_breakpoint_at): Update handler type.\r
- * thread-db.c (thread_db_create_event, thread_db_create_event): Update.\r
- * win32-low.c (auto_delete_breakpoint): New.\r
- (get_child_debug_event): Use it.\r
-\r
-2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.ac: Check for pread and pwrite.\r
- * hostio.c (handle_pread): Fall back to lseek and read.\r
- (handle_pwrite): Fall back to lseek and write.\r
- * config.in, configure: Regenerated.\r
-\r
-2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (myresume): Add own_buf argument.\r
- (main): Update calls.\r
-\r
-2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.\r
- * remote-utils.c (remote_open): Do not call disable_async_io.\r
- (block_async_io): Delete.\r
- (unblock_async_io): Make static.\r
- (initialize_async_io): New.\r
- * server.c (handle_v_cont): Handle async I/O here.\r
- (myresume): Likewise. Move other common resume tasks here...\r
- (main): ... from here. Call initialize_async_io. Disable async\r
- I/O before the main loop.\r
- * server.h (initialize_async_io): Declare.\r
- (block_async_io, unblock_async_io): Delete prototypes.\r
- * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.\r
-\r
-2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>\r
-\r
- * remote-utils.c (readchar): Allow binary data in received messages.\r
-\r
-2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (attaching): New global.\r
- (win32_create_inferior): Clear the `attaching' global.\r
- (win32_attach): Set the `attaching' global.\r
- (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when\r
- attaching. Only set a breakpoint at the entry point if not\r
- attaching.\r
-\r
-2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * server.c (main): Don't report dll events on the initial\r
- connection on attaches.\r
-\r
-2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * server.c (main): Relax numerical bases supported for the pid of\r
- the --attach command line argument.\r
-\r
-2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (win32_attach): Call OpenProcess before\r
- DebugActiveProcess, not after. Add last error output to error\r
- call.\r
-\r
-2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (win32_get_thread_context)\r
- (win32_set_thread_context): New functions.\r
- (thread_rec): Use win32_get_thread_context.\r
- (continue_one_thread, win32_resume): Use win32_set_thread_context.\r
- * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'\r
- field.\r
-\r
-2007-12-03 Leo Zayas\r
- Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (soft_interrupt_requested, faked_breakpoint): New\r
- global variables.\r
- (child_add_thread): Minor cleanup.\r
- (child_continue): Resume artificially suspended threads before\r
- calling ContinueDebugEvent.\r
- (suspend_one_thread): New.\r
- (fake_breakpoint_event): New.\r
- (get_child_debug_event): Change return type to int. Check here if\r
- gdb sent an interrupt request. If a soft interrupt was requested,\r
- fake a breakpoint event. Return 0 if there is no event to handle,\r
- and 1 otherwise.\r
- (win32_wait): Don't check here if gdb sent an interrupt request.\r
- Ensure there is a valid event to handle.\r
- (win32_request_interrupt): Add soft interruption method as last\r
- resort.\r
-\r
-2007-12-03 Leo Zayas\r
- Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.h (win32_thread_info): Add descriptions to the\r
- structure members. Replace `suspend_count' counter by a\r
- `suspended' flag.\r
- * win32-low.c (thread_rec): Update condition of when to get the\r
- context from the inferior. Rely on ContextFlags being set if it\r
- has already been retrieved. Only suspend the inferior thread if\r
- we haven't already. Warn if that fails.\r
- (continue_one_thread): s/suspend_count/suspended/. Only call\r
- ResumeThread once. Warn if that fails.\r
-\r
-2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (win32_wait): Don't read from the inferior when it\r
- has already exited.\r
-\r
-2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * Makefile.in (win32_low_h): New variable.\r
- (win32-low.o): Add dependency on $(win32_low_h).\r
- (win32-arm-low.o, win32-i386-low.o): New rules.\r
-\r
-2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * hostio.c: Correct copyright year.\r
-\r
-2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (OBS): Add hostio.o.\r
- (hostio.o): New rule.\r
- * server.h (handle_vFile): Declare.\r
- * hostio.c: New file.\r
- * server.c (handle_v_requests): Take packet_len and new_packet_len\r
- for binary packets. Call handle_vFile.\r
- (main): Update call to handle_v_requests.\r
-\r
-2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c: Include <sched.h>.\r
-\r
-2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_tracefork_grandchild): New.\r
- (linux_tracefork_child): Use clone.\r
- (linux_test_for_tracefork): Use clone; allocate and free a stack.\r
-\r
-2007-10-31 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.\r
-\r
-2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (handle_extended_wait): Handle unexpected signals.\r
-\r
-2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * inferiors.c (change_inferior_id): Delete.\r
- (add_pid_to_list, pull_pid_from_list): New.\r
- * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)\r
- (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)\r
- (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)\r
- (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)\r
- (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)\r
- (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.\r
- (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.\r
- (using_threads): Always set to 1.\r
- (handle_extended_wait): New.\r
- (add_process): Do not set TID.\r
- (linux_create_inferior): Set must_set_ptrace_flags.\r
- (linux_attach_lwp): Remove TID argument. Do not check using_threads.\r
- Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.\r
- (linux_thread_alive): Rename TID argument to LWPID.\r
- (linux_wait_for_process): Handle unknown processes. Do not use TID.\r
- (linux_wait_for_event): Do not use TID or check using_threads. Update\r
- call to dead_thread_notify. Call handle_extended_wait.\r
- (linux_create_inferior): Use PTRACE_SETOPTIONS.\r
- (send_sigstop): Delete sigstop_sent.\r
- (wait_for_sigstop): Avoid TID.\r
- (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)\r
- (linux_test_for_tracefork): New.\r
- (linux_lookup_signals): Use thread_db_active and\r
- linux_supports_tracefork_flag.\r
- (initialize_low): Use thread_db_active and linux_test_for_tracefork.\r
- * linux-low.h (get_process_thread): Avoid TID.\r
- (struct process_ifo): Move thread_known and tid to the end. Remove\r
- sigstop_sent.\r
- (linux_attach_lwp, thread_db_init): Update prototypes.\r
- * server.h (change_inferior_id): Delete prototype.\r
- (add_pid_to_list, pull_pid_from_list): New prototypes.\r
- * thread-db.c (thread_db_use_events): New.\r
- (find_first_thread): Rename to...\r
- (find_one_thread): ...this. Update callers and messages. Do not\r
- call fatal. Check thread_db_use_events. Do not call\r
- change_inferior_id or new_thread_notify.\r
- (maybe_attach_thread): Update. Do not call new_thread_notify.\r
- (thread_db_init): Set thread_db_use_events. Check use_events.\r
- * utils.c (fatal, warning): Correct message prefix.\r
-\r
-2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (clean): Remove new files.\r
- (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)\r
- (powerpc-64.o, powerpc-64.c): New rules.\r
- * configure.srv: Use alternate register sets for powerpc64-*-linux*\r
- with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*\r
- with SPE.\r
- * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for\r
- SPE targets.\r
- (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.\r
- (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)\r
- (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)\r
- (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.\r
- (target_regsets): Add AltiVec and SPE register sets.\r
- * configure.ac: Check for AltiVec and SPE.\r
- * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)\r
- (ppc_fill_vrregset, ppc_store_vrregset): New.\r
- (target_regsets): Add AltiVec register set.\r
- * configure: Regenerated.\r
-\r
-2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (O_LARGEFILE): Define.\r
- (linux_read_memory): Use /proc/PID/mem.\r
- * configure.ac: Use AC_GNU_SOURCE. Check for pread64.\r
- * configure, config.in: Regenerated.\r
-\r
-2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_for_event): Do not pass signals while\r
- single-stepping.\r
-\r
-2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (create_process): New.\r
- (win32_create_inferior): Use create_process instead of\r
- CreateProcess. If create_process failed retry appending an ".exe"\r
- suffix. Store the GetLastError result immediatelly after\r
- create_process calls and use it on the call to error.\r
-\r
-2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.\r
-\r
-2007-08-23 Joel Brobecker <brobecker@adacore.com>\r
-\r
- * configure.ac: Switch license to GPLv3.\r
-\r
-2007-08-01 Michael Snyder <msnyder@access-company.com>\r
-\r
- * remote-utils.c (putpkt_binary): Memory leak, free buf2.\r
-\r
-2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New\r
- typedef.\r
- (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.\r
- (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get\r
- CloseToolhelp32Snapshot.\r
- (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with\r
- CloseToolhelp32Snapshot.\r
-\r
-2007-07-27 Michael Snyder <michael.snyder@access-company.com>\r
-\r
- * server.c (main): Check for inferior exit before main loop.\r
-\r
-2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc\r
- instead of on tmp_desc.\r
-\r
-2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>\r
- Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * inferiors.c (all_dlls, dlls_changed, get_dll): New.\r
- (add_thread): Minor cleanups.\r
- (clear_inferiors): Move lower in the file. Clear the DLL\r
- list.\r
- (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.\r
- * remote-utils.c (prepare_resume_reply): Check dlls_changed.\r
- (xml_escape_text): New.\r
- * server.c (handle_query): Handle qXfer:libraries:read. Report it\r
- for qSupported.\r
- (handle_v_cont): Report errors.\r
- (gdbserver_version): Update.\r
- (main): Correct size of own_buf. Do not report initial DLL events.\r
- * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)\r
- (unloaded_dll, xml_escape_text): New.\r
- * win32-low.c (enum target_waitkind): Update comments.\r
- (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)\r
- (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)\r
- (win32_EnumProcessModules, win32_GetModuleInformation)\r
- (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)\r
- (winapi_CreateToolhelp32Snapshot, winapi_Module32First)\r
- (winapi_Module32Next, win32_CreateToolhelp32Snapshot)\r
- (win32_Module32First, win32_Module32Next, load_toolhelp)\r
- (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.\r
- (get_child_debug_event): Handle DLL events.\r
- (win32_wait): Likewise.\r
-\r
-2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.srv: Set srv_linux_regsets for sh*-*-linux*.\r
- * linux-sh-low.c (sh_fill_gregset, target_regsets): New.\r
-\r
-2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (handle_output_debug_string): Ignore event if not\r
- waiting.\r
-\r
-2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-arm-low.c (arm_wince_breakpoint): Fix typo.\r
-\r
-2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (look_up_one_symbol): Handle 'm' packets.\r
-\r
-2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * inferiors.c (change_inferior_id): Add comment.\r
- * linux-low.c (check_removed_breakpoint): Add an early\r
- prototype. Improve debug output.\r
- (linux_attach): Doc update.\r
- (linux_detach_one_process, linux_detach): Clean up before releasing\r
- each process.\r
- (send_sigstop, wait_for_sigstop): Improve comments and debug output.\r
- * linux-low.h (struct process_info): Doc improvement.\r
- * mem-break.c (delete_all_breakpoints): New.\r
- * mem-break.h (delete_all_breakpoints): New prototype.\r
- * thread-db.c (find_first_thread): New.\r
- (thread_db_create_event): Call it instead of\r
- thread_db_find_new_threads. Clean up unused variables.\r
- (maybe_attach_thread): Remove first thread handling.\r
- (thread_db_find_new_threads): Use find_first_thread.\r
- (thread_db_get_tls_address): Likewise.\r
-\r
-2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * thread-db.c (thread_db_find_new_threads): Add prototype.\r
- (thread_db_create_event): Check for the main thread before adding\r
- a new thread.\r
- (maybe_attach_thread): Only enable event reporting if TID == 0.\r
- (thread_db_get_tls_address): Check for new threads.\r
-\r
-2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_create_inferior): Try execv before execvp.\r
- * spu-low.c (spu_create_inferior): Likewise.\r
-\r
-2007-06-13 Mike Frysinger <vapier@gentoo.org>\r
-\r
- * linux-low.c (linux_create_inferior): Change execv to execvp.\r
- * spu-low.c (spu_create_inferior): Likewies.\r
-\r
-2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (clean): Clean new files instead of deleted ones.\r
- (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.\r
- (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New\r
- rules.\r
- * configure.srv: Specify XML files and new regformats for MIPS and\r
- MIPS64 GNU/Linux.\r
- * linux-mips-low.c (mips_num_regs): Set to only used registers.\r
- (mips_regmap): Do not fetch $0. Remove unused registers. Add\r
- an entry for the restart register.\r
- (mips_cannot_fetch_register, mips_cannot_store_register)\r
- (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update\r
- register names to match the XML descriptions.\r
- (mips_fill_gregset, mips_store_gregset): Likewise. Handle the\r
- restart register instead of $0.\r
-\r
-2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>\r
- Markus Deuling <deuling@de.ibm.com>\r
-\r
- * remote-utils.c (decode_xfer_write): New function.\r
- * server.h (decode_xfer_write): Add prototype.\r
- * server.c (handle_query): Add PACKET_LEN argument. Support\r
- qXfer:spu:read and qXfer:spu:write packets.\r
- (main): Pass packet_len to handle_query.\r
- * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.\r
- * target.h (target_ops): Add qxfer_spu.\r
-\r
-2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * spu-low.c (spu_proc_xfer_spu): Do not return failure when\r
- accessing non-seekable spufs files.\r
-\r
-2007-05-16 Markus Deuling <deuling@de.ibm.com>\r
-\r
- * server.c (handle_query): Add reply for qC packet.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
- Leo Zayas <lerele@champenstudios@com>\r
-\r
- * server.h (check_remote_input_interrupt_request): New function.\r
- * remote_utils.c (INVALID_DESCRIPTOR): New define.\r
- (remote_desc): Initialize with INVALID_DESCRIPTOR.\r
- (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.\r
- (check_remote_input_interrupt_request): New function.\r
- * server.h (check_remote_input_interrupt_request): Declare.\r
- * win32-low.c (winapi_DebugBreakProcess,\r
- winapi_GenerateConsoleCtrlEvent): New typedefs.\r
- (get_child_debug_event): Lower Win32 debug event polling from 1 sec\r
- to 250 ms.\r
- (win32_wait): Check for remote interrupt request\r
- with check_remote_input_interrupt_request.\r
- (win32_request_interrupt): New function.\r
- (win32_target_op): Set request_interrupt to win32_request_interrupt.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (debug_registers_changed,\r
- debug_registers_used, CONTEXT_EXTENDED_REGISTERS,\r
- CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,\r
- CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.\r
- (thread_rec): Get context using the low target.\r
- (child_add_thread): Call thread_added on the low target,\r
- which does the same thing.\r
- (regptr): Delete.\r
- (do_initial_child_stuff): Remove debug registers references.\r
- Set context using the low target. Resume threads after\r
- setting the contexts.\r
- (child_continue): Remove dead variable. Remove debug\r
- registers references.\r
- (child_fetch_inferior_registers): Go through the low target.\r
- (do_child_store_inferior_registers): Remove.\r
- (child_store_inferior_registers): Go through the low target.\r
- (win32_resume): Remove debug registers references.\r
- Set context using the low target.\r
- (handle_exception): Change return type to void. Don't record\r
- context here. Set status to TARGET_WAITKIND_SPURIOUS on a\r
- first chance exception.\r
- (get_child_debug_event): Change return type to void. Remove\r
- goto loop. Always return after waiting for debug event.\r
- (win32_wait): Convert to switch statement. Handle spurious\r
- events.\r
-\r
- * win32-i386-low.c (debug_registers_changed,\r
- debug_registers_used): New.\r
- (initial_stuff): Rename to ...\r
- (i386_initial_stuff): ... this. Clear debug registers\r
- state variables.\r
- (store_debug_registers): Delete.\r
- (i386_get_thread_context): New.\r
- (load_debug_registers): Delete.\r
- (i386_set_thread_context): New.\r
- (i386_thread_added): New.\r
- (single_step): Rename to ...\r
- (i386_single_step): ... this.\r
- (do_fetch_inferior_registers): Rename to ...\r
- (i386_fetch_inferior_register): ... this.\r
- (i386_store_inferior_register): New.\r
- (the_low_target): Adapt to new interface.\r
-\r
- * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.\r
- (arm_get_thread_context): New.\r
- (arm_set_thread_context): New.\r
- (regptr): New.\r
- (do_fetch_inferior_registers): Rename to ...\r
- (arm_fetch_inferior_register): ... this.\r
- (arm_store_inferior_register): New.\r
- (arm_wince_breakpoint): Reimplement as unsigned long.\r
- (arm_wince_breakpoint_len): Define.\r
- (the_low_target): Adapt to new interface.\r
-\r
- * win32-low.h (target_ops): Remove regmap, store_debug_registers and\r
- load_debug_registers. Add get_thread_context, set_thread_context,\r
- thread_added and store_inferior_register. Rename\r
- fetch_inferior_registers to fetch_inferior_register.\r
- (regptr): Remove declaration.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * linux-low.c (linux_detach): Change return type to int. Return 0.\r
- * spu-low.c (spu_detach): Likewise.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * target.h (target_ops): Change return type of detach to int.\r
- Add join.\r
- (join_inferior): New.\r
- * server.c (main): Don't skip detach support on mingw32.\r
- If the inferior doesn't support detaching return error.\r
- Call join_inferior instead of using waitpid.\r
- * linux-low.c (linux_join): New.\r
- (linux_target_op): Add linux_join.\r
- * spu-low.c (spu_join): New.\r
- (spu_target_ops): Add spu_join.\r
- * win32-low.c (win32_detach): Adapt to new interface.\r
- Reopen current_process_handle before detaching. Issue a child\r
- resume before detaching.\r
- (win32_join): New.\r
- (win32_target_op): Add win32_join.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (win32-attach): Fix return value.\r
- * target.h (target_ops): Describe ATTACH return values.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (GETPROCADDRESS): Define.\r
- (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.\r
- (winapi_DebugSetProcessKillOnExit): Likewise.\r
- (win32_create_inferior): Force usage of ansi CreateProcessA.\r
- (win32_attach): Use GETPROCADDRESS.\r
- (win32_detach): Likewise.\r
-\r
-2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c (win32_wait): Don't use WSTOPSIG.\r
-\r
-2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c: Commit leftover changes from 2007-03-29.\r
-\r
-2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit\r
- fields short instead of int. Add explicit padding.\r
- (i387_cache_to_fsave): Remove unnecessary casts.\r
- (i387_fsave_to_cache): Doc fix.\r
- (i387_cache_to_fxsave): Remove unnecessary casts and masking.\r
-\r
-2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.\r
- (i387_fxsave_to_cache): Check fp->ftag while building ftag value.\r
-\r
-2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * configure.srv (arm*-*-mingw32ce*): Move near the other\r
- arm targets.\r
-\r
-2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * configure.ac: Add errno checking.\r
- (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,\r
- sys/file.h and malloc.h.\r
- (AC_CHECK_DECLS): Add perror.\r
- (srv_mingwce): Handle.\r
- * configure.srv (i[34567]86-*-cygwin*): Add\r
- win32-i386-low.o to srv_tgtobj.\r
- (i[34567]86-*-mingw*): Likewise.\r
- (arm*-*-mingw32ce*): Add case.\r
- * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,\r
- HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.\r
- [__MINGW32CE__] (strerror): New function.\r
- [__MINGW32CE__] (errno): Define to GetLastError.\r
- [__MINGW32CE__] (COUNTOF): New macro.\r
- (remote_open): Remove extra close call.\r
- * mem-break.c (delete_breakpoint_at): New function.\r
- * mem-break.h (delete_breakpoint_at): Declare.\r
- * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,\r
- HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.\r
- [USE_WIN32API] (read, write): Add char* casts.\r
- * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.\r
- * server.h: Include wincecompat.h on Windows CE.\r
- [HAVE_ERRNO_H]: Check.\r
- (perror): Declare if not declared.\r
- * utils.c: Add stdlib.h, errno.h and malloc.h includes.\r
- (perror_with_name): Remove errno declaration.\r
- * wincecompat.h: New.\r
- * wincecompat.c: New.\r
- * win32-low.h: New.\r
- * win32-arm-low.c: New.\r
- * win32-i386-low.c: New.\r
- (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.\r
- (OUTMSG2): Make it safe.\r
- (_T): New macro.\r
- (COUNTOF): New macro.\r
- (NUM_REGS): Get it from the low target.\r
- (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,\r
- CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.\r
- (thread_rec): Let low target handle debug registers.\r
- (child_add_thread): Likewise.\r
- (child_init_thread_list): Likewise.\r
- (continue_one_thread): Likewise.\r
- (regptr): New.\r
- (do_child_fetch_inferior_registers): Move to ...\r
- * win32-i386-low.c: ... here, and rename to ...\r
- (do_fetch_inferior_registers): ... this.\r
- * win32-low.c (child_fetch_inferior_registers):\r
- Go through the low target.\r
- (do_child_store_inferior_registers): Use regptr.\r
- (strwinerror): New function.\r
- (win32_create_inferior): Handle Windows CE.\r
- Use strwinerror instead of strerror on Windows error\r
- codes. Add program to the error output.\r
- Don't close the main thread handle on Windows CE.\r
- (win32_attach): Use coredll.dll on Windows CE.\r
- (win32_kill): Close current process and current\r
- thread handles.\r
- (win32_detach): Use coredll.dll on Windows CE.\r
- (win32_resume): Let low target handle debug registers, and\r
- step request.\r
- (handle_exception): Add/Remove initial breakpoint. Avoid\r
- non-existant WSTOPSIG on Windows CE.\r
- (win32_read_inferior_memory): Cast to remove warning.\r
- (win32_arch_string): Go through the low target.\r
- (initialize_low): Call set_breakpoint_data with the low\r
- target's breakpoint.\r
- * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,\r
- FOP_REGNUM, mappings): Move to ...\r
- * win32-i386-low.c: ... here.\r
- * win32-low.c (win32_thread_info): Move to ...\r
- * win32-low.h: ... here.\r
- * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,\r
- win32-arm-low.c and wincecompat.c.\r
- (all:): Add $EXEEXT.\r
- (install-only:): Likewise.\r
- (gdbserver:): Likewise.\r
- (gdbreplay:): Likewise.\r
- * config.in: Regenerate.\r
- * configure: Regenerate.\r
-\r
-2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-low.c: Rename typedef thread_info to\r
- win32_thread_info throughout.\r
-\r
-2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * win32-i386-low.c: Rename to ...\r
- * win32-low.c: ... this.\r
- * configure.srv: Replace win32-i386-low.o with win32-low.o.\r
- * Makefile.in: Likewise.\r
-\r
-2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * remote-utils.c (monitor_output): Constify msg parameter.\r
- * server.h (monitor_output): Likewise.\r
- * win32-i386-low.c (handle_output_debug_string): New.\r
- (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using\r
- handle_output_debug_string.\r
- (get_child_debug_event): Likewise.\r
-\r
-2007-03-27 Mat Hostetter <mat@lcs.mit.edu>\r
-\r
- * server.c (main): Correct strtoul check.\r
-\r
-2007-03-27 Jon Ringle <jon@ringle.org>\r
-\r
- * linux-low.c: Check __ARCH_HAS_MMU__ also.\r
-\r
-2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>\r
-\r
- * Makefile.in: Add dummy "pdf" and "install-pdf" targets.\r
-\r
-2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * terminal.h: Check HAVE_SGTTY_H.\r
-\r
-2007-02-27 Mat Hostetter <mat@lcs.mit.edu>\r
-\r
- * remote-utils.c (remote_open): Print out the assigned port number.\r
-\r
-2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (monitor_output): New function.\r
- * server.c (debug_threads): Define here.\r
- (monitor_show_help): New function.\r
- (handle_query): Handle qRcmd.\r
- (main): Do not handle 'd' packet.\r
- * server.h (debug_threads, remote_debug, monitor_output): Declare.\r
- * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions\r
- of debug_threads.\r
-\r
-2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * Makefile.in (EXEEXT): New.\r
- (clean): Use $(EXEEXT).\r
-\r
-2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * target.h (target_ops): Rename send_signal to request_interrupt,\r
- and remove enum target_signal parameter.\r
- * linux-low.c (linux_request_interrupt): Rename from\r
- linux_send_signal, and always send SIGINT.\r
- * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,\r
- and always send SIGINT.\r
- * remote-utils.c (putpkt_binary): Call request_interrupt, instead\r
- of send_signal.\r
- (input_interrupt): Likewise.\r
-\r
-2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>\r
-\r
- * server.c (get_features_xml): Check if target implemented\r
- arch_string.\r
- * win32-i386-low.c (win32_arch_string): New.\r
- (win32_target_ops): Add win32_arch_string as arch_string member.\r
-\r
-2007-02-22 Markus Deuling <deuling@de.ibm.com>\r
-\r
- * spu-low.c (spu_arch_string): New.\r
- (spu_target_ops): Add spu_arch_string.\r
-\r
-2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c: Remove HAVE_TERMINAL_H check.\r
- * configure.ac: Do not check for terminal.h.\r
- * configure, config.in: Regenerated.\r
-\r
-2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (OBS): Add $(XML_BUILTIN).\r
- (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.\r
- (clean): Update.\r
- (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)\r
- (arm-with-iwmmxt.c): New.\r
- * config.in, configure: Regenerate.\r
- * configure.ac: Check for iWMMXt. Handle srv_xmltarget,\r
- srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.\r
- * configure.srv: Mention srv_xmltarget and srv_xmlfiles.\r
- (arm*-*-linux*): Add iWMMXt and regset support.\r
- * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.\r
- (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)\r
- (arm_store_wmmxregset, target_regsets): New.\r
- * server.c (get_features_xml): Take annex argument. Check builtin\r
- XML documents.\r
- (handle_query): Handle multiple annexes.\r
-\r
-2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c [USE_WIN32API] (read, write): Define.\r
- (putpkt_binary, input_interrupt, readchar, getpkt): Use read and\r
- write.\r
-\r
-2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-i386-low.c (the_low_target): Set arch_string.\r
- * linux-x86-64-low.c (the_low_target): Likewise.\r
- * linux-low.c (linux_arch_string): New.\r
- (linux_target_ops): Add it.\r
- * linux-low.h (struct linux_target_ops): Add arch_string.\r
- * server.c (write_qxfer_response): Use const void * for DATA.\r
- (get_features_xml): New.\r
- (handle_query): Handle qXfer:features:read. Report it for qSupported.\r
- * target.h (struct target_ops): Add arch_string method.\r
-\r
-2007-01-03 Denis Pilat <denis.pilat@st.com>\r
- Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_kill): Handle being called with no threads.\r
- * win32-i386-low.c (win32_kill): Likewise.\r
- (get_child_debug_event): Clear current_process_handle.\r
-\r
-2006-12-30 Denis PILAT <denis.pilat@st.com>\r
- Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (remote_open): Check the type of specified\r
- serial port devices before opening them.\r
- * server.c (main): Kill the inferior if an error occurs during\r
- the first remote_open.\r
-\r
-2006-12-05 Markus Deuling <deuling@de.ibm.com>\r
-\r
- * README: Update supported targets.\r
-\r
-2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (clean): Remove reg-mips64.c.\r
- (reg-mips64.c, reg-mips64.o): New rules.\r
- * configure.srv: Handle mips64. Include regset support for mips.\r
- * linux-mips-low.c (union mips_register): New.\r
- (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.\r
- (mips_breakpoint, mips_breakpoint_at): Use int.\r
- (mips_collect_register, mips_supply_register)\r
- (mips_collect_register_32bit, mips_supply_register_32bit)\r
- (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)\r
- (mips_store_fpregset, target_regsets): New.\r
- * thread-db.c (thread_db_get_tls_address): Use uintptr_t.\r
-\r
-2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv: Add target "spu*-*-*".\r
- * Makefile.in (clean): Remove reg-spu.c.\r
- (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.\r
- * spu-low.c: New file.\r
-\r
-2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.ac: Correct td_thr_tls_get_addr test.\r
- * configure: Regenerated.\r
-\r
-2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait_for_event): Reformat. Use the\r
- pass_signals array.\r
- * remote-utils.c (decode_address_to_semicolon): New.\r
- * server.c (pass_signals, handle_general_set): New.\r
- (handle_query): Mention QPassSignals for qSupported.\r
- (main): Call handle_general_set.\r
- * server.h (pass_signals, decode_address_to_semicolon): New.\r
-\r
-2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (handle_query): Correct error handling for read_auxv.\r
-\r
-2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets\r
- and srv_linux_thread_db to yes.\r
- * linux-s390-low.c (s390_fill_gregset): New function.\r
- (target_regsets): Define data structure.\r
-\r
-2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.\r
- * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.\r
- * config.in, configure: Regenerated.\r
- * inferiors.c (gdb_id_to_thread): New function.\r
- (gdb_id_to_thread_id): Use it.\r
- * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.\r
- * linux-low.h (struct process_info): Add th member.\r
- (thread_db_get_tls_address): New prototype.\r
- * remote-utils.c (decode_address): Make non-static.\r
- * server.c (handle_query): Handle qGetTLSAddr.\r
- * server.h (gdb_id_to_thread, decode_address): New prototypes.\r
- * target.h (struct target_ops): Add get_tls_address.\r
- * thread-db.c (maybe_attach_thread): Save the thread handle.\r
- (thread_db_get_tls_address): New.\r
-\r
-2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.\r
- (linux_resume_one_process): Take a siginfo_t *. Update all\r
- callers. Queue it if necessary. Use PTRACE_SETSIGINFO.\r
- (struct pending_signals): Add a siginfo_t.\r
- (linux_wait_for_process): Always set last_status.\r
- (linux_wait_for_event): Use PTRACE_GETSIGINFO.\r
- (linux_queue_one_thread): Use PTRACE_GETSIGINFO.\r
- * linux-low.h (struct process_info): Add last_status.\r
-\r
-2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (try_rle): New function.\r
- (putpkt_binary): Use it.\r
-\r
-2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (clean): Clean reg-x86-64-linux.c.\r
- (reg-x86-64-linux.o, reg-x86-64-linux.c): New.\r
- * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.\r
- * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.\r
- (x86_64_fill_gregset, x86_64_store_gregset): Skip floating\r
- point registers.\r
-\r
-2006-08-08 Richard Sandiford <richard@codesourcery.com>\r
-\r
- * server.c (terminal_fd): New variable.\r
- (old_foreground_pgrp): Likewise.\r
- (restore_old_foreground_pgrp): New function.\r
- (start_inferior): Record the terminal file descriptor in terminal_fd\r
- and its original foreground group in old_foreground_pgrp. Register\r
- restore_old_foreground_pgrp with atexit().\r
-\r
-2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (handle_query): Correct qPart to qXfer.\r
-\r
-2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.ac: Check for more headers which are missing on\r
- Windows. Automatically supply -lwsock32 and USE_WIN32API.\r
- * configure.srv: Add Cygwin and mingw32.\r
- * remote-utils.c: Don't include headers unconditionally which\r
- are missing on mingw32. Include <winsock.h> for mingw32.\r
- (remote_open): Adjust for mingw32 support. Flush\r
- standard error after writing to it.\r
- (remote_close, putpkt_binary, input_interrupt, block_async_io)\r
- (unblock_async_io, enable_async_io, disable_async_io)\r
- (readchar, getpkt): Update for Winsock support.\r
- (prepare_resume_reply): Expect a protocol signal number.\r
- * server.c: Disable <sys/wait.h> on mingw32.\r
- (start_inferior): Adjust for mingw32 support. Flush\r
- standard error after writing to it.\r
- (attach_inferior): Likewise. Use protocol signal\r
- numbers.\r
- (main): Skip 'D' packet on mingw32. Use protocol signal numbers\r
- and names.\r
- * win32-i386-low.c: New file.\r
- * Makefile.in (XM_CLIBS): Set.\r
- (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).\r
- (win32-i386-low.o): New dependency rule.\r
- * linux-low.c (linux_wait): Use target signal numbers.\r
- * target.h (struct target_ops): Doc fix.\r
- * server.h (target_signal_to_name): New prototype.\r
- * gdbreplay.c: Don't include headers unconditionally which\r
- are missing on mingw32. Include <winsock.h> for mingw32.\r
- (remote_close, remote_open): Adjust for Winsock support.\r
- * configure, config.in: Regenerated.\r
-\r
-2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (decode_xfer_read, write_qxfer_response): New.\r
- (handle_query): Take a packet length argument. Handle\r
- qXfer:auxv:read instead of qPart:auxv:read. Mention it in\r
- the qSupported response.\r
- (main): Update call to handle_query.\r
-\r
-2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (remote_escape_output, remote_unescape_input): New.\r
- (putpkt_binary): Renamed from putpkt and adjusted for binary\r
- data.\r
- (putpkt): New wrapper for putpkt_binary.\r
- (readchar): Don't mask off the high bit.\r
- (decode_X_packet): New function.\r
- * server.c (main): Call putpkt_binary if a handler sets the packet\r
- length. Save the length of the incoming packet. Handle 'X'.\r
- * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.\r
-\r
-2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (handle_query): Handle qSupported.\r
-\r
-2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (all_symbols_looked_up): New variable.\r
- (look_up_one_symbol): Check it.\r
- * server.h (look_up_one_symbol): New declaration.\r
- * thread-db.c (thread_db_init): Set all_symbols_looked_up.\r
-\r
-2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (linux-arm-low.o): Update dependencies.\r
- * linux-arm-low.c: Include "gdb_proc_service.h".\r
- (PTRACE_GET_THREAD_AREA): Define.\r
- (ps_get_thread_area): New function.\r
-\r
-2006-05-09 Nathan Sidwell <nathan@codesourcery.com>\r
-\r
- * configure.srv (m68k*-*-uclinux*): New target.\r
- * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.\r
- (linux_resume_one_process): Remove extraneous cast.\r
- (linux_read_offsets): New.\r
- (linux_target_op): Add linux_read_offsets on mmuless systems.\r
- * server.c (handle_query): Add qOffsets logic.\r
- * target.h (struct target_ops): Add read_offsets.\r
-\r
-2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".\r
- (PTRACE_GET_THREAD_AREA): Define.\r
- (ps_get_thread_area): New function.\r
- * Makefile.in (linux-i386-low.o, linux-mips-low.o)\r
- (linux-x86-64-low.o): Update.\r
-\r
-2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.ac: Remove checks for prfpregset_t.\r
- * gdb_proc_service.h: New file.\r
- * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the\r
- new "gdb_proc_service.h".\r
- * proc-service.c: Likewise.\r
- (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.\r
- (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.\r
- * Makefile.in (gdb_proc_service_h): Updated.\r
- * configure, config.in: Regenerated.\r
-\r
-2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * remote-utils.c (prepare_resume_reply): Move declaration\r
- of gdb_id_from_wait to the top of the block.\r
-\r
-2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (regsets_store_inferior_registers): Read the regset\r
- from the target before filling it.\r
-\r
-2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (attach_inferior): Return SIGTRAP for a successful\r
- attach.\r
-\r
-2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (OBS): Add version.o.\r
- (STAGESTUFF): Delete.\r
- (version.o): Add dependencies.\r
- (version.c): Replace rule.\r
- (clean): Remove version.c.\r
- * server.c (gdbserver_version): New.\r
- (gdbserver_usage): Use printf.\r
- (main): Handle --version and --help.\r
- * server.h (version, host_name): Add declarations.\r
-\r
-2005-12-23 Eli Zaretskii <eliz@gnu.org>\r
-\r
- * linux-arm-low.c:\r
- * linux-arm-low.c:\r
- * inferiors.c:\r
- * i387-fp.h:\r
- * i387-fp.c:\r
- * gdbreplay.c:\r
- * regcache.c:\r
- * proc-service.c:\r
- * mem-break.h:\r
- * mem-break.c:\r
- * linux-x86-64-low.c:\r
- * linux-sh-low.c:\r
- * linux-s390-low.c:\r
- * linux-ppc64-low.c:\r
- * linux-ppc-low.c:\r
- * linux-mips-low.c:\r
- * linux-m68k-low.c:\r
- * linux-m32r-low.c:\r
- * linux-low.h:\r
- * linux-low.c:\r
- * linux-ia64-low.c:\r
- * linux-i386-low.c:\r
- * linux-crisv32-low.c:\r
- * thread-db.c:\r
- * terminal.h:\r
- * target.h:\r
- * target.c:\r
- * server.h:\r
- * server.c:\r
- * remote-utils.c:\r
- * regcache.h:\r
- * utils.c:\r
- * Makefile.in:\r
- * configure.ac:\r
- * gdbserver.1: Add (C) after Copyright. Update the FSF\r
- address.\r
-\r
-2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-arm-low.c (arm_eabi_breakpoint): New variable.\r
- (arm_breakpoint_at): Recognize both breakpoints.\r
- (the_low_target): Use the correct breakpoint instruction.\r
-\r
-2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.srv (x86_64-*-linux*): Turn on thread_db support.\r
- * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)\r
- (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.\r
- (the_low_target): Update.\r
-\r
-2005-10-25 Andreas Schwab <schwab@suse.de>\r
-\r
- * server.c (main): Allocate mem_buf with PBUFSIZ bytes.\r
-\r
- * linux-ia64-low.c (ia64_regmap): Remove NAT registers.\r
- (ia64_num_regs): Reduce to 462.\r
-\r
-2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * acinclude.m4: Correct quoting.\r
- * aclocal.m4: Regenerated.\r
-\r
- Suggested by SZOKOVACS Robert <szo@ies.hu>:\r
- * thread-db.c (thread_db_err_str): Handle TD_VERSION.\r
- (thread_db_init): Call thread_db_err_str.\r
- * configure.ac: Check for TD_VERSION.\r
- * config.in, configure: Regenerated.\r
-\r
-2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>\r
-\r
- * server.h (error, fatal, warning): Add ATTR_FORMAT.\r
-\r
-2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS\r
- is not available. Define HAVE_PTRACE_GETREGS if it is.\r
- * config.in, configure: Regenerated.\r
- * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.\r
- * linux-i386-low.c, linux-m68k-low.c: Update to use\r
- HAVE_PTRACE_GETREGS.\r
- * linux-low.c (regsets_fetch_inferior_registers)\r
- (regsets_store_inferior_registers): Only return 0 if we processed\r
- GENERAL_REGS.\r
- * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.\r
- * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.\r
-\r
-2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * inferiors.c (struct thread_info): Add gdb_id.\r
- (add_thread): Add gdb_id argument.\r
- (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.\r
- * linux-low.c (linux_create_inferior, linux_attach_lwp): Update\r
- calls to add_thread.\r
- * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.\r
- * server.c (handle_query): Use thread_to_gdb_id.\r
- (handle_v_cont, main): Use gdb_id_to_thread_id.\r
- * server.h (add_thread): Update prototype.\r
- (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New\r
- prototypes.\r
-\r
-2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (fetch_register, usr_store_inferior_registers): Handle\r
- left-padded registers.\r
- * linux-low.h (struct linux_target_ops): Add left_pad_xfer.\r
- * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.\r
-\r
-2005-07-01 Steve Ellcey <sje@cup.hp.com>\r
-\r
- * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.\r
- * configure: Regenerate.\r
- * config.in: Regenerate.\r
- * server.h (NEED_DECLARATION_STRERROR):\r
- Replace with !HAVE_DECL_STRERROR.\r
-\r
-2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * linux-low.c (linux_wait, linux_send_signal): Don't test\r
- an unsigned long variable for > 0 if it could be MAX_ULONG.\r
- * server.c (myresume): Likewise.\r
- * target.c (set_desired_inferior): Likewise.\r
-\r
-2005-06-13 Mark Kettenis <kettenis@gnu.org>\r
-\r
- * configure.ac: Simplify and improve check for socklen_t.\r
- * configure, config.in: Regenerate.\r
-\r
-2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * acconfig.h: Remove.\r
- * configure.ac: Add a test for socklen_t. Use three-argument\r
- AC_DEFINE throughout.\r
- * config.in: Regenerated using autoheader 2.59.\r
- * configure: Regenerated.\r
-\r
- * gdbreplay.c (socklen_t): Provide a default.\r
- (remote_open): Use socklen_t.\r
- * remote-utils.c (socklen_t): Provide a default.\r
- (remote_open): Use socklen_t.\r
- (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use\r
- unsigned char.\r
-\r
- * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned\r
- char for buffers.\r
- * linux-low.c (linux_read_memory, linux_write_memory)\r
- (linux_read_auxv): Likewise.\r
- * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)\r
- (check_mem_write): Likewise.\r
- * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):\r
- Likewise.\r
- * regcache.c (struct inferior_rgcache_data, registers_to_string)\r
- (registers_from_string, register_data): Likewise.\r
- * server.c (handle_query, main): Likewise.\r
- * server.h (convert_ascii_to_int, convert_int_to_ascii)\r
- (decode_M_packet): Likewise.\r
- * target.c (read_inferior_memory, write_inferior_memory): Likewise.\r
- * target.h (struct target_ops): Update read_memory, write_memory,\r
- and read_auxv.\r
- (read_inferior_memory, write_inferior_memory): Update.\r
- * linux-low.h (struct linux_target_ops): Change type of breakpoint\r
- to unsigned char *.\r
- * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,\r
- linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,\r
- linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,\r
- linux-s390-low.c, linux-sh-low.c: Update for changes in\r
- read_inferior_memory and the_low_target->breakpoint.\r
-\r
-2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (SFILES): Add linux-ppc64-low.c.\r
- (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.\r
- * configure.srv: Add powerpc64-*-linux*.\r
- * linux-ppc64-low.c: New file.\r
-\r
-2005-05-23 Orjan Friberg <orjanf@axis.com>\r
-\r
- * linux-cris-low.c: New file with support for CRIS.\r
- * linux-crisv32-low.c: Ditto for CRISv32.\r
- * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.\r
- (clean): Add reg-cris.c and reg-crisv32.c.\r
- Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,\r
- reg-crisv32.o, and reg-crisv32.c to make rules.\r
- * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of\r
- recognized targets.\r
-\r
-2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-low.c (fetch_register): Ensure buffer size is a multiple\r
- of sizeof (PTRACE_XFER_TYPE).\r
- (usr_store_inferior_registers): Likewise. Zero out excess bytes.\r
-\r
-2005-05-12 Orjan Friberg <orjanf@axis.com>\r
-\r
- * target.h (struct target_ops): Add insert_watchpoint,\r
- remove_watchpoint, stopped_by_watchpoint, stopped_data_address function\r
- pointers for hardware watchpoint support.\r
- * linux-low.h (struct linux_target_ops): Ditto.\r
- * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)\r
- (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add\r
- to linux_target_ops.\r
- * remote-utils.c (prepare_resume_reply): Add watchpoint information to\r
- reply packet.\r
- * server.c (main): Recognize 'Z' and 'z' packets.\r
-\r
-2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>\r
-\r
- * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.\r
- (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.\r
- (the_low_target): Add new members.\r
-\r
-2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * proc-service.c (ps_lgetregs): Search all_processes instead of\r
- all_threads.\r
-\r
-2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * server.c (start_inferior): Change return type to int.\r
- (attach_inferior): Change sigptr to int *.\r
- (handle_v_cont, handle_v_requests): Change signal to int *.\r
- (main): Change signal to int.\r
-\r
-2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>\r
-\r
- * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.\r
- * configure.srv: Add m32r*-*-linux*.\r
- * linux-m32r-low.c: New file.\r
-\r
-2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.\r
-\r
-2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * inferiors.c (change_inferior_id, add_thread, find_inferior_id):\r
- Take unsigned long arguments for PIDs.\r
- * linux-low.c (add_process, linux_attach_lwp, linux_attach)\r
- (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)\r
- (wait_for_sigstop, linux_resume_one_process)\r
- (regsets_fetch_inferior_registers, linux_send_signal)\r
- (linux_read_auxv): Likewise. Update the types of variables holding\r
- PIDs. Update format string specifiers.\r
- * linux-low.h (struct process_info, linux_attach_lwp): Likewise.\r
- * remote-utils.c (prepare_resume_reply): Likewise.\r
- * server.c (cont_thread, general_thread, step_thread)\r
- (thread_from_wait, old_thread_from_wait, signal_pid): Change type to\r
- unsigned long.\r
- (handle_query): Update format specifiers.\r
- (handle_v_cont, main): Use strtoul for thread IDs.\r
- * server.h (struct inferior_list_entry): Use unsigned long for ID.\r
- (add_thread, find_inferior_id, change_inferior_id, cont_thread)\r
- (general_thread, step_thread, thread_from_wait)\r
- (old_thread_from_wait): Update.\r
- * target.h (struct thread_resume): Use unsigned long for THREAD.\r
- (struct target_ops): Use unsigned long for arguments to attach and\r
- thread_alive.\r
-\r
-2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>\r
-\r
- * acinclude.m4: Include bfd/bfd.m4 directly.\r
- * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis\r
- <agriffis@toolchain.org>.\r
- * aclocal.m4, configure: Regenerated.\r
-\r
-2005-01-07 Andrew Cagney <cagney@gnu.org>\r
-\r
- * configure.ac: Rename configure.in, require autoconf 2.59.\r
- * configure: Re-generate.\r
-\r
-2004-12-08 Daniel Jacobowitz <dan@debian.org>\r
-\r
- * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset\r
- LIBS when finished.\r
- * aclocal.m4: Regenerated.\r
- * configure: Regenerated.\r
-\r
-2004-11-21 Andreas Schwab <schwab@suse.de>\r
-\r
- * linux-m68k-low.c (m68k_num_gregs): Define.\r
- (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)\r
- (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.\r
- (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)\r
- (m68k_breakpoint_at): New. Add to the_low_target.\r
-\r
- * configure.srv (m68*-*-linux*): Set srv_linux_regsets and\r
- srv_linux_thread_db to yes.\r
-\r
-2004-10-20 Joel Brobecker <brobecker@gnat.com>\r
-\r
- * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.\r
- (ARCH_SET_FS): Likewise.\r
- (ARCH_GET_FS): Likewise.\r
- (ARCH_GET_GS): Likewise.\r
-\r
-2004-10-16 Daniel Jacobowitz <dan@debian.org>\r
-\r
- * linux-i386-low.c (ps_get_thread_area): New.\r
- * linux-x86-64-low.c (ps_get_thread_area): New.\r
- * linux-low.c: Include <sys/syscall.h>.\r
- (linux_kill_one_process): Don't kill the first thread here.\r
- (linux_kill): Kill the first thread here.\r
- (kill_lwp): New function.\r
- (send_sigstop, linux_send_signal): Use it.\r
- * proc-service.c: Clean up #ifdefs.\r
- (fpregset_info): Delete.\r
- (ps_lgetregs): Update and enable implementation.\r
- (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled\r
- implementations.\r
- * remote-utils.c (struct sym_cache, symbol_cache): New.\r
- (input_interrupt): Print a clearer message.\r
- (async_io_enabled): New variable.\r
- (enable_async_io, disable_async_io): Use it. Update comments.\r
- (look_up_one_symbol): Use the symbol cache.\r
- * thread-db.c (thread_db_look_up_symbols): New function.\r
- (thread_db_init): Update comments. Call thread_db_look_up_symbols.\r
-\r
-2004-10-16 Daniel Jacobowitz <dan@debian.org>\r
-\r
- * configure.in: Test for -rdynamic.\r
- * configure: Regenerated.\r
- * Makefile (INTERNAL_LDFLAGS): New.\r
- (gdbserver, gdbreplay): Use it.\r
-\r
-2004-09-02 Andrew Cagney <cagney@gnu.org>\r
-\r
- * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.\r
-\r
-2004-03-23 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_wait): Clear all_processes list also.\r
-\r
-2004-03-12 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c: Include <errno.h>. Remove extern declaration of\r
- errno.\r
-\r
-2004-03-12 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * gdbreplay.c, server.h, utils.c: Update copyright years.\r
-\r
-2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>\r
-\r
- * server.c (main): Print child status or termination signal from\r
- variable 'signal', not 'sig'.\r
-\r
-2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>\r
-\r
- * linux-low.c (linux_read_memory): Change return type to\r
- int. Check for and return error from ptrace().\r
- * target.c (read_inferior_memory): Change return type to int. Pass\r
- back return status from the_target->read_memory().\r
- * target.h (struct target_ops): Adapt *read_memory() prototype.\r
- Update comment.\r
- (read_inferior_memory): Adapt prototype.\r
- * server.c (main): Return an error packet if\r
- read_inferior_memory() returns an error.\r
-\r
-2004-03-04 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.\r
- Unify with other clean targets.\r
-\r
-2004-02-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * server.c (handle_v_cont): Call set_desired_inferior.\r
-\r
-2004-02-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * remote-utils.c (prepare_resume_reply): Always supply "thread:".\r
-\r
-2004-02-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_wait): Unblock async I/O.\r
- (linux_resume): Block and enable async I/O.\r
- * remote-utils.c (block_async_io, unblock_async_io): New functions.\r
- * server.h (block_async_io, unblock_async_io): Add prototypes.\r
-\r
-2004-02-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * remote-utils.c (remote_open): Print a status notice after\r
- opening a TCP port.\r
- * server.c (attach_inferior): Print a status notice after\r
- attaching.\r
-\r
-2004-02-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.\r
-\r
-2004-02-26 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the\r
- error packet.\r
- * server.c, target.h: Update copyright years.\r
-\r
-2004-02-25 Roland McGrath <roland@redhat.com>\r
-\r
- * target.h (struct target_ops): New member `read_auxv'.\r
- * server.c (handle_query): Handle qPart:auxv:read: query using that.\r
- * linux-low.c (linux_read_auxv): New function.\r
- (linux_target_ops): Initialize `read_auxv' member to that.\r
-\r
-2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>\r
-\r
- Committed by Jim Blandy <jimb@redhat.com>.\r
-\r
- * linux-s390-low.c (s390_num_regs): Update.\r
- (s390_regmap): Remove control registers. Use __s390x__ predefine\r
- instead of GPR_SIZE to distiguish s390 and s390x targets.\r
-\r
-2004-01-31 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c: Update copyright year.\r
- (check_removed_breakpoint): Clear pending_is_breakpoint.\r
- (linux_set_resume_request, linux_queue_one_thread)\r
- (resume_status_pending_p): New functions.\r
- (linux_continue_one_thread): Use process->resume.\r
- (linux_resume): Only resume threads if there are no pending events.\r
- * linux-low.h (struct process_info): Add resume request\r
- pointer.\r
-\r
-2004-01-30 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * regcache.c (new_register_cache): Clear the allocated register\r
- buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.\r
-\r
-2003-10-13 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_resume): Take a struct thread_resume *\r
- argument.\r
- (linux_wait): Update call.\r
- (resume_ptr): New static variable.\r
- (linux_continue_one_thread): Renamed from\r
- linux_continue_one_process. Use resume_ptr.\r
- (linux_resume): Use linux_continue_one_thread.\r
- * server.c (handle_v_cont, handle_v_requests): New functions.\r
- (myresume): New function.\r
- (main): Handle 'v' case.\r
- * target.h (struct thread_resume): New type.\r
- (struct target_ops): Change argument of "resume" to struct\r
- thread_resume *.\r
- (myresume): Delete macro.\r
-\r
-2003-08-08 H.J. Lu <hongjiu.lu@intel.com>\r
-\r
- * Makefile.in (install-only): Create dest dir. Support DESTDIR.\r
- (uninstall): Support DESTDIR.\r
-\r
-Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>\r
-\r
- * configure.srv: Add xscale*linux copy of arm*linux entry.\r
-\r
-2003-07-24 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-arm-low.c (arm_reinsert_addr): New function.\r
- (the_low_target): Add arm_reinsert_addr.\r
-\r
-2003-07-08 Mark Kettenis <kettenis@gnu.org>\r
-\r
- * mem-break.c: Remove whitespace at end of file.\r
-\r
-2003-06-28 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * configure.in: Check whether we need to prototype strerror.\r
- * server.h: Optionally prototype strerror.\r
- * gdbreplay.c (perror_with_name): Use strerror.\r
- * linux-low.c (linux_attach_lwp): Use strerror.\r
- * utils.c (perror_with_name): Use strerror.\r
- * config.in, configure: Regenerated.\r
-\r
-2003-06-28 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by\r
- SUGIOKA Toshinobu <sugioka@itonet.co.jp>.\r
-\r
-2003-06-20 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * Makefile.in (SFILES): Update.\r
- * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,\r
- low-sun3.c: Remove files.\r
-\r
-2003-06-17 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c: Move comment to linux_thread_alive where it belonged.\r
- (linux_detach_one_process, linux_detach): New functions.\r
- (linux_target_ops): Add linux_detach.\r
- * server.c (main): Handle 'D' packet.\r
- * target.h (struct target_ops): Add "detach" member.\r
- (detach_inferior): Define.\r
-\r
-2003-06-13 Mark Kettenis <kettenis@gnu.org>\r
-\r
- From Kelley Cook <kelleycook@wideopenwest.com>:\r
- * configure.srv: Accept i[34567]86 variants.\r
-\r
-2003-06-05 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_wait_for_event): Correct comment typos.\r
- (linux_resume_one_process): Call check_removed_breakpoint.\r
- (linux_send_signal): New function.\r
- (linux_target_ops): Add linux_send_signal.\r
- * remote-utils.c (putpkt, input_interrupt): Use send_signal instead\r
- of kill.\r
- * target.h (struct target_ops): Add send_signal.\r
-\r
-2003-05-29 Jim Blandy <jimb@redhat.com>\r
-\r
- * linux-low.c (usr_store_inferior_registers): Transfer buf in\r
- PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,\r
- if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing\r
- away part of the register's value.\r
-\r
-2003-03-26 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_create_inferior): Use __SIGRTMIN.\r
- (linux_wait_for_event, linux_init_signals): Likewise.\r
-\r
-2003-03-17 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * configure.in: Check for stdlib.h.\r
- * configure: Regenerated.\r
- * config.in: Regenerated.\r
-\r
-2003-01-04 Andreas Schwab <schwab@suse.de>\r
-\r
- * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.\r
-\r
-2003-01-02 Andrew Cagney <ac131313@redhat.com>\r
-\r
- * Makefile.in: Remove obsolete code.\r
-\r
-2002-11-20 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of\r
- defined(PT_FPR0_HI).\r
-\r
-2002-11-17 Stuart Hughes <seh@zee2.com>\r
-\r
- * linux-arm-low.c (arm_num_regs): Increase.\r
- (arm_regmap): Include status register.\r
-\r
-2002-11-17 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (register_addr): Remove incorrect -1 check.\r
-\r
-2002-08-29 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (linux_create_inferior): Call setpgid. Return\r
- the new PID.\r
- (unstopped_p, linux_signal_pid): Remove.\r
- (linux_target_ops): Remove linux_signal_pid.\r
- * remote-utils.c (putpkt, input_interrupt): Use signal_pid\r
- global instead of target method.\r
- * target.h (struct target_ops): Remove signal_pid. Update comment\r
- for create_inferior.\r
- * server.c (signal_pid): New variable.\r
- (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in\r
- gdbserver. Set the child to be the foreground process group.\r
- (attach_inferior): Set signal_pid.\r
-\r
-2002-08-23 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.\r
-\r
-2002-08-20 Jim Blandy <jimb@redhat.com>\r
-\r
- * Makefile.in (LDFLAGS): Allow the configure script to establish a\r
- default for this.\r
-\r
-2002-08-01 Andrew Cagney <cagney@redhat.com>\r
-\r
- * Makefile.in: Make chill references obsolete.\r
-\r
-2002-07-24 Kevin Buettner <kevinb@redhat.com>\r
-\r
- * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.\r
- * configure: Regenerate.\r
- * config.in: Regenerate.\r
-\r
-2002-07-09 David O'Brien <obrien@FreeBSD.org>\r
-\r
- * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.\r
- (perror_with_name, remote_close, remote_open, expect, play): Static.\r
-\r
-2002-07-04 Michal Ludvig <mludvig@suse.cz>\r
-\r
- * linux-x86-64-low.c (x86_64_regmap): Make it an array of\r
- byte offsets instead of an array of indexes.\r
- (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.\r
-\r
-2002-06-13 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * regcache.c: Add comment.\r
-\r
-2002-06-11 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * thread-db.c: New file.\r
- * proc-service.c: New file.\r
- * acinclude.m4: New file.\r
- * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,\r
- proc-service.o, and thread-db.o.\r
- (linux-low.o): Add USE_THREAD_DB.\r
- * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,\r
- HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.\r
- * aclocal.m4: Regenerated.\r
- * config.in: Regenerated.\r
- * configure: Regenerated.\r
- * configure.in: Check for proc_service.h, sys/procfs.h,\r
- thread_db.h, and linux/elf.h headrs.\r
- Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and\r
- PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.\r
- Check for -lthread_db and thread support.\r
- * configure.srv: Enable thread_db support for ARM, i386, MIPS,\r
- PowerPC, and SuperH.\r
- * i387-fp.c: Constify arguments.\r
- * i387-fp.h: Likewise.\r
- * inferiors.c: (struct thread_info): Renamed from\r
- `struct inferior_info'. Remove PID member. Use generic inferior\r
- list header. All uses updated.\r
- (inferiors, signal_pid): Removed.\r
- (all_threads): New variable.\r
- (get_thread): Define.\r
- (add_inferior_to_list): New function.\r
- (for_each_inferior): New function.\r
- (change_inferior_id): New function.\r
- (add_inferior): Removed.\r
- (remove_inferior): New function.\r
- (add_thread): New function.\r
- (free_one_thread): New function.\r
- (remove_thread): New function.\r
- (clear_inferiors): Use for_each_inferior and free_one_thread.\r
- (find_inferior): New function.\r
- (find_inferior_id): New function.\r
- (inferior_target_data): Update argument type.\r
- (set_inferior_target_data): Likewise.\r
- (inferior_regcache_data): Likewise.\r
- (set_inferior_regcache_data): Likewise.\r
- * linux-low.c (linux_bp_reinsert): Remove.\r
- (all_processes, stopping_threads, using_thrads)\r
- (struct pending_signals, debug_threads, pid_of): New.\r
- (inferior_pid): Replace with macro.\r
- (struct inferior_linux_data): Remove.\r
- (get_stop_pc, add_process): New functions.\r
- (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.\r
- Use add_process and add_thread.\r
- (linux_attach_lwp): New function, based on old linux_attach. Use\r
- add_process and add_thread. Set stop_expected for new threads.\r
- (linux_attach): New function.\r
- (linux_kill_one_process): New function.\r
- (linux_kill): Kill all LWPs.\r
- (linux_thread_alive): Use find_inferior_id.\r
- (check_removed_breakpoints, status_pending_p): New functions.\r
- (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.\r
- Update. Use WNOHANG. Wait for cloned processes also. Update process\r
- struct for the found process.\r
- (linux_wait_for_event): New function.\r
- (linux_wait): Use it. Support LWPs.\r
- (send_sigstop, wait_for_sigstop, stop_all_processes)\r
- (linux_resume_one_process, linux_continue_one_process): New functions.\r
- (linux_resume): Support LWPs.\r
- (REGISTER_RAW_SIZE): Remove.\r
- (fetch_register): Use register_size instead. Call supply_register.\r
- (usr_store_inferior_registers): Likewise. Call collect_register.\r
- Fix recursive case.\r
- (regsets_fetch_inferior_registers): Improve error message.\r
- (regsets_store_inferior_registers): Add debugging.\r
- (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.\r
- (unstopped_p, linux_signal_pid): New functions.\r
- (linux_target_ops): Add linux_signal_pid.\r
- (linux_init_signals): New function.\r
- (initialize_low): Call it. Initialize using_threads.\r
- * regcache.c (inferior_regcache_data): Add valid\r
- flag.\r
- (get_regcache): Fetch registers lazily. Add fetch argument\r
- and update all callers.\r
- (regcache_invalidate_one, regcache_invalidate): New\r
- functions.\r
- (new_register_cache): Renamed from create_register_cache.\r
- Return the new regcache.\r
- (free_register_cache): Change argument to a void *.\r
- (registers_to_string, registers_from_string): Call get_regcache\r
- with fetch flag set.\r
- (register_data): Make static. Pass fetch flag to get_regcache.\r
- (supply_register): Call get_regcache with fetch flag clear.\r
- (collect_register): Call get_regcache with fetch flag set.\r
- (collect_register_as_string): New function.\r
- * regcache.h: Update.\r
- * remote-utils.c (putpkt): Flush after debug output and use\r
- stderr.\r
- Handle input interrupts while waiting for an ACK.\r
- (input_interrupt): Use signal_pid method.\r
- (getpkt): Flush after debug output and use stderr.\r
- (outreg): Use collect_register_as_string.\r
- (new_thread_notify, dead_thread_notify): New functions.\r
- (prepare_resume_reply): Check using_threads. Set thread_from_wait\r
- and general_thread.\r
- (look_up_one_symbol): Flush after debug output.\r
- * server.c (step_thread, server_waiting): New variables.\r
- (start_inferior): Don't use signal_pid. Update call to mywait.\r
- (attach_inferior): Update call to mywait.\r
- (handle_query): Handle qfThreadInfo and qsThreadInfo.\r
- (main): Don't fetch/store registers explicitly. Use\r
- set_desired_inferior. Support proposed ``Hs'' packet. Update\r
- calls to mywait.\r
- * server.h: Update.\r
- (struct inferior_list, struct_inferior_list_entry): New.\r
- * target.c (set_desired_inferior): New.\r
- (write_inferior_memory): Constify.\r
- (mywait): New function.\r
- * target.h: Update.\r
- (struct target_ops): New signal_pid method.\r
- (mywait): Removed macro, added prototype.\r
-\r
- * linux-low.h (regset_func): Removed.\r
- (regset_fill_func, regset_store_func): New.\r
- (enum regset_type): New.\r
- (struct regset_info): Add type field. Use new operation types.\r
- (struct linux_target_ops): stop_pc renamed to get_pc.\r
- Add decr_pc_after_break and breakpoint_at.\r
- (get_process, get_thread_proess, get_process_thread)\r
- (strut process_info, all_processes, linux_attach_lwp)\r
- (thread_db_init): New.\r
-\r
- * linux-arm-low.c (arm_get_pc, arm_set_pc,\r
- arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.\r
- (the_low_target): Add new members.\r
- * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)\r
- (i386_store_fpxregset): Constify.\r
- (target_regsets): Add new kind identifier.\r
- (i386_get_pc): Renamed from i386_stop_pc. Simplify.\r
- (i386_set_pc): Add debugging.\r
- (i386_breakpoint_at): New function.\r
- (the_low_target): Add new members.\r
- * linux-mips-low.c (mips_get_pc, mips_set_pc)\r
- (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)\r
- (mips_breakpoint_at): New.\r
- (the_low_target): Add new members.\r
- * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)\r
- (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.\r
- (the_low_target): Add new members.\r
- * linux-sh-low.c (sh_get_pc, sh_set_pc)\r
- (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.\r
- (the_low_target): Add new members.\r
- * linux-x86-64-low.c (target_regsets): Add new kind\r
- identifier.\r
-\r
-2002-05-15 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- From Martin Pool <mbp@samba.org>:\r
- * server.c (gdbserver_usage): New function.\r
- (main): Call it.\r
-\r
-2002-05-14 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * mem-break.c (reinsert_breakpoint_by_bp): Correct typo\r
- stop_at -> stop_pc.\r
-\r
-2002-05-04 Andrew Cagney <ac131313@redhat.com>\r
-\r
- * Makefile.in: Remove obsolete code.\r
-\r
-2002-04-24 Michal Ludvig <mludvig@suse.cz>\r
-\r
- * linux-low.c (regsets_fetch_inferior_registers),\r
- (regsets_store_inferior_registers): Removed cast to int from\r
- ptrace() calls.\r
- * regcache.h: Added declaration of struct inferior_info.\r
-\r
-2002-04-20 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * inferiors.c (struct inferior_info): Add regcache_data.\r
- (add_inferior): Call create_register_cache.\r
- (clear_inferiors): Call free_register_cache.\r
- (inferior_regcache_data, set_inferior_regcache_data): New functions.\r
- * regcache.c (struct inferior_regcache_data): New.\r
- (registers): Remove.\r
- (get_regcache): New function.\r
- (create_register_cache, free_register_cache): New functions.\r
- (set_register_cache): Don't initialize the register cache here.\r
- (registers_to_string, registers_from_string, register_data): Call\r
- get_regcache.\r
- * regcache.h: Add prototypes.\r
- * server.h: Likewise.\r
-\r
-2002-04-20 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * mem-break.c: New file.\r
- * mem-break.h: New file.\r
- * Makefile.in: Add mem-break.o rule; update server.h\r
- dependencies.\r
- * inferiors.c (struct inferior_info): Add target_data\r
- member.\r
- (clear_inferiors): Free target_data member if set.\r
- (inferior_target_data, set_inferior_target_data): New functions.\r
- * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)\r
- (i386_stop_pc, i386_set_pc): New. Add to the_low_target.\r
- * linux-low.c (linux_bp_reinsert): New variable.\r
- (struct inferior_linux_data): New.\r
- (linux_create_inferior): Use set_inferior_target_data.\r
- (linux_attach): Likewise. Call add_inferior.\r
- (linux_wait_for_one_inferior): New function.\r
- (linux_wait): Call it.\r
- (linux_write_memory): Add const.\r
- (initialize_low): Call set_breakpoint_data.\r
- * linux-low.h (struct linux_target_ops): Add breakpoint\r
- handling members.\r
- * server.c (attach_inferior): Remove extra add_inferior\r
- call.\r
- * server.h: Include mem-break.h. Update inferior.c\r
- prototypes.\r
- * target.c (read_inferior_memory)\r
- (write_inferior_memory): New functions.\r
- * target.h (read_inferior_memory)\r
- (write_inferior_memory): Change macros to prototypes.\r
- (struct target_ops): Update comments. Add const to write_memory\r
- definition.\r
-\r
-2002-04-11 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.c (usr_store_inferior_registers): Support\r
- registers which are allowed to fail to store.\r
- * linux-low.h (linux_target_ops): Likewise.\r
- * linux-ppc-low.c (ppc_regmap): Support FPSCR.\r
- (ppc_cannot_store_register): FPSCR may not be storable.\r
-\r
-2002-04-09 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * server.h: Include <string.h> if HAVE_STRING_H.\r
- * ChangeLog: Correct paths in last ChangeLog entry.\r
-\r
-2002-04-09 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * linux-low.h: Remove obsolete prototypes.\r
- (struct linux_target_ops): New.\r
- (extern the_low_target): New.\r
- * linux-low.c (num_regs, regmap): Remove declarations.\r
- (register_addr): Use the_low_target explicitly.\r
- (fetch_register): Likewise.\r
- (usr_fetch_inferior_registers): Likewise.\r
- (usr_store_inferior_registers): Likewise.\r
- * linux-arm-low.c (num_regs): Remove.\r
- (arm_num_regs): Define.\r
- (arm_regmap): Renamed from regmap, made static.\r
- (arm_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (arm_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-i386-low.c (num_regs): Remove.\r
- (i386_num_regs): Define.\r
- (i386_regmap): Renamed from regmap, made static.\r
- (i386_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (i386_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-ia64-low.c (num_regs): Remove.\r
- (ia64_num_regs): Define.\r
- (ia64_regmap): Renamed from regmap, made static.\r
- (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (ia64_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-m68k-low.c (num_regs): Remove.\r
- (m68k_num_regs): Define.\r
- (m68k_regmap): Renamed from regmap, made static.\r
- (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (m68k_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-mips-low.c (num_regs): Remove.\r
- (mips_num_regs): Define.\r
- (mips_regmap): Renamed from regmap, made static.\r
- (mips_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (mips_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-ppc-low.c (num_regs): Remove.\r
- (ppc_num_regs): Define.\r
- (ppc_regmap): Renamed from regmap, made static.\r
- (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (ppc_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-s390-low.c (num_regs): Remove.\r
- (s390_num_regs): Define.\r
- (s390_regmap): Renamed from regmap, made static.\r
- (s390_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (s390_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-sh-low.c (num_regs): Remove.\r
- (sh_num_regs): Define.\r
- (sh_regmap): Renamed from regmap, made static.\r
- (sh_cannot_fetch_register): Renamed from cannot_fetch_register,\r
- made static.\r
- (sh_cannot_store_register): Renamed from cannot_store_register,\r
- made static.\r
- (the_low_target): New.\r
- * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.\r
- (the_low_target): New.\r
-\r
-2002-04-09 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * Makefile.in: Add stamp-h target.\r
- * configure.in: Create stamp-h.\r
- * configure: Regenerated.\r
-\r
-2002-04-09 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * inferiors.c: New file.\r
- * target.c: New file.\r
- * target.h: New file.\r
- * Makefile.in: Add target.o and inferiors.o. Update\r
- dependencies.\r
- * linux-low.c (inferior_pid): New static variable,\r
- moved from server.c.\r
- (linux_create_inferior): Renamed from create_inferior.\r
- Call add_inferior. Return 0 on success instead of a PID.\r
- (linux_attach): Renamed from myattach.\r
- (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().\r
- (linux_thread_alive): Renamed from mythread_alive.\r
- (linux_wait): Renamed from mywait. Call clear_inferiors () if the\r
- child dies.\r
- (linux_resume): Renamed from myresume. Add missing ``return 0''.\r
- (regsets_store_inferior_registers): Correct error message.\r
- Add missing ``return 0''.\r
- (linux_fetch_registers): Renamed from fetch_inferior_registers.\r
- (linux_store_registers): Renamed from store_inferior_registers.\r
- (linux_read_memory): Renamed from read_inferior_memory.\r
- (linux_write_memory): Renamed from write_inferior_memory.\r
- (linux_target_ops): New structure.\r
- (initialize_low): Call set_target_ops ().\r
- * remote-utils.c (unhexify): New function.\r
- (hexify): New function.\r
- (input_interrupt): Send signals to ``signal_pid''.\r
- * server.c (inferior_pid): Remove.\r
- (start_inferior): Update create_inferior call.\r
- (attach_inferior): Call add_inferior.\r
- (handle_query): New function.\r
- (main): Call handle_query for `q' packets.\r
- * server.h: Include "target.h". Remove obsolete prototypes.\r
- Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.\r
-\r
-2002-04-09 Daniel Jacobowitz <drow@mvista.com>\r
-\r
- * Makefile.in: Add WARN_CFLAGS. Update configury\r
- dependencies.\r
- * configure.in: Check for <string.h>\r
- * configure: Regenerate.\r
- * config.in: Regenerate.\r
- * gdbreplay.c: Include needed system headers.\r
- (remote_open): Remove strchr prototype.\r
- * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.\r
- * regcache.c (supply_register): Change buf argument to const void *.\r
- (supply_register_by_name): Likewise.\r
- (collect_register): Change buf argument to void *.\r
- (collect_register_by_name): Likewise.\r
- * regcache.h: Add missing prototypes.\r
- * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.\r
- * server.c (handle_query): New function.\r
- (attached): New static variable, moved out of main.\r
- (main): Quiet longjmp clobber warnings.\r
- * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.\r
- * utils.c (error): Remove NORETURN.\r
- (fatal): Likewise.\r
+2014-01-13 Eli Zaretskii <eliz@gnu.org>
+
+ * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
+ "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
+ versions.
+
+2014-01-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbserver.c (gdbserver_version): Set copyright year to 2014.
+ * gdbreplay.c (gdbreplay_version): Likewise.
+
+2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
+
+ * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
+ iov.iov_len with the real length in use.
+
+2013-12-13 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (safe-ctype.o, lbasename.o): New rules.
+ * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
+ for all targets that use win32-low.c.
+ * win32-low.c (win32_ensure_ntdll_loaded): New function.
+ (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
+
+2013-12-13 Pedro Alves <palves@redhat.com>
+
+ * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
+ if equal to TARGET_WAITKIND_LOADED.
+ * win32-low.c (cached_status): New static global.
+ (win32_wait): Add declaration.
+ (do_initial_child_stuff): Flush all initial pending debug events
+ up to the initial breakpoint.
+ (win32_wait): If CACHED_STATUS was set, return that instead
+ of doing a real wait. Remove the code resuming the execution
+ of the inferior after receiving a TARGET_WAITKIND_LOADED event
+ during the initial phase. Also remove the code changing
+ OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
+ TARGET_WAITKIND_STOPPED.
+
+2013-12-11 Yao Qi <yao@codesourcery.com>
+
+ * notif.c (handle_notif_ack): Return 0 if no notification
+ matches.
+
+2013-11-20 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_set_resume_request): Fix comment.
+
+2013-11-20 Doug Evans <dje@google.com>
+
+ * linux-low.c (resume_status_pending_p): Tweak comment.
+
+2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
+ amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
+ * configure.srv (srv_i386_regobj): Add i386-mpx.o.
+ (srv_i386_linux_regobj): Add i386-mpx-linux.o.
+ (srv_amd64_regobj): Add amd64-mpx.o.
+ (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
+ (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
+ (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
+ * i387-fp.c (num_pl_bnd_register) Added constant.
+ (num_pl_bnd_cfg_registers) Added constant.
+ (struct i387_xsave) Added reserved area and MPX fields.
+ (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
+ * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
+ function.
+ (tdesc_i386_mpx_linux): Add MPX amd64 target.
+ (init_registers_amd64_mpx_linux): Declare new function.
+ (tdesc_amd64_mpx_linux): Add MPX amd64 target.
+ (x86_64_regmap): Add MPX registers.
+ (x86_linux_read_description): Add MPX case.
+ (initialize_low_arch): Initialize MPX targets.
+
+2013-11-18 Tom Tromey <tromey@redhat.com>
+
+ * configure: Rebuild.
+ * configure.ac: Don't check for stdlib.h.
+ * gdbreplay.c: Unconditionally include stdlib.h.
+
+2013-11-18 Tom Tromey <tromey@redhat.com>
+
+ * config.in: Rebuild.
+ * configure: Rebuild.
+ * configure.ac: Don't use AC_HEADER_DIRENT.
+
+2013-11-18 Tom Tromey <tromey@redhat.com>
+
+ * server.h: Don't check HAVE_STRING_H.
+ * gdbreplay.c: Don't check HAVE_STRING_H.
+ * configure: Rebuild.
+
+2013-11-18 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
+ LIBGNU.
+
+2013-11-08 Tom Tromey <tromey@redhat.com>
+
+ * configure, config.in: Rebuild.
+ * configure.ac: Remove unused configury.
+
+2013-11-08 Tom Tromey <tromey@redhat.com>
+
+ * acinclude.m4: Include common.m4, codeset.m4.
+ * configure, config.in: Rebuild.
+ * configure.ac: Use GDB_AC_COMMON.
+
+2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * linux-s390-low.c (HWCAP_S390_TE): New define.
+ (s390_arch_setup): Consider the TE field in the HWCAP for
+ determining 'have_regset_tdb'.
+
+2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/16014
+ * tracepoint.c (download_tracepoint_1): Remove unnecessary double
+ call to sizeof.
+
+2013-10-02 Pedro Alves <palves@redhat.com>
+
+ * server.c (process_serial_event): Don't output "GDBserver
+ exiting" if GDB is connected through stdio.
+ * target.c (mywait): Likewise, be silent if GDB is connected
+ through stdio.
+
+2013-10-01 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_add_threads_after_attach): New function.
+ (lynx_attach): Remove call to add_thread. Add call to
+ lynx_add_threads_after_attach instead.
+
+2013-09-28 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
+ * config.in, configure: Regenerated.
+
+2013-09-18 Yao Qi <yao@codesourcery.com>
+
+ PR server/15959
+ * server.c (start_inferior): Clear 'resume_info'.
+
+2013-09-16 Jiong Wang <jiwang@tilera.com>
+
+ * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
+ for each register.
+
+2013-09-16 Jiong Wang <jiwang@tilera.com>
+
+ * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
+ linux-tile-low.o to srv_tgtobj.
+
+2013-09-16 Will Newton <will.newton@linaro.org>
+
+ * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
+ out regs.
+
+2013-09-06 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
+ (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
+ (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
+ (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
+ (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
+ (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
+
+2013-09-06 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
+ explicit header dependencies and use $COMPILE/$POSTCOMPILE.
+
+2013-09-06 Pedro Alves <palves@redhat.com>
+
+ * linux-amd64-ipa.c: Include tracepoint.h.
+ * linux-i386-ipa.c: Include tracepoint.h.
+
+2013-09-06 Ricard Wanderlof <ricardw@axis.com>
+
+ * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
+ (ps_get_thread_area): New function.
+
+2013-09-06 Ricard Wanderlof <ricardw@axis.com>
+
+ * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
+ (initialize_low_arch): Call init_registers_crisv32 rather than
+ init_register_crisv32.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (handle_vFile, hostio_last_error_from_errno): Move
+ to ...
+ * hostio.h: ... this new file.
+ * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
+ win32-low.c: Include hostio.h.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (gdb_client_data, handler_func, callback_handler_func)
+ (delete_file_handler, add_file_handler, append_callback_event)
+ (delete_callback_event, start_event_loop, initialize_event_loop):
+ Move to event-loop.h and include it.
+ * event-loop.h: New file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
+ * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
+ (loaded_dll, unloaded_dll): Move to ...
+ * dll.h: ... this new file.
+ * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (current_process, get_thread_process, all_processes)
+ (add_inferior_to_list, for_each_inferior, current_inferior)
+ (remove_inferior, add_process, remove_process, find_process_pid)
+ (have_started_inferiors_p, have_attached_inferiors_p)
+ (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
+ (clear_inferiors, find_inferior, find_inferior_id)
+ (inferior_target_data, set_inferior_target_data)
+ (inferior_regcache_data, set_inferior_regcache_data): Move to
+ inferiors.h, and include it.
+ * inferiors.h: New file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (struct emit_ops, current_insn_ptr, emit_error):
+ Move ...
+ * ax.h: ... here.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
+ tracepoint.h.
+ * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
+ (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
+ (handle_tracepoint_general_set, handle_tracepoint_query)
+ (tracepoint_finished_step, tracepoint_was_hit)
+ (release_while_stepping_state_list, current_traceframe)
+ (in_readonly_region, traceframe_read_mem)
+ (fetch_traceframe_registers, traceframe_read_sdata)
+ (traceframe_read_info, struct fast_tpoint_collect_status)
+ (fast_tracepoint_collecting, force_unlock_trace_buffer)
+ (handle_tracepoit_bkpts, initialize_low_tracepoint)
+ (supply_fast_tracepoint_registers)
+ (supply_static_tracepoint_registers, set_trampoline_buffer_space)
+ (ipa_tdesc, claim_trampoline_space)
+ (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
+ (agent_mem_read, agent_get_trace_state_variable_value)
+ (agent_set_trace_state_variable_value, agent_tsv_read)
+ (agent_mem_read_string, get_raw_reg_func_addr)
+ (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
+ * tracepoint.h: ... this new file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (perror_with_name, error, fatal, warning, paddress)
+ (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
+ include it.
+ * utils.h: New file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (remote_debug, noack_mode, transport_is_reliable)
+ (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
+ (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
+ (getpkt, remote_prepare, remote_open, remote_close, write_ok)
+ (write_enn, initialize_async_io, enable_async_io)
+ (disable_async_io, check_remote_input_interrupt_request)
+ (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
+ (dead_thread_notify, prepare_resume_reply)
+ (decode_address_to_semicolon, decode_address, decode_m_packet)
+ (decode_M_packet, decode_X_packet, decode_xfer_write)
+ (decode_search_memory_packet, unhexify, hexify)
+ (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
+ (look_up_one_symbol, relocate_instruction)
+ (monitor_output): Move to remote-utils.h, and include it.
+ * remote-utils.h: New file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
+ * server.h (_): Delete.
+
+2013-09-02 Pedro Alves <palves@redhat.com>
+
+ * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
+ (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
+ allocated.
+ (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
+
+2013-09-02 Pierre Muller <muller@sourceware.org>
+
+ * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
+ or WriteProcessMemory complete successfully and handle
+ ERROR_PARTIAL_COPY error.
+
+2013-09-02 Pedro Alves <palves@redhat.com>
+
+ * server.c (gdb_read_memory): Return -1 on traceframe memory read
+ error instead of EIO.
+
+2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR server/15604
+ * linux-low.c: Include filestuff.h.
+ (linux_create_inferior) <pid == 0>: Call close_most_fds.
+ * lynx-low.c: Include filestuff.h.
+ (lynx_create_inferior) <pid == 0>: Call close_most_fds.
+ * server.c: Include filestuff.h.
+ (main): Call notice_open_fds.
+ * spu-low.c: Include filestuff.h.
+ (spu_create_inferior) <pid == 0>: Call close_most_fds.
+
+2013-08-22 Luis Machado <lgustavo@codesourcery.com>
+
+ * Makefile.in: Explain why ../target and ../nat are not
+ listed as include file search paths.
+ (linux-waitpid.o): New object file rule.
+ * configure.srv (srv_native_linux_obj): New variable.
+ Replace all occurrences of linux native object files with
+ $srv_native_linux_obj.
+ * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
+ (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
+ (linux_enable_event_reporting): Remove declaration.
+ (my_waitpid): Moved to common/linux-waitpid.c.
+ (linux_wait_for_event): Pass ptid when calling
+ linux_enable_event_reporting.
+ (linux_supports_tracefork_flag): Remove.
+ (linux_enable_event_reporting): Likewise.
+ (linux_tracefork_grandchild): Remove.
+ (STACK_SIZE): Moved to common/linux-ptrace.c.
+ (linux_tracefork_child): Remove.
+ (linux_test_for_tracefork): Remove.
+ (linux_look_up_symbols): Call linux_supports_traceclone.
+ (initialize_low): Remove call to linux_test_for_tracefork.
+ * linux-low.h (PTRACE_TYPE_ARG3): Move to
+ common/linux-ptrace.h.
+ (PTRACE_TYPE_ARG4): Likewise.
+ Include linux-ptrace.h.
+
+2013-08-21 Pedro Alves <palves@redhat.com>
+
+ * config.in: Renegerate.
+
+2013-08-19 Luis Machado <lgustavo@codesourcery.com>
+
+ * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
+ (SFILES): Remove $(srcdir)/common/target-common.c and
+ add $(srcdir)/target/waitstatus.c.
+ (OBS): Remove target-common.o and add waitstatus.o.
+ (server_h): Remove $(srcdir)/../common/target-common.h and
+ add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
+ and $(srcdir)/../target/waitstatus.h.
+ (target-common.o): Remove.
+ (waitstatus.o): New target object file.
+ * target.h: Do not include target-common.h and
+ include target/resume.h, target/wait.h and
+ target/waitstatus.h.
+
+2013-08-13 Luis Machado <lgustavo@codesourcery.com>
+
+ * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
+ to PTRACE_TYPE_ARG3.
+ * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
+ to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
+ PTRACE_TYPE_ARG4.
+ * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
+ (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
+
+2013-07-27 Jie Zhang <jie@codesourcery.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (SFILES): Add common/mips-linux-watch.c.
+ (mips-linux-watch.o): New rule.
+ (mips_linux_watch_h): New variable.
+ * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
+ srv_tgtobj.
+ * linux-mips-low.c: Include mips-linux-watch.h.
+ (struct arch_process_info, struct arch_lwp_info): New.
+ (update_watch_registers_callback): New function.
+ (mips_linux_new_process, mips_linux_new_thread) New functions.
+ (mips_linux_prepare_to_resume, mips_insert_point): New
+ functions.
+ (mips_remove_point, mips_stopped_by_watchpoint): New
+ functions.
+ (rsp_bp_type_to_target_hw_bp_type): New function.
+ (mips_stopped_data_address): New function.
+ (the_low_target): Add watchpoint support functions.
+
+2013-07-27 Yao Qi <yao@codesourcery.com>
+
+ * i386-low.c: Include break-common.h.
+ (enum target_hw_bp_type): Remove.
+
+2013-07-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * Makefile.in (SFILES): /common/target-common.c.
+ (OBS): Add target-common.o.
+ (server_h): Add $(srcdir)/../common/target-common.h.
+ (target-common.o): New target.
+ * server.c (queue_stop_reply_callback): Free
+ status string after use.
+ * target.c (target_waitstatus_to_string): Remove.
+ * target.h: Include target-common.h.
+ (resume_kind): Likewise.
+ (target_waitkind): Likewise.
+ (target_waitstatus): Likewise.
+ (TARGET_WNOHANG): Likewise.
+
+2013-07-04 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (host_alias): Use @host_noncanonical@.
+ (target_alias): Use @target_noncanonical@.
+ * configure.ac: Use ACX_NONCANONICAL_TARGET and
+ ACX_NONCANONICAL_HOST.
+ * configure: Regenerated.
+
+ Revert:
+ 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * configure.ac (version_host, version_target): Set and AC_SUBST them.
+ * configure: Rebuild.
+ * Makefile.in (version_host, version_target): Get from configure.
+ (version.c): Use $(version_host) and $(version_target).
+
+2013-07-03 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (config.status): Depend on development.sh.
+ * acinclude.m4: Include libmcheck.m4.
+ * configure: Regenerate.
+
+2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
+ attribute inside the parentheses.
+ (winapi_DebugSetProcessKillOnExit): Ditto.
+ (winapi_DebugBreakProcess): Ditto.
+ (winapi_GenerateConsoleCtrlEvent): Ditto.
+
+2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * notif.h (notif_event): Add a dummy member to avoid compiler
+ errors.
+
+2013-07-01 Pedro Alves <palves@redhat.com>
+
+ * hostio.c (HOSTIO_PATH_MAX): Define.
+ (require_filename, handle_open, handle_unlink, handle_readlink):
+ Use it.
+
+2013-07-01 Pedro Alves <palves@redhat.com>
+
+ * server.h: Include "pathmax.h".
+ * linux-low.c: Don't include sys/param.h.
+ (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
+ MAXPATHLEN.
+ * win32-low.c: Don't include sys/param.h.
+ (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
+
+2013-07-01 Pedro Alves <palves@redhat.com>
+
+ * event-loop.c: Don't check HAVE_UNISTD_H before including
+ <unistd.h>.
+ * gdbreplay.c: Likewise.
+ * remote-utils.c: Likewise.
+ * server.c: Likewise.
+ * configure.ac: Don't check for unistd.h.
+ * configure: Regenerate.
+
+2013-06-28 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (version.c): Use version.in, not
+ common/version.in.
+
+2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * configure.ac (version_host, version_target): Set and AC_SUBST them.
+ * configure: Rebuild.
+ * Makefile.in (version_host, version_target): Get from configure.
+ (version.c): Use $(version_host) and $(version_target).
+
+2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
+
+ Fix trace-status to output user name without trailing colon.
+ * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
+
+2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
+
+ Fix trace-status to output proper start-time and stop-time.
+ * tracepoint.c (cmd_qtstatus): Modify trace-status output to
+ output start time and stop time in hex as gdb expects.
+
+2013-06-26 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (build_traceframe_info_xml): Output trace state
+ variables present in the trace buffer.
+
+2013-06-24 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (version.c): Use bfd/version.h, common/version.in,
+ create-version.sh.
+ (version.o): Remove.
+ * gdbreplay.c: Include version.h.
+ (version, host_name): Don't declare.
+ * server.h: Include version.h.
+ (version, host_name): Don't declare.
+
+2013-06-12 Pedro Alves <palves@redhat.com>
+
+ * linux-x86-low.c (linux_is_elf64): Delete global.
+ (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
+ with local linux_pid_exe_is_elf_64_file use.
+
+2013-06-11 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (regset_disabled, disable_regset): New functions.
+ (regsets_fetch_inferior_registers)
+ (regsets_store_inferior_registers): Use them.
+ (initialize_regsets_info); Don't allocate the disabled_regsets
+ array here.
+ * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
+ comment.
+
+2013-06-11 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (initialize_regsets_info): Use xcalloc instead of
+ xmalloc.
+
+2013-06-11 Pedro Alves <palves@redhat.com>
+
+ * linux-x86-low.c (initialize_low_arch): Call
+ init_registers_x32_avx_linux.
+
+2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix compatibility with Android Bionic.
+ * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
+ it is not empty.
+
+2013-06-07 Pedro Alves <palves@redhat.com>
+
+ PR server/14823
+ * Makefile.in (OBS): Add tdesc.o.
+ (IPA_OBJS): Add tdesc-ipa.o.
+ (tdesc-ipa.o): New rule.
+ * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
+ interface.
+ * linux-low.c (new_inferior): Delete.
+ (disabled_regsets, num_regsets): Delete.
+ (linux_add_process): Adjust to set the new per-process
+ new_inferior flag.
+ (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
+ (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
+ was a stop. When calling arch_setup, switch the current inferior
+ to the thread that got an event.
+ (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
+ (regsets_fetch_inferior_registers)
+ (regsets_store_inferior_registers): New regsets_info parameter.
+ Adjust to use it.
+ (linux_register_in_regsets): New regs_info parameter. Adjust to
+ use it.
+ (register_addr, fetch_register, store_register): New usrregs_info
+ parameter. Adjust to use it.
+ (usr_fetch_inferior_registers, usr_store_inferior_registers): New
+ parameter regs_info. Adjust to use it.
+ (linux_fetch_registers): Get the current inferior's regs_info, and
+ adjust to use it.
+ (linux_store_registers): Ditto.
+ [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
+ (initialize_low): Don't initialize the target_regsets here. Call
+ initialize_low_arch.
+ * linux-low.h (target_regsets): Delete declaration.
+ (struct regsets_info): New.
+ (struct usrregs_info): New.
+ (struct regs_info): New.
+ (struct process_info_private) <new_inferior>: New field.
+ (struct linux_target_ops): Delete the num_regs, regmap, and
+ regset_bitmap fields. New field regs_info.
+ [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
+ * i387-fp.c (num_xmm_registers): Delete.
+ (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
+ calls to new interface.
+ (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
+ (i387_xsave_to_cache): Adjust find_regno calls to new interface.
+ Infer the number of xmm registers from the regcache's target
+ description.
+ * i387-fp.h (num_xmm_registers): Delete.
+ * inferiors.c (add_thread): Don't install the thread's regcache
+ here.
+ * proc-service.c (gregset_info): Fetch the current inferior's
+ regs_info. Adjust to use it.
+ * regcache.c: Include tdesc.h.
+ (register_bytes, reg_defs, num_registers)
+ (gdbserver_expedite_regs): Delete.
+ (get_thread_regcache): If the thread doesn't have a regcache yet,
+ create one, instead of aborting gdbserver.
+ (regcache_invalidate_one): Rename to ...
+ (regcache_invalidate_thread): ... this.
+ (regcache_invalidate_one): New.
+ (regcache_invalidate): Only invalidate registers of the current
+ process.
+ (init_register_cache): Add target_desc parameter, and use it.
+ (new_register_cache): Ditto. Assert the target description has a
+ non zero registers_size.
+ (regcache_cpy): Add assertions. Adjust.
+ (realloc_register_cache, set_register_cache): Delete.
+ (registers_to_string, registers_from_string): Adjust.
+ (find_register_by_name, find_regno, find_register_by_number)
+ (register_cache_size): Add target_desc parameter, and use it.
+ (free_register_cache_thread, free_register_cache_thread_one)
+ (regcache_release, register_cache_size): New.
+ (register_size): Add target_desc parameter, and use it.
+ (register_data, supply_register, supply_register_zeroed)
+ (supply_regblock, supply_register_by_name, collect_register)
+ (collect_register_as_string, collect_register_by_name): Adjust.
+ * regcache.h (struct target_desc): Forward declare.
+ (struct regcache) <tdesc>: New field.
+ (init_register_cache, new_register_cache): Add target_desc
+ parameter.
+ (regcache_invalidate_thread): Declare.
+ (regcache_invalidate_one): Delete declaration.
+ (regcache_release): Declare.
+ (find_register_by_number, register_cache_size, register_size)
+ (find_regno): Add target_desc parameter.
+ (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
+ declarations.
+ * remote-utils.c: Include tdesc.h.
+ (outreg, prepare_resume_reply): Adjust.
+ * server.c: Include tdesc.h.
+ (gdbserver_xmltarget): Delete declaration.
+ (get_features_xml, process_serial_event): Adjust.
+ * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
+ declare.
+ (struct process_info) <tdesc>: New field.
+ (ipa_tdesc): Declare.
+ * tdesc.c: New file.
+ * tdesc.h: New file.
+ * tracepoint.c: Include tdesc.h.
+ [IN_PROCESS_AGENT] (ipa_tdesc): Define.
+ (get_context_regcache): Adjust to pass ipa_tdesc down.
+ (do_action_at_tracepoint): Adjust to get the register cache size
+ from the context regcache's description.
+ (traceframe_walk_blocks): Adjust to get the register cache size
+ from the current trace frame's description.
+ (traceframe_get_pc): Adjust to get current trace frame's
+ description and pass it down.
+ (gdb_collect): Adjust to get the register cache size from the
+ IPA's description.
+ * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
+ (gdbserver_xmltarget): Delete.
+ (initialize_low_tracepoint): Set the ipa's target description.
+ * linux-i386-ipa.c (tdesc_i386_linux): Declare.
+ (initialize_low_tracepoint): Set the ipa's target description.
+ * linux-x86-low.c: Include tdesc.h.
+ [__x86_64__] (is_64bit_tdesc): New.
+ (ps_get_thread_area, x86_get_thread_area): Use it.
+ (i386_cannot_store_register): Rename to ...
+ (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
+ (i386_cannot_fetch_register): Rename to ...
+ (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
+ (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
+ to new interface.
+ (target_regsets): Rename to ...
+ (x86_regsets): ... this.
+ (x86_get_pc, x86_set_pc): Adjust register_size calls to new
+ interface.
+ (x86_siginfo_fixup): Use is_64bit_tdesc.
+ [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
+ (tdesc_x32_avx_linux, tdesc_x32_linux)
+ (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
+ Declare.
+ (x86_linux_update_xmltarget): Delete.
+ (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
+ (have_ptrace_getfpxregs, have_ptrace_getregset): New.
+ (AMD64_LINUX_USER64_CS): New.
+ (x86_linux_read_description): New, based on
+ x86_linux_update_xmltarget.
+ (same_process_callback): New.
+ (x86_arch_setup_process_callback): New.
+ (x86_linux_update_xmltarget): New.
+ (x86_regsets_info): New.
+ (amd64_linux_regs_info): New.
+ (i386_linux_usrregs_info): New.
+ (i386_linux_regs_info): New.
+ (x86_linux_regs_info): New.
+ (x86_arch_setup): Reimplement.
+ (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
+ (x86_emit_ops): Ditto.
+ (the_low_target): Adjust. Install x86_linux_regs_info,
+ x86_cannot_fetch_register, and x86_cannot_store_register.
+ (initialize_low_arch): New.
+ * linux-ia64-low.c (tdesc_ia64): Declare.
+ (ia64_fetch_register): Adjust.
+ (ia64_usrregs_info, regs_info): New globals.
+ (ia64_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-sparc-low.c (tdesc_sparc64): Declare.
+ (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
+ Adjust.
+ (sparc_arch_setup): New function.
+ (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
+ (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
+ (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
+ (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
+ (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
+ (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
+ (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
+ (tdesc_powerpc_isa205_vsx64l): Declare.
+ (ppc_cannot_store_register, ppc_collect_ptrace_register)
+ (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
+ (ppc_set_pc, ppc_get_hwcap): Adjust.
+ (ppc_usrregs_info): Forward declare.
+ (!__powerpc64__) ppc_regmap_adjusted: New global.
+ (ppc_arch_setup): Adjust to the current process'es target
+ description.
+ (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
+ (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
+ (ppc_store_evrregset): Adjust.
+ (target_regsets): Rename to ...
+ (ppc_regsets): ... this, and make static.
+ (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
+ (ppc_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
+ (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
+ (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
+ (tdesc_s390x_linux64v2): Declare.
+ (s390_collect_ptrace_register, s390_supply_ptrace_register)
+ (s390_fill_gregset, s390_store_last_break): Adjust.
+ (target_regsets): Rename to ...
+ (s390_regsets): ... this, and make static.
+ (s390_get_pc, s390_set_pc): Adjust.
+ (s390_get_hwcap): New target_desc parameter, and use it.
+ [__s390x__] (have_hwcap_s390_high_gprs): New global.
+ (s390_arch_setup): Adjust to set the current process'es target
+ description. Don't adjust the regmap.
+ (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
+ [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
+ (regs_info_3264): New globals.
+ (s390_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
+ (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
+ [__mips64] (init_registers_mips_linux)
+ (init_registers_mips_dsp_linux): Delete defines.
+ [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
+ (have_dsp): New global.
+ (mips_read_description): New, based on mips_arch_setup.
+ (mips_arch_setup): Reimplement.
+ (get_usrregs_info): New function.
+ (mips_cannot_fetch_register, mips_cannot_store_register)
+ (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
+ (mips_fill_fpregset, mips_store_fpregset): Adjust.
+ (target_regsets): Rename to ...
+ (mips_regsets): ... this, and make static.
+ (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
+ (dsp_regs_info, regs_info): New globals.
+ (mips_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
+ (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
+ Declare.
+ (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
+ (arm_read_description): New, with bits factored from
+ arm_arch_setup.
+ (arm_arch_setup): Reimplement.
+ (target_regsets): Rename to ...
+ (arm_regsets): ... this, and make static.
+ (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
+ (arm_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-m68k-low.c (tdesc_m68k): Declare.
+ (target_regsets): Rename to ...
+ (m68k_regsets): ... this, and make static.
+ (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
+ (m68k_regs_info): New function.
+ (m68k_arch_setup): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-sh-low.c (tdesc_sharch): Declare.
+ (target_regsets): Rename to ...
+ (sh_regsets): ... this, and make static.
+ (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
+ (sh_regs_info, sh_arch_setup): New functions.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-bfin-low.c (tdesc_bfin): Declare.
+ (bfin_arch_setup): New function.
+ (bfin_usrregs_info, regs_info): New globals.
+ (bfin_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-cris-low.c (tdesc_cris): Declare.
+ (cris_arch_setup): New function.
+ (cris_usrregs_info, regs_info): New globals.
+ (cris_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-cris-low.c (tdesc_crisv32): Declare.
+ (cris_arch_setup): New function.
+ (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
+ (cris_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-m32r-low.c (tdesc_m32r): Declare.
+ (m32r_arch_setup): New function.
+ (m32r_usrregs_info, regs_info): New globals.
+ (m32r_regs_info): Adjust.
+ (initialize_low_arch): New function.
+ * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
+ (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
+ (tic6x_usrregs_info): Forward declare.
+ (tic6x_read_description): New function, based on ...
+ (tic6x_arch_setup): ... this. Reimplement.
+ (target_regsets): Rename to ...
+ (tic6x_regsets): ... this, and make static.
+ (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
+ (tic6x_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-xtensa-low.c (tdesc_xtensa): Declare.
+ (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
+ (target_regsets): Rename to ...
+ (xtensa_regsets): ... this, and make static.
+ (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
+ globals.
+ (xtensa_arch_setup, xtensa_regs_info): New functions.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-nios2-low.c (tdesc_nios2_linux): Declare.
+ (nios2_arch_setup): Set the current process'es tdesc.
+ (target_regsets): Rename to ...
+ (nios2_regsets): ... this.
+ (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
+ (nios2_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-aarch64-low.c (tdesc_aarch64): Declare.
+ (aarch64_arch_setup): Set the current process'es tdesc.
+ (target_regsets): Rename to ...
+ (aarch64_regsets): ... this.
+ (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
+ (aarch64_regs_info): New function.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
+ globals.
+ (target_regsets): Rename to ...
+ (tile_regsets): ... this.
+ (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
+ (tile_regs_info): New function.
+ (tile_arch_setup): Set the current process'es tdesc.
+ (the_low_target): Adjust.
+ (initialize_low_arch): New function.
+ * spu-low.c (tdesc_spu): Declare.
+ (spu_create_inferior, spu_attach): Set the new process'es tdesc.
+ * win32-arm-low.c (tdesc_arm): Declare.
+ (arm_arch_setup): New function.
+ (the_low_target): Install arm_arch_setup instead of
+ init_registers_arm.
+ * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
+ (init_windows_x86): Rename to ...
+ (i386_arch_setup): ... this. Set `win32_tdesc'.
+ (the_low_target): Adjust.
+ * win32-low.c (win32_tdesc): New global.
+ (child_add_thread): Don't create the thread cache here.
+ (do_initial_child_stuff): Set the new process'es tdesc.
+ * win32-low.h (struct target_desc): Forward declare.
+ (win32_tdesc): Declare.
+ * lynx-i386-low.c (tdesc_i386): Declare global.
+ (lynx_i386_arch_setup): Set `lynx_tdesc'.
+ * lynx-low.c (lynx_tdesc): New global.
+ (lynx_add_process): Set the new process'es tdesc.
+ * lynx-low.h (struct target_desc): Forward declare.
+ (lynx_tdesc): Declare global.
+ * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
+ (lynx_ppc_arch_setup): Set `lynx_tdesc'.
+ * nto-low.c (nto_tdesc): New global.
+ (do_attach): Set the new process'es tdesc.
+ * nto-low.h (struct target_desc): Forward declare.
+ (nto_tdesc): Declare.
+ * nto-x86-low.c (tdesc_i386): Declare.
+ (nto_x86_arch_setup): Set `nto_tdesc'.
+
+2013-06-04 Gary Benson <gbenson@redhat.com>
+
+ * server.c (handle_query): Add "augmented-libraries-svr4-read+"
+ to qSupported response when appropriate.
+ (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
+ with nonzero-length annex.
+ * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
+ arguments supplied in annex.
+
+2013-05-31 Doug Evans <dje@google.com>
+
+ PR server/15594
+ * linux-x86-low.c (ps_get_thread_area): Properly extend address to
+ 64 bits in 64-cross-32 environment.
+
+2013-05-28 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
+ (aarch64-without-fpu.c): Delete rule.
+ * configure.srv (aarch64*-*-linux*): Remove references to
+ aarch64-without-fpu.o and aarch64-without-fpu.xml.
+ * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
+ declaration.
+
+2013-05-24 Pedro Alves <palves@redhat.com>
+
+ * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
+ instead of strchr/decode_address. Error if the range isn't split
+ with a ','. Don't assume there's be a ':' in the action.
+
+2013-05-23 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (lwp_in_step_range): New function.
+ (linux_wait_1): If the thread was range stepping and stopped
+ outside the stepping range, report the stop to GDB. Otherwise,
+ continue stepping. Add range stepping debug output.
+ (linux_set_resume_request): Copy the step range from the resume
+ request to the lwp.
+ (linux_supports_range_stepping): New.
+ (linux_target_ops) <supports_range_stepping>: Set to
+ linux_supports_range_stepping.
+ * linux-low.h (struct linux_target_ops)
+ <supports_range_stepping>: New field.
+ (struct lwp_info) <step_range_start, step_range_end>: New fields.
+ * linux-x86-low.c (x86_supports_range_stepping): New.
+ (the_low_target) <supports_range_stepping>: Set to
+ x86_supports_range_stepping.
+ * server.c (handle_v_cont): Handle 'r' action.
+ (handle_v_requests): Append ";r" if the target supports range
+ stepping.
+ * target.h (struct thread_resume) <step_range_start,
+ step_range_end>: New fields.
+ (struct target_ops) <supports_range_stepping>:
+ New field.
+ (target_supports_range_stepping): New macro.
+
+2013-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
+ confusion in comment.
+
+2013-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (struct process_info_private): New type.
+ (lynx_add_process): New function.
+ (lynx_create_inferior, lynx_attach): Replace calls to
+ add_process by calls to lynx_add_process.
+ (lynx_resume): If PTID is null, then try using
+ current_process()->private->last_wait_event_ptid.
+ Add comments.
+ (lynx_clear_inferiors): Delete. The contents of that function
+ has been inlined in lynx_mourn;
+ (lynx_wait_1): Save the ptid in the process's private data.
+ (lynx_mourn): Free the process' private data. Replace call
+ to lynx_clear_inferiors by call to clear_inferiors.
+
+2013-05-17 Yao Qi <yao@codesourcery.com>
+
+ * i386-low.c (i386_length_and_rw_bits): Move the comment to
+ the right place.
+
+2013-05-16 Luis Machado <lgustavo@codesourcery.com>
+
+ * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
+ PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
+ (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
+ PT_TEXT_END_ADDR guards. Update comments.
+ (linux_target_op) <read_offsets>: Conditionally define to
+ linux_read_offsets if the target is UCLIBC and if it defines
+ PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
+
+2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
+ Andrew Jenner <andrew@codesourcery.com>
+
+ * Makefile.in (SFILES): Add linux-nios2-low.c.
+ (clean): Add action to delete nios2-linux.c.
+ (nios2-linux.c): New rule.
+ * configure.srv: Add nios2*-*-linux*.
+ * linux-nios2-low.c: New.
+
+2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
+
+ * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
+
+2013-04-25 Hui Zhu <hui@codesourcery.com>
+
+ PR gdb/15186
+ * ax.c (ax_printf): Add fflush.
+
+2013-04-22 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (SFILES): Add filestuff.c.
+ (OBS): Add filestuff.o.
+ (filestuff.o): New target.
+ * config.in, configure: Rebuild.
+ * configure.ac: Check for fdwalk, pipe2.
+
+2013-04-17 Pedro Alves <palves@redhat.com>
+
+ * configure.ac (USE_THREAD_DB): Delete variable.
+ (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
+ Don't AC_SUBST USE_THREAD_DB.
+ * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
+ * config.in, configure: Regenerate.
+
+2013-04-16 Pedro Alves <palves@redhat.com>
+
+ * linux-low.h (struct lwp_info) <thread_known>: Move under
+ the USE_THREAD_DB #ifdef.
+
+2013-04-16 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
+ (linux-low.o): Delete rule.
+ * linux-low.h: Always include "gdb_thread_db.h" instead of
+ conditionally including thread_db.h.
+ (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
+ HAVE_THREAD_DB_H.
+
+2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (install-only): Fix make install regression.
+
+2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Convert man pages to texinfo, new gdbinit.5 texinfo page.
+ * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
+ installation.
+ * gdbserver.1: Remove.
+
+2013-03-22 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (handle_extended_wait): Don't call
+ linux_enable_event_reporting.
+
+2013-03-15 Tony Theodore <tonyt@logyst.com>
+
+ PR build/9098:
+ * Makefile.in (SHELL): Use @SHELL@.
+
+2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
+ compiler warning.
+
+2013-03-13 Joel Brobecker <brobecker@adacore.com>
+
+ * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
+ Remove extraneous NULL element.
+
+2013-03-13 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (traceframe_read_tsv): Look for the last matched
+ 'V' block in trace frame.
+
+2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
+
+ * target.h (struct target_ops): Add btrace ops.
+ (target_supports_btrace): New macro.
+ (target_enable_btrace): New macro.
+ (target_disable_btrace): New macro.
+ (target_read_btrace): New macro.
+ * gdbthread.h (struct thread_info): Add btrace field.
+ * server.c: Include btrace-common.h.
+ (handle_btrace_general_set): New function.
+ (handle_btrace_enable): New function.
+ (handle_btrace_disable): New function.
+ (handle_general_set): Call handle_btrace_general_set.
+ (handle_qxfer_btrace): New function.
+ (struct qxfer qxfer_packets[]): Add btrace entry.
+ * inferiors.c (remove_thread): Disable btrace.
+ * linux-low: Include linux-btrace.h.
+ (linux_low_enable_btrace): New function.
+ (linux_low_read_btrace): New function.
+ (linux_target_ops): Add btrace ops.
+ * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
+ Add srv_linux_btrace=yes.
+ (x86_64-*-linux*): Add linux-btrace.o.
+ Add srv_linux_btrace=yes.
+ * configure.ac: Define HAVE_LINUX_BTRACE.
+ * config.in: Regenerated.
+ * configure: Regenerated.
+
+2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
+
+ * server.c (handle_qxfer): Preserve error message if -3 is
+ returned.
+ (qxfer): Document the -3 return value.
+
+2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
+
+ * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
+ (linux_btrace_h): New variable.
+ (linux-btrace.o): New rule.
+
+2013-03-08 Stan Shebs <stan@codesourcery.com>
+ Hafiz Abid Qadeer <abidh@codesourcery.com>
+
+ * tracepoint.c (trace_buffer_size): New global.
+ (DEFAULT_TRACE_BUFFER_SIZE): New define.
+ (init_trace_buffer): Change to one-argument function. Allocate
+ trace buffer memory.
+ (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
+ handle QTBuffer:size packet.
+ (cmd_bigqtbuffer_size): New function.
+ (initialize_tracepoint): Call init_trace_buffer with
+ DEFAULT_TRACE_BUFFER_SIZE.
+ * server.c (handle_query): Add QTBuffer:size in the
+ supported packets.
+
+2013-03-07 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
+ (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
+ of -1.
+ (cmd_qtsp): Adjust condition. Do post increment.
+ Set cur_action and cur_step_action back to 0.
+
+2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
+
+ PR server/15236
+ * linux-low.c (linux_write_memory): Return early success if LEN is
+ zero.
+
+2013-03-05 Corinna Vinschen <vinschen@redhat.de>
+
+ * configure.srv: Add x86_64-*-cygwin* as target.
+
+2013-02-28 Tom Tromey <tromey@redhat.com>
+
+ * configure.ac: Invoke AC_SYS_LARGEFILE.
+ * configure, config.in: Rebuild.
+
+2013-02-28 Corinna Vinschen <vinschen@redhat.com>
+
+ * win32-low.c: Throughout, fix format strings and casts of
+ printf-like functions to avoid type related warnings on all
+ platforms.
+ (get_child_debug_event): Print dwDebugEventCode as hex since
+ that's how it's usually documented.
+
+2013-02-28 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
+ pulongest.
+
+2013-02-27 Jiong Wang <jiwang@tilera.com>
+
+ * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
+ (reg-tilegx32.c): New rule.
+ * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
+ * linux-tile-low.c (tile_arch_setup): New function. Invoke
+ different register info initializer according to elf class.
+ (init_registers_tilgx32): New function. The tilegx32 register info
+ initializer.
+ (tile_fill_gregset): Use "uint_reg_t" to represent register size.
+ (tile_store_gregset): Likewise.
+
+2013-02-27 Yao Qi <yao@codesourcery.com>
+
+ * server.c (process_point_options): Print debug message when
+ debug_threads is true.
+
+2013-02-26 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
+
+2013-02-19 Pedro Alves <palves@redhat.com>
+ Kai Tietz <ktietz@redhat.com>
+
+ PR gdb/15161
+
+ * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
+ instead of strtoul to extract address from packet.
+ (process_serial_event) <'z'>: Likewise.
+
+2013-02-18 Yao Qi <yao@codesourcery.com>
+
+ * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
+
+2013-02-14 Pedro Alves <palves@redhat.com>
+
+ Plug memory leak.
+
+ * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
+ TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
+
+2013-02-14 Pedro Alves <palves@redhat.com>
+
+ * tracepoint.c (cmd_qtdpsrc): Use savestring.
+
+2013-02-14 Pedro Alves <palves@redhat.com>
+
+ * tracepoint.c (save_string): Delete.
+ (add_tracepoint_action): Use savestring instead of save_string.
+
+2013-02-12 Pedro Alves <palves@redhat.com>
+
+ * linux-xtensa-low.c: Ditto.
+ * xtensa-xtregs.c: Ditto.
+
+2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
+
+ * thread-db.c (thread_db_get_tls_address): NULL pointer check
+ thread_db.
+
+2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
+ * linux-aarch64-low.c (aarch64_arch_setup): Clamp
+ aarch64_num_wp_regs and aarch64_num_bp_regs to
+ AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
+
+2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
+ * linux-aarch64-low.c (ps_get_thread_area): Replace
+ PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
+
+2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
+ Marcus Shawcroft <marcus.shawcroft@arm.com>
+ Nigel Stephens <nigel.stephens@arm.com>
+ Yufeng Zhang <yufeng.zhang@arm.com>
+
+ * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
+ (aarch64.c, aarch64-without-fpu.c): New targets.
+ * configure.srv (aarch64*-*-linux*): New.
+ * linux-aarch64-low.c: New file.
+
+2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
+ * linux-low.c (handle_extended_wait, linux_create_inferior)
+ (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
+ (dequeue_one_deferred_signal, linux_resume_one_thread)
+ (fetch_register, linux_write_memory, linux_enable_event_reporting)
+ (linux_tracefork_grandchild, linux_test_for_tracefork)
+ (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
+ PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
+ where the argument is 0.
+
+2013-01-25 Yao Qi <yao@codesourcery.com>
+
+ * event-loop.c: Include "queue.h".
+ (gdb_event_p): New typedef.
+ (struct gdb_event) <next_event>: Remove.
+ (event_queue): Change to QUEUE(gdb_event_p).
+ (async_queue_event): Remove.
+ (gdb_event_xfree): New.
+ (initialize_event_loop): New.
+ (process_event): Use API from QUEUE.
+ (wait_for_event): Likewise.
+ * server.c (main): Call initialize_event_loop.
+ * server.h (initialize_event_loop): Declare.
+
+2013-01-18 Yao Qi <yao@codesourcery.com>
+
+ * ax.h (struct eval_agent_expr_context): New.
+ (gdb_eval_agent_expr): Update declaration.
+ * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
+ TFRAME. Add new argument CTX.
+ * server.h (struct eval_agent_expr_context): Declare.
+ (agent_mem_read, agent_tsv_read): Update declaration.
+ (agent_mem_read_string): Likewise.
+ * tracepoint.c (eval_tracepoint_agent_expr): Remove.
+ (add_traceframe_block): Add new argument TPOINT.
+ Increase TPOINT->traceframe_usage.
+ (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
+ eval_tracepoint_agent_expr.
+ (condition_true_at_tracepoint): Likewise.
+ (agent_mem_read): Remove argument TFRAME. Add argument CTX.
+ (agent_mem_read_string, agent_tsv_read): Likewise.
+
+2013-01-16 Yao Qi <yao@codesourcery.com>
+
+ * linux-low.c (linux_resume_one_lwp): Don't check
+ 'lwp->bp_reinsert != 0'.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+ Pedro Alves <palves@redhat.com>
+
+ * lynx-low.c (ptrace_request_to_str): Define a temporary
+ macro and use it to simplify this function's implementation.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
+ sets errno.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_resume): Use the resume_info parameter
+ to determine the ptid for the lynx_ptrace call, unless
+ it is equal to minus_one_ptid, in which case we use the
+ ptid of the current_inferior.
+ (lynx_wait_1): After having received a thread create/exit
+ event, resume the inferior's execution using the signaling
+ thread's ptid, rather than the old ptid.
+
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_resume): Delete variable ret.
+
+2013-01-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbreplay.c (gdbreplay_version): Update copyright year.
+ * server.c (gdbserver_version): Likewise.
+
+2012-12-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_wait_1): Add debug trace before adding
+ new thread.
+
+2012-12-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (ptrace_request_to_str): Add handling for
+ PTRACE_GETTRACESIG.
+
+2012-12-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_attach): Delete variable new_process.
+
+2012-12-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_create_inferior): Delete variable
+ new_process.
+
+2012-12-17 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (ptrace_request_to_str): Do not handle
+ PTRACE_GETTHREADLIST if this macro does not exist.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (OBS): Add notif.o.
+ * notif.c, notif.h: New.
+ * server.c: Include "notif.h".
+ (struct vstop_notif) <next>: Remove.
+ <base>: New field.
+ (queue_stop_reply): Update.
+ (push_event, send_next_stop_reply): Remove.
+ (discard_queued_stop_replies): Update.
+ (notif_stop): New variable.
+ (handle_v_stopped): Remove.
+ (handle_v_requests): Don't call handle_v_stopped. Call
+ handle_ack_notif instead.
+ (queue_stop_reply_callback): Call notif_event_enque instead
+ of queue_stop_reply.
+ (handle_status): Don't call send_next_stop_reply, call
+ notif_write_event instead.
+ (kill_inferior_callback): Likewise.
+ (detach_or_kill_inferior_callback): Likewise.
+ (main): Call initialize_notif.
+ (process_serial_event): Call QUEUE_is_empty.
+ (handle_target_event): Call notif_push instead of push event.
+ * server.h (push_event): Remove declaration.
+
+2012-12-10 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
+ (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
+ macros.
+ (.c.o): Rewrite.
+ (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
+ (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
+ (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
+ (amd64-linux-ipa.o, ax.o): Rewrite.
+ (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
+ (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
+ (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
+ (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
+ (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
+ (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
+ (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
+ (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
+ (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
+ (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
+ (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
+ (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
+ (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
+ (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
+ (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
+ (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
+ (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
+ (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
+ (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
+ (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
+ (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
+ (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
+ (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
+ (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
+ (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
+ (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
+ (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
+ (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
+ (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
+ (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
+ (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
+ (reg-tilegx.o): Remove.
+ (all_object_files): New macro.
+ Include .deps files.
+ * aclocal.m4, configure: Rebuild.
+ * acinclude.m4: Include depstand.m4, lead-dot.m4.
+ * configure.ac: Invoke ZW_CREATE_DEPDIR,
+ ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
+
+2012-12-05 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/14917:
+ * server.h (current_insn_ptr, emit_error): Declare 'extern'.
+
+2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
+
+ * configure.ac: Check for linux/perf_event.h.
+ * config.in: Regenerated.
+ * configure: Regenerated.
+
+2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
+
+ * hostio.c (handle_readlink): Decrease buffer size
+ parameter passed to readlink by one byte.
+
+2012-11-26 Yao Qi <yao@codesourcery.com>
+
+ * configure.ac (build_warnings): Append '-Wempty-body'.
+ * configure: Regenerated.
+ * linux-low.c (linux_create_inferior): Use braces for empty 'if'
+ body.
+
+2012-11-15 Pierre Muller <muller@sourceware.org>
+
+ * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
+ Use "gdb_wait.h" header instead of <sys/wait.h> header.
+ * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
+ * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
+ header.
+ * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
+ instead of <sys/wait.h> header.
+ * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
+
+2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
+
+ * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
+ (various make rules): Remove -DGDBSERVER
+
+2012-11-09 Yao Qi <yao@codesourcery.com>
+
+ * spu-low.c (current_ptid): Move it to ..
+ * gdbthread.h: ... here. New.
+ * remote-utils.c (read_ptid): Use macro 'current_ptid'.
+ * server.c (myresume, process_serial_event): Likewise.
+ * thread-db.c (thread_db_find_new_threads): Likewise.
+ * tracepoint.c (run_inferior_command): Likewise.
+
+2012-10-01 Andrew Burgess <aburgess@broadcom.com>
+
+ * server.c (handle_search_memory_1): Include access length in
+ warning message.
+
+2012-09-05 Michael Brandt <michael.brandt@axis.com>
+
+ * linux-crisv32-low.c: Fix compile errors.
+
+2012-09-04 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtsv): Adjust debug message.
+ Don't check CUR_TPOINT.
+
+2012-08-28 Yao Qi <yao@codesourcery.com>
+
+ * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
+ * server.h: Include 'libiberty.h' and 'ansidecl.h'.
+ (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
+ Remove declarations of xmalloc, xreallloc, xstrdup and
+ freeargv.
+ * Makefile.in (libiberty_h): New.
+ (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
+ (linux-bfin-low.o): Append dependency 'libiberty.h'.
+
+2012-08-23 Yao Qi <yao@codesourcery.com>
+
+ * server.h: Remove declaration of 'xsnprintf'.
+
+2012-08-22 Keith Seitz <keiths@redhat.com>
+
+ * server.h: Include build-gnulib-gbserver/config.h.
+ * gdbreplay.c: Likewise.
+
+2012-08-08 Doug Evans <dje@google.com>
+
+ * Makefile.in (SFILES): Add gdb_vecs.c.
+ (OBS): Add gdb_vecs.o.
+ (gdb_vecs_h, host_defs_h): New variables.
+ (thread-db.o): Add $(gdb_vecs_h) dependency.
+ (gdb_vecs.o): New rule.
+ * thread-db.c: #include "gdb_vecs.h".
+ (thread_db_load_search): Use a vector to iterate over path elements.
+ Handle text appearing after "$pdir".
+
+ * configure.ac: Add check for strstr.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * hostio.c (handle_pread): If pread fails, fall back to attempting
+ lseek/read.
+ (handle_pwrite): Likewise for pwrite.
+
+2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
+ between unsupported TYPE and unimplementable ADDR/LEN combination.
+ (arm_insert_point): Act on new return value.
+
+2012-07-31 Pedro Alves <palves@redhat.com>
+
+ * server.c (process_point_options): Only skip tokens if we find
+ one that is unrecognized. Don't treat 'X' specially while
+ skipping unrecognized tokens.
+
+2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
+ to 4-byte-align HW breakpoint addresses for Thumb.
+
+2012-07-27 Yao Qi <yao@codesourcery.com>
+
+ PR remote/14161.
+
+ * server.h: Declare gdb_agent_about_to_close.
+ * target.c (kill_inferior): Include "agent.h".
+ New. Send command 'kill'.
+ * target.h (kill_inferior): Removed macro.
+ * tracepoint.c (gdb_agent_about_to_close): New.
+ (gdb_agent_helper_thread): Handle command 'close'.
+ Wait endlessly until the inferior stops.
+ Install gdb_agent_remove_socket to atexit hook.
+ (agent_socket_name): New static variable.
+ (gdb_agent_socket_init): Replace local variable 'name' with
+ 'agent_socket_name'.
+ (gdb_agent_remove_socket): New.
+
+2012-07-27 Yao Qi <yao@codesourcery.com>
+
+ * server.c (process_point_options): Stop at 'X' when parsing.
+
+2012-07-19 Michael Eager <eager@eagercon.com>
+
+ * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
+ to hw_execute.
+ * linux-x86-low.c (x86_insert_point, x86_remove_point):
+ Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
+ hardware breakpoint.
+
+2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdbserver/linux-low.c (initialize_low): Call
+ linux_ptrace_init_warnings.
+
+2012-07-02 Doug Evans <dje@google.com>
+
+ * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
+ pointer to int.
+
+2012-07-02 Stan Shebs <stan@codesourcery.com>
+
+ * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
+ (ax.o): Add it to build rule.
+ (ax-ipa.o): Ditto.
+ (OBS): Add format.o.
+ (IPA_OBS): Add format.o.
+ * server.c (handle_query): Claim support for breakpoint commands.
+ (process_point_options): Add command case.
+ (process_serial_event): Leave running if there are printfs in
+ effect.
+ * mem-break.h (any_persistent_commands): Declare.
+ (add_breakpoint_commands): Declare.
+ (gdb_no_commands_at_breakpoint): Declare.
+ (run_breakpoint_commands): Declare.
+ * mem-break.c (struct point_command_list): New struct.
+ (struct breakpoint): New field command_list.
+ (any_persistent_commands): New function.
+ (add_commands_to_breakpoint): New function.
+ (add_breakpoint_commands): New function.
+ (gdb_no_commands_at_breakpoint): New function.
+ (run_breakpoint_commands): New function.
+ * linux-low.c (linux_wait_1): Test for and run breakpoint commands
+ locally.
+ * ax.c: Include format.h.
+ (ax_printf): New function.
+ (gdb_eval_agent_expr): Add printf opcode.
+
+2012-06-13 Yao Qi <yao@codesourcery.com>
+
+ * server.c (start_inferior): Remove duplicated writes to fields
+ 'last_resume_kind' and 'last_status' of 'current_inferior'.
+
+2012-06-12 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (linux_set_resume_request): Simplify predicate. Add
+ comment.
+ * server.c (handle_v_cont): Extend comment.
+
+2012-06-11 Yao Qi <yao@codesourcery.com>
+
+ * linux-low.c (linux_attach): Add 'static'.
+
+2012-06-06 Yao Qi <yao@codesourcery.com>
+
+ * ax.c (gdb_eval_agent_expr): Print `top' in hex.
+
+2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix gcc -flto compilation warning.
+ * server.c (main): Make variable multi_mode and attach volatile.
+
+2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
+
+ * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
+ if the platform doesn't know about it.
+
+2012-05-30 Jeff Kenton <jkenton@tilera.com>
+
+ * Makefile.in (SFILES): Add linux-tile-low.c.
+ (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
+ * configure.srv: Handle tilegx-*-linux*.
+ * linux-tile-low.c: New file.
+
+2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
+
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace target_signal with gdb_signal throughout.
+
+2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.c (linux_store_registers): Avoid the copying sequence
+ when no data has been retrieved by ptrace.
+
+2012-05-22 Will Deacon <will.deacon@arm.com>
+
+ * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
+ Include asm/ptrace.h.
+ (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
+ already defined.
+
+2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.c (linux_store_registers): Don't re-retrieve data
+ with ptrace that has already been obtained from /proc. Always
+ copy any data retrieved with ptrace to the buffer supplied.
+
+2012-05-11 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (enum stopping_threads_kind): New.
+ (stopping_threads): Change type to `enum stopping_threads_kind'.
+ (handle_extended_wait): If stopping and suspending threads, leave
+ the new_lwp suspended too.
+ (linux_wait_for_event): Adjust.
+ (stop_all_lwps): Set `stopping_threads' to
+ STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
+ whether we're suspending threads or just stopping them. Assert no
+ recursion happens.
+
+2012-04-29 Yao Qi <yao@codesourcery.com>
+
+ * server.h: Move some code to ...
+ * gdbthread.h: ... here. New.
+ * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
+ (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
+ (nto-low.o, win32-low.o): Likewise.
+ * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
+ * regcache.c, remote-utils.c, server.c: Likewise.
+ * target.c, tracepoint.c, win32-low.c: Likewise.
+
+2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
+
+ * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
+ (PTRACE_ARG4_TYPE): Likewise.
+ (PTRACE_XFER_TYPE): Likewise.
+ * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
+ ptrace to PTRACE_ARG3_TYPE.
+ * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
+ (PTRACE_ARG4_TYPE): Likewise.
+ (PTRACE_XFER_TYPE): Likewise.
+ (linux_detach_one_lwp): Cast fourth argument of
+ ptrace to long then PTRACE_ARG4_TYPE.
+ (regsets_fetch_inferior_registers): Cast third argument of
+ ptrace to long then PTRACE_ARG3_TYPE.
+ (regsets_store_inferior_registers): Likewise.
+
+2012-04-20 Pedro Alves <palves@redhat.com>
+
+ * configure: Regenerate.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (GNULIB_BUILDDIR): New.
+ (LIBGNU, INCGNU, GNULIB_H): Adjust.
+ (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
+ (all, install-only, uninstall, clean-info, all-lib, clean): No
+ longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
+ (maintainer-clean realclean distclean): Use subdir_do.
+ (subdir_do): New.
+ (gnulib/import/Makefile): Adjust. Replace gnulib/import with
+ $(GNULIB_BUILDDIR). Don't pass argument to config.status.
+ * acinclude.m4: Include acx_configure_dir.m4.
+ * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
+ calls. Call AC_PROG_RANLIB. Configure gnulib using
+ ACX_CONFIGURE_DIR.
+ (GNULIB): New.
+ (GNULIB_STDINT_H): Adjust.
+ (AC_OUTPUT): Don't output gnulib/Makefile anymore.
+ * gdbreplay.c: Include build-gnulib/config.h.
+ * server.h: Likewise.
+ * aclocal.m4: Regenerate.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (LIBGNU, INCGNU): Adjust.
+ (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
+ (all, install-only, uninstall, clean-info, all-lib, clean)
+ (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
+ * configure.ac: Adjust AC_OUTPUT output.
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (generated_files): New.
+ (server_h): Remove the explicit dependency on config.h, and depend
+ on $generated_files.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (INCGNU): Add -Ignulib.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
+ (INCGNU): ... this, and spell out -I here.
+ (GNULIB_LIB): Rename to ...
+ (LIBGNU): ... this.
+ (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * config.in: Regenerate.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
+ * configure.ac: Remove AC_CHECK_DECLS check for memmem.
+ * server.h (memmem): Remove declaration.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2012-04-19 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (SFILES): Add common/vec.c.
+ (OBS): Add vec.o.
+ (vec.o): New rule.
+
+2012-04-19 Yao Qi <yao@codesourcery.com>
+
+ * remote-utils.c (prepare_resume_reply): Replace with macro
+ target_core_of_thread.
+ * server.c (handle_qxfer_threads_proper): Likewise.
+ * target.h (traget_core_of_thread): New macro.
+
+2012-04-18 Pedro Alves <palves@redhat.com>
+
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+
+2012-04-16 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
+ duplicated on address.
+
+2012-04-16 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
+ (struct tracepoint_action_ops) <send>: New field.
+ (m_tracepoint_action_send, r_tracepoint_action_send): New.
+ (agent_expr_send, x_tracepoint_action_send): New.
+ (l_tracepoint_action_send): New.
+ (cmd_qtdp): Download and install tracepoint
+ according to `use_agent'.
+ (run_inferior_command): Add one more parameter `len'.
+ Update callers.
+ (tracepoint_send_agent): New.
+ (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
+
+2012-04-16 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (download_tracepoints): Moved to ...
+ (cmd_qtstart): ... here.
+
+2012-04-14 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c: Include inttypes.h.
+ (struct collect_memory_action): Use sized types.
+ (struct tracepoint): Likewise.
+ (cmd_qtdp, stop_tracing): Update print specifiers.
+ (cmd_qtp, response_tracepoint): Likewise.
+ (collect_data_at_tracepoint): Likewise.
+ (collect_data_at_step): Likewise.
+
+2012-04-14 Yao Qi <yao@codesourcery.com>
+
+ Import gnulib module inttypes.
+ * aclocal.m4, config.in, configure: Regenerated.
+
+2012-04-14 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (maintainer-clean, realclean, distclean): Remove
+ Makefile and config.status at last.
+
+2012-04-13 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c: Include stdint.h unconditionally.
+
+2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
+
+ * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
+ on BFD_HAVE_SYS_PROCFS_TYPE.
+ * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
+ * configure: Regenerate.
+ * config.in: Likewise.
+
+2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * Makefile.in (clean): Also remove x32.c x32-linux.c
+ x32-avx.c x32-avx-linux.c.
+ (x32.o): New target.
+ (x32.c): Likewise.
+ (x32-linux.o): Likewise.
+ (x32-linux.c): Likewise.
+ (x32-avx.o): Likewise.
+ (x32-avx.c): Likewise.
+ (x32-avx-linux.o): Likewise.
+ (x32-avx-linux.c): Likewise.
+
+ * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
+ (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
+ (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
+ (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
+ (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
+ i386/x32-avx-linux.xml.
+
+ * linux-x86-low.c (init_registers_x32_linux): New prototype.
+ (init_registers_x32_avx_linux): Likwise.
+ (x86_linux_update_xmltarget): Call init_registers_x32_linux
+ or init_registers_x32_avx_linux if linux_is_elf64 is false.
+
+2012-04-13 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
+ (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
+ (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
+ (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
+ the sub-make.
+
+2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * linux-x86-low.c (compat_x32_clock_t): New.
+ (compat_x32_siginfo_t): Likewise.
+ (compat_x32_siginfo_from_siginfo): Likewise.
+ (siginfo_from_compat_x32_siginfo): Likewise.
+ (linux_is_elf64): Likewise.
+ (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
+ and siginfo_from_compat_x32_siginfo for x32.
+ (x86_arch_setup): Set linux_is_elf64.
+
+2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gdb/13969
+ * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
+ e_machine field.
+ (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
+ * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
+ * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
+ compatible with process.
+
+2012-04-12 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in: Define abs_top_srcdir and abs_srcdir.
+ (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
+ (install-only, install-info, clean): Handle sub dir gnulib.
+ (all-lib, am--refresh): New targets.
+ (memmem.o): Remove target.
+ * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
+ Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
+ (AC_REPLACE_FUNCS): Remove memmem.
+ Invoke gl_INIT and AM_INIT_AUTOMAKE.
+ (AC_OUTPUT): Generate Makefile in gnulib/.
+ * aclocal.m4, config.in, configure: Regenerated.
+
+2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
+
+2012-04-05 Pedro Alves <palves@redhat.com>
+
+ -Werror=strict-aliasing
+
+ * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
+ pointer.
+
+2012-04-04 Pedro Alves <palves@redhat.com>
+
+ * linux-sparc-low.c (sparc_fill_gregset_to_stack)
+ (sparc_store_gregset_from_stack, sparc_store_gregset)
+ (sparc_breakpoint_at): Fix formatting.
+
+2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
+
+ * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
+ are available.
+ * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
+ [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
+ * config.in: Regenerate.
+ * configure: Likewise.
+
+2012-03-29 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
+ Correct ptrace arguments.
+
+2012-03-28 Pedro Alves <palves@redhat.com>
+
+ * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
+ (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
+ (IA64_FR1_REGNUM): New defines.
+ (ia64_fetch_register): New.
+ (the_low_target): Install it.
+ * linux-low.h (struct linux_target_ops) <fetch_register>: New
+ field.
+ * linux-low.c (linux_fetch_registers): Try the
+ the_low_target.fetch_register hook first.
+
+ * linux-arm-low.c (the_low_target): Adjust.
+ * linux-bfin-low.c (the_low_target): Adjust.
+ * linux-cris-low.c (the_low_target): Adjust.
+ * linux-crisv32-low.c (the_low_target): Adjust.
+ * linux-m32r-low.c (the_low_target): Adjust.
+ * linux-m68k-low.c (the_low_target): Adjust.
+ * linux-mips-low.c (the_low_target): Adjust.
+ * linux-ppc-low.c (the_low_target): Adjust.
+ * linux-s390-low.c (the_low_target): Adjust.
+ * linux-sh-low.c (the_low_target): Adjust.
+ * linux-sparc-low.c (the_low_target): Adjust.
+ * linux-tic6x-low.c (the_low_target): Adjust.
+ * linux-x86-low.c (the_low_target): Adjust.
+ * linux-xtensa-low.c (the_low_target): Adjust.
+
+2012-03-26 Pedro Alves <palves@redhat.com>
+
+ * server.c (handle_qxfer_libraries): Don't bail early if
+ the_target->qxfer_libraries_svr4 is not NULL.
+
+2012-03-26 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
+
+2012-03-23 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
+ "library-list-svr4" element's start tag when the the DSO list is
+ empty.
+
+2012-03-23 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (read_one_ptr): Read the inferior's pointer through
+ a variable whose type size is the same as the inferior's pointer
+ size.
+
+2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
+
+ * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
+ struct siginfo.
+ * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
+ * linux-x86-low.c (x86_siginfo_fixup): Likewise.
+ * linux-low.h: Include <signal.h>.
+ (struct siginfo): Remove forward declaration.
+ (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
+ struct siginfo.
+
+2012-03-21 Mike Frysinger <vapier@gentoo.org>
+
+ * .gitignore: Ignore more files.
+
+2012-03-19 Pedro Alves <palves@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * server.c (cont_thread, general_thread): Add describing comments.
+ (start_inferior): Clear `cont_thread'.
+ (handle_v_cont): Don't set `cont_thread' if resuming all threads
+ of a process.
+
+2012-03-15 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (install_tracepoint): Move duplicated tracepoint
+ handling to ...
+ (cmd_qtdp): ... here.
+
+2012-03-15 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (struct tracepoint_action_ops): New.
+ (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
+ (m_tracepoint_action_download): New.
+ (r_tracepoint_action_download): New.
+ (x_tracepoint_action_download): New.
+ (l_tracepoint_action_download): New.
+ (add_tracepoint_action): Install `action->ops' according type.
+ (download_tracepoint_1): Move code `download' function pointer
+ of various tracepoint_action_ops.
+
+2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
+ linux_ptrace_attach_warnings.
+
+2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (linux-ptrace.o): New.
+ * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
+ (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
+ (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
+ (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
+ (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
+ of these targets.
+ * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
+
+2012-03-08 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
+
+ Fix PR server/13392.
+ * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
+ offset of JMP insn.
+ * tracepoint.c (remove_tracepoint): New.
+ (cmd_qtdp): Call remove_tracepoint when failed to install.
+
+2012-03-07 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (get_detach_signal): New.
+ (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
+ Pass on pending signals to PTRACE_DETACH. Check the result of the
+ ptrace call.
+ * server.c (program_signals, program_signals_p): New.
+ (handle_general_set): Handle QProgramSignals.
+ * server.h (program_signals, program_signals_p): Declare.
+
+2012-03-05 Pedro Alves <palves@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
+ New comment why.
+
+2012-03-03 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (tracepoint_look_up_symbols): Update call to
+ agent_look_up_symbols.
+
+2012-03-03 Yao Qi <yao@codesourcery.com>
+
+ * 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-03 Yao Qi <yao@codesourcery.com>
+
+ * 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-03 Yao Qi <yao@codesourcery.com>
+
+ * 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-03 Yao Qi <yao@codesourcery.com>
+
+ * 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-02 Pedro Alves <palves@redhat.com>
+
+ * 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 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
+ debug log.
+
+2012-03-02 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
+ `stop_pc' and `tpoint'. Update caller.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.h (linux_target_ops): Add regset_bitmap member.
+ * linux-low.c (use_linux_regsets): New macro.
+ [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
+ [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
+ (linux_register_in_regsets): New function.
+ (usr_fetch_inferior_registers): Skip registers covered by
+ regsets.
+ (usr_store_inferior_registers): Likewise.
+ (usr_fetch_inferior_registers): New macro.
+ (usr_store_inferior_registers): Likewise.
+ (linux_fetch_registers): Handle mixed regset/non-regset targets.
+ (linux_store_registers): Likewise.
+ * linux-mips-low.c (init_registers_mips_dsp_linux): New
+ prototype.
+ (init_registers_mips64_dsp_linux): Likewise.
+ (init_registers_mips_linux): New macro.
+ (init_registers_mips_dsp_linux): Likewise.
+ (mips_dsp_num_regs): Likewise.
+ (DSP_BASE, DSP_CONTROL): New fallback macros.
+ (mips_base_regs): New macro.
+ (mips_regmap): Use it. Fix the size.
+ (mips_dsp_regmap): New variable.
+ (mips_dsp_regset_bitmap): Likewise.
+ (mips_arch_setup): New function.
+ (mips_cannot_fetch_register): Use the_low_target.regmap rather
+ than mips_regmap.
+ (mips_cannot_store_register): Likewise.
+ (the_low_target): Update .arch_setup, .num_regs and .regmap
+ initializers. Add .regset_bitmap initializer.
+ * linux-arm-low.c (the_low_target): Add .regset_bitmap
+ initializer.
+ * linux-bfin-low.c (the_low_target): Likewise.
+ * linux-cris-low.c (the_low_target): Likewise.
+ * linux-crisv32-low.c (the_low_target): Likewise.
+ * linux-ia64-low.c (the_low_target): Likewise.
+ * linux-m32r-low.c (the_low_target): Likewise.
+ * linux-m68k-low.c (the_low_target): Likewise.
+ * linux-ppc-low.c (the_low_target): Likewise.
+ * linux-s390-low.c (the_low_target): Likewise.
+ * linux-sh-low.c (the_low_target): Likewise.
+ * linux-sparc-low.c (the_low_target): Likewise.
+ * linux-tic6x-low.c (the_low_target): Likewise.
+ * linux-x86-low.c (the_low_target): Likewise.
+ * linux-xtensa-low.c (the_low_target): Likewise.
+ * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
+ mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
+ mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
+ srv_xmlfiles.
+ * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
+ (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
+
+2012-02-29 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
+
+ * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
+ `step_over_finished' is true.
+
+2012-02-27 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (pid_is_stopped): Delete, moved to common/.
+ (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
+
+2012-02-27 Pedro Alves <palves@redhat.com>
+
+ PR server/9684
+ * linux-low.c (pid_is_stopped): New.
+ (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
+
+2012-02-25 Luis Machado <lgustavo@codesourcery.com>
+
+ * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
+ of conditions.
+
+2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-mips-low.c (mips_regmap): Correct the index of $f9.
+
+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 ...
+ (linux_wait_for_event): ... here and merge it with former
+ linux_wait_for_event - new variable wait_ptid, use it.
+ (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
+
+2012-01-23 Pedro Alves <palves@redhat.com>
+
+ * server.c (main): Avoid yet another case of infinite loop while
+ detaching/killing after a longjmp.
+
+2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
+
+2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * hostio.c (handle_readlink): New function.
+ (handle_vFile): Call it to handle "vFile:readlink" packets.
+
+2012-01-20 Pedro Alves <palves@redhat.com>
+ Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * server.c (handle_v_requests): Only support vAttach and vRun to
+ start multiple processes when in extended protocol mode.
+
+2012-01-17 Pedro Alves <palves@redhat.com>
+
+ * tracepoint.c (initialize_tracepoint): Use mmap instead of
+ memalign plus mprotect to allocate the scratch buffer.
+
+2012-01-13 Pedro Alves <palves@redhat.com>
+
+ * server.c (attach_inferior): Clear `cont_thread'.
+
+2012-01-13 Pedro Alves <palves@redhat.com>
+
+ * server.c (main): Avoid infinite loop while detaching/killing
+ after a longjmp.
+
+2012-01-09 Doug Evans <dje@google.com>
+
+ * server.c (start_inferior): Set last_ptid in --wrapper case.
+
+2012-01-06 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
+ defined.
+ [IN_PROCESS_AGENT] (debug_agent): New global variable.
+
+2012-01-04 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtdp): Print debug message
+ for static tracepoint.
+
+2012-01-04 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (trace_vdebug): Differentiate debug message
+ between gdbserver and IPA.
+
+2012-01-03 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (tracepoint_was_hit): Don't collect for
+ static tracepoint.
+
+2012-01-02 Joel Brobecker <brobecker@adacore.com>
+
+ * terminal.h: Reformat copyright header.
+
+2012-01-02 Joel Brobecker <brobecker@adacore.com>
+
+ * server.c (gdbserver_version): Update copyright year.
+ * gdbreplay.c (gdbreplay_version): Likewise.
+
+2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (linux_create_inferior): Put empty if clause for write.
+
+ Revert:
+ 2011-12-18 Hui Zhu <teawater@gmail.com>
+ * linux-low.c (linux_create_inferior): Save return value to ret.
+
+2011-12-18 Hui Zhu <teawater@gmail.com>
+
+ * linux-low.c (linux_create_inferior): Save return value to ret.
+
+2011-12-16 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_create_inferior): If stdio connection,
+ redirect stdin from /dev/null, stdout to stderr.
+ * remote-utils.c (remote_is_stdio): New static global.
+ (remote_connection_is_stdio): New function.
+ (remote_prepare): Handle stdio connection.
+ (remote_open): Ditto.
+ (remote_close): Don't close stdin for stdio connections.
+ (read_prim,write_prim): New functions. Replace all calls to
+ read/write to these.
+ * server.c (main): Watch for "-" argument. Move call to
+ remote_prepare before start_inferior.
+ * server.h (STDIO_CONNECTION_NAME): New macro.
+ (remote_connection_is_stdio): Declare.
+
+ * remote-utils.c (prepare_resume_reply): Remove extraneous \n
+ in debugging output.
+
+2011-12-15 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c: Include sys/syscall.h.
+ (gdb_ust_thread): Remove preprocessor conditional.
+
+2011-12-14 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_detach_one_lwp): Call
+ the_low_target.prepare_to_resume before detaching.
+
+2011-12-14 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (gdb_ust_thread): Don't ignore return value
+ of write.
+
+2011-12-14 Yao Qi <yao@codesourcery.com>
+
+ * i386-low.c (i386_low_stopped_data_address): Initialize local
+ variable `control'.
+
+2011-12-13 Pedro Alves <pedro@codesourcery.com>
+
+ PR remote/13492
+
+ * i386-low.c (i386_low_stopped_data_address): Avoid fetching
+ DR_CONTROL unless necessary. Extend comments.
+ * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
+ DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
+
+2011-12-13 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
+ macros.
+ (upload_fast_traceframes, upload_fast_traceframes): Likewise.
+
+2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
+ Print new debug message for such case.
+
+2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix overlapping memcpy.
+ * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
+ the read_inferior_memory transfer.
+ (delete_fast_tracepoint_jump): New variable buf. Use it for the
+ write_inferior_memory transfer.
+ (set_fast_tracepoint_jump): New variable buf. Use it for the
+ read_inferior_memory and write_inferior_memory transfers.
+ (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
+ (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
+ Use it for the write_inferior_memory transfer.
+ (check_mem_read, check_mem_write): New gdb_asserts for overlapping
+ buffers.
+
+2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.c (fetch_register, store_register): Make code
+ consistent, fix formatting.
+
+2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * linux-low.c (usr_store_inferior_registers): Factor out code
+ to handle individual registers into...
+ (store_register): ... this new function.
+
+2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
+ (s390-linux32v2.o, s390-linux32v2.c): Likewise.
+ (s390-linux64v1.o, s390-linux64v1.c): Likewise.
+ (s390-linux64v2.o, s390-linux64v2.c): Likewise.
+ (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
+ (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
+ * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
+ (srv_xmlfiles): Add new XML files.
+
+ * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
+ and <sys/uio.h>.
+ (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
+ (init_registers_s390_linux32v1): Add prototype.
+ (init_registers_s390_linux32v2): Likewise.
+ (init_registers_s390_linux64v1): Likewise.
+ (init_registers_s390_linux64v2): Likewise.
+ (init_registers_s390x_linux64v1): Likewise.
+ (init_registers_s390x_linux64v2): Likewise.
+ (s390_num_regs): Increment to 52.
+ (s390_regmap): Add orig_r2 register.
+ (s390_num_regs_3264): Increment to 68.
+ (s390_regmap_3264): Add orig_r2 register.
+ (s390_collect_ptrace_register): Handle orig_r2 register.
+ (s390_supply_ptrace_register): Likewise.
+ (s390_fill_last_break): New function.
+ (s390_store_last_break): Likewise.
+ (s390_fill_system_call): New function.
+ (s390_store_system_call): Likewise.
+ (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
+ register sets.
+ (s390_check_regset): New function.
+ (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
+ NT_S390_SYSTEM_CALL regsets and use appropriate description.
+ Update target_regsets for available register sets.
+
+2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
+ (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
+ New.
+ (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
+ * linux-low.h (struct process_info_private): New member r_debug.
+ * server.c (handle_qxfer_libraries): Call
+ the_target->qxfer_libraries_svr4.
+ (handle_qxfer_libraries_svr4): New function.
+ (qxfer_packets): New entry "libraries-svr4".
+ (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
+ * target.h (struct target_ops): New member qxfer_libraries_svr4.
+ * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
+ PACKET_qXfer_libraries_svr4.
+
+2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
+ PSW address/mask between 8-byte and 16-byte formats.
+ (s390_supply_ptrace_register): Likewise.
+ (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
+ basic addressing mode bit.
+
+2011-11-24 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
+
+2011-11-17 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (struct tracepoint): New field traceframe_usage.
+ (tracing_start_time): New global.
+ (tracing_stop_time): New global.
+ (tracing_user_name): New global.
+ (tracing_notes): New global.
+ (tracing_stop_note): New global.
+ (cmd_qtstart): Set traceframe_usage, start_time.
+ (stop_tracing): Set stop_time.
+ (cmd_qtstatus): Report additional status.
+ (cmd_qtp): New function.
+ (handle_tracepoint_query): Call it.
+ (cmd_qtnotes): New function.
+ (handle_tracepoint_general_set): Call it.
+ (get_timestamp): Rename from tsv_get_timestamp.
+
+2011-11-14 Stan Shebs <stan@codesourcery.com>
+ Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * linux-x86-low.c (small_jump_insn): New.
+ (i386_install_fast_tracepoint_jump_pad): Add arguments for
+ trampoline and error message, build a trampoline and issue a small
+ jump instruction to it.
+ (x86_install_fast_tracepoint_jump_pad): Add arguments for
+ trampoline and error message.
+ (x86_get_min_fast_tracepoint_insn_len): New.
+ (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
+ * linux-low.h (struct linux_target_ops): Add arguments to
+ install_fast_tracepoint_jump_pad operation, add new operation.
+ * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
+ arguments.
+ (linux_get_min_fast_tracepoint_insn_len): New function.
+ (linux_target_op): Add new operation.
+ * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
+ (gdb_trampoline_buffer_end): Ditto.
+ (gdb_trampoline_buffer_error): Ditto.
+ (struct ipa_sym_addresses): Add fields for new IPA variables.
+ (symbol_list): Add entries for new IPA variables.
+ (struct tracepoint): Add fields to hold the address range of the
+ trampoline used by the tracepoint.
+ (trampoline_buffer_head): New static variable.
+ (trampoline_buffer_tail): Ditto.
+ (claim_trampoline_space): New function.
+ (have_fast_tracepoint_trampoline_buffer): New function.
+ (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
+ structure.
+ (install_fast_tracepoint): Ditto, also add error buffer argument.
+ (cmd_qtminftpilen): New function.
+ (handle_tracepoint_query): Add response to qTMinFTPILen packet.
+ (fast_tracepoint_from_trampoline_address): New function.
+ (fast_tracepoint_collecting): Handle trampoline as part of jump
+ pad space.
+ (set_trampoline_buffer_space): New function.
+ (initialize_tracepoint): Initialize new IPA variables.
+ * target.h (struct target_ops): Add arguments to
+ install_fast_tracepoint_jump_pad operation, add new
+ get_min_fast_tracepoint_insn_len operation.
+ (target_get_min_fast_tracepoint_insn_len): New.
+ (install_fast_tracepoint_jump_pad): Add arguments.
+ * server.h (IPA_BUFSIZ): Define.
+ * linux-i386-ipa.c: Include extra header files.
+ (initialize_fast_tracepoint_trampoline_buffer): New function.
+ (initialize_low_tracepoint): Call it.
+ * server.h (set_trampoline_buffer_space): Declare.
+ (claim_trampoline_space): Ditto.
+ (have_fast_tracepoint_trampoline_buffer): Ditto.
+
+2011-11-14 Yao Qi <yao@codesourcery.com>
+
+ * server.c (handle_query): Handle InstallInTrace for qSupported.
+ * tracepoint.c (add_tracepoint): Sort list.
+ (install_tracepoint, download_tracepoint): New.
+ (cmd_qtdp): Call them to install and download tracepoints.
+ (sort_tracepoints): Removed.
+ (cmd_qtstart): Update.
+
+2011-11-14 Yao Qi <yao@codesourcery.com>
+
+ * mem-break.c (inc_ref_fast_tracepoint_jump): New.
+ * mem-break.h: Declare.
+ * tracepoint.c (cmd_qtstart): Move some code to ...
+ (clone_fast_tracepoint, install_fast_tracepoint): ... here.
+ New.
+ (download_tracepoints): Move some code to ...
+ (download_tracepoint_1): ... here. New.
+
+2011-11-08 Yao Qi <yao@codesourcery.com>
+
+ * remote-utils.c (relocate_instruction): A comment fix.
+
+2011-11-07 Joel Brobecker <brobecker@adacore.com>
+
+ * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
+ (i386_dr_low_get_control, i386_dr_low_get_status): Use
+ dr_status_mirror and dr_control_mirror from debug_reg_state.
+ (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
+ (i386_initial_stuff): Remove use of deleted globals.
+ (i386_get_thread_context, i386_set_thread_context,
+ i386_thread_added): Use dr_status_mirror and dr_control_mirror
+ from debug_reg_state.
+
+2011-11-05 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (gdb_collect): Loop over tracepoints of same
+ address as TPOINT's.
+
+2011-11-02 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (agent_mem_read_string): New function.
+ (eval_agent_expr): Call it for tracenz.
+ * server.c (handle_query): Report support for tracenz.
+
+2011-11-02 Yao Qi <yao@codesourcery.com>
+
+ * tracepoint.c (cmd_qtstart): Remove unused local variables.
+
+2011-11-02 Yao Qi <yao@codesourcery.com>
+
+ * target.h: Fix a typo in comment.
+
+2011-10-31 Pedro Alves <pedro@codesourcery.com>
+
+ * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
+ clobber the breakpoints' shadows with fast tracepoint jumps.
+ * mem-break.h (check_mem_write): Add `myaddr' parameter.
+ * target.c (write_inferior_memory): Also pass MYADDR down to
+ check_mem_write.
+
+2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * configure.ac: Check support for personality routine.
+ * configure: Regenerate.
+ * config.in: Likewise.
+ * linux-low.c: Include <sys/personality.h>.
+ Define ADDR_NO_RANDOMIZE if necessary.
+ (linux_create_inferior): Disable address space randomization when
+ forking inferior, if requested.
+ (linux_supports_disable_randomization): New function.
+ (linux_target_ops): Install it.
+ * server.h (disable_randomization): Declare.
+ * server.c (disable_randomization): New global variable.
+ (handle_general_set): Handle QDisableRandomization.
+ (handle_query): Likewise for qSupported.
+ (main): Support --disable-randomization and --no-disable-randomization
+ command line arguments.
+ * target.h (struct target_ops): Add supports_disable_randomization.
+ (target_supports_disable_randomization): New macro.
+
+2011-09-29 Mike Frysinger <vapier@gentoo.org>
+
+ * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
+ ifdef check.
+ [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
+ [!PT_GETDSBT] (target_loadmap): New definition.
+ (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
+ (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
+ LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
+ and PT_GETDSBT to LINUX_LOADMAP.
+ [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
+ (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
+
+2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
+ (arm_linux_hwbp_cap): New static variable.
+ (arm_linux_get_hwbp_cap): Replace by ...
+ (arm_linux_init_hwbp_cap): ... this new function.
+ (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
+ (arm_linux_get_hw_watchpoint_count): Likewise.
+ (arm_linux_get_hw_watchpoint_max_length): Likewise.
+ (arm_arch_setup): Call arm_linux_init_hwbp_cap.
+ (arm_prepare_to_resume): Use perror_with_name instead of error.
+
+2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * linux-arm-low.c: Include <signal.h>.
+ (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
+ (struct arm_linux_hwbp_cap): New data type.
+ (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
+ (struct arm_linux_hw_breakpoint): New data type.
+ (MAX_BPTS, MAX_WPTS): Define.
+ (struct arch_process_info, struct arch_lwp_info): New data types.
+ (arm_linux_get_hwbp_cap): New function.
+ (arm_linux_get_hw_breakpoint_count): Likewise.
+ (arm_linux_get_hw_watchpoint_count): Likewise.
+ (arm_linux_get_hw_watchpoint_max_length): Likewise.
+ (arm_hwbp_control_initialize): Likewise.
+ (arm_hwbp_control_is_enabled): Likewise.
+ (arm_hwbp_control_is_initialized): Likewise.
+ (arm_hwbp_control_disable): Likewise.
+ (arm_linux_hw_breakpoint_equal): Likewise.
+ (arm_linux_hw_point_initialize): Likewise.
+ (struct update_registers_data): New data structure.
+ (update_registers_callback: New function.
+ (arm_insert_point): Likewise.
+ (arm_remove_point): Likewise.
+ (arm_stopped_by_watchpoint): Likewise.
+ (arm_stopped_data_address): Likewise.
+ (arm_new_process): Likewise.
+ (arm_new_thread): Likewise.
+ (arm_prepare_to_resume): Likewise.
+ (the_low_target): Register arm_insert_point, arm_remove_point,
+ arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
+ arm_new_thread, and arm_prepare_to_resume.
+
+2011-09-15 Stan Shebs <stan@codesourcery.com>
+
+ * server.h (struct emit_ops): Add compare-goto fields.
+ * tracepoint.c (gdb_agent_op_sizes): New table.
+ (emit_eq_goto): New function.
+ (emit_ne_goto): New function.
+ (emit_lt_goto): New function.
+ (emit_le_goto): New function.
+ (emit_gt_goto): New function.
+ (emit_ge_goto): New function.
+ (is_goto_target): New function.
+ (compile_bytecodes): Recognize special cases of compare-goto
+ combinations and call specialized emitters for them.
+ * linux-x86-low.c (amd64_emit_eq_goto): New function.
+ (amd64_emit_ne_goto): New function.
+ (amd64_emit_lt_goto): New function.
+ (amd64_emit_le_goto): New function.
+ (amd64_emit_gt_goto): New function.
+ (amd64_emit_ge_goto): New function.
+ (amd64_emit_ops): Add the new functions.
+ (i386_emit_eq_goto): New function.
+ (i386_emit_ne_goto): New function.
+ (i386_emit_lt_goto): New function.
+ (i386_emit_le_goto): New function.
+ (i386_emit_gt_goto): New function.
+ (i386_emit_ge_goto): New function.
+ (i386_emit_ops): Add the new functions.
+
+2011-09-08 Stan Shebs <stan@codesourcery.com>
+
+ * linux-x86-low.c (i386_emit_prologue): Save %ebx.
+ (i386_emit_epilogue): Restore %ebx.
+
+2011-08-31 Jie Zhang <jzhang918@gmail.com>
+
+ * server.c (step_thread): Remove definition.
+ (process_serial_event): Don't handle Hs.
+ * server.h (step_thread): Remove declaration.
+ * target.c (set_desired_inferior): Remove use of step_thread.
+
+2011-08-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * linux-low.c: Include linux-procfs.h.
+ (linux_attach_lwp_1): Update comments.
+ (linux_attach): Scan for existing threads when attaching to a
+ process that is the tgid.
+ * Makefile.in: Update dependencies.
+
+2011-08-24 Luis Machado <lgustavo@codesourcery.com>
+
+ * configure.srv: Add linux-procfs.o dependencies.
+
+2011-08-14 Yao Qi <yao@codesourcery.com>
+
+ * target.h (struct target_ops): Fix indent.
+ * win32-low.c (win32_target_ops): Fix comment.
+
+2011-08-14 Andrew Jenner <andrew@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (clean): Remove tic6x-*.c files.
+ (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
+ (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
+ (tic6x-c64xp-linux.c): Likewise.
+ * configure.srv: Add support for tic6x-*-uclinux.
+ * linux-tic6x-low.c: New.
+ * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
+
+2011-08-14 Andrew Stubbs <ams@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * target.h (struct target_ops): Add read_loadmap.
+ * linux-low.c (struct target_loadseg): New type.
+ (struct target_loadmap): New type.
+ (linux_read_loadmap): New function.
+ (linux_target_ops): Add linux_read_loadmap.
+ * server.c (handle_query): Support qXfer:fdpic:read packet.
+ * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
+ to NULL.
+
+2011-08-05 Eli Zaretskii <eliz@gnu.org>
+
+ * win32-low.c: Include <stdint.h>.
+
+2011-07-22 Pedro Alves <pedro@codesourcery.com>
+
+ * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
+ to the inferior here.
+ (i386_remove_aligned_watchpoint): Ditto.
+ (i386_handle_nonaligned_watchpoint): Return immediate on fail to
+ fit part of the watchpoint in the debug registers.
+ (i386_update_inferior_debug_regs): New.
+ (i386_low_insert_watchpoint): Work on a local mirror of the debug
+ registers, and only update the inferior on success.
+ (i386_low_remove_watchpoint): Ditto.
+
+2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * linux-low.c (compare_ints, unique, list_threads, show_process,
+ linux_core_of_thread): Delete.
+ (linux_target_ops): Change linux_core_of_thread to
+ linux_common_core_of_thread.
+ (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
+ * utils.c (malloc_failure): Change type of argument.
+ (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
+ * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
+ common/linux-osdata.c, common/ptid.c and common/buffer.c.
+ (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
+ (IPA_OBJS): Add common-utils-ipa.o.
+ (ptid_h, linux_osdata_h): New macros.
+ (server_h): Add common/common-utils.h, common/xml-utils.h,
+ common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
+ common/ptid.h.
+ (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
+ ptid.o, buffer.o): New rules.
+ (linux-low.o): Add common/linux-osdata.h as a dependency.
+ * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
+ * configure.ac: Add AC_HEADER_DIRENT check.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * remote-utils.c (xml_escape_text): Delete.
+ (buffer_grow, buffer_free, buffer_init, buffer_finish,
+ buffer_xml_printf): Move to common/buffer.c.
+ * server.c (main): Remove call to initialize_inferiors.
+ * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
+ ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
+ ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
+ internal_error, gdb_assert, gdb_assert_fail): Delete.
+ (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
+ buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
+ common/buffer.h.
+ * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
+ ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
+ initialize_inferiors): Delete.
+
+2011-07-20 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
+ symbol error.
+
+2011-05-31 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
+ assertion.
+ * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
+
+2011-05-26 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (thread-db.o): Track dependence to
+ common/gdb_thread_db.h.
+ * thread-db.c: include gdb_thread_db.h from right place.
+
+2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
+
+ * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
+ __FILE__ and __LINE__ to internal_error.
+
+2011-05-13 Doug Evans <dje@google.com>
+
+ * thread-db.c (try_thread_db_load_from_sdir): New function.
+ (try_thread_db_load_from_dir): New function.
+ (thread_db_load_search): Handle $sdir, ignore $pdir.
+ Remove trying of system directories if search of
+ libthread-db-search-path fails, that is now done via $sdir.
+
+2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * server.c (handle_query): Add EnableDisableTracepoints to the list
+ of supported features.
+ * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
+ tracepoints.
+ (cmd_qtenable_disable): New.
+ (cmd_qtstart): Install tracepoints even if disabled.
+ (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
+ receiving a QTEnable or QTDisable packet.
+ (gdb_collect): Skip data collection if fast tracepoint is disabled.
+ (ust_marker_to_static_tracepoint): Do not ignore disabled static
+ tracepoints.
+ (gdb_probe): Skip data collection if static tracepoint is disabled.
+
+2011-05-10 Doug Evans <dje@google.com>
+
+ * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
+
+2011-05-04 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_join): Skip process lookup.
+ * spu-low.c (spu_join): Ditto.
+ * server.c (join_inferiors_callback): Delete.
+ (process_serial_event): For 'D' packet (detach) call join_inferior
+ directly.
+
+2011-05-04 Joseph Myers <joseph@codesourcery.com>
+
+ * README: Don't mention xscale*-*-linux*.
+ * configure.srv (xscale*-*-linux*): Don't handle target.
+
+2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
+
+ * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
+ casting pointers.
+ (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
+ (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
+ (i386_emit_void_call_2): Likewise.
+
+2011-04-26 Yao Qi <yao@codesourcery.com>
+
+ * linux-low.c: Move common macros to linux-ptrace.h.
+ Include linux-ptrace.h.
+ * Makefile.in (linux_ptrace_h): New.
+ (linux-low.o): Depends on linux-ptrace.h.
+
+2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
+ RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
+ (remote_prepare): New function with most of the TCP code from ...
+ (remote_open): ... here. Detect PORT here unconditionally. Move also
+ setting transport_is_reliable.
+ * server.c (run_once): New variable.
+ (gdbserver_usage): Document it.
+ (main): Set run_once for `--once'. Call remote_prepare. Exit after
+ the first run if RUN_ONCE.
+ * server.h (run_once, remote_prepare): New declarations.
+
+2011-04-19 Tom Tromey <tromey@redhat.com>
+
+ * win32-low.c (handle_load_dll): Remove duplicate "the".
+
+2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Remove support for old Cygwin 1.5 versions.
+ * win32-low.c (win32_create_inferior): Use new cygwin_path_list
+ function to avoid warning.
+ (win32_add_one_solib): Use cygwin_conv_path function to avoid
+ warning.
+
+2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * gdbserver/server.h (Macro _): Define it if not available.
+
+2011-03-14 Michael Snyder <msnyder@vmware.com>
+
+ * hostio.c (handle_close): Remove unnecessary null test.
+
+2011-03-10 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (maintainer-clean realclean distclean): Remove
+ "make ... subdir_do" command.
+
+2011-03-10 Michael Snyder <msnyder@vmware.com>
+
+ * tracepoint.c (tracepoint_finish_step): Fix loop variable.
+
+ * server.c (handle_v_run): Free alloced buffer on early return.
+
+2011-03-09 Yao Qi <yao@codesourcery.com>
+
+ Revert:
+ 2011-03-04 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in: Remove GNU make feature --directory.
+
+ 2011-03-05 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
+ (subdir_do): New make target. Copied from gdb/Makefile.
+ (maintainer-clean, realclean, distclean, clean): Call corresponding
+ make targets in common/Makefile.
+
+ 2011-02-11 Yao Qi <yao@codesourcery.com>
+
+ * configure.ac: Call AC_PROG_RANLIB.
+ * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
+ * configure: Regenerate.
+
+2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
+
+2011-03-06 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
+
+2011-03-05 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
+ (subdir_do): New make target. Copied from gdb/Makefile.
+ (maintainer-clean, realclean, distclean, clean): Call corresponding
+ make targets in common/Makefile.
+
+2011-03-04 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in: Remove GNU make feature --directory.
+
+2011-03-04 Michael Snyder <msnyder@vmware.com>
+
+ * server.c (queue_stop_reply): Call xmalloc not malloc.
+
+2011-03-02 Michael Snyder <msnyder@vmware.com>
+
+ * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
+
+2011-02-28 Michael Snyder <msnyder@vmware.com>
+
+ * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
+ (cmd_qtframe): Ditto.
+ (cmd_qtbuffer): Ditto.
+ (cmd_bigqtbuffer): Ditto.
+
+ * utils.c (decimal2str): Initialize 'width' to nine, then
+ don't mess with it.
+
+2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * hostio.c (require_data): Free *data, not data.
+
+2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * hostio.c (require_data): Use free, not xfree.
+
+2011-02-27 Michael Snyder <msnyder@vmware.com>
+
+ * server.c (handle_query): Discard unused value.
+
+ * hostio.c (require_data): Free malloc memory before returning
+ error.
+
+2011-02-26 Michael Snyder <msnyder@vmware.com>
+
+ * linux-low.c (list_threads): Call closedir for dirent.
+
+2011-02-27 Michael Snyder <msnyder@vmware.com>
+
+ * i386-low.c (i386-length_and_rw_bits): Comment the fact that
+ a case statement falls through.
+
+ * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
+
+ * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
+ in comparison.
+
+2011-02-26 Michael Snyder <msnyder@vmware.com>
+
+ * utils.c (decimal2str): Eliminate dead code and dead param.
+ (pulongest): Drop dead param from call to decimal2str.
+ (plongest): Ditto.
+
+2011-02-24 Joel Brobecker <brobecker@adacore.com>
+
+ Revert the following patch (not approved yet):
+ 2011-02-21 Hui Zhu <teawater@gmail.com>
+ * tracepoint.c (tp_printf): New function.
+ (eval_agent_expr): Handle gdb_agent_op_printf.
+
+2011-02-21 Hui Zhu <teawater@gmail.com>
+
+ * tracepoint.c (tp_printf): New function.
+ (eval_agent_expr): Handle gdb_agent_op_printf.
+
+2011-02-18 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
+ (tracepoint.o): Likewise.
+ * tracepoint.c (enum gdb_agent_op): Use ax.def.
+ (gdb_agent_op_names): Likewise.
+
+2011-02-18 Tom Tromey <tromey@redhat.com>
+
+ * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
+ gdb_agent_op_rot>: New constants.
+ (gdb_agent_op_names): Add pick and roll.
+ (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
+ cases.
+
+2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * aclocal.m4: Regenerated with aclocal-1.11.1.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_qxfer_traceframe_info): New.
+ (qxfer_packets): Register "traceframe-info".
+ (handle_query): Report support for qXfer:traceframe-info:read+.
+ * tracepoint.c (match_blocktype): New.
+ (traceframe_find_block_type): Rename to ...
+ (traceframe_walk_blocks): ... this. Add callback filter argument,
+ and use it.
+ (traceframe_find_block_type): New, reimplemented on top of
+ traceframe_walk_blocks.
+ (build_traceframe_info_xml): New.
+ (traceframe_read_info): New.
+ * server.h (traceframe_read_info): Declare.
+
+2011-02-11 Yao Qi <yao@codesourcery.com>
+
+ * configure.ac: Call AC_PROG_RANLIB.
+ * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
+ * configure: Regenerate.
+
+2011-02-07 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (gdb_read_memory): Change return semantics to allow
+ partial transfers.
+ (handle_search_memory_1): Adjust.
+ (process_serial_event) <'m' packet>: Handle partial transfers.
+ * tracepoint.c (traceframe_read_mem): Handle partial transfers.
+
+2011-01-28 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.c (init_register_cache): Initialize
+ regcache->register_status.
+ (free_register_cache): Release regcache->register_status.
+ (regcache_cpy): Copy register_status.
+ (registers_to_string): Print 'x's for unavailable registers.
+ (supply_register): Mark the register's status valid or
+ unavailable, depending on whether a buffer was passed in or not.
+ (supply_register_zeroed): New.
+ (supply_regblock): Mark the registers' status valid or
+ unavailable, depending on whether a buffer was passed in or not.
+ * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
+ (struct regcache): New `register_status' field.
+ (supply_register_zeroed): Declare.
+ * i387-fp.c (i387_xsave_to_cache): Zero out registers using
+ supply_register_zeroed, rather than passing a NULL buffer to
+ supply_register.
+ * tracepoint.c (fetch_traceframe_registers): Update comment.
+
+2011-01-28 Pedro Alves <pedro@codesourcery.com>
+
+ * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
+ buffer explicit.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * server.h (decode_xfer_write): Change prototype.
+ * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
+ and don't extract the annex here.
+ * server.c (decode_xfer_read): Remove `annex' parameter,
+ and don't extract the annex here.
+ (decode_xfer): New.
+ (struct qxfer): New.
+ (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
+ (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
+ (handle_qxfer_statictrace): New functions, abstracted out from
+ handle_query, and made to use the struct qxfer interface.
+ (handle_threads_qxfer_proper): Rename to ...
+ (handle_qxfer_threads_proper): ... this.
+ (handle_threads_qxfer): Rename to ...
+ (handle_qxfer_threads): ... this. Adjust.
+ (qxfer_packets): New array.
+ (handle_qxfer): New function.
+ (handle_query): Use handle_qxfer.
+
+2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
+
+ * gdbreplay.c: Shorten lines of >= 80 columns.
+ * linux-low.c: Ditto.
+ * linux-ppc-low.c: Ditto.
+ * linux-s390-low.c: Ditto.
+ * linux-sparc-low.c: Ditto.
+ * linux-x86-low.c: Ditto.
+ * linux-xtensa-low.c: Ditto.
+ * mem-break.c: Ditto.
+ * nto-low.c: Ditto.
+ * regcache.h: Ditto.
+ * remote-utils.c: Ditto.
+ * server.c: Ditto.
+ * server.h: Ditto.
+ * thread-db.c: Ditto.
+ * tracepoint.c: Ditto.
+ * utils.c: Ditto.
+ * win32-low.h: Ditto.
+
+2011-01-05 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
+ update.
+
+2011-01-01 Joel Brobecker <brobecker@adacore.com>
+
+ * server.c (gdbserver_version): Update copyright year in version
+ output.
+ * gdbreplay.c (gdbreplay_version): Ditto.
+
+2010-12-29 Jie Zhang <jie.zhang@analog.com>
+
+ * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
+ * linux-bfin-low.c: New file.
+ * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
+ PT_DATA_ADDR for BFIN targets.
+ * Makefile.in (SFILES): Add linux-bfin-low.c.
+ (clean): Remove reg-bfin.c.
+ (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
+ * README: Mention supported Blackfin targets.
+
+2010-12-23 Mike Frysinger <vapier@gentoo.org>
+
+ * .gitignore: New file.
+
+2010-11-16 Mike Frysinger <vapier@gentoo.org>
+
+ * linux-low.c (linux_tracefork_child): Add char* cast to arg.
+
+2010-10-22 Jie Zhang <jie@codesourcery.com>
+
+ * Makefile.in: Add FLAGS_TO_PASS variable.
+ (install): Remove dependency of install-only and recursively
+ invoke make for install-only.
+
+2010-10-04 Doug Evans <dje@google.com>
+
+ * Makefile.in (uninstall): Use $(DESTDIR).
+
+2010-09-24 Pedro Alves <pedro@codesourcery.com>
+
+ PR gdb/11842
+
+ * linux-x86-low.c (compat_siginfo_from_siginfo)
+ (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
+ si_code is < 0. Check for si_code == SI_TIMER before checking for
+ si_code < 0.
+
+2010-09-13 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-i386-low.c: New file.
+ * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
+
+2010-09-13 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (ptrace_request_to_str): Remove handling for
+ request values that have been removed in LynxOS 5.x.
+
+2010-09-13 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
+ <ptrace.h>
+
+2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
+
+ * configure.ac: Add --enable-inprocess-agent option.
+ * configure: Rebuilt.
+
+2010-09-06 Yao Qi <yao@codesourcery.com>
+
+ * linux-low.c (linux_kill): Remove unused variable.
+ (linux_stabilize_threads): Likewise.
+ * server.c (start_inferior): Likewise.
+ (queue_stop_reply_callback): Likewise.
+ * tracepoint.c (do_action_at_tracepoint): Likewise.
+
+2010-09-06 Yao Qi <yao@codesourcery.com>
+
+ * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
+ on return.
+
+2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
+
+2010-09-06 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (install-only): Replace $IPA_DEPFILES with
+ "$(IPA_DEPFILES)".
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
+ gdbserver/lynx-ppc-low.c: New files.
+ * Makefile.in (lynx_low_h): New variable.
+ (lynx-low.o, lynx-ppc-low.o): New rules.
+ * configure.ac: On LynxOS, link with -lnetinet.
+ * configure.srv: Add handling of powerpc-*-lynxos* targets.
+ * configure: regenerate.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
+ * configure.ac: Add check for vasprintf and vsnprintf.
+ * configure, config.in: Regenerate.
+ * server.h (vasprintf, vsnprintf): Add conditional declarations.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbreplay.c: Move include of alloca.h up, next to include of
+ malloc.h.
+ * server.h: Add include of malloc.h.
+ * mem-break.c: Remove include of malloc.h.
+ * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (memmem.o): Build with -Wno-error.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * utils.c (xsnprintf): Make non-static.
+ * server.h: Add xsnprintf declaration.
+ * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
+ replace calls to snprintf by calls to xsnprintf throughout.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac: Add configure check for alloca.
+ * configure, config.in: Regenerate.
+ * server.h: Include alloca.h if it exists.
+ * gdbreplay.c: Include alloca.h if it exists.
+
+2010-08-28 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (__SIGRTMIN): Define if not already defined.
+ (linux_create_inferior): Check for __ANDROID__ rather than
+ __SIGRTMIN.
+ (enqueue_one_deferred_signal): Don't requeue non-RT signals that
+ are already deferred.
+ (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
+ (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
+ stopped and already has a pending signal to report.
+ (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
+ a pending signal to report or is moving out of a jump pad.
+ (linux_init_signals): Check for __ANDROID__ rather than
+ __SIGRTMIN.
+
+2010-08-28 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_stabilize_threads): Wrap debug output in a
+ debug_threads check. Avoid a linear search when not doing debug
+ output.
+
+2010-08-27 Pedro Alves <pedro@codesourcery.com>
+
+ * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
+ (struct gdb_event) <fd>: Change type to gdb_fildes_t.
+ (struct file_handler) <fd>: Change type to gdb_fildes_t.
+ (process_event): Change local fd's type to gdb_fildes_t.
+ (create_file_handler): Adjust prototype.
+ (delete_file_handler): Adjust prototype.
+ (handle_file_event): Adjust prototype. Use pfildes.
+ (create_file_event): Adjsut prototype.
+ * remote-utils.c (remote_desc, listen_desc): Change type to
+ gdb_fildes_t.
+ * server.h: New gdb_fildes_t typedef.
+ [USE_WIN32API]: Include winsock2.h.
+ (delete_file_handler, add_file_handler): Adjust prototypes.
+ (pfildes): Declare.
+ * utils.c (pfildes): New.
+
+2010-08-27 Pedro Alves <pedro@codesourcery.com>
+
+ * configure.ac (build_warnings): Add -Wno-char-subscripts.
+ * configure: Regenerate.
+
+2010-08-27 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
+ (linux_done_accessing_memory): ... this.
+ (linux_target_ops): Adjust.
+ * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
+ * nto-low.c (nto_target_ops): Adjust comment.
+ * server.c (gdb_read_memory, gdb_write_memory): Adjust.
+ * spu-low.c (spu_target_ops): Adjust comment.
+ * target.h (target_ops): Rename unprepare_to_access_memory field
+ to done_accessing_memory.
+ (unprepare_to_access_memory): Rename to ...
+ (done_accessing_memory): ... this.
+
+2010-08-26 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_prepare_to_access_memory): New.
+ (linux_unprepare_to_access_memory): New.
+ (linux_target_ops): Install them.
+ * server.c (read_memory): Rename to ...
+ (gdb_read_memory): ... this. Use
+ prepare_to_access_memory/prepare_to_access_memory.
+ (write_memory): Rename to ...
+ (gdb_write_memory): ... this. Use
+ prepare_to_access_memory/prepare_to_access_memory.
+ (handle_search_memory_1): Adjust.
+ (process_serial_event): Adjust.
+ * target.h (struct target_ops): New fields
+ prepare_to_access_memory and unprepare_to_access_memory.
+ (prepare_to_access_memory, unprepare_to_access_memory): New.
+ * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
+ prepare_to_access_memory/prepare_to_access_memory.
+ * nto-low.c (nto_target_ops): Adjust.
+ * spu-low.c (spu_target_ops): Adjust.
+ * win32-low.c (win32_target_ops): Adjust.
+
+2010-08-26 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (WARN_CFLAGS): Get it from configure.
+ (WERROR_CFLAGS): New.
+ (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
+ * configure.ac: Introduce --enable-werror, which adds -Werror to
+ the compiler command line. Enabled by default. Disable with
+ --disable-werror. Add -Wdeclaration-after-statement
+ Wpointer-arith and -Wformat-nonliteral to warning flags.
+ * configure: Regenerate.
+
+2010-08-26 Pedro Alves <pedro@codesourcery.com>
+
+ * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
+
+2010-08-26 Pedro Alves <pedro@codesourcery.com>
+
+ * gdbreplay.c (remote_error): New.
+ (gdbchar): New.
+ (expect): Use gdbchar. Check for error reading from GDB.
+ Clarify sync error output.
+ (play): Check for errors writing to GDB.
+ * linux-low.c (sigchld_handler): Really ignore `write' errors.
+ * remote-utils.c (getpkt): Check for errors writing to the remote
+ descriptor.
+
+2010-08-25 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_1): Move non-debugging code out of
+ `debug_threads' control.
+
+2010-08-25 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_1): Don't set last_status here.
+ * server.c (push_event, queue_stop_reply_callback): Assert we're
+ not pushing a TARGET_WAITKIND_IGNORE event.
+ (start_inferior, start_inferior, attach_inferior, handle_v_cont)
+ (myresume, handle_target_event): Set the thread's last_resume_kind
+ and last_status from the target returned status.
+
+2010-08-25 Pedro Alves <pedro@codesourcery.com>
+
+ PR threads/10729
+
+ * linux-x86-low.c (update_debug_registers_callback): New.
+ (i386_dr_low_set_addr): Use it.
+ (i386_dr_low_get_addr): New.
+ (i386_dr_low_set_control): Use update_debug_registers_callback.
+ (i386_dr_low_get_control): New.
+ (i386_dr_low_get_status): Adjust.
+ * linux-low.c (linux_stop_lwp): New.
+ * linux-low.h (linux_stop_lwp): Declare.
+
+ * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
+ argument instead of a i386_debug_reg_state.
+ (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
+ a i386_debug_reg_state.
+ (i386_insert_aligned_watchpoint): Adjust.
+ (i386_remove_aligned_watchpoint): Adjust.
+ (i386_low_stopped_data_address): Read the debug registers from the
+ inferior instead of from the mirrors.
+ * i386-low.h (struct i386_debug_reg_state): Extend comment.
+ (i386_dr_low_get_addr): Declare.
+ (i386_dr_low_get_control): Declare.
+ (i386_dr_low_get_status): Change prototype.
+
+ * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
+ (i386_dr_low_get_addr): New.
+ (i386_dr_low_get_control): New.
+ (i386_dr_low_get_status): Adjust prototype. Return
+ dr_status_mirror.
+ (i386_initial_stuff): Clear dr_status_mirror and
+ dr_control_mirror.
+ (i386_get_thread_context): Adjust.
+ (i386_set_thread_context): Adjust.
+ (i386_thread_added): Adjust.
+
+2010-08-24 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.h (linux_thread_area): Delete declaration.
+
+2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
+
+ * linux-low.c (linux_wait_1): Correctly return the ptid of the child
+ after its termination.
+
+2010-08-09 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (gdb_wants_lwp_stopped): Delete.
+ (gdb_wants_all_stopped): Delete.
+ (linux_wait_1): Don't call them.
+ * server.c (handle_v_cont): Tag all threads as want-stopped.
+ (gdb_wants_thread_stopped): Fix comments. Tag the thread that
+ stopped as "client-wants-stopped".
+
+2010-07-31 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (signals_h): New.
+ (server_h): Depend on it.
+ (server.o): Don't depend on $(signals_def).
+ (signals.o): Depend on $(signals_def).
+
+2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (signals_def): New.
+ (server_h): Append include/gdb/signals.h and signals_def.
+ (server.o): Append signals_def.
+
+2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * server.c (handle_target_event): Use target_signal_to_host for
+ resume_info.sig initialization.
+ * target.h (struct thread_resume) <sig>: New comment.
+
+2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
+
+ * server.c (handle_query): strcpy() the returned string from paddress()
+ instead of sprintf().
+ * utils.c (paddress): Return phex_nz().
+
+2010-07-07 Joel Brobecker <brobecker@adacore.com>
+
+ * server.c (handle_v_cont): Call mourn_inferior if process
+ just exited.
+ (myresume): Likewise.
+
+2010-07-01 Pedro Alves <pedro@codesourcery.com>
+
+ Static tracepoints, and integration with UST.
+
+ * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
+ * mem-break.c (uninsert_all_breakpoints)
+ (reinsert_all_breakpoints): New.
+ * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
+ * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
+ (gdb_agent_ust_loaded, helper_thread_id)
+ (gdb_agent_helper_thread_id): New macros.
+ (struct ipa_sym_addresses): Add addr_ust_loaded,
+ addr_helper_thread_id, addr_cmd_buf.
+ (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
+ (in_process_agent_loaded_ust): New.
+ (write_e_ust_not_loaded): New.
+ (maybe_write_ipa_ust_not_loaded): New.
+ (struct collect_static_trace_data_action): New.
+ (enum tracepoint_type) <static_tracepoint>: New.
+ (struct tracepoint) <handle>: Mention static tracepoints.
+ (struct static_tracepoint_ctx): New.
+ (CMD_BUF_SIZE): New.
+ (add_tracepoint_action): Handle static tracepoint actions.
+ (unprobe_marker_at): New.
+ (clear_installed_tracepoints): Handle static tracepoints.
+ (cmd_qtdp): Handle static tracepoints.
+ (probe_marker_at): New.
+ (cmd_qtstart): Handle static tracepoints.
+ (response_tracepoint): Handle static tracepoints.
+ (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
+ (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
+ (get_context_regcache): Handle static tracepoints.
+ (do_action_at_tracepoint): Handle static tracepoint actions.
+ (traceframe_find_block_type): Handle static trace data blocks.
+ (traceframe_read_sdata): New.
+ (download_tracepoints): Download static tracepoint actions.
+ [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
+ (GDB_PROBE_NAME): New.
+ (ust_ops): New.
+ (GET_UST_SYM): New.
+ (USTF): New.
+ (dlsym_ust): New.
+ (ust_marker_to_static_tracepoint): New.
+ (gdb_probe): New.
+ (collect_ust_data_at_tracepoint): New.
+ (gdb_ust_probe): New.
+ (UNIX_PATH_MAX, SOCK_DIR): New.
+ (gdb_ust_connect_sync_socket): New.
+ (resume_thread, stop_thread): New.
+ (run_inferior_command): New.
+ (init_named_socket): New.
+ (gdb_ust_socket_init): New.
+ (cstr_to_hexstr): New.
+ (next_st): New.
+ (first_marker, next_marker): New.
+ (response_ust_marker): New.
+ (cmd_qtfstm, cmd_qtsstm): New.
+ (unprobe_marker_at, probe_marker_at): New.
+ (cmd_qtstmat, gdb_ust_thread): New.
+ (gdb_ust_init): New.
+ (initialize_tracepoint_ftlib): Call gdb_ust_init.
+ * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
+ (ST_REGENTRY): New.
+ (x86_64_st_collect_regmap): New.
+ (X86_64_NUM_ST_COLLECT_GREGS): New.
+ (AMD64_RIP_REGNUM): New.
+ (supply_static_tracepoint_registers): New.
+ * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
+ (ST_REGENTRY): New.
+ (i386_st_collect_regmap): New.
+ (i386_NUM_ST_COLLECT_GREGS): New.
+ (supply_static_tracepoint_registers): New.
+ * server.c (handle_query): Handle qXfer:statictrace:read.
+ <qSupported>: Report support for StaticTracepoints, and
+ qXfer:statictrace:read features.
+ * server.h (traceframe_read_sdata)
+ (supply_static_tracepoint_registers): Declare.
+ * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
+ (unpack_varlen_hex): Include in IPA build.
+ * Makefile.in (ustlibs, ustinc): New.
+ (IPA_OBJS): Add remote-utils-ipa.o.
+ ($(IPA_LIB)): Link -ldl and -lpthread.
+ (UST_CFLAGS): New.
+ (IPAGENT_CFLAGS): Add UST_CFLAGS.
+ * config.in, configure: Regenerate.
+
+2010-06-20 Ian Lance Taylor <iant@google.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * linux-x86-low.c (always_true): Delete.
+ (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
+ trying to fool the compiler with always_true.
+
+2010-06-20 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
+ conditions in gdbserver.
+
+2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-low.c (spu_read_memory): Wrap around local store limit.
+ (spu_write_memory): Likewise.
+
+2010-06-15 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
+ (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
+ LONGEST uses.
+ * server.h (struct emit_ops): Replace int64_t uses with LONGEST
+ uses.
+ * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
+ uses with LONGEST uses.
+
+2010-06-14 Stan Shebs <stan@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ Bytecode compiler.
+
+ * linux-x86-low.c: Include limits.h.
+ (add_insns): New.
+ (always_true): New.
+ (EMIT_ASM): New.
+ (EMIT_ASM32): New.
+ (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
+ (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
+ (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
+ (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
+ (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
+ (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
+ (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
+ (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
+ (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
+ (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
+ (amd64_emit_void_call_2): New.
+ (amd64_emit_ops): New.
+ (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
+ (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
+ (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
+ (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
+ (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
+ (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
+ (i386_emit_goto, i386_write_goto_address, i386_emit_const)
+ (i386_emit_call, i386_emit_reg, i386_emit_pop)
+ (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
+ (i386_emit_stack_adjust, i386_emit_int_call_1)
+ (i386_emit_void_call_2): New.
+ (i386_emit_ops): New.
+ (x86_emit_ops): New.
+ (the_low_target): Install x86_emit_ops.
+ * server.h (struct emit_ops): New.
+ (get_raw_reg_func_addr): Declare.
+ (current_insn_ptr, emit_error): Declare.
+ * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
+ (set_trace_state_variable_value): New defines.
+ (struct ipa_sym_addresses): New fields addr_get_raw_reg,
+ addr_get_trace_state_variable_value and
+ addr_set_trace_state_variable_value.
+ (symbol_list): New fields for get_raw_reg,
+ get_trace_state_variable_value and set_trace_state_variable_value.
+ (condfn): New typedef.
+ (struct tracepoint): New field `compiled_cond'.
+ (do_action_at_tracepoint): Clear compiled_cond.
+ (get_trace_state_variable_value, set_trace_state_variable_value):
+ Export in the IPA.
+ (condition_true_at_tracepoint): If there's a compiled condition,
+ run that.
+ (current_insn_ptr, emit_error): New globals.
+ (struct bytecode_address): New.
+ (get_raw_reg_func_addr): New.
+ (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_flush, emit_zero_ext, emit_swap)
+ (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
+ (compile_tracepoint_condition, compile_bytecodes): New.
+ * target.h (emit_ops): Forward declare.
+ (struct target_ops): New field emit_ops.
+ (target_emit_ops): New.
+ * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
+ * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
+ * linux-low.c (linux_emit_ops): New.
+ (linux_target_ops): Install it.
+ * linux-low.h (struct linux_target_ops): New field emit_ops.
+
+2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
+ * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
+
+2010-06-01 Pedro Alves <pedro@codesourcery.com>
+ Stan Shebs <stan@codesourcery.com>
+
+ * Makefile.in (IPA_DEPFILES, extra_libraries): New.
+ (all): Depend on $(extra_libraries).
+ (install-only): Install the IPA.
+ (IPA_OBJS, IPA_LIB): New.
+ (clean): Remove the IPA lib.
+ (IPAGENT_CFLAGS): New.
+ (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
+ (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
+ (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
+ * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
+ * configure.ac: Check for atomic builtins support in the compiler.
+ (IPA_DEPFILES, extra_libraries): Define.
+ * configure.srv (ipa_obj): Add description.
+ (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
+ (i[34567]86-*-linux*): Set ipa_obj.
+ (x86_64-*-linux*): Set ipa_obj.
+ * linux-low.c (stabilizing_threads): New.
+ (supports_fast_tracepoints): New.
+ (linux_detach): Stabilize threads before detaching.
+ (handle_tracepoints): Handle internal tracing breakpoints. Assert
+ the lwp is either not stabilizing, or is moving out of a jump pad.
+ (linux_fast_tracepoint_collecting): New.
+ (maybe_move_out_of_jump_pad): New.
+ (enqueue_one_deferred_signal): New.
+ (dequeue_one_deferred_signal): New.
+ (linux_wait_for_event_1): If moving out of a jump pad, defer
+ pending signals to later.
+ (linux_stabilize_threads): New.
+ (linux_wait_1): Check if threads need moving out of jump pads, and
+ do it if so.
+ (stuck_in_jump_pad_callback): New.
+ (move_out_of_jump_pad_callback): New.
+ (lwp_running): New.
+ (linux_resume_one_lwp): Handle moving out of jump pads.
+ (linux_set_resume_request): Dequeue deferred signals.
+ (need_step_over_p): Also step over fast tracepoint jumps.
+ (start_step_over): Also uninsert fast tracepoint jumps.
+ (finish_step_over): Also reinsert fast tracepoint jumps.
+ (linux_install_fast_tracepoint_jump): New.
+ (linux_target_ops): Install linux_stabilize_threads and
+ linux_install_fast_tracepoint_jump_pad.
+ * linux-low.h (linux_target_ops) <get_thread_area,
+ install_fast_tracepoint_jump_pad>: New fields.
+ (struct lwp_info) <collecting_fast_tracepoint,
+ pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
+ (linux_get_thread_area): Declare.
+ * linux-x86-low.c (jump_insn): New.
+ (x86_get_thread_area): New.
+ (append_insns): New.
+ (push_opcode): New.
+ (amd64_install_fast_tracepoint_jump_pad): New.
+ (i386_install_fast_tracepoint_jump_pad): New.
+ (x86_install_fast_tracepoint_jump_pad): New.
+ (the_low_target): Install x86_get_thread_area and
+ x86_install_fast_tracepoint_jump_pad.
+ * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
+ (struct fast_tracepoint_jump): New.
+ (fast_tracepoint_jump_insn): New.
+ (fast_tracepoint_jump_shadow): New.
+ (find_fast_tracepoint_jump_at): New.
+ (fast_tracepoint_jump_here): New.
+ (delete_fast_tracepoint_jump): New.
+ (set_fast_tracepoint_jump): New.
+ (uninsert_fast_tracepoint_jumps_at): New.
+ (reinsert_fast_tracepoint_jumps_at): New.
+ (set_breakpoint_at): Use write_inferior_memory.
+ (uninsert_raw_breakpoint): Use write_inferior_memory.
+ (check_mem_read): Mask out fast tracepoint jumps.
+ (check_mem_write): Mask out fast tracepoint jumps.
+ * mem-break.h (struct fast_tracepoint_jump): Forward declare.
+ (set_fast_tracepoint_jump): Declare.
+ (delete_fast_tracepoint_jump)
+ (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
+ (reinsert_fast_tracepoint_jumps_at): Declare.
+ * regcache.c: Don't compile many functions when building the
+ in-process agent library.
+ (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
+ the register buffer in the heap.
+ (free_register_cache): If the register buffer isn't owned by the
+ regcache, don't free it.
+ (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
+ pre-existing register caches.
+ * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
+ type.
+ (convert_ascii_to_int): : Constify `from' parameter type.
+ (decode_M_packet, decode_X_packet): Replace the `to' parameter by
+ a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
+ the needed buffer in-place.
+ (relocate_instruction): New.
+ * server.c (handle_query) <qSymbols>: If the target supports
+ tracepoints, give it a chance of looking up symbols. Report
+ support for fast tracepoints.
+ (handle_status): Stabilize threads.
+ (process_serial_event): Adjust.
+ * server.h (struct fast_tracepoint_jump): Forward declare.
+ (struct process_info) <fast_tracepoint_jumps>: New field.
+ (convert_ascii_to_int, convert_int_to_ascii): Adjust.
+ (decode_X_packet, decode_M_packet): Adjust.
+ (relocate_instruction): Declare.
+ (in_process_agent_loaded): Declare.
+ (tracepoint_look_up_symbols): Declare.
+ (struct fast_tpoint_collect_status): Declare.
+ (fast_tracepoint_collecting): Declare.
+ (force_unlock_trace_buffer): Declare.
+ (handle_tracepoint_bkpts): Declare.
+ (initialize_low_tracepoint)
+ (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
+ * target.h (struct target_ops) <stabilize_threads,
+ install_fast_tracepoint_jump_pad>: New fields.
+ (stabilize_threads, install_fast_tracepoint_jump_pad): New.
+ * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
+ [HAVE_STDINT_H]: Include stdint.h.
+ (trace_debug_1): Rename to ...
+ (trace_vdebug): ... this.
+ (trace_debug): Rename to ...
+ (trace_debug_1): ... this. Add `level' parameter.
+ (trace_debug): New.
+ (ATTR_USED, ATTR_NOINLINE): New.
+ (IP_AGENT_EXPORT): New.
+ (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
+ (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
+ (about_to_request_buffer_space, trace_buffer_is_full)
+ (stopping_tracepoint, expr_eval_result, error_tracepoint)
+ (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
+ (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
+ (traceframe_write_count, traceframes_created)
+ (trace_state_variables)
+ New renaming defines.
+ (struct ipa_sym_addresses): New.
+ (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
+ (symbol_list): New.
+ (ipa_sym_addrs): New.
+ (all_tracepoint_symbols_looked_up): New.
+ (in_process_agent_loaded): New.
+ (write_e_ipa_not_loaded): New.
+ (maybe_write_ipa_not_loaded): New.
+ (tracepoint_look_up_symbols): New.
+ (debug_threads) [IN_PROCESS_AGENT]: New.
+ (read_inferior_memory) [IN_PROCESS_AGENT]: New.
+ (UNKNOWN_SIDE_EFFECTS): New.
+ (stop_tracing): New.
+ (flush_trace_buffer): New.
+ (stop_tracing_bkpt): New.
+ (flush_trace_buffer_bkpt): New.
+ (read_inferior_integer): New.
+ (read_inferior_uinteger): New.
+ (read_inferior_data_pointer): New.
+ (write_inferior_data_pointer): New.
+ (write_inferior_integer): New.
+ (write_inferior_uinteger): New.
+ (struct collect_static_trace_data_action): Delete.
+ (enum tracepoint_type): New.
+ (struct tracepoint) <type>: New field `type'.
+ <actions_str, step_actions, step_actions_str>: Only include in
+ GDBserver.
+ <orig_size, obj_addr_on_target, adjusted_insn_addr>
+ <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
+ (tracepoints): Use IP_AGENT_EXPORT.
+ (last_tracepoint): Don't include in the IPA.
+ (stopping_tracepoint): Use IP_AGENT_EXPORT.
+ (trace_buffer_is_full): Use IP_AGENT_EXPORT.
+ (alloced_trace_state_variables): New.
+ (trace_state_variables): Use IP_AGENT_EXPORT.
+ (traceframe_t): Delete unused variable.
+ (circular_trace_buffer): Don't include in the IPA.
+ (trace_buffer_start): Delete.
+ (struct trace_buffer_control): New.
+ (trace_buffer_free): Delete.
+ (struct ipa_trace_buffer_control): New.
+ (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
+ (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
+ New.
+ (trace_buffer_ctrl): New.
+ (TRACE_BUFFER_CTRL_CURR): New.
+ (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
+ Reimplement as macros.
+ (trace_buffer_wrap): Delete.
+ (traceframe_write_count, traceframe_read_count)
+ (traceframes_created, tracing): Use IP_AGENT_EXPORT.
+ (struct tracepoint_hit_ctx) <type>: New field.
+ (struct fast_tracepoint_ctx): New.
+ (memory_barrier): New.
+ (cmpxchg): New.
+ (record_tracepoint_error): Update atomically in the IPA.
+ (clear_inferior_trace_buffer): New.
+ (about_to_request_buffer_space): New.
+ (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
+ updating the same buffer.
+ (add_tracepoint): Default the tracepoint's type to trap
+ tracepoint, and orig_size to -1.
+ (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
+ internal variables.
+ (create_trace_state_variable): New parameter `gdb'. Handle it.
+ (clear_installed_tracepoints): Clear fast tracepoint jumps.
+ (cmd_qtdp): Handle fast tracepoints.
+ (cmd_qtdv): Adjust.
+ (max_jump_pad_size): New.
+ (gdb_jump_pad_head): New.
+ (get_jump_space_head): New.
+ (claim_jump_space): New.
+ (sort_tracepoints): New.
+ (MAX_JUMP_SIZE): New.
+ (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
+ IPA.
+ (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
+ support. Upload fast traceframes, and delete internal IPA
+ breakpoints.
+ (stop_tracing_handler): New.
+ (flush_trace_buffer_handler): New.
+ (cmd_qtstop): Upload fast tracepoints.
+ (response_tracepoint): Handle fast tracepoints.
+ (tracepoint_finished_step): Upload fast traceframes. Set the
+ tracepoint hit context's tracepoint type.
+ (handle_tracepoint_bkpts): New.
+ (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
+ type. Add comment about fast tracepoints.
+ (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
+ non-existing action_str field.
+ (get_context_regcache): Handle fast tracepoints.
+ (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
+ to the regcache.
+ (fast_tracepoint_from_jump_pad_address): New.
+ (fast_tracepoint_from_ipa_tpoint_address): New.
+ (collecting_t): New.
+ (force_unlock_trace_buffer): New.
+ (fast_tracepoint_collecting): New.
+ (collecting): New.
+ (gdb_collect): New.
+ (write_inferior_data_ptr): New.
+ (target_tp_heap): New.
+ (target_malloc): New.
+ (download_agent_expr): New.
+ (UALIGN): New.
+ (download_tracepoints): New.
+ (download_trace_state_variables): New.
+ (upload_fast_traceframes): New.
+ (IPA_FIRST_TRACEFRAME): New.
+ (IPA_NEXT_TRACEFRAME_1): New.
+ (IPA_NEXT_TRACEFRAME): New.
+ [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
+ [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
+ (gdb_jump_pad_buffer_end): New.
+ [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
+ (initialize_tracepoint): Adjust.
+ [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
+ buffer. Initialize the low module.
+ * utils.c (PREFIX, TOOLNAME): New.
+ (malloc_failure): Use PREFIX.
+ (error): In the IPA, an error causes an exit.
+ (fatal, warning): Use PREFIX.
+ (internal_error): Use TOOLNAME.
+ (NUMCELLS): Increase to 10.
+ * configure, config.in: Regenerate.
+
+2010-06-01 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_query) <qSupported>: Do two passes over the
+ qSupported string to avoid nesting strtok.
+
+2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
+ (CDEPS): New.
+ * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
+ -Wl,--dynamic-list.
+ * configure: Regenerate.
+ * proc-service.list: New.
+
+2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
+ New comment.
+
+2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
+
+ * gdbreplay.c (remote_open): Check error return from socket() call by
+ its equality to -1 not by it being negative.
+ * remote-utils.c (remote_open): Likewise.
+
+2010-05-23 Pedro Alves <pedro@codesourcery.com>
+
+ * config.h: Regenerate.
+
+2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
+ doesn't provide PTRACE_GET_THREAD_AREA.
+
+2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * linux-m68k-low.c: Include <asm/ptrace.h>
+ (ps_get_thread_area): Implement.
+
+2010-05-03 Doug Evans <dje@google.com>
+
+ * event-loop.c (struct callback_event): New struct.
+ (callback_list): New global.
+ (append_callback_event, delete_callback_event): New functions.
+ (process_callback): New function.
+ (start_event_loop): Call it.
+ * remote-utils.c (NOT_SCHEDULED): Define.
+ (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
+ moved out of readchar.
+ (readchar): Rewrite. Call reschedule before returning.
+ (reset_readchar): New function.
+ (remote_close): Call it.
+ (process_remaining, reschedule): New functions.
+ * server.h (callback_handler_func): New typedef.
+ (append_callback_event, delete_callback_event): Declare.
+
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * proc-service.c (ps_pglobal_lookup): Use
+ thread_db_look_up_one_symbol.
+ * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
+ parameter. Use it instead of all_symbols_looked_up.
+ * server.h (struct process_info) <all_symbols_looked_up>: Delete
+ field.
+ (all_symbols_looked_up): Don't declare.
+ (look_up_one_symbol): Add new `may_ask_gdb' parameter.
+ * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
+ field.
+ (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
+ Set all_symbols_looked_up here.
+ (thread_db_look_up_one_symbol): New.
+ (thread_db_get_tls_address): Adjust.
+ (thread_db_load_search, try_thread_db_load_1): Always allocate the
+ thread_db object on the heap, and tentatively set it in the
+ process structure.
+ (thread_db_init): Don't set all_symbols_looked_up here.
+ * linux-low.h (thread_db_look_up_one_symbol): Declare.
+
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_kill, linux_detach): Adjust.
+ (status_pending_p_callback): Remove redundant statement. Check
+ for !TARGET_WAITIKIND_IGNORE, instead of
+ TARGET_WAITKIND_STOPPED.
+ (handle_tracepoints): Make sure LWP is locked. Adjust.
+ (linux_wait_for_event_1): Adjust.
+ (linux_cancel_breakpoints): New.
+ (unsuspend_one_lwp): New.
+ (unsuspend_all_lwps): New.
+ (linux_wait_1): If finishing a step-over, unsuspend all lwps.
+ (send_sigstop_callback): Change return type to int, add new
+ `except' parameter and handle it.
+ (suspend_and_send_sigstop_callback): New.
+ (stop_all_lwps): Add new `suspend' and `expect' parameters, and
+ pass them down. If SUSPEND, also increment the lwp's suspend
+ count.
+ (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
+ (need_step_over_p): Don't consider suspended LWPs.
+ (start_step_over): Adjust.
+ (proceed_one_lwp): Change return type to int, add new `except'
+ parameter and handle it.
+ (unsuspend_and_proceed_one_lwp): New.
+ (proceed_all_lwps): Use find_inferior instead of
+ for_each_inferior.
+ (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
+ also decrement the suspend count of LWPs. Pass `except' down,
+ instead of hacking its suspend count.
+ (linux_pause_all): Add `freeze' parameter. Adjust.
+ (linux_unpause_all): New.
+ (linux_target_ops): Install linux_unpause_all.
+ * server.c (handle_status): Adjust.
+ * target.h (struct target_ops): New fields `unpause_all' and
+ `cancel_breakpoints'. Add new parameter to `pause_all'.
+ (pause_all): Add new `freeze' parameter.
+ (unpause_all): New.
+ (cancel_breakpoints): New.
+ * tracepoint.c (clear_installed_tracepoints): Pause threads, and
+ cancel breakpoints.
+ (cmd_qtstart): Pause threads.
+ (stop_tracing): Pause threads, and cancel breakpoints.
+ * win32-low.c (win32_target_ops): Adjust.
+
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_for_event_1): Move passing the signal to
+ the inferior right away from here...
+ (linux_wait_1): ... to here, and adjust to check the thread's
+ last_resume_kind instead of the lwp's step or stop_expected flags.
+
+2010-05-02 Pedro Alves <pedro@codesourcery.com>
+
+ * README: Use consistent `GDB' and `GDBserver' spellings.
+
+2010-05-02 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
+ (linux_kill): Stop all lwps here. Don't delete the main lwp here.
+ (linux_detach_one_lwp): Assume the lwp is stopped.
+ (any_thread_of): Delete.
+ (linux_detach): Stop all lwps here. Don't blindly delete all
+ breakpoints.
+ (delete_lwp_callback): New.
+ (linux_mourn): Delete all lwps of the process that is gone.
+ (linux_wait_1): Don't delete the last lwp of the process here.
+ * mem-break.h (mark_breakpoints_out): Declare.
+ * mem-break.c (mark_breakpoints_out): New.
+ (free_all_breakpoints): Use it.
+ * server.c (handle_target_event): If the process is gone, mark
+ breakpoints out.
+ * thread-db.c (struct thread_db) <create_bp>: New field.
+ (thread_db_enable_reporting): Fix prototype. Store a thread event
+ breakpoint reference in the thread_db struct.
+ (thread_db_load_search): Clear the thread_db object.
+ (try_thread_db_load_1): Ditto.
+ (switch_to_process): New.
+ (disable_thread_event_reporting): Use it.
+ (remove_thread_event_breakpoints): New.
+ (thread_db_detach, thread_db_mourn): Use it.
+
+2010-05-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_enable_event_reporting): New.
+ (linux_wait_for_event_1, handle_extended_wait): Use it.
+
+2010-04-30 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_kill_one_lwp, linux_kill)
+ (linux_detach_one_lwp): Adjust to send_sigstop interface change.
+ (send_sigstop): Take an lwp_info as parameter instead. Queue a
+ SIGSTOP even if the LWP is stopped.
+ (send_sigstop_callback): New.
+ (stop_all_lwps): Use send_sigstop_callback instead.
+ (linux_resume_one_thread): Adjust.
+ (proceed_one_lwp): Still proceed an LWP that the client has
+ requested to stop, if we haven't reported it as stopped yet. Make
+ sure that LWPs the client want stopped, have a pending SIGSTOP.
+
+2010-04-26 Doug Evans <dje@google.com>
+
+ * server.c (handle_general_set): Make static.
+
+ * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
+ Print received char after testing for error/eof instead of before.
+ (input_interrupt): Tweak comment.
+
+2010-04-23 Doug Evans <dje@google.com>
+
+ * server.c (start_inferior): Print inferior argv if --debug.
+
+2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
+ * nto-x86-low.c: Include server.h
+
+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.
+ (i386-mmx.o): New.
+ (i386-mmx.c): Likewise.
+ (i386-mmx-linux.o): Likewise.
+ (i386-mmx-linux.c): Likewise.
+
+ * configure.srv (srv_i386_regobj): Add i386-mmx.o.
+ (srv_i386_linux_regobj): Add i386-mmx-linux.o.
+ (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
+ (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
+
+ * linux-x86-low.c (init_registers_i386_mmx_linux): New.
+ (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
+ and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
+
+2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * Makefile.in (clean): Updated.
+ (i386-avx.o): New.
+ (i386-avx.c): Likewise.
+ (i386-avx-linux.o): Likewise.
+ (i386-avx-linux.c): Likewise.
+ (amd64-avx.o): Likewise.
+ (amd64-avx.c): Likewise.
+ (amd64-avx-linux.o): Likewise.
+ (amd64-avx-linux.c): Likewise.
+
+ * configure.srv (srv_i386_regobj): Add i386-avx.o.
+ (srv_i386_linux_regobj): Add i386-avx-linux.o.
+ (srv_amd64_regobj): Add amd64-avx.o.
+ (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
+ (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
+ (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
+ (srv_i386_xmlfiles): Add i386/i386-avx.xml.
+ (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
+ (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
+ (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
+
+ * i387-fp.c: Include "i386-xstate.h".
+ (i387_xsave): New.
+ (i387_cache_to_xsave): Likewise.
+ (i387_xsave_to_cache): Likewise.
+ (x86_xcr0): Likewise.
+
+ * i387-fp.h (i387_cache_to_xsave): Likewise.
+ (i387_xsave_to_cache): Likewise.
+ (x86_xcr0): Likewise.
+
+ * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
+ * linux-crisv32-low.c (target_regsets): Likewise.
+ * linux-m68k-low.c (target_regsets): Likewise.
+ * linux-mips-low.c (target_regsets): Likewise.
+ * linux-ppc-low.c (target_regsets): Likewise.
+ * linux-s390-low.c (target_regsets): Likewise.
+ * linux-sh-low.c (target_regsets): Likewise.
+ * linux-sparc-low.c (target_regsets): Likewise.
+ * linux-xtensa-low.c (target_regsets): Likewise.
+
+ * linux-low.c: Include <sys/uio.h>.
+ (regsets_fetch_inferior_registers): Support nt_type.
+ (regsets_store_inferior_registers): Likewise.
+ (linux_process_qsupported): New.
+ (linux_target_ops): Add linux_process_qsupported.
+
+ * linux-low.h (regset_info): Add nt_type.
+ (linux_target_ops): Add process_qsupported.
+
+ * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
+ and <sys/uio.h>.
+ (init_registers_i386_avx_linux): New.
+ (init_registers_amd64_avx_linux): Likewise.
+ (xmltarget_i386_linux_no_xml): Likewise.
+ (xmltarget_amd64_linux_no_xml): Likewise.
+ (PTRACE_GETREGSET): Likewise.
+ (PTRACE_SETREGSET): Likewise.
+ (x86_fill_xstateregset): Likewise.
+ (x86_store_xstateregset): Likewise.
+ (use_xml): Likewise.
+ (x86_linux_update_xmltarget): Likewise.
+ (x86_linux_process_qsupported): Likewise.
+ (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
+ (x86_arch_setup): Don't call init_registers_amd64_linux nor
+ init_registers_i386_linux here. Call
+ x86_linux_update_xmltarget.
+ (the_low_target): Add x86_linux_process_qsupported.
+
+ * server.c (handle_query): Call target_process_qsupported.
+
+ * target.h (target_ops): Add process_qsupported.
+ (target_process_qsupported): New.
+
+2010-04-03 Pedro Alves <pedro@codesourcery.com>
+
+ * inferiors.c (add_thread): Set last_status kind to
+ TARGET_WAITKIND_IGNORE.
+ * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
+ fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
+ (linux_wait_1): Move `thread' local definition to block that uses
+ it. Don't NULL initialize `event_child'.
+ (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
+ Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
+ * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
+
+2010-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
+ an extended waitstatus, or by a watchpoint.
+ (cancel_breakpoints_callback): Don't cancel a breakpoint if the
+ thread was stepping or has been stopped by a watchpoint.
+
+2010-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
+ (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
+ of another, then delete the previous, and validate all
+ breakpoints.
+ (validate_inserted_breakpoint): New.
+ (delete_disabled_breakpoints): New.
+ (validate_breakpoints): New.
+ (check_mem_read): Validate breakpoints before trusting their
+ shadow. Delete disabled breakpoints.
+ (check_mem_write): Validate breakpoints before trusting they
+ should be inserted. Delete disabled breakpoints.
+ * mem-break.h (validate_breakpoints):
+ * server.c (handle_query): Validate breakpoints when we see a
+ qSymbol query.
+
+2010-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_1): Avoid setting need_step_over is
+ there's a GDB breakpoint at stop_pc. Always report a trap to GDB
+ if we could tell there's a GDB breakpoint at stop_pc.
+ (need_step_over_p): Don't do a step over if we find a GDB
+ breakpoint at the resume PC.
+
+ * mem-break.c (struct raw_breakpoint): New.
+ (enum bkpt_type): New type `gdb_breakpoint'.
+ (struct breakpoint): Delete the `PC', `old_data' and `inserted'
+ fields. New field `raw'.
+ (find_raw_breakpoint_at): New.
+ (set_raw_breakpoint_at): Handle refcounting. Create a raw
+ breakpoint instead.
+ (set_breakpoint_at): Adjust.
+ (delete_raw_breakpoint): New.
+ (release_breakpoint): New.
+ (delete_breakpoint): Rename to...
+ (delete_breakpoint_1): ... this. Add proc parameter. Use
+ release_breakpoint. Return ENOENT.
+ (delete_breakpoint): Reimplement.
+ (find_breakpoint_at): Delete.
+ (find_gdb_breakpoint_at): New.
+ (delete_breakpoint_at): Delete.
+ (set_gdb_breakpoint_at): New.
+ (delete_gdb_breakpoint_at): New.
+ (gdb_breakpoint_here): New.
+ (set_reinsert_breakpoint): Use release_breakpoint.
+ (uninsert_breakpoint): Rename to ...
+ (uninsert_raw_breakpoint): ... this.
+ (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
+ (reinsert_raw_breakpoint): Change parameter type to
+ raw_breakpoint.
+ (reinsert_breakpoints_at): Adjust to handle raw breakpoints
+ instead.
+ (check_breakpoints): Adjust. Use release_breakpoint.
+ (breakpoint_here): Rewrite using find_raw_breakpoint_at.
+ (breakpoint_inserted_here): Ditto.
+ (check_mem_read): Adjust to iterate over raw breakpoints instead.
+ Don't trust the breakpoint's shadow if it is not inserted.
+ (check_mem_write): Adjust to iterate over raw breakpoints instead.
+ (delete_all_breakpoints): Adjust.
+ (free_all_breakpoints): Mark all breakpoints as uninserted, and
+ use delete_breakpoint_1.
+
+ * mem-break.h (breakpoints_supported): Delete declaration.
+ (set_gdb_breakpoint_at): Declare.
+ (gdb_breakpoint_here): Declare.
+ (delete_breakpoint_at): Delete.
+ (delete_gdb_breakpoint_at): Declare.
+
+ * server.h (struct raw_breakpoint): Forward declare.
+ (struct process_info): New field `raw_breakpoints'.
+
+ * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
+ breakpoints.
+
+2010-03-24 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (status_pending_p_callback): Fix comment.
+ (linux_wait_for_event_1): Move most of the internal breakpoint
+ handling from here...
+ (linux_wait_1): ... to here.
+ (count_events_callback): New.
+ (select_singlestep_lwp_callback): New.
+ (select_event_lwp_callback): New.
+ (cancel_breakpoints_callback): New.
+ (select_event_lwp): New.
+ (linux_wait_1): Simplify internal breakpoint handling. Give equal
+ priority to all LWPs that have had events that should be reported
+ to the client. Cancel breakpoints when about to reporting the
+ event to the client, not while stopping lwps. No longer cancel
+ finished single-steps here.
+ (cancel_finished_single_step): Delete.
+ (cancel_finished_single_steps): Delete.
+
+2010-03-24 Pedro Alves <pedro@codesourcery.com>
+
+ * mem-break.c (enum bkpt_type): New.
+ (struct breakpoint): New field `type'.
+ (set_breakpoint_at): Change return type to struct breakpoint
+ pointer. Set type to `other_breakpoint' by default.
+ (delete_breakpoint): Rewrite, supporting more than one breakpoint
+ in the breakpoint list.
+ (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
+ (reinsert_breakpoint): Rename to ...
+ (reinsert_raw_breakpoint): ... this.
+ (reinsert_breakpoints_at): Adjust.
+ * mem-break.h (struct breakpoint): Declare.
+ (set_breakpoint_at): Change return type to struct breakpoint
+ pointer.
+
+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.
+ (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
+ breakpoints.
+
+2010-01-21 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
+
+2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-s390-low.c (s390_collect_ptrace_register)
+ (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
+
+2010-01-21 Doug Evans <dje@google.com>
+
+ * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
+ (PTRACE_ARG4_TYPE): New macro.
+ (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
+ (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
+ (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
+ (usr_store_inferior_registers): Ditto.
+ (linux_read_memory, linux_write_memory): Ditto.
+ (linux_test_for_tracefork): Ditto.
+
+ * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
+ Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
+
+2010-01-21 Pedro Alves <pedro@codesourcery.com>
+
+ * proc-service.c (ps_lgetregs): Don't refetch registers from the
+ target.
+
+2010-01-21 Pedro Alves <pedro@codesourcery.com>
+
+ * spu-low.c (spu_fetch_registers, spu_store_registers): Change
+ prototype to take a regcache. Adjust.
+
+2010-01-20 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.h (struct thread_info): Forward declare.
+ (struct regcache): New.
+ (new_register_cache): Adjust prototype.
+ (get_thread_regcache): Declare.
+ (free_register_cache): Adjust prototype.
+ (registers_to_string, registers_from_string): Ditto.
+ (supply_register, supply_register_by_name, collect_register)
+ (collect_register_as_string, collect_register_by_name): Ditto.
+ * regcache.c (struct inferior_regcache_data): Delete.
+ (get_regcache): Rename to ...
+ (get_thread_regcache): ... this. Adjust. Switch inferior before
+ fetching registers.
+ (regcache_invalidate_one): Adjust.
+ (regcache_invalidate): Fix prototype.
+ (new_register_cache): Return the new register cache.
+ (free_register_cache): Change prototype.
+ (realloc_register_cache): Adjust.
+ (registers_to_string): Change prototype to take a regcache. Adjust.
+ (registers_from_string): Ditto.
+ (register_data): Ditto.
+ (supply_register): Ditto.
+ (supply_register_by_name): Ditto.
+ (collect_register): Ditto.
+ (collect_register_as_string): Ditto.
+ (collect_register_by_name): Ditto.
+ * server.c (process_serial_event): Adjust.
+ * linux-low.h (regset_fill_func, regset_store_func): Change
+ prototype.
+ (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
+ Change prototype.
+ * linux-low.c (get_stop_pc): Adjust.
+ (check_removed_breakpoint): Adjust.
+ (linux_wait_for_event): Adjust.
+ (linux_resume_one_lwp): Adjust.
+ (fetch_register): Add regcache parameter. Adjust.
+ (usr_store_inferior_registers): Ditto.
+ (regsets_fetch_inferior_registers): Ditto.
+ (regsets_store_inferior_registers): Ditto.
+ (linux_fetch_registers, linux_store_registers): Ditto.
+ * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
+ regcache. Adjust.
+ (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
+ Ditto.
+ * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
+ prototype to take a regcache.
+ (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
+ * remote-utils.c (convert_ascii_to_int, outreg)
+ (prepare_resume_reply): Change prototype to take a regcache.
+ Adjust.
+ * target.h (struct target_ops) <fetch_registers, store_registers>:
+ Change prototype to take a regcache.
+ (fetch_inferior_registers, store_inferior_registers): Change
+ prototype to take a regcache. Adjust.
+ * proc-service.c (ps_lgetregs): Adjust.
+ * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
+ (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
+ (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
+ take a regcache. Adjust.
+ * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
+ (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
+ (arm_store_vfpregset, arm_get_pc, arm_set_pc):
+ (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
+ * linux-cris-low.c (cris_get_pc, cris_set_pc)
+ (cris_cannot_fetch_register):
+ (cris_breakpoint_at): Change prototype to take a regcache.
+ Adjust.
+ * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
+ cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
+ to take a regcache. Adjust.
+ (cris_breakpoint_at, cris_insert_point, cris_remove_point):
+ Adjust.
+ * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
+ take a regcache. Adjust.
+ * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
+ (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
+ (m68k_set_pc): Change prototype to take a regcache. Adjust.
+ * linux-mips-low.c (mips_get_pc):
+ (mips_set_pc): Change prototype to take a regcache. Adjust.
+ (mips_reinsert_addr): Adjust.
+ (mips_collect_register): Change prototype to take a regcache.
+ Adjust.
+ (mips_supply_register):
+ (mips_collect_register_32bit, mips_supply_register_32bit)
+ (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
+ (mips_store_fpregset): Ditto.
+ * linux-ppc-low.c (ppc_supply_ptrace_register)
+ (ppc_supply_ptrace_register): Ditto.
+ (parse_spufs_run): Adjust.
+ (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
+ (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
+ (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
+ take a regcache. Adjust.
+ * linux-s390-low.c (s390_collect_ptrace_register)
+ (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
+ (s390_set_pc): Change prototype to take a regcache. Adjust.
+ (s390_arch_setup): Adjust.
+ * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
+ (sh_fill_gregset): Change prototype to take a regcache. Adjust.
+ * linux-sparc-low.c (sparc_fill_gregset_to_stack)
+ (sparc_fill_gregset, sparc_store_gregset_from_stack)
+ (sparc_store_gregset, sparc_get_pc): Change prototype to take a
+ regcache. Adjust.
+ (sparc_breakpoint_at): Adjust.
+ * linux-xtensa-low.c (xtensa_fill_gregset):
+ (xtensa_store_gregset):
+ (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
+ (xtensa_set_pc): Change prototype to take a regcache. Adjust.
+ * nto-low.c (nto_fetch_registers, nto_store_registers): Change
+ prototype to take a regcache. Adjust.
+ * win32-arm-low.c (arm_fetch_inferior_register)
+ (arm_store_inferior_register): Change prototype to take a
+ regcache. Adjust.
+ * win32-i386-low.c (i386_fetch_inferior_register)
+ (i386_store_inferior_register): Change prototype to take a
+ regcache. Adjust.
+ * win32-low.c (child_fetch_inferior_registers)
+ (child_store_inferior_registers): Change prototype to take a
+ regcache. Adjust.
+ (win32_wait): Adjust.
+ (win32_fetch_inferior_registers): Change prototype to take a
+ regcache. Adjust.
+ (win32_store_inferior_registers): Adjust.
+ * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
+ store_inferior_register>: Change prototype to take a regcache.
+
+2010-01-20 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
+ #ifdef.
+ (linux_wait_for_event1, linux_init_signals): Ditto.
+ (W_STOPCODE): Provide definition if missing.
+
+2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
+
+ * linux-low.c (linux_core_of_thread): New.
+ (compare_ints, show_process, list_threads): New.
+ (linux_qxfer_osdata): Report threads and cores.
+ (linux_target_op): Register linux_core_of_thread.
+ * remote-utils.c (prepare_resume_reply): Report the core.
+ (buffer_xml_printf): Support %d specifier.
+ * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
+ New.
+ (handle_query): Handle qXfer:threads. Announce availability
+ thereof.
+ * target.h (struct target_ops): New field core_of_thread.
+
+2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * Makefile.in (clean): Remove new generated files.
+ (reg-s390.o, reg-s390.c): Remove rules.
+ (reg-s390x.o, reg-s390x.c): Likewise.
+ (s390-linux32.o, s390-linux32.c): Add rules.
+ (s390-linux64.o, s390-linux64.c): Likewise.
+ (s390x-linux64.o, s390x-linux64.c): Likewise.
+ * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
+ * linux-s390-low.c: Include <elf.h>.
+ (HWCAP_S390_HIGH_GPRS): Define if undefined.
+ (init_registers_s390): Remove prototype.
+ (init_registers_s390x): Likewise.
+ (init_registers_s390_linux32): Add prototype.
+ (init_registers_s390_linux64): Likewise.
+ (init_registers_s390x_linux64): Likewise.
+ (s390_num_regs_3264): New define.
+ (s390_regmap_3264): New global variable.
+ (s390_cannot_fetch_register): Remove obsolete check.
+ (s390_cannot_store_register): Likewise.
+ (s390_collect_ptrace_register): Handle upper/lower register halves.
+ (s390_supply_ptrace_register): Likewise.
+ (s390_fill_gregset): Update to register number changes.
+ (s390_get_hwcap): New routine.
+ (s390_arch_setup): Detect 32-bit process running on 64-bit system.
+ Install appropriate regmap and register set.
+
+2010-01-01 Joel Brobecker <brobecker@adacore.com>
+
+ * server.c (gdbserver_version): Update copyright year to 2010.
+ * gdbreplay.c (gdbreplay_version): Likewise.
+
+2009-12-28 Doug Evans <dje@google.com>
+
+ * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
+ elf/external.h. Include <elf.h> instead but only if necessary.
+
+2009-12-28 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_remove_process): Remove `detaching'
+ parameter. Don't release/detach from thread_db here.
+ (linux_kill): Release/detach from thread_db here, ...
+ (linux_detach): ... and here, before actually detaching.
+ (linux_wait_1): ... and here, when a process exits.
+ * thread-db.c (any_thread_of): New.
+ (thread_db_free): Switch the current inferior to a thread of the
+ passed in process.
+
+2009-12-21 Doug Evans <dje@google.com>
+
+ * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
+
+ * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
+ Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
+ warning ifndef __NR_tkill. Move setting of errno there too.
+ Delete unnecessary resetting of errno after syscall.
+ Minor comment changes to match gdb/linux-nat.c:kill_lwp.
+
+ * configure.ac: Check for dladdr.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
+ (try_thread_db_load): Update.
+
+ * linux-low.c (my_waitpid): Delete unnecessary prototype.
+
+2009-12-18 Doug Evans <dje@google.com>
+
+ * event-loop.c: Include unistd.h if it exists.
+
+ * linux-low.c (my_waitpid): Move definition away from being in
+ between linux_tracefork_child/linux_test_for_tracefork.
+
+ * gdb_proc_service.h (psaddr_t): Fix type.
+ * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
+ signature to match glibc.
+
+2009-12-16 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_read_memory): Fix argument to read.
+
+2009-11-26 Pedro Alves <pedro@codesourcery.com>
+
+ * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
+ events, don't leave current_inferior pointing at null.
+
+2009-11-26 Pedro Alves <pedro@codesourcery.com>
+
+ * win32-low.c (LOG): Delete.
+ (OUTMSG): Output to stderr.
+ (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
+ on compile time LOG macro.
+ (win32_wait): Fix debug output.
+
+2009-11-26 Pedro Alves <pedro@codesourcery.com>
+
+ * win32-low.c (win32_add_one_solib): If the dll name is
+ "ntdll.dll", prepend the system directory to the dll path.
+
+2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
+
+2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
+ Vladimir Prus <vladimir@codesourcery.com>
+
+ * Makefile.in (reg-cf.o, reg-cf.c): New targets.
+ * configure.ac: Check for __mcoldfire__ and set
+ gdb_cv_m68k_is_coldfire.
+ * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
+ reg-cf.o and reg-m68k.o.
+ * configure: Regenerated.
+
+2009-11-16 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_remove_process): Add `detaching' parameter.
+ Pass it to thread_db_free.
+ (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
+ proper `detaching' argument to linux_remove_process.
+ * linux-low.h (thread_db_free): Add `detaching' parameter.
+ * thread-db.c (thread_db_init): Pass false as `detaching' argument
+ to thread_db_free.
+ (thread_db_free): Add `detaching' parameter. Only
+ call td_ta_clear_event if detaching from process.
+
+2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * thread-db.c (thread_db_free): Fix typo.
+
+2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/10838
+ * thread-db.c (thread_db_free): Call td_ta_clear_event.
+
+2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
+
+ * configure.ac (i[34567]86-*): Check if we're targetting x86-64
+ with an i686 compiler.
+ * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
+ needed.
+ * configure: Rebuilt.
+
+2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
+
+ PR gdb/10783
+
+ * server.c (handle_search_memory_1): Correct read_addr initialization
+ in loop for searching subsequent chunks.
+
+2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * configure.ac: New --with-libthread-db option.
+ * thread-db.c: Allow direct dependence on libthread_db.
+ (thread_db_free): Adjust.
+ * config.in: Regenerate.
+ * configure: Likewise.
+
+2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/10757
+ * thread-db.c (attach_thread): New function.
+ (maybe_attach_thread): Return success/failure.
+ (find_new_threads_callback): Adjust.
+ (thread_db_find_new_threads): Loop until no new threads.
+
+2009-10-13 Pedro Alves <pedro@codesourcery.com>
+
+ * proc-service.c (ps_lgetregs): Formatting.
+
+2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
+ * configure.ac: Adjust.
+ * linux-low.h (struct process_info_private): Move members to struct
+ thread_db.
+ (thread_db_free, thread_db_handle_monitor_command): New prototype.
+ * linux-low.c (linux_remove_process): Adjust.
+ (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
+ * server.c (handle_query): Move code ...
+ (handle_monitor_command): ... here. New function.
+ * target.h (struct target_ops): New member.
+ * thread-db.c (struct thread_db): New.
+ (libthread_db_search_path): New variable.
+ (thread_db_create_event, thread_db_enable_reporting)
+ (find_one_thread, maybe_attach_thread, find_new_threads_callback)
+ (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
+ (try_thread_db_load_1, dladdr_to_soname): New functions.
+ (try_thread_db_load, thread_db_load_search): New functions.
+ (thread_db_init): Search for libthread_db.
+ (thread_db_free): New function.
+ (thread_db_handle_monitor_command): Likewise.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-low.c (spu_kill): Wait for inferior to terminate.
+ Call clear_inferiors.
+ (spu_detach): Call clear_inferiors.
+
+2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * aclocal.m4: Regenerate.
+ * config.in: Likewise.
+ * configure: Likewise.
+
+2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
+ (parse_spufs_run): New function.
+ (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
+ (ppc_breakpoint_at): Handle SPU breakpoints.
+
+2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
+ (SPUFS_MAGIC): Define.
+ (spu_enumerate_spu_ids): New function.
+ (linux_qxfer_spu): New function.
+ (linux_target_ops): Install linux_qxfer_spu.
+
+2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
+ and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
+ and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
+ * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
+ (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
+ (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
+ * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
+ (init_registers_powerpc_cell32l): Add prototype.
+ (init_registers_powerpc_cell64l): Likewise.
+ (ppc_arch_setup): Detect Cell/B.E. architecture.
+
+2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * Makefile.in (datarootdir): New variable.
+
+2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_write_memory): Update debugging output.
+ * Makefile.in (clean): Add new descriptions.
+ (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
+ (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
+ * configure.srv: Add new files for arm*-*-linux*.
+ * linux-arm-low.c: Add new declarations.
+ (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
+ (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
+ (HWCAP_VFPv3D16): New.
+ (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
+ instead of __IWMMXT__.
+ (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
+ (arm_arch_setup): New.
+ (target_regsets): Remove #ifdef. Add VFP regset.
+ (the_low_target): Use arm_arch_setup.
+
+2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
+ the main thread again.
+
+2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
+
+ Adding Neutrino gdbserver.
+ * configure: Regenerated.
+ * configure.ac: Add case for srv_qnx and set LIBS accordingly.
+ * configure.srv (i[34567]86-*-nto*): New target.
+ * nto-low.c, nto-low.h, nto-x86-low.c: New files.
+ * remote-utils.c [__QNX__]: Include sys/iomgr.h
+ (nto_comctrl) [__QNX__]: New function.
+ (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
+
+2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
+
+ * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
+ srv_tgtobj.
+
+2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * win32-i386-low.c (i386_get_thread_context): Handle systems that
+ don't support CONTEXT_EXTENDED_REGISTERS.
+ (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
+ (the_low_target): Install them.
+ * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
+ failing with ERROR_PIPE_NOT_CONNECTED.
+
+2009-06-30 Doug Evans <dje@google.com>
+ Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Add h/w watchpoint support to x86-linux, win32-i386.
+ * Makefile.in (SFILES): Add i386-low.c
+ (i386_low_h): Define.
+ (i386-low.o): Add dependencies.
+ (linux-x86-low.o): Add i386-low.h dependency.
+ (win32-i386-low.o): Ditto.
+ * i386-low.c: New file.
+ * i386-low.h: New file.
+ * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
+ (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
+ * linux-low.c (linux_add_process): Initialize arch_private.
+ (linux_remove_process): Free arch_private.
+ (add_lwp): Initialize arch_private.
+ (delete_lwp): Free arch_private.
+ (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
+ provided.
+ * linux-low.h (process_info_private): New member arch_private.
+ (lwp_info): New member arch_private.
+ (linux_target_ops): New members new_process, new_thread,
+ prepare_to_resume.
+ (ptid_of): New macro.
+ * linux-x86-low.c: Include stddef.h, i386-low.h.
+ (arch_process_info): New struct.
+ (arch_lwp_info): New struct.
+ (x86_linux_dr_get, x86_linux_dr_set): New functions.
+ (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
+ (i386_dr_low_get_status): New function.
+ (x86_insert_point, x86_remove_point): New functions.
+ (x86_stopped_by_watchpoint): New function.
+ (x86_stopped_data_address): New function.
+ (x86_linux_new_process, x86_linux_new_thread): New functions.
+ (x86_linux_prepare_to_resume): New function.
+ (the_low_target): Add entries for insert_point, remove_point,
+ stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
+ prepare_to_resume.
+ * server.c (debug_hw_points): New global.
+ (monitor_show_help): Document set debug-hw-points.
+ (handle_query): Process "set debug-hw-points".
+ * server.h (debug_hw_points): Declare.
+ (paddress): Declare.
+ * utils.c (NUMCELLS, CELLSIZE): New macros.
+ (get_sell, xsnprintf, paddress): New functions.
+ * win32-arm-low.c (the_low_target): Add entries for insert_point,
+ remove_point, stopped_by_watchpoint, stopped_data_address.
+ * win32-i386-low.c: Include i386-low.h.
+ (debug_reg_state): Replaces dr.
+ (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
+ (i386_dr_low_get_status): New function.
+ (i386_insert_point, i386_remove_point): New functions.
+ (i386_stopped_by_watchpoint): New function.
+ (i386_stopped_data_address): New function.
+ (i386_initial_stuff): Update.
+ (get_thread_context,set_thread_context,i386_thread_added): Update.
+ (the_low_target): Add entries for insert_point,
+ remove_point, stopped_by_watchpoint, stopped_data_address.
+ * win32-low.c (win32_insert_watchpoint): New function.
+ (win32_remove_watchpoint): New function.
+ (win32_stopped_by_watchpoint): New function.
+ (win32_stopped_data_address): New function.
+ (win32_target_ops): Add entries for insert_watchpoint,
+ remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
+ * win32-low.h (win32_target_ops): New members insert_point,
+ remove_point, stopped_by_watchpoint, stopped_data_address.
+
+2009-06-25 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (process_serial_event): Re-return unsupported, not
+ error, if the type isn't recognized. Re-allow supporting only
+ insert or remove packets. Also call require_running for
+ breakpoints. Add missing break statement to default case. Tidy.
+ * target.h (struct target_ops): Rename insert_watchpoint to
+ insert_point, and remove_watchpoint to remove_point.
+
+ * linux-low.h (struct linux_target_ops): Likewise.
+ * linux-low.c (linux_insert_watchpoint): Rename to ...
+ (linux_insert_point): ... this. Adjust.
+ (linux_remove_watchpoint): Rename to ...
+ (linux_remove_point): ... this. Adjust.
+ (linux_target_ops): Adjust.
+ * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
+ (cris_insert_point): ... this.
+ (cris_remove_watchpoint): Rename to ...
+ (cris_remove_point): ... this.
+ (the_low_target): Adjust.
+
+2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * server.c (handle_v_kill): Pass signal_pid to
+ kill_inferior if multi_process is zero.
+
+2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * server.c (process_serial_event): Add support for Z0 and Z1 packet.
+ * target.h (target_ops): Comment for *_watchpoint to make it clear
+ the functions can get types '0' and '1'.
+
+2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
+ * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
+ * regcache.c (get_regcache): Likewise.
+ * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
+ * win32-low.c (child_fetch_inferior_registers): Remove check for
+ regno 0.
+
+2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct target_ops) <supports_multi_process>: New
+ callback.
+ (target_supports_multi_process): New.
+ * server.c (handle_query): Even if GDB reports support, only
+ enable multi-process if the target also supports it. Report
+ multi-process support only if the target backend supports it.
+ * linux-low.c (linux_supports_multi_process): New function.
+ (linux_target_ops): Install it as target_supports_multi_process
+ callback.
+
+2009-05-24 Doug Evans <dje@google.com>
+
+ Global renaming of find_thread_pid to find_thread_ptid.
+ * server.h (find_thread_ptid): Renamed from find_thread_pid.
+ * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
+ All callers updated.
+
+ * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
+ to resume the newly created thread, don't call ptrace (PTRACE_CONT)
+ directly.
+
+ * linux-low.c (get_stop_pc): Print pc if debug_threads.
+ (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
+ (linux_resume_one_lwp): Ditto.
+
+2009-05-23 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_resume_one_lwp): Change type of first arg
+ from struct inferior_list_entry * to struct lwp_info *.
+ All callers updated.
+
+2009-05-13 Doug Evans <dje@google.com>
+
+ * linux-x86-low.c: Don't include assert.h.
+ (x86_siginfo_fixup): Use fatal, not assert.
+ (x86_arch_setup): Fix comment.
+
+2009-05-12 Doug Evans <dje@google.com>
+
+ Biarch support for i386/amd64 gdbserver.
+ * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
+ Add linux-x86-low.c.
+ (linux-i386-low.o, linux-x86-64-low.o): Delete.
+ (linux-x86-low.o): Add.
+ * linux-x86-64-low.c: Delete.
+ * linux-i386-low.c: Delete.
+ * linux-x86-low.c: New file.
+ * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
+ linux-x86-low.o.
+ (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
+ linux-x86-low.o.
+ (x86_64-linux srv_regobj): Add reg-i386-linux.o.
+ * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
+ (linux_child_pid_to_exec_file): New function.
+ (elf_64_header_p, elf_64_file_p): New functions.
+ (siginfo_fixup): New function.
+ (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
+ give target a chance to convert layout.
+ * linux-low.h (linux_target_ops): New member siginfo_fixup.
+ (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
+
+2009-05-07 Doug Evans <dje@google.com>
+
+ * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
+ (regsets_store_inferior_registers): Ditto.
+
+2009-05-06 Pedro Alves <pedro@codesourcery.com>
+
+ PR server/10048
+
+ * linux-low.c (must_set_ptrace_flags): Delete.
+ (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
+ of the global.
+ (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
+ `lwp->must_set_ptrace_flags' instead.
+ (linux_wait_for_event_1): Set ptrace options here.
+ (linux_wait_1): ... not here.
+
+2009-04-30 Doug Evans <dje@google.com>
+
+ * inferiors.c (started_inferior_callback): New function.
+ (attached_inferior_callback): New function.
+ (have_started_inferiors_p, have_attached_inferiors_p): New functions.
+ * server.c (print_started_pid, print_attached_pid): New functions.
+ (detach_or_kill_for_exit): New function.
+ (main): Call it instead of for_each_inferior (kill_inferior_callback).
+ * server.h (have_started_inferiors_p): Declare.
+ (have_attached_inferiors_p): Declare.
+
+ * inferiors.c (remove_process): Fix memory leak, free process.
+ * linux-low.c (linux_remove_process): New function.
+ (linux_kill): Call it instead of remove_process.
+ (linux_detach, linux_wait_1): Ditto.
+
+2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
+
+ * configure.srv: Add x86 Windows CE target.
+
+2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * inferiors.c (get_thread_process): Make global.
+ * server.h (get_thread_process): Add prototype.
+ * thread-db.c (find_one_thread): Use get_thread_process
+ instead of current_process.
+ (thread_db_get_tls_address): Do not crash if called when
+ thread layer is not yet initialized.
+
+2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * remote-utils.c (prepare_resume_reply): Null-terminate packet.
+ * spu-low.c (current_tid): Rename to ...
+ (current_ptid): ... this.
+ (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
+ spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
+ ptid_get_lwp (current_ptid) instead of current_tid.
+ (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
+ instead of current_tid. Use find_process_pid to verify pid
+ argument is valid. Pass proper argument to remove_process.
+ (spu_thread_alive): Compare current_ptid instead of current_tid.
+ (spu_resume): Likewise.
+
+2009-04-02 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (usr_store_inferior_registers): Declare local `pid'
+ variable.
+
+2009-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ Implement the multiprocess extensions, and add linux multiprocess
+ support.
+
+ * server.h (ULONGEST): Declare.
+ (struct ptid, ptid_t): New.
+ (minus_one_ptid, null_ptid): Declare.
+ (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
+ (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
+ (struct inferior_list_entry): Change `id' type from unsigned from
+ to ptid_t.
+ (struct sym_cache, struct breakpoint, struct
+ process_info_private): Forward declare.
+ (struct process_info): Declare.
+ (current_process): Declare.
+ (all_processes): Declare.
+ (initialize_inferiors): Declare.
+ (add_thread): Adjust to use ptid_t.
+ (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
+ (add_process, remove_process, find_thread_pid): Declare.
+ (find_inferior_id): Adjust to use ptid_t.
+ (cont_thread, general_thread, step_thread): Change type to ptid_t.
+ (multi_process): Declare.
+ (push_event): Adjust to use ptid_t.
+ (read_ptid, write_ptid): Declare.
+ (prepare_resume_reply): Adjust to use ptid_t.
+ (clear_symbol_cache): Declare.
+ * inferiors.c (all_processes): New.
+ (null_ptid, minus_one_ptid): New.
+ (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
+ (ptid_get_tid, ptid_equal, ptid_is_pid): New.
+ (add_thread): Change unsigned long to ptid. Remove gdb_id
+ parameter. Adjust.
+ (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
+ (gdb_id_to_thread): Rename to ...
+ (find_thread_pid): ... this. Change unsigned long to ptid.
+ (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
+ (loaded_dll, pull_pid_from_list): Adjust.
+ (add_process, remove_process, find_process_pid)
+ (get_thread_process, current_process, initialize_inferiors): New.
+ * target.h (struct thread_resume) <thread>: Change type to ptid_t.
+ (struct target_waitstatus) <related_pid>: Ditto.
+ (struct target_ops) <kill, detach>: Add `pid' argument. Change
+ return type to int.
+ (struct target_ops) <join>: Add `pid' argument.
+ (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
+ (struct target_ops) <wait>: Add `ptid' field. Change return type
+ to ptid.
+ (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
+ (mywait): Add `ptid' argument. Change return type to ptid_t.
+ (target_pid_to_str): Declare.
+ * target.c (set_desired_inferior): Adjust to use ptids.
+ (mywait): Add new `ptid' argument. Adjust.
+ (target_pid_to_str): New.
+ * mem-break.h (free_all_breakpoints): Declare.
+ * mem-break.c (breakpoints): Delelete.
+ (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
+ (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
+ to use per-process breakpoint list.
+ (free_all_breakpoints): New.
+ * remote-utils.c (struct sym_cache) <name>: Drop `const'.
+ (symbol_cache, all_symbols_looked_up): Delete.
+ (hexchars): New.
+ (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
+ read_ptid): New.
+ (prepare_resume_reply): Change ptid argument's type from unsigned
+ long to ptid_t. Adjust. Implement W;process and X;process.
+ (free_sym_cache, clear_symbol_cache): New.
+ (look_up_one_symbol): Adjust to per-process symbol cache. *
+ * server.c (cont_thread, general_thread, step_thread): Change type
+ to ptid_t.
+ (attached): Delete.
+ (multi_process): New.
+ (last_ptid): Change type to ptid_t.
+ (struct vstop_notif) <ptid>: Change type to ptid_t.
+ (queue_stop_reply, push_event): Change `ptid' argument's type to
+ ptid_t.
+ (discard_queued_stop_replies): Add `pid' argument.
+ (start_inferior): Adjust to use ptids. Adjust to mywait interface
+ changes. Don't reference the `attached' global.
+ (attach_inferior): Adjust to mywait interface changes.
+ (handle_query): Adjust to use ptids. Parse GDB's qSupported
+ features. Handle and report "multiprocess+". Handle
+ "qAttached:PID".
+ (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
+ changes.
+ (handle_v_kill): New.
+ (handle_v_stopped): Adjust to use target_pid_to_str.
+ (handle_v_requests): Allow multiple attaches and runs when
+ multiprocess extensions are in effect. Handle "vKill".
+ (myresume): Adjust to use ptids.
+ (queue_stop_reply_callback): Add `arg' parameter. Handle it.
+ (handle_status): Adjust to discard_queued_stop_replies interface
+ change.
+ (first_thread_of, kill_inferior_callback)
+ (detach_or_kill_inferior_callback, join_inferiors_callback): New.
+ (main): Call initialize_inferiors. Adjust to use ptids, killing
+ and detaching from all inferiors. Handle multiprocess packet
+ variants.
+ * linux-low.h: Include gdb_proc_service.h.
+ (struct process_info_private): New.
+ (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
+ <lwpid_of>: Use ptid_get_lwp.
+ (get_lwp_thread): Adjust.
+ (struct lwp_info): Add `dead' member.
+ (find_lwp_pid): Declare.
+ * linux-low.c (thread_db_active): Delete.
+ (new_inferior): Adjust comment.
+ (inferior_pid): Delete.
+ (linux_add_process): New.
+ (handle_extended_wait): Adjust.
+ (add_lwp): Change unsigned long to ptid.
+ (linux_create_inferior): Add process to processes table. Adjust
+ to use ptids. Don't set new_inferior here.
+ (linux_attach_lwp): Rename to ...
+ (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
+ it. Adjust to use ptids.
+ (linux_attach_lwp): New.
+ (linux_attach): Add process to processes table. Don't set
+ new_inferior here.
+ (struct counter): New.
+ (second_thread_of_pid_p, last_thread_of_process_p): New.
+ (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
+ multiple processes.
+ (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
+ processes. Remove process from process table.
+ (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
+ to multiple processes.
+ (any_thread_of): New.
+ (linux_detach): Add `pid' argument, and handle it. Remove process
+ from processes table.
+ (linux_join): Add `pid' argument. Handle it.
+ (linux_thread_alive): Change unsighed long argument to ptid_t.
+ Consider dead lwps as not being alive.
+ (status_pending_p): Rename `dummy' argument to `arg'. Filter out
+ threads we're not interested in.
+ (same_lwp, find_lwp_pid): New.
+ (linux_wait_for_lwp): Change `pid' argument's type from int to
+ ptid_t. Adjust.
+ (linux_wait_for_event): Rename to ...
+ (linux_wait_for_event_1): ... this. Change `pid' argument's type
+ from int to ptid_t. Adjust.
+ (linux_wait_for_event): New.
+ (linux_wait_1): Add `ptid' argument. Change return type to
+ ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
+ that exit from the process table.
+ (linux_wait): Add `ptid' argument. Change return type to ptid_t.
+ Adjust.
+ (mark_lwp_dead): New.
+ (wait_for_sigstop): Adjust to use ptids. If a process exits while
+ stopping all threads, mark its main lwp as dead.
+ (linux_set_resume_request, linux_resume_one_thread): Adjust to use
+ ptids.
+ (fetch_register, usr_store_inferior_registers)
+ (regsets_fetch_inferior_registers)
+ (regsets_store_inferior_registers, linux_read_memory)
+ (linux_write_memory): Inline `inferior_pid'.
+ (linux_look_up_symbols): Adjust to use per-process
+ `thread_db_active'.
+ (linux_request_interrupt): Adjust to use ptids.
+ (linux_read_auxv): Inline `inferior_pid'.
+ (initialize_low): Don't reference thread_db_active.
+ * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
+ * proc-service.c (ps_lgetregs): Use find_lwp_pid.
+ (ps_getpid): Return the pid of the current inferior.
+ * thread-db.c (proc_handle, thread_agent): Delete.
+ (thread_db_create_event, thread_db_enable_reporting): Adjust to
+ per-process data.
+ (find_one_thread): Change argument type to ptid_t. Adjust to
+ per-process data.
+ (maybe_attach_thread): Adjust to per-process data and ptids.
+ (thread_db_find_new_threads): Ditto.
+ (thread_db_init): Ditto.
+ * spu-low.c (spu_create_inferior, spu_attach): Add process to
+ processes table. Adjust to use ptids.
+ (spu_kill, spu_detach): Adjust interface. Remove process from
+ processes table.
+ (spu_join, spu_thread_alive): Adjust interface.
+ (spu_wait): Adjust interface. Remove process from processes
+ table. Adjust to use ptids.
+ * win32-low.c (current_inferior_tid): Delete.
+ (current_inferior_ptid): New.
+ (debug_event_ptid): New.
+ (thread_rec): Take a ptid. Adjust.
+ (child_add_thread): Add `pid' argument. Adjust to use ptids.
+ (child_delete_thread): Ditto.
+ (do_initial_child_stuff): Add `attached' argument. Add process to
+ processes table.
+ (child_fetch_inferior_registers, child_store_inferior_registers):
+ Adjust.
+ (win32_create_inferior): Pass 0 to do_initial_child_stuff.
+ (win32_attach): Pass 1 to do_initial_child_stuff.
+ (win32_kill): Adjust interface. Remove process from processes
+ table.
+ (win32_detach): Ditto.
+ (win32_join): Adjust interface.
+ (win32_thread_alive): Take a ptid.
+ (win32_resume): Adjust to use ptids.
+ (get_child_debug_event): Ditto.
+ (win32_wait): Adjust interface. Remove exiting process from
+ processes table.
+
+2009-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ Non-stop mode support.
+
+ * server.h (non_stop): Declare.
+ (gdb_client_data, handler_func): Declare.
+ (delete_file_handler, add_file_handler, start_event_loop):
+ Declare.
+ (handle_serial_event, handle_target_event, push_event)
+ (putpkt_notif): Declare.
+ * target.h (enum resume_kind): New.
+ (struct thread_resume): Replace `step' field by `kind' field.
+ (TARGET_WNOHANG): Define.
+ (struct target_ops) <wait>: Add `options' argument.
+ <supports_non_stop, async, start_non_stop>: New fields.
+ (target_supports_non_stop, target_async): New.
+ (start_non_stop): Declare.
+ (mywait): Add `options' argument.
+ * target.c (mywait): Add `options' argument. Print child exit
+ notifications here.
+ (start_non_stop): New.
+ * server.c (non_stop, own_buf, mem_buf): New globals.
+ (struct vstop_notif): New.
+ (notif_queue): New global.
+ (queue_stop_reply, push_event, discard_queued_stop_replies)
+ (send_next_stop_reply): New.
+ (start_inferior): Adjust to use resume_kind. Adjust to mywait
+ interface changes.
+ (attach_inferior): In non-stop mode, don't wait for the target
+ here.
+ (handle_general_set): Handle QNonStop.
+ (handle_query): When handling qC, return the current general
+ thread, instead of the first thread of the list.
+ (handle_query): If the backend supports non-stop mode, include
+ QNonStop+ in the qSupported query response.
+ (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
+ and non-stop mode.
+ (handle_v_attach, handle_v_run): Handle non-stop mode.
+ (handle_v_stopped): New.
+ (handle_v_requests): Report support for vCont;t. Handle vStopped.
+ (myresume): Adjust to use resume_kind. Handle non-stop.
+ (queue_stop_reply_callback): New.
+ (handle_status): Handle non-stop mode.
+ (main): Clear non_stop flag on reconnection. Use the event-loop.
+ Refactor serial protocol handling from here ...
+ (process_serial_event): ... to this new function. When GDB
+ selects any thread, select one here. In non-stop mode, wait until
+ GDB acks all pending events before exiting.
+ (handle_serial_event, handle_target_event): New.
+ * remote-utils.c (remote_open): Install remote_desc in the event
+ loop.
+ (remote_close): Remove remote_desc from the event loop.
+ (putpkt_binary): Rename to...
+ (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
+ (putpkt_binary): New as wrapper around putpkt_binary_1.
+ (putpkt_notif): New.
+ (prepare_resume_reply): In non-stop mode, don't change the
+ general_thread.
+ * event-loop.c: New.
+ * Makefile.in (OBJ): Add event-loop.o.
+ (event-loop.o): New rule.
+
+ * linux-low.h (pid_of): Moved here.
+ (lwpid_of): New.
+ (get_lwp_thread): Use lwpid_of.
+ (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
+ * linux-low.c (pid_of): Delete.
+ (inferior_pid): Use lwpid_of.
+ (linux_event_pipe): New.
+ (target_is_async_p): New.
+ (delete_lwp): New.
+ (handle_extended_wait): Use lwpid_of.
+ (add_lwp): Don't set lwpid field.
+ (linux_attach_lwp): Adjust debug output. Use lwpid_of.
+ (linux_kill_one_lwp): If killing a running lwp, stop it first.
+ Use lwpid_of. Adjust to linux_wait_for_event interface changes.
+ (linux_detach_one_lwp): If detaching from a running lwp, stop it
+ first. Adjust to linux_wait_for_event interface changes. Use
+ lwpid_of.
+ (linux_detach): Don't delete the main lwp here.
+ (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
+ (status_pending_p): Don't consider explicitly suspended lwps.
+ (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
+ pointer. Add OPTIONS argument. Change return type to int. Use
+ my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
+ (linux_wait_for_event): Take an integer pid instead of a lwp_info
+ pointer. Add status pointer argument. Return a pid instead of a
+ status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
+ changes. In non-stop mode, don't switch to a random thread.
+ (linux_wait): Rename to...
+ (linux_wait_1): ... this. Add target_options argument, and handle
+ it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
+ don't handle the continue thread. Handle TARGET_WNOHANG. Merge
+ clean exit and signal exit code. Don't stop all threads in
+ non-stop mode. In all-stop mode, only stop all threads when
+ reporting a stop to GDB. Handle explicit thread stop requests.
+ (async_file_flush, async_file_mark): New.
+ (linux_wait): New.
+ (send_sigstop): Use lwpid_of.
+ (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
+ interface changes. In non-stop mode, don't switch to a random
+ thread.
+ (linux_resume_one_lwp): Use lwpid_of.
+ (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
+ (linux_resume_one_thread): ... this. Handle resume_stop. In
+ non-stop mode, don't look for pending flag in all threads.
+ (resume_status_pending_p): Don't consider explicitly suspended
+ threads.
+ (my_waitpid): Reimplement. Emulate __WALL.
+ (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
+ Use lwpid_of.
+ (sigchld_handler, linux_supports_non_stop, linux_async)
+ (linux_start_non_stop): New.
+ (linux_target_ops): Register linux_supports_non_stop, linux_async
+ and linux_start_non_stop.
+ (initialize_low): Install SIGCHLD handler.
+ * thread-db.c (thread_db_create_event, find_one_thread)
+ (thread_db_get_tls_address): Use lwpid_of.
+ * win32-low.c (win32_detach): Adjust to use resume_kind.
+ (win32_wait): Add `options' argument.
+ * spu-low.c (spu_resume): Adjust to use resume_kind.
+ (spu_wait): Add `options' argument.
+
+2009-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ Decouple target code from remote protocol.
+
+ * target.h (enum target_waitkind): New.
+ (struct target_waitstatus): New.
+ (struct target_ops) <wait>: Return an unsigned long. Take a
+ target_waitstatus pointer instead of a char pointer.
+ (mywait): Likewise.
+ * target.c (mywait): Change prototype to return an unsigned long.
+ Take a target_waitstatus pointer instead of a char pointer. Adjust.
+ * server.h (thread_from_wait, old_thread_from_wait): Delete
+ declarations.
+ (prepare_resume_reply): Change prototype to take a
+ target_waitstatus.
+ * server.c (thread_from_wait, old_thread_from_wait): Delete.
+ (last_status, last_ptid): New.
+ (start_inferior): Remove "statusptr" argument. Adjust. Return a
+ pid instead of a signal.
+ (attach_inferior): Remove "status" and "signal" parameters.
+ Adjust.
+ (handle_query): For qGetTLSAddr, parse the thread id with strtol,
+ not as an address.
+ (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
+ (handle_v_requests, myresume): Remove "status" and "signal"
+ parameters. Adjust.
+ (handle_status): New.
+ (main): Delete local `status'. Adjust.
+ * remote-utils.c: Include target.h.
+ (prepare_resume_reply): Change prototype to take a
+ target_waitstatus. Adjust.
+
+ * linux-low.c (linux_wait): Adjust to new target_ops->wait
+ interface.
+ * spu-low.c (spu_wait): Adjust.
+ * win32-low.c (enum target_waitkind, struct target_waitstatus):
+ Delete.
+ (win32_wait): Adjust.
+
+2009-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct thread_resume): Delete leave_stopped member.
+ (struct target_ops): Add a `n' argument to the `resume' callback.
+ * server.c (start_inferior): Adjust.
+ (handle_v_cont, myresume): Adjust.
+ * linux-low.c (check_removed_breakpoint): Adjust to resume
+ interface change, and to removed leave_stopped field.
+ (resume_ptr): Delete.
+ (struct thread_resume_array): New.
+ (linux_set_resume_request): Add new `arg' parameter. Adjust to
+ resume interface change.
+ (linux_continue_one_thread, linux_queue_one_thread)
+ (resume_status_pending_p): Check if the resume field is NULL
+ instead of checking the leave_stopped member.
+ (linux_resume): Adjust to the target resume interface change.
+ * spu-low.c (spu_resume): Adjust to the target resume interface
+ change.
+ * win32-low.c (win32_detach, win32_resume): Ditto.
+
+2009-04-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
+ flag.
+ (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
+ pending.
+ (linux_continue_one_thread): Only preserve the stepping flag if
+ there's a pending breakpoint.
+
+2009-03-31 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (main): After the inferior having exited, call
+ remote_close before exiting gdbserver.
+
+2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ Fix size of FPSCR in Power 7 processors.
+ * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
+ (PPC_FEATURE_HAS_DFP): New #define.
+ (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
+ size of the FPSCR.
+
+2009-03-23 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_query) Whitespace and formatting.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
+ linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
+ linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
+ linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
+ regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
+ thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
+ Makefile.in, configure.ac: Fix whitespace throughout.
+ * configure: Regenerate.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * inferiors.c (find_inferior): Make it safe for the callback
+ function to delete the currently iterated inferior.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (linuw_low_h): Move higher.
+ (thread-db.o): Depend on $(linux_low_h).
+
+2009-03-17 Pedro Alves <pedro@codesourcery.com>
+
+ Rename "process" to "lwp" throughout.
+
+ * linux-low.c (all_processes): Rename to...
+ (all_lwps): ... this.
+ (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
+ (add_process): Rename to ...
+ (add_lwp): ... this. Adjust.
+ (linux_create_inferior): Adjust.
+ (linux_attach_lwp): Adjust.
+ (linux_attach): Adjust.
+ (linux_kill_one_process): Rename to ...
+ (linux_kill_one_lwp): ... this. Adjust.
+ (linux_kill): Adjust.
+ (linux_detach_one_process): Rename to ...
+ (linux_detach_one_lwp): ... this. Adjust.
+ (linux_detach): Adjust.
+ (check_removed_breakpoint): Adjust.
+ (status_pending_p): Adjust.
+ (linux_wait_for_process): Rename to ...
+ (linux_wait_for_lwp): ... this. Adjust.
+ (linux_wait_for_event): Adjust.
+ (send_sigstop): Adjust.
+ (wait_for_sigstop): Adjust.
+ (stop_all_processes): Rename to ...
+ (stop_all_lwps): ... this.
+ (linux_resume_one_process): Rename to ...
+ (linux_resume_one_lwp): ... this. Adjust.
+ (linux_set_resume_request, linux_continue_one_thread)
+ (linux_queue_one_thread, resume_status_pending_p)
+ (usr_store_inferior_registers, regsets_store_inferior_registers)
+ (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
+ Adjust.
+ * linux-low.h (get_process): Rename to ...
+ (get_lwp): ... this. Adjust.
+ (get_thread_process): Rename to ...
+ (get_thread_lwp): ... this. Adjust.
+ (get_process_thread): Rename to ...
+ (get_lwp_thread): ... this. Adjust.
+ (struct process_info): Rename to ...
+ (struct lwp_info): ... this.
+ (all_processes): Rename to ...
+ (all_lwps): ... this.
+ * proc-service.c (ps_lgetregs): Adjust.
+ * thread-db.c (thread_db_create_event, find_one_thread)
+ (maybe_attach_thread, thread_db_get_tls_address): Adjust.
+
+2009-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_query): Handle "qAttached".
+
+2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
+
+ * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
+ GPLv3, update license URL.
+
+2009-03-01 Doug Evans <dje@google.com>
+
+ * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
+ (server_h): Add gdb_signals.h.
+ (signals.o): Update.
+ * server.h (target_signal_from_host,target_signal_to_host_p)
+ (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
+
+2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * remote-utils.c (getpkt): Also generate remote-debug
+ information if noack_mode is set.
+
+2009-02-06 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_query): Report qXfer:siginfo:read and
+ qXfer:siginfo:write as supported and handle them.
+ * target.h (struct target_ops) <qxfer_siginfo>: New field.
+ * linux-low.c (linux_xfer_siginfo): New.
+ (linux_target_ops): Set it.
+
+2009-01-26 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (gdbserver_usage): Mention --remote-debug.
+ (main): Accept '--remote-debug' switch.
+
+2009-01-18 Doug Evans <dje@google.com>
+
+ * regcache.c (new_register_cache): No need to check result of xcalloc.
+ * server.c (handle_search_memory): Back out calls to xmalloc,
+ result is checked and error is returned to user upon failure.
+ (handle_query): Ditto. Add more checks for result of malloc.
+ (handle_v_cont): Check result of malloc, report error back to
+ user upon failure.
+ (handle_v_run): Ditto. Call freeargv.
+ * server.h (freeargv): Declare.
+ * utils.c (freeargv): New fn.
+
+2009-01-15 Doug Evans <dje@google.com>
+
+ * gdbreplay.c (perror_with_name): Make arg const char *.
+ * server.h (target_signal_to_name): Make return type const char *.
+ * thread-db.c (thread_db_err_str): Make return type const char *.
+ * utils.c (perror_with_name): Make arg const char *.
+
+2009-01-14 Pedro Alves <pedro@codesourcery.com>
+
+ * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
+ when handling a EXIT_PROCESS_DEBUG_EVENT.
+
+2009-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbreplay.c (gdbreplay_version): Update copyright year.
+ * server.c (gdbserver_version): Likewise.
+
+2009-01-05 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
+ (handle_extended_wait): Improve comment.
+
+2008-12-13 Doug Evans <dje@google.com>
+
+ * utils.c (xmalloc,xcalloc,xstrdup): New fns.
+ * server.h (ATTR_MALLOC): New macro.
+ (xmalloc,xcalloc,xstrdup): Declare.
+ * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
+ * inferiors.c: Ditto.
+ * linux-low.c: Ditto.
+ * mem-break.c: Ditto.
+ * regcache.c: Ditto.
+ * remote-utils.c: Ditto.
+ * server.c: Ditto.
+ * target.c: Ditto.
+ * win32-low.c: Ditto.
+
+2008-12-12 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
+ in debugging printf.
+
+ * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
+
+2008-12-09 Doug Evans <dje@google.com>
+
+ * linux-low.h (struct process_info): Delete member tid, unused.
+ * thread-db.c (find_one_thread): Update.
+ (maybe_attach_thread): Update.
+
+2008-12-02 Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct target_ops): Add qxfer_osdata member.
+ * linux-low.c: Include ctype.h and pwd.h and sys/types.h
+ and dirent.h.
+ (linux_qxfer_osdata): New functions.
+ (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
+ callback.
+ * server.c (handle_query): Handle "qXfer:osdata:read:".
+ * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
+ (buffer_xml_printf): New functions.
+ * server.h (struct buffer): New.
+ (buffer_grow_str, buffer_grow_str0): New macros.
+ (buffer_grow, buffer_free, buffer_init, buffer_finish)
+ (buffer_xml_printf): Declare.
+
+2008-11-24 Doug Evans <dje@google.com>
+
+ * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
+
+2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_v_run): Always use the supplied argument list.
+
+2008-11-19 Bob Wilson <bob.wilson@acm.org>
+
+ * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
+ (xtensa_regmap_table): Add entry for scompare1.
+
+2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
+ powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
+ powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
+ powerpc-isa205-64l.o, powerpc-isa205-64l.c,
+ powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
+ powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
+ * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
+ XML target descriptions.
+ * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
+ when inferior is running on an ISA 2.05 or later processor. Add
+ special case to return offset for full 64-bit slot of FPSCR when
+ in 32-bits.
+
+2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
+
+ * Makefile.in (SFILES, clean): Added sparc64 files.
+ (reg-sparc64.o, reg-sparc64.c): New.
+ * configure.srv (sparc*-*-linux*): New configuration.
+ * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
+ syscall arguments for SPARC.
+ (regsets_store_inferior_registers): Likewise.
+ * linux-sparc-low.c: New file.
+
+2008-10-21 Doug Evans <dje@google.com>
+
+ * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
+ (READLINE_DIR,READLINE_DEP): Delete.
+ (INTERNAL_CFLAGS): Update.
+ (LINTFLAGS): Update.
+
+2008-10-10 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_v_run): If GDB didn't specify an argv, use the
+ whole argv from the last run, not just argv[0].
+
+2008-09-08 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.c (new_register_cache): Return NULL if the register
+ cache size isn't known yet.
+ (free_register_cache): Avoid dereferencing a NULL regcache.
+
+2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.srv: Merge MIPS and MIPS64.
+
+2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * Makefile.in (uninstall): Apply $(EXEEXT) too.
+
+2008-08-18 Luis Machado <luisgpm@br.ibm.com>
+
+ * Makefile.in: Add required vsx dependencies.
+
+ * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
+ Declare init_registers_powerpc_vsx32l.
+ Declare init_registers_powerpc_vsx64l.
+ Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
+ (ppc_arch_setup): Check for VSX in hwcap.
+ (ppc_fill_vsxregset): New function.
+ (ppc_store_vsxregset): New function.
+ Add new VSX entry in regset_info target_regsets.
+
+ * configure.srv: Add new VSX dependencies.
+
+2008-08-12 Pedro Alves <pedro@codesourcery.com>
+
+ * remote-utils.c (noack_mode, transport_is_reliable): New globals.
+ (remote_open): Set or clear transport_is_reliable.
+ (putpkt_binary): Don't expect acks in noack mode.
+ (getpkt): Don't send ack/nac in noack mode.
+ * server.c (handle_general_set): Handle QStartNoAckMode.
+ (handle_query): If connected by tcp pass QStartNoAckMode+ in
+ qSupported.
+ (main): Reset noack_mode on every connection.
+ * server.h (noack_mode): Declare.
+
+2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * Makefile.in (GDBREPLAY_OBS): New variable.
+ (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
+
+2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_resume_one_process): Ignore ESRCH.
+ (usr_store_inferior_registers): Likewise.
+ (regsets_store_inferior_registers): Likewise.
+
+2008-07-31 Rolf Jansen <rj@surtec.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * configure.ac: Check for memmem declaration.
+ * server.c [HAVE_MALLOC_H]: Include malloc.h.
+ (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
+ (disable_packet_qfThreadInfo): Unconditionally compile.
+ * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
+ * configure, config.in: Regenerate.
+
+2008-07-28 Doug Kwan <dougkwan@google.com>
+
+ * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
+ (linux_write_memory): Remove declaration of errno.
+
+2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-low.c (handle_extended_wait): Do not use "status"
+ variable uninitialized.
+
+2008-07-07 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_v_attach): Inhibit reporting dll changes.
+
+2008-06-27 Pedro Alves <pedro@codesourcery.com>
+
+ * remote-utils.c (prepare_resume_reply): If requested, don't
+ output "thread:TID" in the T stop reply.
+
+ * server.c (disable_packet_vCont, disable_packet_Tthread)
+ (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
+ (handle_query): If requested, disable support for qC, qfThreadInfo
+ and qsThreadInfo.
+ (handle_v_requests): If requested, disable support for vCont.
+ (gdbserver_show_disableable): New.
+ (main): Handle --disable-packet and --disable-packet=LIST.
+
+ * server.h (disable_packet_vCont, disable_packet_Tthread)
+ (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
+
+2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
+
+ * server.c (gdbserver_usage): Mention --version.
+
+2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (gdbreplay.o): New rule.
+
+2008-06-06 Joseph Myers <joseph@codesourcery.com>
+
+ * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
+ message, not gdbserver.
+
+2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * acinclude.m4: Include ../../config/acx.m4.
+ * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
+ * configure, config.in: Regenerate.
+ * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
+ * server.c (gdbserver_version): Print PKGVERSION.
+ (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
+ (main): Adjust gdbserver_usage calls.
+ * gdbreplay.c (version, host_name): Add declarations.
+ (gdbreplay_version, gdbreplay_usage): New.
+ (main): Accept --version and --help options.
+
+2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
+ (arm_breakpoint_at): Handle Thumb.
+ (the_low_target): Add comment.
+
+2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
+
+2008-05-09 Doug Evans <dje@google.com>
+
+ * server.h (decode_search_memory_packet): Declare.
+ * remote-utils.c (decode_search_memory_packet): New fn.
+ * server.c (handle_search_memory_1): New fn.
+ (handle_search_memory): New fn.
+ (handle_query): Process qSearch:memory packets.
+
+2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * regcache.c (registers_length): Remove.
+ (set_register_cache): Verify that PBUFSIZ is large enough to hold a
+ full register packet.
+ * regcache.h (registers_length): Remove prototype.
+ * server.h (PBUFSIZ): Define to 16384.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv (powerpc*-*-linux*): Set srv_regobj to
+ powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
+ powerpc-64l.o, and powerpc-altivec64l.o.
+ Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
+ rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
+ rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
+ rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
+ rs6000/power-linux.xml, and rs6000/power64-linux.xml
+ to srv_xmlfiles.
+
+ * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
+ (powerpc-32l.o, powerpc-32l.c): ... these new rules.
+ (powerpc-32.o, powerpc-32.c): Remove, replace by ...
+ (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
+ (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
+ (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
+ (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
+ (powerpc-64l.o, powerpc-64l.c): ... these new rules.
+ (powerpc-64.o, powerpc-64.c): Remove, replace by ...
+ (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
+ (clean): Update.
+
+ * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
+ (init_registers_powerpc_32l): ... this new prototype.
+ (init_registers_powerpc_32): Remove, replace by ...
+ (init_registers_powerpc_altivec32l): ... this new prototype.
+ (init_registers_powerpc_e500): Remove, replace by ...
+ (init_registers_powerpc_e500l): ... this new prototype.
+ (init_registers_ppc64): Remove, replace by ...
+ (init_registers_powerpc_64l): ... this new prototype.
+ (init_registers_powerpc_64): Remove, replace by ...
+ (init_registers_powerpc_altivec64l): ... this new prototype.
+ (ppc_num_regs): Set to 73.
+ (PT_ORIG_R3, PT_TRAP): Define if necessary.
+ (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
+ (ppc_cannot_store_register): Handle orig_r3 and trap.
+ (ppc_arch_setup): Update init_registers_... calls.
+ (ppc_fill_gregset): Handle orig_r3 and trap.
+
+ * inferiors.c (clear_inferiors): Reset current_inferior.
+
+2008-04-23 Paolo Bonzini <bonzini@gnu.org>
+
+ * acinclude.m4: Add override.m4.
+ * configure: Regenerate.
+
+2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
+ initial call to init_register_ppc64.
+
+2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
+ single powerpc*-*-linux* case.
+ (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
+
+2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
+ srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
+ from reg_xmlfiles.
+ * linux-ppc-low.c: Include <elf.h>.
+ (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
+ (ppc_hwcap): New global variable.
+ (ppc_regmap): Remove __SPE__ #ifdef sections.
+ (ppc_regmap_e500): New global variable.
+ (ppc_cannot_store_register): Update __SPE__ special case.
+ (ppc_get_hwcap): New function.
+ (ppc_arch_setup): Use it to determine whether inferior supports
+ AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
+ (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
+ Do not access registers if target does not support AltiVec.
+ (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
+ Do not access registers if target does not support SPE.
+ (target_regsets): Unconditionally include AltiVec and SPE regsets.
+
+2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (disabled_regsets, num_regsets): New.
+ (use_regsets_p): Delete.
+ (linux_wait_for_process): Clear disabled_regsets.
+ (regsets_fetch_inferior_registers): Check and set it.
+ (regsets_store_inferior_registers): Likewise.
+ (linux_fetch_registers, linux_store_registers): Do not use
+ use_regsets_p.
+ (initialize_low): Allocate disabled_regsets.
+
+2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (LIBOBJS): New.
+ (OBS): Use LIBOBJS.
+ (memmem.o): New rule.
+ * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
+ * configure: Regenerated.
+
+2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * server.c (handle_query): Never return "unsupported" for
+ qXfer:features:read queries.
+
+2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * server.c (get_features_xml): Fix inverted condition.
+ (handle_query): Always support qXfer:feature:read.
+
+2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (wrapper_argv): New.
+ (start_inferior): Handle wrapper_argv. If set, expect an extra
+ trap.
+ (gdbserver_usage): Document --wrapper.
+ (main): Parse --wrapper.
+
+2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
+ powerpc-*-linux* to srv_regobj and reg_xmlfiles.
+ * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
+ (ppc_set_pc): Likewise.
+ (ppc_arch_setup): New function.
+ (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
+ of collect_register.
+ (the_low_target): Use ppc_arch_setup as arch_setup initializer.
+
+2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
+ instead of linux-ppc64-low.o.
+ * linux-ppc64-low.c: Remove file.
+ * Makefile.in (SFILES): Remove linux-ppc64-low.c.
+ (linux-ppc64-low.o): Remove rule.
+
+ * linux-ppc-low.c (init_registers_ppc64): Add prototype.
+ (init_registers_powerpc_64): Likewise.
+ (ppc_regmap): Conditionally define depending on __powerpc64__.
+ (ppc_cannot_store_register): Do not special-case "fpscr" when
+ compiled on __powerpc64__.
+ (ppc_collect_ptrace_register): New function.
+ (ppc_supply_ptrace_register): New function.
+ (ppc_breakpoint): Change type to "unsigned int".
+ (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
+ (the_low_target): Conditionally provide initializers for the
+ arch_setup member depending on __powerpc64__. Install
+ collect_ptrace_register and supply_ptrace_register members.
+
+2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * regcache.h (gdbserver_xmltarget): Add extern declaration.
+ * server.c (gdbserver_xmltarget): Define.
+ (get_features_xml): Use it to replace "target.xml" and arch_string.
+
+ * configure.srv: Remove srv_xmltarget. Add XML files that were
+ mentioned there to srv_xmlfiles instead. Remove conditional tests
+ on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
+ srv_xmlfiles and srv_regobj to include all possible choices.
+ * configure.ac (srv_xmltarget): Remove.
+ (srv_xmlfiles): Do not add "target.xml".
+ (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
+ checks for supplementary target information.
+ * configure: Regenerate.
+ * Makefile.in (XML_TARGET): Remove.
+ (target.xml): Remove rule.
+ (clean): Do not clean up target.xml.
+ (.PRECIOUS): Do not mention target.xml.
+
+ * target.h (struct target_ops): Remove arch_string member.
+ * linux-low.c (linux_arch_string): Remove.
+ (linux_target_ops): Remove arch_string initializer.
+ * linux-low.h (struct linux_target_ops): Remove arch_string member.
+ * linux-i386-low.c (the_low_target): Remove arch_string initializer.
+ * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
+ * spu-low.c (spu_arch_string): Remove.
+ (spu_target_ops): Remove arch_string initializer.
+ * win32-low.c (win32_arch_string): Remove.
+ (win32_target_ops): Remove arch_string initializer.
+ * win32-low.h (struct win32_target_ops): Remove arch_string member.
+ * win32-arm-low.c (the_low_target): Remove arch_string initializer.
+ * win32-i368-low.c (the_low_target): Remove arch_string initializer.
+
+2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
+ by collect_ptrace_register and supply_ptrace_register hooks.
+ * linux-low.c (fetch_register): Use supply_ptrace_register callback
+ instead of checking for the_low_target.left_pad_xfer.
+ (usr_store_inferior_registers): Use collect_ptrace_register callback
+ instead of checking for the_low_target.left_pad_xfer.
+
+ * linux-s390-low.c (s390_collect_ptrace_register): New function.
+ (s390_supply_ptrace_register): Likewise.
+ (s390_fill_gregset): Call s390_collect_ptrace_register.
+ (the_low_target): Update.
+
+ * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
+ (ppc_supply_ptrace_register): Likewise.
+ (the_low_target): Update.
+
+ * linux-i386-low.c (the_low_target): Update.
+ * linux-x86-64-low.c (the_low_target): Update.
+
+2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
+ reg-s390.o and reg-s390x.o.
+
+ * linux-low.c (new_inferior): New global variable.
+ (linux_create_inferior, linux_attach): Set it.
+ (linux_wait_for_process): Call the_low_target.arch_setup after the
+ target has stopped for the first time.
+ (initialize_low): Do not call the_low_target.arch_setup.
+
+ * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
+ (s390_set_pc): Likewise.
+ (s390_arch_setup): New function.
+ (the_low_target): Use s390_arch_setup as arch_setup routine.
+
+ * regcache.c (realloc_register_cache): New function.
+ (set_register_cache): Call it for each existing regcache.
+
+2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * server.h (init_registers): Remove prototype.
+
+ * linux-low.h (struct linux_target_ops): Add arch_setup field.
+ * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
+ instead of init_registers ().
+ * linux-arm-low.c (init_registers_arm): Add prototype.
+ (init_registers_arm_with_iwmmxt): Likewise.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-cris-low.c (init_registers_cris): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-i386-low.c (init_registers_i386_linux): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-ia64-low.c (init_registers_ia64): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-m32r-low.c (init_registers_m32r): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-m68k-low.c (init_registers_m68k): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-mips-low.c (init_registers_mips_linux): Add prototype.
+ (init_registers_mips64_linux): Likewise.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-ppc-low.c (init_registers_ppc): Add prototype.
+ (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
+ (init_registers_powerpc_64): Likewise.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-s390-low.c (init_registers_s390): Add prototype.
+ (init_registers_s390x): Likewise.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-sh-low.c (init_registers_sh): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+
+ * win32-low.h (struct win32_target_ops): Add arch_setup field.
+ * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
+ instead of init_registers ().
+ * win32-arm-low.c (init_registers_arm): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+ * win32-i386-low.c (init_registers_i386): Add prototype.
+ (the_low_target): Add initializer for arch_setup field.
+
+ * spu-low.c (init_registers_spu): Add prototype.
+ (initialize_low): Call initialie_registers_spu () instead of
+ initialize_registers ().
+
+2008-02-19 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (handle_v_requests): When handling the vRun and vAttach
+ packets, if already debugging a process, don't kill it. Return an
+ error instead.
+
+2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_query): Correct length check.
+
+2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (do_initial_child_stuff): Add process handle
+ parameter. Set current_process_handle and current_process_id from the
+ parameters. Clear globals.
+ (win32_create_inferior): Don't set current_process_handle and
+ current_process_id here. Instead pass them on the call to
+ do_initial_child_stuff.
+ (win32_attach): Likewise.
+ (win32_clear_inferiors): New.
+ (win32_kill): Don't close the current process handle or the
+ current thread handle here. Instead call win32_clear_inferiors.
+ (win32_detach): Don't open a new handle to the process. Call
+ win32_clear_inferiors.
+ (win32_join): Don't rely on current_process_handle; open a new
+ handle using the process id.
+ (win32_wait): Call win32_clear_inferiors when the inferior process
+ has exited.
+
+2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (monitor_show_help): Add "exit".
+
+2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * Makefile.in (SFILES): Add linux-xtensa-low.c.
+ (clean): Add reg-xtensa.c.
+ (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
+ * configure.srv (xtensa*-*-linux*) New target.
+ * linux-xtensa-low.c: New.
+ * xtensa-xtregs.c: New.
+
+2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * hostio.c: Don't include errno.h.
+ (errno_to_fileio_errno): Move to hostio-errno.
+ * hostio.c: (hostio_error): Remove the error parameter. Defer the
+ error number outputting to the target->hostio_last_error callback.
+ (hostio_packet_error): Use FILEIO_EINVAL directly.
+ (handle_open, handle_pread, hostio_error, handle_unlink): Update
+ calls to hostio_error.
+ * hostio-errno.c: New.
+ * server.h (hostio_last_error_from_errno): Declare.
+ * target.h (target_ops): Add hostio_last_error member.
+ * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
+ as hostio_last_error handler.
+ * spu-low.c (spu_target_ops): Likewise.
+ * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
+ (wince_hostio_last_error): New functions.
+ (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
+ as hostio_last_error handler.
+ (win32_target_ops) [!_WIN32_WCE]: Register
+ hostio_last_error_from_errno as hostio_last_error handler.
+ * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
+ (hostio-errno.o): New rule.
+ * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
+ * configure.srv (srv_hostio_err_objs): New variable. Default to
+ hostio-errno.o.
+ (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
+ * configure: Regenerate.
+
+2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_attach_lwp): Do not _exit after errors.
+ (linux_kill, linux_detach): Clean up the process list.
+ * remote-utils.c (remote_open): Improve port number parsing.
+ (putpkt_binary, input_interrupt): Only send interrupts if the target
+ is running.
+ * server.c (extended_protocol): Make static.
+ (attached): Define earlier.
+ (exit_requested, response_needed, program_argv): New variables.
+ (target_running): New.
+ (start_inferior): Clear attached here.
+ (attach_inferior): Set attached here.
+ (require_running): Define.
+ (handle_query): Use require_running and target_running. Implement
+ "monitor exit".
+ (handle_v_attach, handle_v_run): New.
+ (handle_v_requests): Use require_running. Handle vAttach and vRun.
+ (gdbserver_usage): Update.
+ (main): Redo argument parsing. Handle --debug and --multi. Handle
+ --attach along with other options or after the port. Save
+ program_argv. Support no initial program. Resynchronize
+ communication with GDB after an error. Handle "monitor exit".
+ Use require_running and target_running. Always allow the extended
+ protocol. Do not error out for Hc0 or Hc-1. Do not automatically
+ restart in extended mode.
+ * README: Refer to the GDB manual. Update --attach usage.
+
+2007-12-20 Andreas Schwab <schwab@suse.de>
+
+ * linux-low.c (STACK_SIZE): Define.
+ (linux_tracefork_child): Use it. Use __clone2 on ia64.
+ (linux_test_for_tracefork): Likewise.
+
+2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_wait_for_event): Update messages. Do not
+ reinsert auto-delete breakpoints.
+ * mem-break.c (struct breakpoint): Change return type of handler to
+ int.
+ (set_breakpoint_at): Update handler type.
+ (reinsert_breakpoint_handler): Return 1 instead of calling
+ delete_breakpoint.
+ (reinsert_breakpoint_by_bp): Check for the original breakpoint before
+ setting a new one.
+ (check_breakpoints): Delete auto-delete breakpoints and return 2.
+ * mem-break.h (set_breakpoint_at): Update handler type.
+ * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
+ * win32-low.c (auto_delete_breakpoint): New.
+ (get_child_debug_event): Use it.
+
+2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac: Check for pread and pwrite.
+ * hostio.c (handle_pread): Fall back to lseek and read.
+ (handle_pwrite): Fall back to lseek and write.
+ * config.in, configure: Regenerated.
+
+2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (myresume): Add own_buf argument.
+ (main): Update calls.
+
+2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
+ * remote-utils.c (remote_open): Do not call disable_async_io.
+ (block_async_io): Delete.
+ (unblock_async_io): Make static.
+ (initialize_async_io): New.
+ * server.c (handle_v_cont): Handle async I/O here.
+ (myresume): Likewise. Move other common resume tasks here...
+ (main): ... from here. Call initialize_async_io. Disable async
+ I/O before the main loop.
+ * server.h (initialize_async_io): Declare.
+ (block_async_io, unblock_async_io): Delete prototypes.
+ * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
+
+2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
+
+ * remote-utils.c (readchar): Allow binary data in received messages.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (attaching): New global.
+ (win32_create_inferior): Clear the `attaching' global.
+ (win32_attach): Set the `attaching' global.
+ (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
+ attaching. Only set a breakpoint at the entry point if not
+ attaching.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * server.c (main): Don't report dll events on the initial
+ connection on attaches.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * server.c (main): Relax numerical bases supported for the pid of
+ the --attach command line argument.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (win32_attach): Call OpenProcess before
+ DebugActiveProcess, not after. Add last error output to error
+ call.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (win32_get_thread_context)
+ (win32_set_thread_context): New functions.
+ (thread_rec): Use win32_get_thread_context.
+ (continue_one_thread, win32_resume): Use win32_set_thread_context.
+ * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
+ field.
+
+2007-12-03 Leo Zayas
+ Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
+ global variables.
+ (child_add_thread): Minor cleanup.
+ (child_continue): Resume artificially suspended threads before
+ calling ContinueDebugEvent.
+ (suspend_one_thread): New.
+ (fake_breakpoint_event): New.
+ (get_child_debug_event): Change return type to int. Check here if
+ gdb sent an interrupt request. If a soft interrupt was requested,
+ fake a breakpoint event. Return 0 if there is no event to handle,
+ and 1 otherwise.
+ (win32_wait): Don't check here if gdb sent an interrupt request.
+ Ensure there is a valid event to handle.
+ (win32_request_interrupt): Add soft interruption method as last
+ resort.
+
+2007-12-03 Leo Zayas
+ Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.h (win32_thread_info): Add descriptions to the
+ structure members. Replace `suspend_count' counter by a
+ `suspended' flag.
+ * win32-low.c (thread_rec): Update condition of when to get the
+ context from the inferior. Rely on ContextFlags being set if it
+ has already been retrieved. Only suspend the inferior thread if
+ we haven't already. Warn if that fails.
+ (continue_one_thread): s/suspend_count/suspended/. Only call
+ ResumeThread once. Warn if that fails.
+
+2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (win32_wait): Don't read from the inferior when it
+ has already exited.
+
+2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * Makefile.in (win32_low_h): New variable.
+ (win32-low.o): Add dependency on $(win32_low_h).
+ (win32-arm-low.o, win32-i386-low.o): New rules.
+
+2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * hostio.c: Correct copyright year.
+
+2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (OBS): Add hostio.o.
+ (hostio.o): New rule.
+ * server.h (handle_vFile): Declare.
+ * hostio.c: New file.
+ * server.c (handle_v_requests): Take packet_len and new_packet_len
+ for binary packets. Call handle_vFile.
+ (main): Update call to handle_v_requests.
+
+2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c: Include <sched.h>.
+
+2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_tracefork_grandchild): New.
+ (linux_tracefork_child): Use clone.
+ (linux_test_for_tracefork): Use clone; allocate and free a stack.
+
+2007-10-31 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
+
+2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (handle_extended_wait): Handle unexpected signals.
+
+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
+ waiting.
+
+2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
+
+2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
+
+2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * inferiors.c (change_inferior_id): Add comment.
+ * linux-low.c (check_removed_breakpoint): Add an early
+ prototype. Improve debug output.
+ (linux_attach): Doc update.
+ (linux_detach_one_process, linux_detach): Clean up before releasing
+ each process.
+ (send_sigstop, wait_for_sigstop): Improve comments and debug output.
+ * linux-low.h (struct process_info): Doc improvement.
+ * mem-break.c (delete_all_breakpoints): New.
+ * mem-break.h (delete_all_breakpoints): New prototype.
+ * thread-db.c (find_first_thread): New.
+ (thread_db_create_event): Call it instead of
+ thread_db_find_new_threads. Clean up unused variables.
+ (maybe_attach_thread): Remove first thread handling.
+ (thread_db_find_new_threads): Use find_first_thread.
+ (thread_db_get_tls_address): Likewise.
+
+2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * thread-db.c (thread_db_find_new_threads): Add prototype.
+ (thread_db_create_event): Check for the main thread before adding
+ a new thread.
+ (maybe_attach_thread): Only enable event reporting if TID == 0.
+ (thread_db_get_tls_address): Check for new threads.
+
+2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_create_inferior): Try execv before execvp.
+ * spu-low.c (spu_create_inferior): Likewise.
+
+2007-06-13 Mike Frysinger <vapier@gentoo.org>
+
+ * linux-low.c (linux_create_inferior): Change execv to execvp.
+ * spu-low.c (spu_create_inferior): Likewies.
+
+2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (clean): Clean new files instead of deleted ones.
+ (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
+ (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
+ rules.
+ * configure.srv: Specify XML files and new regformats for MIPS and
+ MIPS64 GNU/Linux.
+ * linux-mips-low.c (mips_num_regs): Set to only used registers.
+ (mips_regmap): Do not fetch $0. Remove unused registers. Add
+ an entry for the restart register.
+ (mips_cannot_fetch_register, mips_cannot_store_register)
+ (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
+ register names to match the XML descriptions.
+ (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
+ restart register instead of $0.
+
+2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
+ Markus Deuling <deuling@de.ibm.com>
+
+ * remote-utils.c (decode_xfer_write): New function.
+ * server.h (decode_xfer_write): Add prototype.
+ * server.c (handle_query): Add PACKET_LEN argument. Support
+ qXfer:spu:read and qXfer:spu:write packets.
+ (main): Pass packet_len to handle_query.
+ * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
+ * target.h (target_ops): Add qxfer_spu.
+
+2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-low.c (spu_proc_xfer_spu): Do not return failure when
+ accessing non-seekable spufs files.
+
+2007-05-16 Markus Deuling <deuling@de.ibm.com>
+
+ * server.c (handle_query): Add reply for qC packet.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+ Leo Zayas <lerele@champenstudios@com>
+
+ * server.h (check_remote_input_interrupt_request): New function.
+ * remote_utils.c (INVALID_DESCRIPTOR): New define.
+ (remote_desc): Initialize with INVALID_DESCRIPTOR.
+ (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
+ (check_remote_input_interrupt_request): New function.
+ * server.h (check_remote_input_interrupt_request): Declare.
+ * win32-low.c (winapi_DebugBreakProcess,
+ winapi_GenerateConsoleCtrlEvent): New typedefs.
+ (get_child_debug_event): Lower Win32 debug event polling from 1 sec
+ to 250 ms.
+ (win32_wait): Check for remote interrupt request
+ with check_remote_input_interrupt_request.
+ (win32_request_interrupt): New function.
+ (win32_target_op): Set request_interrupt to win32_request_interrupt.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (debug_registers_changed,
+ debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
+ CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
+ CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
+ (thread_rec): Get context using the low target.
+ (child_add_thread): Call thread_added on the low target,
+ which does the same thing.
+ (regptr): Delete.
+ (do_initial_child_stuff): Remove debug registers references.
+ Set context using the low target. Resume threads after
+ setting the contexts.
+ (child_continue): Remove dead variable. Remove debug
+ registers references.
+ (child_fetch_inferior_registers): Go through the low target.
+ (do_child_store_inferior_registers): Remove.
+ (child_store_inferior_registers): Go through the low target.
+ (win32_resume): Remove debug registers references.
+ Set context using the low target.
+ (handle_exception): Change return type to void. Don't record
+ context here. Set status to TARGET_WAITKIND_SPURIOUS on a
+ first chance exception.
+ (get_child_debug_event): Change return type to void. Remove
+ goto loop. Always return after waiting for debug event.
+ (win32_wait): Convert to switch statement. Handle spurious
+ events.
+
+ * win32-i386-low.c (debug_registers_changed,
+ debug_registers_used): New.
+ (initial_stuff): Rename to ...
+ (i386_initial_stuff): ... this. Clear debug registers
+ state variables.
+ (store_debug_registers): Delete.
+ (i386_get_thread_context): New.
+ (load_debug_registers): Delete.
+ (i386_set_thread_context): New.
+ (i386_thread_added): New.
+ (single_step): Rename to ...
+ (i386_single_step): ... this.
+ (do_fetch_inferior_registers): Rename to ...
+ (i386_fetch_inferior_register): ... this.
+ (i386_store_inferior_register): New.
+ (the_low_target): Adapt to new interface.
+
+ * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
+ (arm_get_thread_context): New.
+ (arm_set_thread_context): New.
+ (regptr): New.
+ (do_fetch_inferior_registers): Rename to ...
+ (arm_fetch_inferior_register): ... this.
+ (arm_store_inferior_register): New.
+ (arm_wince_breakpoint): Reimplement as unsigned long.
+ (arm_wince_breakpoint_len): Define.
+ (the_low_target): Adapt to new interface.
+
+ * win32-low.h (target_ops): Remove regmap, store_debug_registers and
+ load_debug_registers. Add get_thread_context, set_thread_context,
+ thread_added and store_inferior_register. Rename
+ fetch_inferior_registers to fetch_inferior_register.
+ (regptr): Remove declaration.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * linux-low.c (linux_detach): Change return type to int. Return 0.
+ * spu-low.c (spu_detach): Likewise.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * target.h (target_ops): Change return type of detach to int.
+ Add join.
+ (join_inferior): New.
+ * server.c (main): Don't skip detach support on mingw32.
+ If the inferior doesn't support detaching return error.
+ Call join_inferior instead of using waitpid.
+ * linux-low.c (linux_join): New.
+ (linux_target_op): Add linux_join.
+ * spu-low.c (spu_join): New.
+ (spu_target_ops): Add spu_join.
+ * win32-low.c (win32_detach): Adapt to new interface.
+ Reopen current_process_handle before detaching. Issue a child
+ resume before detaching.
+ (win32_join): New.
+ (win32_target_op): Add win32_join.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (win32-attach): Fix return value.
+ * target.h (target_ops): Describe ATTACH return values.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (GETPROCADDRESS): Define.
+ (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
+ (winapi_DebugSetProcessKillOnExit): Likewise.
+ (win32_create_inferior): Force usage of ansi CreateProcessA.
+ (win32_attach): Use GETPROCADDRESS.
+ (win32_detach): Likewise.
+
+2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c (win32_wait): Don't use WSTOPSIG.
+
+2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c: Commit leftover changes from 2007-03-29.
+
+2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
+ fields short instead of int. Add explicit padding.
+ (i387_cache_to_fsave): Remove unnecessary casts.
+ (i387_fsave_to_cache): Doc fix.
+ (i387_cache_to_fxsave): Remove unnecessary casts and masking.
+
+2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
+ (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
+
+2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * configure.srv (arm*-*-mingw32ce*): Move near the other
+ arm targets.
+
+2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * configure.ac: Add errno checking.
+ (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
+ sys/file.h and malloc.h.
+ (AC_CHECK_DECLS): Add perror.
+ (srv_mingwce): Handle.
+ * configure.srv (i[34567]86-*-cygwin*): Add
+ win32-i386-low.o to srv_tgtobj.
+ (i[34567]86-*-mingw*): Likewise.
+ (arm*-*-mingw32ce*): Add case.
+ * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
+ HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
+ [__MINGW32CE__] (strerror): New function.
+ [__MINGW32CE__] (errno): Define to GetLastError.
+ [__MINGW32CE__] (COUNTOF): New macro.
+ (remote_open): Remove extra close call.
+ * mem-break.c (delete_breakpoint_at): New function.
+ * mem-break.h (delete_breakpoint_at): Declare.
+ * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
+ HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
+ [USE_WIN32API] (read, write): Add char* casts.
+ * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
+ * server.h: Include wincecompat.h on Windows CE.
+ [HAVE_ERRNO_H]: Check.
+ (perror): Declare if not declared.
+ * utils.c: Add stdlib.h, errno.h and malloc.h includes.
+ (perror_with_name): Remove errno declaration.
+ * wincecompat.h: New.
+ * wincecompat.c: New.
+ * win32-low.h: New.
+ * win32-arm-low.c: New.
+ * win32-i386-low.c: New.
+ (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
+ (OUTMSG2): Make it safe.
+ (_T): New macro.
+ (COUNTOF): New macro.
+ (NUM_REGS): Get it from the low target.
+ (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
+ CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
+ (thread_rec): Let low target handle debug registers.
+ (child_add_thread): Likewise.
+ (child_init_thread_list): Likewise.
+ (continue_one_thread): Likewise.
+ (regptr): New.
+ (do_child_fetch_inferior_registers): Move to ...
+ * win32-i386-low.c: ... here, and rename to ...
+ (do_fetch_inferior_registers): ... this.
+ * win32-low.c (child_fetch_inferior_registers):
+ Go through the low target.
+ (do_child_store_inferior_registers): Use regptr.
+ (strwinerror): New function.
+ (win32_create_inferior): Handle Windows CE.
+ Use strwinerror instead of strerror on Windows error
+ codes. Add program to the error output.
+ Don't close the main thread handle on Windows CE.
+ (win32_attach): Use coredll.dll on Windows CE.
+ (win32_kill): Close current process and current
+ thread handles.
+ (win32_detach): Use coredll.dll on Windows CE.
+ (win32_resume): Let low target handle debug registers, and
+ step request.
+ (handle_exception): Add/Remove initial breakpoint. Avoid
+ non-existant WSTOPSIG on Windows CE.
+ (win32_read_inferior_memory): Cast to remove warning.
+ (win32_arch_string): Go through the low target.
+ (initialize_low): Call set_breakpoint_data with the low
+ target's breakpoint.
+ * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
+ FOP_REGNUM, mappings): Move to ...
+ * win32-i386-low.c: ... here.
+ * win32-low.c (win32_thread_info): Move to ...
+ * win32-low.h: ... here.
+ * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
+ win32-arm-low.c and wincecompat.c.
+ (all:): Add $EXEEXT.
+ (install-only:): Likewise.
+ (gdbserver:): Likewise.
+ (gdbreplay:): Likewise.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-low.c: Rename typedef thread_info to
+ win32_thread_info throughout.
+
+2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * win32-i386-low.c: Rename to ...
+ * win32-low.c: ... this.
+ * configure.srv: Replace win32-i386-low.o with win32-low.o.
+ * Makefile.in: Likewise.
+
+2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * remote-utils.c (monitor_output): Constify msg parameter.
+ * server.h (monitor_output): Likewise.
+ * win32-i386-low.c (handle_output_debug_string): New.
+ (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
+ handle_output_debug_string.
+ (get_child_debug_event): Likewise.
+
+2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
+
+ * server.c (main): Correct strtoul check.
+
+2007-03-27 Jon Ringle <jon@ringle.org>
+
+ * linux-low.c: Check __ARCH_HAS_MMU__ also.
+
+2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
+
+ * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
+
+2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * terminal.h: Check HAVE_SGTTY_H.
+
+2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
+
+ * remote-utils.c (remote_open): Print out the assigned port number.
+
+2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (monitor_output): New function.
+ * server.c (debug_threads): Define here.
+ (monitor_show_help): New function.
+ (handle_query): Handle qRcmd.
+ (main): Do not handle 'd' packet.
+ * server.h (debug_threads, remote_debug, monitor_output): Declare.
+ * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
+ of debug_threads.
+
+2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * Makefile.in (EXEEXT): New.
+ (clean): Use $(EXEEXT).
+
+2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * target.h (target_ops): Rename send_signal to request_interrupt,
+ and remove enum target_signal parameter.
+ * linux-low.c (linux_request_interrupt): Rename from
+ linux_send_signal, and always send SIGINT.
+ * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
+ and always send SIGINT.
+ * remote-utils.c (putpkt_binary): Call request_interrupt, instead
+ of send_signal.
+ (input_interrupt): Likewise.
+
+2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * server.c (get_features_xml): Check if target implemented
+ arch_string.
+ * win32-i386-low.c (win32_arch_string): New.
+ (win32_target_ops): Add win32_arch_string as arch_string member.
+
+2007-02-22 Markus Deuling <deuling@de.ibm.com>
+
+ * spu-low.c (spu_arch_string): New.
+ (spu_target_ops): Add spu_arch_string.
+
+2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c: Remove HAVE_TERMINAL_H check.
+ * configure.ac: Do not check for terminal.h.
+ * configure, config.in: Regenerated.
+
+2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (OBS): Add $(XML_BUILTIN).
+ (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
+ (clean): Update.
+ (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
+ (arm-with-iwmmxt.c): New.
+ * config.in, configure: Regenerate.
+ * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
+ srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
+ * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
+ (arm*-*-linux*): Add iWMMXt and regset support.
+ * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
+ (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
+ (arm_store_wmmxregset, target_regsets): New.
+ * server.c (get_features_xml): Take annex argument. Check builtin
+ XML documents.
+ (handle_query): Handle multiple annexes.
+
+2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c [USE_WIN32API] (read, write): Define.
+ (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
+ write.
+
+2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-i386-low.c (the_low_target): Set arch_string.
+ * linux-x86-64-low.c (the_low_target): Likewise.
+ * linux-low.c (linux_arch_string): New.
+ (linux_target_ops): Add it.
+ * linux-low.h (struct linux_target_ops): Add arch_string.
+ * server.c (write_qxfer_response): Use const void * for DATA.
+ (get_features_xml): New.
+ (handle_query): Handle qXfer:features:read. Report it for qSupported.
+ * target.h (struct target_ops): Add arch_string method.
+
+2007-01-03 Denis Pilat <denis.pilat@st.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_kill): Handle being called with no threads.
+ * win32-i386-low.c (win32_kill): Likewise.
+ (get_child_debug_event): Clear current_process_handle.
+
+2006-12-30 Denis PILAT <denis.pilat@st.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (remote_open): Check the type of specified
+ serial port devices before opening them.
+ * server.c (main): Kill the inferior if an error occurs during
+ the first remote_open.
+
+2006-12-05 Markus Deuling <deuling@de.ibm.com>
+
+ * README: Update supported targets.
+
+2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (clean): Remove reg-mips64.c.
+ (reg-mips64.c, reg-mips64.o): New rules.
+ * configure.srv: Handle mips64. Include regset support for mips.
+ * linux-mips-low.c (union mips_register): New.
+ (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
+ (mips_breakpoint, mips_breakpoint_at): Use int.
+ (mips_collect_register, mips_supply_register)
+ (mips_collect_register_32bit, mips_supply_register_32bit)
+ (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
+ (mips_store_fpregset, target_regsets): New.
+ * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
+
+2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv: Add target "spu*-*-*".
+ * Makefile.in (clean): Remove reg-spu.c.
+ (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
+ * spu-low.c: New file.
+
+2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac: Correct td_thr_tls_get_addr test.
+ * configure: Regenerated.
+
+2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_wait_for_event): Reformat. Use the
+ pass_signals array.
+ * remote-utils.c (decode_address_to_semicolon): New.
+ * server.c (pass_signals, handle_general_set): New.
+ (handle_query): Mention QPassSignals for qSupported.
+ (main): Call handle_general_set.
+ * server.h (pass_signals, decode_address_to_semicolon): New.
+
+2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_query): Correct error handling for read_auxv.
+
+2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
+ and srv_linux_thread_db to yes.
+ * linux-s390-low.c (s390_fill_gregset): New function.
+ (target_regsets): Define data structure.
+
+2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
+ * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
+ * config.in, configure: Regenerated.
+ * inferiors.c (gdb_id_to_thread): New function.
+ (gdb_id_to_thread_id): Use it.
+ * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
+ * linux-low.h (struct process_info): Add th member.
+ (thread_db_get_tls_address): New prototype.
+ * remote-utils.c (decode_address): Make non-static.
+ * server.c (handle_query): Handle qGetTLSAddr.
+ * server.h (gdb_id_to_thread, decode_address): New prototypes.
+ * target.h (struct target_ops): Add get_tls_address.
+ * thread-db.c (maybe_attach_thread): Save the thread handle.
+ (thread_db_get_tls_address): New.
+
+2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
+ (linux_resume_one_process): Take a siginfo_t *. Update all
+ callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
+ (struct pending_signals): Add a siginfo_t.
+ (linux_wait_for_process): Always set last_status.
+ (linux_wait_for_event): Use PTRACE_GETSIGINFO.
+ (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
+ * linux-low.h (struct process_info): Add last_status.
+
+2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (try_rle): New function.
+ (putpkt_binary): Use it.
+
+2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (clean): Clean reg-x86-64-linux.c.
+ (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
+ * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
+ * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
+ (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
+ point registers.
+
+2006-08-08 Richard Sandiford <richard@codesourcery.com>
+
+ * server.c (terminal_fd): New variable.
+ (old_foreground_pgrp): Likewise.
+ (restore_old_foreground_pgrp): New function.
+ (start_inferior): Record the terminal file descriptor in terminal_fd
+ and its original foreground group in old_foreground_pgrp. Register
+ restore_old_foreground_pgrp with atexit().
+
+2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_query): Correct qPart to qXfer.
+
+2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac: Check for more headers which are missing on
+ Windows. Automatically supply -lwsock32 and USE_WIN32API.
+ * configure.srv: Add Cygwin and mingw32.
+ * remote-utils.c: Don't include headers unconditionally which
+ are missing on mingw32. Include <winsock.h> for mingw32.
+ (remote_open): Adjust for mingw32 support. Flush
+ standard error after writing to it.
+ (remote_close, putpkt_binary, input_interrupt, block_async_io)
+ (unblock_async_io, enable_async_io, disable_async_io)
+ (readchar, getpkt): Update for Winsock support.
+ (prepare_resume_reply): Expect a protocol signal number.
+ * server.c: Disable <sys/wait.h> on mingw32.
+ (start_inferior): Adjust for mingw32 support. Flush
+ standard error after writing to it.
+ (attach_inferior): Likewise. Use protocol signal
+ numbers.
+ (main): Skip 'D' packet on mingw32. Use protocol signal numbers
+ and names.
+ * win32-i386-low.c: New file.
+ * Makefile.in (XM_CLIBS): Set.
+ (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
+ (win32-i386-low.o): New dependency rule.
+ * linux-low.c (linux_wait): Use target signal numbers.
+ * target.h (struct target_ops): Doc fix.
+ * server.h (target_signal_to_name): New prototype.
+ * gdbreplay.c: Don't include headers unconditionally which
+ are missing on mingw32. Include <winsock.h> for mingw32.
+ (remote_close, remote_open): Adjust for Winsock support.
+ * configure, config.in: Regenerated.
+
+2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (decode_xfer_read, write_qxfer_response): New.
+ (handle_query): Take a packet length argument. Handle
+ qXfer:auxv:read instead of qPart:auxv:read. Mention it in
+ the qSupported response.
+ (main): Update call to handle_query.
+
+2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (remote_escape_output, remote_unescape_input): New.
+ (putpkt_binary): Renamed from putpkt and adjusted for binary
+ data.
+ (putpkt): New wrapper for putpkt_binary.
+ (readchar): Don't mask off the high bit.
+ (decode_X_packet): New function.
+ * server.c (main): Call putpkt_binary if a handler sets the packet
+ length. Save the length of the incoming packet. Handle 'X'.
+ * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
+
+2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_query): Handle qSupported.
+
+2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (all_symbols_looked_up): New variable.
+ (look_up_one_symbol): Check it.
+ * server.h (look_up_one_symbol): New declaration.
+ * thread-db.c (thread_db_init): Set all_symbols_looked_up.
+
+2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (linux-arm-low.o): Update dependencies.
+ * linux-arm-low.c: Include "gdb_proc_service.h".
+ (PTRACE_GET_THREAD_AREA): Define.
+ (ps_get_thread_area): New function.
+
+2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
+
+ * configure.srv (m68k*-*-uclinux*): New target.
+ * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
+ (linux_resume_one_process): Remove extraneous cast.
+ (linux_read_offsets): New.
+ (linux_target_op): Add linux_read_offsets on mmuless systems.
+ * server.c (handle_query): Add qOffsets logic.
+ * target.h (struct target_ops): Add read_offsets.
+
+2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
+ (PTRACE_GET_THREAD_AREA): Define.
+ (ps_get_thread_area): New function.
+ * Makefile.in (linux-i386-low.o, linux-mips-low.o)
+ (linux-x86-64-low.o): Update.
+
+2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac: Remove checks for prfpregset_t.
+ * gdb_proc_service.h: New file.
+ * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
+ new "gdb_proc_service.h".
+ * proc-service.c: Likewise.
+ (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
+ (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
+ * Makefile.in (gdb_proc_service_h): Updated.
+ * configure, config.in: Regenerated.
+
+2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote-utils.c (prepare_resume_reply): Move declaration
+ of gdb_id_from_wait to the top of the block.
+
+2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (regsets_store_inferior_registers): Read the regset
+ from the target before filling it.
+
+2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (attach_inferior): Return SIGTRAP for a successful
+ attach.
+
+2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (OBS): Add version.o.
+ (STAGESTUFF): Delete.
+ (version.o): Add dependencies.
+ (version.c): Replace rule.
+ (clean): Remove version.c.
+ * server.c (gdbserver_version): New.
+ (gdbserver_usage): Use printf.
+ (main): Handle --version and --help.
+ * server.h (version, host_name): Add declarations.
+
+2005-12-23 Eli Zaretskii <eliz@gnu.org>
+
+ * linux-arm-low.c:
+ * linux-arm-low.c:
+ * inferiors.c:
+ * i387-fp.h:
+ * i387-fp.c:
+ * gdbreplay.c:
+ * regcache.c:
+ * proc-service.c:
+ * mem-break.h:
+ * mem-break.c:
+ * linux-x86-64-low.c:
+ * linux-sh-low.c:
+ * linux-s390-low.c:
+ * linux-ppc64-low.c:
+ * linux-ppc-low.c:
+ * linux-mips-low.c:
+ * linux-m68k-low.c:
+ * linux-m32r-low.c:
+ * linux-low.h:
+ * linux-low.c:
+ * linux-ia64-low.c:
+ * linux-i386-low.c:
+ * linux-crisv32-low.c:
+ * thread-db.c:
+ * terminal.h:
+ * target.h:
+ * target.c:
+ * server.h:
+ * server.c:
+ * remote-utils.c:
+ * regcache.h:
+ * utils.c:
+ * Makefile.in:
+ * configure.ac:
+ * gdbserver.1: Add (C) after Copyright. Update the FSF
+ address.
+
+2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-arm-low.c (arm_eabi_breakpoint): New variable.
+ (arm_breakpoint_at): Recognize both breakpoints.
+ (the_low_target): Use the correct breakpoint instruction.
+
+2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.srv (x86_64-*-linux*): Turn on thread_db support.
+ * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
+ (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
+ (the_low_target): Update.
+
+2005-10-25 Andreas Schwab <schwab@suse.de>
+
+ * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
+
+ * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
+ (ia64_num_regs): Reduce to 462.
+
+2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * acinclude.m4: Correct quoting.
+ * aclocal.m4: Regenerated.
+
+ Suggested by SZOKOVACS Robert <szo@ies.hu>:
+ * thread-db.c (thread_db_err_str): Handle TD_VERSION.
+ (thread_db_init): Call thread_db_err_str.
+ * configure.ac: Check for TD_VERSION.
+ * config.in, configure: Regenerated.
+
+2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * server.h (error, fatal, warning): Add ATTR_FORMAT.
+
+2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
+ is not available. Define HAVE_PTRACE_GETREGS if it is.
+ * config.in, configure: Regenerated.
+ * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
+ * linux-i386-low.c, linux-m68k-low.c: Update to use
+ HAVE_PTRACE_GETREGS.
+ * linux-low.c (regsets_fetch_inferior_registers)
+ (regsets_store_inferior_registers): Only return 0 if we processed
+ GENERAL_REGS.
+ * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
+ * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
+
+2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * inferiors.c (struct thread_info): Add gdb_id.
+ (add_thread): Add gdb_id argument.
+ (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
+ * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
+ calls to add_thread.
+ * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
+ * server.c (handle_query): Use thread_to_gdb_id.
+ (handle_v_cont, main): Use gdb_id_to_thread_id.
+ * server.h (add_thread): Update prototype.
+ (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
+ prototypes.
+
+2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
+ left-padded registers.
+ * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
+ * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
+
+2005-07-01 Steve Ellcey <sje@cup.hp.com>
+
+ * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * server.h (NEED_DECLARATION_STRERROR):
+ Replace with !HAVE_DECL_STRERROR.
+
+2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_wait, linux_send_signal): Don't test
+ an unsigned long variable for > 0 if it could be MAX_ULONG.
+ * server.c (myresume): Likewise.
+ * target.c (set_desired_inferior): Likewise.
+
+2005-06-13 Mark Kettenis <kettenis@gnu.org>
+
+ * configure.ac: Simplify and improve check for socklen_t.
+ * configure, config.in: Regenerate.
+
+2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * acconfig.h: Remove.
+ * configure.ac: Add a test for socklen_t. Use three-argument
+ AC_DEFINE throughout.
+ * config.in: Regenerated using autoheader 2.59.
+ * configure: Regenerated.
+
+ * gdbreplay.c (socklen_t): Provide a default.
+ (remote_open): Use socklen_t.
+ * remote-utils.c (socklen_t): Provide a default.
+ (remote_open): Use socklen_t.
+ (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
+ unsigned char.
+
+ * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
+ char for buffers.
+ * linux-low.c (linux_read_memory, linux_write_memory)
+ (linux_read_auxv): Likewise.
+ * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
+ (check_mem_write): Likewise.
+ * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
+ Likewise.
+ * regcache.c (struct inferior_rgcache_data, registers_to_string)
+ (registers_from_string, register_data): Likewise.
+ * server.c (handle_query, main): Likewise.
+ * server.h (convert_ascii_to_int, convert_int_to_ascii)
+ (decode_M_packet): Likewise.
+ * target.c (read_inferior_memory, write_inferior_memory): Likewise.
+ * target.h (struct target_ops): Update read_memory, write_memory,
+ and read_auxv.
+ (read_inferior_memory, write_inferior_memory): Update.
+ * linux-low.h (struct linux_target_ops): Change type of breakpoint
+ to unsigned char *.
+ * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
+ linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
+ linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
+ linux-s390-low.c, linux-sh-low.c: Update for changes in
+ read_inferior_memory and the_low_target->breakpoint.
+
+2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (SFILES): Add linux-ppc64-low.c.
+ (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
+ * configure.srv: Add powerpc64-*-linux*.
+ * linux-ppc64-low.c: New file.
+
+2005-05-23 Orjan Friberg <orjanf@axis.com>
+
+ * linux-cris-low.c: New file with support for CRIS.
+ * linux-crisv32-low.c: Ditto for CRISv32.
+ * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
+ (clean): Add reg-cris.c and reg-crisv32.c.
+ Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
+ reg-crisv32.o, and reg-crisv32.c to make rules.
+ * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
+ recognized targets.
+
+2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-low.c (fetch_register): Ensure buffer size is a multiple
+ of sizeof (PTRACE_XFER_TYPE).
+ (usr_store_inferior_registers): Likewise. Zero out excess bytes.
+
+2005-05-12 Orjan Friberg <orjanf@axis.com>
+
+ * target.h (struct target_ops): Add insert_watchpoint,
+ remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
+ pointers for hardware watchpoint support.
+ * linux-low.h (struct linux_target_ops): Ditto.
+ * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
+ (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
+ to linux_target_ops.
+ * remote-utils.c (prepare_resume_reply): Add watchpoint information to
+ reply packet.
+ * server.c (main): Recognize 'Z' and 'z' packets.
+
+2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
+ (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
+ (the_low_target): Add new members.
+
+2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * proc-service.c (ps_lgetregs): Search all_processes instead of
+ all_threads.
+
+2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (start_inferior): Change return type to int.
+ (attach_inferior): Change sigptr to int *.
+ (handle_v_cont, handle_v_requests): Change signal to int *.
+ (main): Change signal to int.
+
+2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
+
+ * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
+ * configure.srv: Add m32r*-*-linux*.
+ * linux-m32r-low.c: New file.
+
+2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
+
+2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
+ Take unsigned long arguments for PIDs.
+ * linux-low.c (add_process, linux_attach_lwp, linux_attach)
+ (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
+ (wait_for_sigstop, linux_resume_one_process)
+ (regsets_fetch_inferior_registers, linux_send_signal)
+ (linux_read_auxv): Likewise. Update the types of variables holding
+ PIDs. Update format string specifiers.
+ * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
+ * remote-utils.c (prepare_resume_reply): Likewise.
+ * server.c (cont_thread, general_thread, step_thread)
+ (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
+ unsigned long.
+ (handle_query): Update format specifiers.
+ (handle_v_cont, main): Use strtoul for thread IDs.
+ * server.h (struct inferior_list_entry): Use unsigned long for ID.
+ (add_thread, find_inferior_id, change_inferior_id, cont_thread)
+ (general_thread, step_thread, thread_from_wait)
+ (old_thread_from_wait): Update.
+ * target.h (struct thread_resume): Use unsigned long for THREAD.
+ (struct target_ops): Use unsigned long for arguments to attach and
+ thread_alive.
+
+2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * acinclude.m4: Include bfd/bfd.m4 directly.
+ * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
+ <agriffis@toolchain.org>.
+ * aclocal.m4, configure: Regenerated.
+
+2005-01-07 Andrew Cagney <cagney@gnu.org>
+
+ * configure.ac: Rename configure.in, require autoconf 2.59.
+ * configure: Re-generate.
+
+2004-12-08 Daniel Jacobowitz <dan@debian.org>
+
+ * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
+ LIBS when finished.
+ * aclocal.m4: Regenerated.
+ * configure: Regenerated.
+
+2004-11-21 Andreas Schwab <schwab@suse.de>
+
+ * linux-m68k-low.c (m68k_num_gregs): Define.
+ (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
+ (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
+ (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
+ (m68k_breakpoint_at): New. Add to the_low_target.
+
+ * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
+ srv_linux_thread_db to yes.
+
+2004-10-20 Joel Brobecker <brobecker@gnat.com>
+
+ * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
+ (ARCH_SET_FS): Likewise.
+ (ARCH_GET_FS): Likewise.
+ (ARCH_GET_GS): Likewise.
+
+2004-10-16 Daniel Jacobowitz <dan@debian.org>
+
+ * linux-i386-low.c (ps_get_thread_area): New.
+ * linux-x86-64-low.c (ps_get_thread_area): New.
+ * linux-low.c: Include <sys/syscall.h>.
+ (linux_kill_one_process): Don't kill the first thread here.
+ (linux_kill): Kill the first thread here.
+ (kill_lwp): New function.
+ (send_sigstop, linux_send_signal): Use it.
+ * proc-service.c: Clean up #ifdefs.
+ (fpregset_info): Delete.
+ (ps_lgetregs): Update and enable implementation.
+ (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
+ implementations.
+ * remote-utils.c (struct sym_cache, symbol_cache): New.
+ (input_interrupt): Print a clearer message.
+ (async_io_enabled): New variable.
+ (enable_async_io, disable_async_io): Use it. Update comments.
+ (look_up_one_symbol): Use the symbol cache.
+ * thread-db.c (thread_db_look_up_symbols): New function.
+ (thread_db_init): Update comments. Call thread_db_look_up_symbols.
+
+2004-10-16 Daniel Jacobowitz <dan@debian.org>
+
+ * configure.in: Test for -rdynamic.
+ * configure: Regenerated.
+ * Makefile (INTERNAL_LDFLAGS): New.
+ (gdbserver, gdbreplay): Use it.
+
+2004-09-02 Andrew Cagney <cagney@gnu.org>
+
+ * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
+
+2004-03-23 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_wait): Clear all_processes list also.
+
+2004-03-12 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c: Include <errno.h>. Remove extern declaration of
+ errno.
+
+2004-03-12 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdbreplay.c, server.h, utils.c: Update copyright years.
+
+2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
+
+ * server.c (main): Print child status or termination signal from
+ variable 'signal', not 'sig'.
+
+2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
+
+ * linux-low.c (linux_read_memory): Change return type to
+ int. Check for and return error from ptrace().
+ * target.c (read_inferior_memory): Change return type to int. Pass
+ back return status from the_target->read_memory().
+ * target.h (struct target_ops): Adapt *read_memory() prototype.
+ Update comment.
+ (read_inferior_memory): Adapt prototype.
+ * server.c (main): Return an error packet if
+ read_inferior_memory() returns an error.
+
+2004-03-04 Daniel Jacobowitz <drow@mvista.com>
+
+ * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
+ Unify with other clean targets.
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * server.c (handle_v_cont): Call set_desired_inferior.
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * remote-utils.c (prepare_resume_reply): Always supply "thread:".
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_wait): Unblock async I/O.
+ (linux_resume): Block and enable async I/O.
+ * remote-utils.c (block_async_io, unblock_async_io): New functions.
+ * server.h (block_async_io, unblock_async_io): Add prototypes.
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * remote-utils.c (remote_open): Print a status notice after
+ opening a TCP port.
+ * server.c (attach_inferior): Print a status notice after
+ attaching.
+
+2004-02-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
+
+2004-02-26 Daniel Jacobowitz <drow@mvista.com>
+
+ * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
+ error packet.
+ * server.c, target.h: Update copyright years.
+
+2004-02-25 Roland McGrath <roland@redhat.com>
+
+ * target.h (struct target_ops): New member `read_auxv'.
+ * server.c (handle_query): Handle qPart:auxv:read: query using that.
+ * linux-low.c (linux_read_auxv): New function.
+ (linux_target_ops): Initialize `read_auxv' member to that.
+
+2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ Committed by Jim Blandy <jimb@redhat.com>.
+
+ * linux-s390-low.c (s390_num_regs): Update.
+ (s390_regmap): Remove control registers. Use __s390x__ predefine
+ instead of GPR_SIZE to distiguish s390 and s390x targets.
+
+2004-01-31 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c: Update copyright year.
+ (check_removed_breakpoint): Clear pending_is_breakpoint.
+ (linux_set_resume_request, linux_queue_one_thread)
+ (resume_status_pending_p): New functions.
+ (linux_continue_one_thread): Use process->resume.
+ (linux_resume): Only resume threads if there are no pending events.
+ * linux-low.h (struct process_info): Add resume request
+ pointer.
+
+2004-01-30 Daniel Jacobowitz <drow@mvista.com>
+
+ * regcache.c (new_register_cache): Clear the allocated register
+ buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
+
+2003-10-13 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_resume): Take a struct thread_resume *
+ argument.
+ (linux_wait): Update call.
+ (resume_ptr): New static variable.
+ (linux_continue_one_thread): Renamed from
+ linux_continue_one_process. Use resume_ptr.
+ (linux_resume): Use linux_continue_one_thread.
+ * server.c (handle_v_cont, handle_v_requests): New functions.
+ (myresume): New function.
+ (main): Handle 'v' case.
+ * target.h (struct thread_resume): New type.
+ (struct target_ops): Change argument of "resume" to struct
+ thread_resume *.
+ (myresume): Delete macro.
+
+2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * Makefile.in (install-only): Create dest dir. Support DESTDIR.
+ (uninstall): Support DESTDIR.
+
+Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
+
+ * configure.srv: Add xscale*linux copy of arm*linux entry.
+
+2003-07-24 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-arm-low.c (arm_reinsert_addr): New function.
+ (the_low_target): Add arm_reinsert_addr.
+
+2003-07-08 Mark Kettenis <kettenis@gnu.org>
+
+ * mem-break.c: Remove whitespace at end of file.
+
+2003-06-28 Daniel Jacobowitz <drow@mvista.com>
+
+ * configure.in: Check whether we need to prototype strerror.
+ * server.h: Optionally prototype strerror.
+ * gdbreplay.c (perror_with_name): Use strerror.
+ * linux-low.c (linux_attach_lwp): Use strerror.
+ * utils.c (perror_with_name): Use strerror.
+ * config.in, configure: Regenerated.
+
+2003-06-28 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
+ SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
+
+2003-06-20 Daniel Jacobowitz <drow@mvista.com>
+
+ * Makefile.in (SFILES): Update.
+ * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
+ low-sun3.c: Remove files.
+
+2003-06-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c: Move comment to linux_thread_alive where it belonged.
+ (linux_detach_one_process, linux_detach): New functions.
+ (linux_target_ops): Add linux_detach.
+ * server.c (main): Handle 'D' packet.
+ * target.h (struct target_ops): Add "detach" member.
+ (detach_inferior): Define.
+
+2003-06-13 Mark Kettenis <kettenis@gnu.org>
+
+ From Kelley Cook <kelleycook@wideopenwest.com>:
+ * configure.srv: Accept i[34567]86 variants.
+
+2003-06-05 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_wait_for_event): Correct comment typos.
+ (linux_resume_one_process): Call check_removed_breakpoint.
+ (linux_send_signal): New function.
+ (linux_target_ops): Add linux_send_signal.
+ * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
+ of kill.
+ * target.h (struct target_ops): Add send_signal.
+
+2003-05-29 Jim Blandy <jimb@redhat.com>
+
+ * linux-low.c (usr_store_inferior_registers): Transfer buf in
+ PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
+ if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
+ away part of the register's value.
+
+2003-03-26 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
+ (linux_wait_for_event, linux_init_signals): Likewise.
+
+2003-03-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * configure.in: Check for stdlib.h.
+ * configure: Regenerated.
+ * config.in: Regenerated.
+
+2003-01-04 Andreas Schwab <schwab@suse.de>
+
+ * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
+
+2003-01-02 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in: Remove obsolete code.
+
+2002-11-20 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
+ defined(PT_FPR0_HI).
+
+2002-11-17 Stuart Hughes <seh@zee2.com>
+
+ * linux-arm-low.c (arm_num_regs): Increase.
+ (arm_regmap): Include status register.
+
+2002-11-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (register_addr): Remove incorrect -1 check.
+
+2002-08-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_create_inferior): Call setpgid. Return
+ the new PID.
+ (unstopped_p, linux_signal_pid): Remove.
+ (linux_target_ops): Remove linux_signal_pid.
+ * remote-utils.c (putpkt, input_interrupt): Use signal_pid
+ global instead of target method.
+ * target.h (struct target_ops): Remove signal_pid. Update comment
+ for create_inferior.
+ * server.c (signal_pid): New variable.
+ (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
+ gdbserver. Set the child to be the foreground process group.
+ (attach_inferior): Set signal_pid.
+
+2002-08-23 Daniel Jacobowitz <drow@mvista.com>
+
+ * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
+
+2002-08-20 Jim Blandy <jimb@redhat.com>
+
+ * Makefile.in (LDFLAGS): Allow the configure script to establish a
+ default for this.
+
+2002-08-01 Andrew Cagney <cagney@redhat.com>
+
+ * Makefile.in: Make chill references obsolete.
+
+2002-07-24 Kevin Buettner <kevinb@redhat.com>
+
+ * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+
+2002-07-09 David O'Brien <obrien@FreeBSD.org>
+
+ * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
+ (perror_with_name, remote_close, remote_open, expect, play): Static.
+
+2002-07-04 Michal Ludvig <mludvig@suse.cz>
+
+ * linux-x86-64-low.c (x86_64_regmap): Make it an array of
+ byte offsets instead of an array of indexes.
+ (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
+
+2002-06-13 Daniel Jacobowitz <drow@mvista.com>
+
+ * regcache.c: Add comment.
+
+2002-06-11 Daniel Jacobowitz <drow@mvista.com>
+
+ * thread-db.c: New file.
+ * proc-service.c: New file.
+ * acinclude.m4: New file.
+ * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
+ proc-service.o, and thread-db.o.
+ (linux-low.o): Add USE_THREAD_DB.
+ * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
+ HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
+ * aclocal.m4: Regenerated.
+ * config.in: Regenerated.
+ * configure: Regenerated.
+ * configure.in: Check for proc_service.h, sys/procfs.h,
+ thread_db.h, and linux/elf.h headrs.
+ Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
+ PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
+ Check for -lthread_db and thread support.
+ * configure.srv: Enable thread_db support for ARM, i386, MIPS,
+ PowerPC, and SuperH.
+ * i387-fp.c: Constify arguments.
+ * i387-fp.h: Likewise.
+ * inferiors.c: (struct thread_info): Renamed from
+ `struct inferior_info'. Remove PID member. Use generic inferior
+ list header. All uses updated.
+ (inferiors, signal_pid): Removed.
+ (all_threads): New variable.
+ (get_thread): Define.
+ (add_inferior_to_list): New function.
+ (for_each_inferior): New function.
+ (change_inferior_id): New function.
+ (add_inferior): Removed.
+ (remove_inferior): New function.
+ (add_thread): New function.
+ (free_one_thread): New function.
+ (remove_thread): New function.
+ (clear_inferiors): Use for_each_inferior and free_one_thread.
+ (find_inferior): New function.
+ (find_inferior_id): New function.
+ (inferior_target_data): Update argument type.
+ (set_inferior_target_data): Likewise.
+ (inferior_regcache_data): Likewise.
+ (set_inferior_regcache_data): Likewise.
+ * linux-low.c (linux_bp_reinsert): Remove.
+ (all_processes, stopping_threads, using_thrads)
+ (struct pending_signals, debug_threads, pid_of): New.
+ (inferior_pid): Replace with macro.
+ (struct inferior_linux_data): Remove.
+ (get_stop_pc, add_process): New functions.
+ (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
+ Use add_process and add_thread.
+ (linux_attach_lwp): New function, based on old linux_attach. Use
+ add_process and add_thread. Set stop_expected for new threads.
+ (linux_attach): New function.
+ (linux_kill_one_process): New function.
+ (linux_kill): Kill all LWPs.
+ (linux_thread_alive): Use find_inferior_id.
+ (check_removed_breakpoints, status_pending_p): New functions.
+ (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
+ Update. Use WNOHANG. Wait for cloned processes also. Update process
+ struct for the found process.
+ (linux_wait_for_event): New function.
+ (linux_wait): Use it. Support LWPs.
+ (send_sigstop, wait_for_sigstop, stop_all_processes)
+ (linux_resume_one_process, linux_continue_one_process): New functions.
+ (linux_resume): Support LWPs.
+ (REGISTER_RAW_SIZE): Remove.
+ (fetch_register): Use register_size instead. Call supply_register.
+ (usr_store_inferior_registers): Likewise. Call collect_register.
+ Fix recursive case.
+ (regsets_fetch_inferior_registers): Improve error message.
+ (regsets_store_inferior_registers): Add debugging.
+ (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
+ (unstopped_p, linux_signal_pid): New functions.
+ (linux_target_ops): Add linux_signal_pid.
+ (linux_init_signals): New function.
+ (initialize_low): Call it. Initialize using_threads.
+ * regcache.c (inferior_regcache_data): Add valid
+ flag.
+ (get_regcache): Fetch registers lazily. Add fetch argument
+ and update all callers.
+ (regcache_invalidate_one, regcache_invalidate): New
+ functions.
+ (new_register_cache): Renamed from create_register_cache.
+ Return the new regcache.
+ (free_register_cache): Change argument to a void *.
+ (registers_to_string, registers_from_string): Call get_regcache
+ with fetch flag set.
+ (register_data): Make static. Pass fetch flag to get_regcache.
+ (supply_register): Call get_regcache with fetch flag clear.
+ (collect_register): Call get_regcache with fetch flag set.
+ (collect_register_as_string): New function.
+ * regcache.h: Update.
+ * remote-utils.c (putpkt): Flush after debug output and use
+ stderr.
+ Handle input interrupts while waiting for an ACK.
+ (input_interrupt): Use signal_pid method.
+ (getpkt): Flush after debug output and use stderr.
+ (outreg): Use collect_register_as_string.
+ (new_thread_notify, dead_thread_notify): New functions.
+ (prepare_resume_reply): Check using_threads. Set thread_from_wait
+ and general_thread.
+ (look_up_one_symbol): Flush after debug output.
+ * server.c (step_thread, server_waiting): New variables.
+ (start_inferior): Don't use signal_pid. Update call to mywait.
+ (attach_inferior): Update call to mywait.
+ (handle_query): Handle qfThreadInfo and qsThreadInfo.
+ (main): Don't fetch/store registers explicitly. Use
+ set_desired_inferior. Support proposed ``Hs'' packet. Update
+ calls to mywait.
+ * server.h: Update.
+ (struct inferior_list, struct_inferior_list_entry): New.
+ * target.c (set_desired_inferior): New.
+ (write_inferior_memory): Constify.
+ (mywait): New function.
+ * target.h: Update.
+ (struct target_ops): New signal_pid method.
+ (mywait): Removed macro, added prototype.
+
+ * linux-low.h (regset_func): Removed.
+ (regset_fill_func, regset_store_func): New.
+ (enum regset_type): New.
+ (struct regset_info): Add type field. Use new operation types.
+ (struct linux_target_ops): stop_pc renamed to get_pc.
+ Add decr_pc_after_break and breakpoint_at.
+ (get_process, get_thread_proess, get_process_thread)
+ (strut process_info, all_processes, linux_attach_lwp)
+ (thread_db_init): New.
+
+ * linux-arm-low.c (arm_get_pc, arm_set_pc,
+ arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
+ (the_low_target): Add new members.
+ * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
+ (i386_store_fpxregset): Constify.
+ (target_regsets): Add new kind identifier.
+ (i386_get_pc): Renamed from i386_stop_pc. Simplify.
+ (i386_set_pc): Add debugging.
+ (i386_breakpoint_at): New function.
+ (the_low_target): Add new members.
+ * linux-mips-low.c (mips_get_pc, mips_set_pc)
+ (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
+ (mips_breakpoint_at): New.
+ (the_low_target): Add new members.
+ * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
+ (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
+ (the_low_target): Add new members.
+ * linux-sh-low.c (sh_get_pc, sh_set_pc)
+ (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
+ (the_low_target): Add new members.
+ * linux-x86-64-low.c (target_regsets): Add new kind
+ identifier.
+
+2002-05-15 Daniel Jacobowitz <drow@mvista.com>
+
+ From Martin Pool <mbp@samba.org>:
+ * server.c (gdbserver_usage): New function.
+ (main): Call it.
+
+2002-05-14 Daniel Jacobowitz <drow@mvista.com>
+
+ * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
+ stop_at -> stop_pc.
+
+2002-05-04 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in: Remove obsolete code.
+
+2002-04-24 Michal Ludvig <mludvig@suse.cz>
+
+ * linux-low.c (regsets_fetch_inferior_registers),
+ (regsets_store_inferior_registers): Removed cast to int from
+ ptrace() calls.
+ * regcache.h: Added declaration of struct inferior_info.
+
+2002-04-20 Daniel Jacobowitz <drow@mvista.com>
+
+ * inferiors.c (struct inferior_info): Add regcache_data.
+ (add_inferior): Call create_register_cache.
+ (clear_inferiors): Call free_register_cache.
+ (inferior_regcache_data, set_inferior_regcache_data): New functions.
+ * regcache.c (struct inferior_regcache_data): New.
+ (registers): Remove.
+ (get_regcache): New function.
+ (create_register_cache, free_register_cache): New functions.
+ (set_register_cache): Don't initialize the register cache here.
+ (registers_to_string, registers_from_string, register_data): Call
+ get_regcache.
+ * regcache.h: Add prototypes.
+ * server.h: Likewise.
+
+2002-04-20 Daniel Jacobowitz <drow@mvista.com>
+
+ * mem-break.c: New file.
+ * mem-break.h: New file.
+ * Makefile.in: Add mem-break.o rule; update server.h
+ dependencies.
+ * inferiors.c (struct inferior_info): Add target_data
+ member.
+ (clear_inferiors): Free target_data member if set.
+ (inferior_target_data, set_inferior_target_data): New functions.
+ * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
+ (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
+ * linux-low.c (linux_bp_reinsert): New variable.
+ (struct inferior_linux_data): New.
+ (linux_create_inferior): Use set_inferior_target_data.
+ (linux_attach): Likewise. Call add_inferior.
+ (linux_wait_for_one_inferior): New function.
+ (linux_wait): Call it.
+ (linux_write_memory): Add const.
+ (initialize_low): Call set_breakpoint_data.
+ * linux-low.h (struct linux_target_ops): Add breakpoint
+ handling members.
+ * server.c (attach_inferior): Remove extra add_inferior
+ call.
+ * server.h: Include mem-break.h. Update inferior.c
+ prototypes.
+ * target.c (read_inferior_memory)
+ (write_inferior_memory): New functions.
+ * target.h (read_inferior_memory)
+ (write_inferior_memory): Change macros to prototypes.
+ (struct target_ops): Update comments. Add const to write_memory
+ definition.
+
+2002-04-11 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (usr_store_inferior_registers): Support
+ registers which are allowed to fail to store.
+ * linux-low.h (linux_target_ops): Likewise.
+ * linux-ppc-low.c (ppc_regmap): Support FPSCR.
+ (ppc_cannot_store_register): FPSCR may not be storable.
+
+2002-04-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * server.h: Include <string.h> if HAVE_STRING_H.
+ * ChangeLog: Correct paths in last ChangeLog entry.
+
+2002-04-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.h: Remove obsolete prototypes.
+ (struct linux_target_ops): New.
+ (extern the_low_target): New.
+ * linux-low.c (num_regs, regmap): Remove declarations.
+ (register_addr): Use the_low_target explicitly.
+ (fetch_register): Likewise.
+ (usr_fetch_inferior_registers): Likewise.
+ (usr_store_inferior_registers): Likewise.
+ * linux-arm-low.c (num_regs): Remove.
+ (arm_num_regs): Define.
+ (arm_regmap): Renamed from regmap, made static.
+ (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (arm_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-i386-low.c (num_regs): Remove.
+ (i386_num_regs): Define.
+ (i386_regmap): Renamed from regmap, made static.
+ (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (i386_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-ia64-low.c (num_regs): Remove.
+ (ia64_num_regs): Define.
+ (ia64_regmap): Renamed from regmap, made static.
+ (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (ia64_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-m68k-low.c (num_regs): Remove.
+ (m68k_num_regs): Define.
+ (m68k_regmap): Renamed from regmap, made static.
+ (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (m68k_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-mips-low.c (num_regs): Remove.
+ (mips_num_regs): Define.
+ (mips_regmap): Renamed from regmap, made static.
+ (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (mips_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-ppc-low.c (num_regs): Remove.
+ (ppc_num_regs): Define.
+ (ppc_regmap): Renamed from regmap, made static.
+ (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (ppc_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-s390-low.c (num_regs): Remove.
+ (s390_num_regs): Define.
+ (s390_regmap): Renamed from regmap, made static.
+ (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (s390_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-sh-low.c (num_regs): Remove.
+ (sh_num_regs): Define.
+ (sh_regmap): Renamed from regmap, made static.
+ (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
+ made static.
+ (sh_cannot_store_register): Renamed from cannot_store_register,
+ made static.
+ (the_low_target): New.
+ * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
+ (the_low_target): New.
+
+2002-04-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * Makefile.in: Add stamp-h target.
+ * configure.in: Create stamp-h.
+ * configure: Regenerated.
+
+2002-04-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * inferiors.c: New file.
+ * target.c: New file.
+ * target.h: New file.
+ * Makefile.in: Add target.o and inferiors.o. Update
+ dependencies.
+ * linux-low.c (inferior_pid): New static variable,
+ moved from server.c.
+ (linux_create_inferior): Renamed from create_inferior.
+ Call add_inferior. Return 0 on success instead of a PID.
+ (linux_attach): Renamed from myattach.
+ (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
+ (linux_thread_alive): Renamed from mythread_alive.
+ (linux_wait): Renamed from mywait. Call clear_inferiors () if the
+ child dies.
+ (linux_resume): Renamed from myresume. Add missing ``return 0''.
+ (regsets_store_inferior_registers): Correct error message.
+ Add missing ``return 0''.
+ (linux_fetch_registers): Renamed from fetch_inferior_registers.
+ (linux_store_registers): Renamed from store_inferior_registers.
+ (linux_read_memory): Renamed from read_inferior_memory.
+ (linux_write_memory): Renamed from write_inferior_memory.
+ (linux_target_ops): New structure.
+ (initialize_low): Call set_target_ops ().
+ * remote-utils.c (unhexify): New function.
+ (hexify): New function.
+ (input_interrupt): Send signals to ``signal_pid''.
+ * server.c (inferior_pid): Remove.
+ (start_inferior): Update create_inferior call.
+ (attach_inferior): Call add_inferior.
+ (handle_query): New function.
+ (main): Call handle_query for `q' packets.
+ * server.h: Include "target.h". Remove obsolete prototypes.
+ Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
+
+2002-04-09 Daniel Jacobowitz <drow@mvista.com>
+
+ * Makefile.in: Add WARN_CFLAGS. Update configury
+ dependencies.
+ * configure.in: Check for <string.h>
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * gdbreplay.c: Include needed system headers.
+ (remote_open): Remove strchr prototype.
+ * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
+ * regcache.c (supply_register): Change buf argument to const void *.
+ (supply_register_by_name): Likewise.
+ (collect_register): Change buf argument to void *.
+ (collect_register_by_name): Likewise.
+ * regcache.h: Add missing prototypes.
+ * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
+ * server.c (handle_query): New function.
+ (attached): New static variable, moved out of main.
+ (main): Quiet longjmp clobber warnings.
+ * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
+ * utils.c (error): Remove NORETURN.
+ (fatal): Likewise.