* resbin.c (bin_to_res_version): Correct offset
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
index 8627aa9c4a7add8c45e1e221fdddb0686c59a7b9..0b1fb8109c6a59b894cb647f2e5c9d411259cdef 100644 (file)
@@ -1,3 +1,533 @@
+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.
This page took 0.029808 seconds and 4 git commands to generate.