aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
2011-03-18 * common/signals.c (target_signal_from_host): Add _ markup to errorPierre Muller2-0/+10
function call message. (target_signal_to_host): Add _ markup and remove trailing new line from warning call message. (target_signal_from_command): Add _ markup to error function call message. * gdbserver/server.h (Macro _): Define it if not available.
2011-03-14Fix earlier changelog errors.Michael Snyder1-1/+15
2011-03-142011-03-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+11
* gdbserver/hostio.c (handle_close): Remove unnecessary null test.
2011-03-102011-02-28 Michael Snyder <msnyder@vmware.com>Michael Snyder1-7/+7
* tracepoint.c (cmd_qtv): Discard unused value 'packet'. (cmd_qtframe): Ditto. (cmd_qtbuffer): Ditto. (cmd_bigqtbuffer): Ditto.
2011-03-102011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder1-0/+1
* gdbserver/tracepoint.c (tracepoint_finish_step): Fix loop variable.
2011-03-102011-03-10 Michael Snyder <msnyder@vmware.com>Michael Snyder1-2/+2
* gdbserver/server.c (handle_v_run): Free alloced buffer on early return.
2011-03-10remove subdir_do recursive make command in gdbserver/Makefile.inJoel Brobecker2-1/+5
This fixes: % [...]/gdbserver/configure % make distclean [...] rm -f amd64-avx.c amd64-avx-linux.c rm -f i386-mmx.c i386-mmx-linux.c make[1]: Entering directory `/[...]' make[1]: *** No rule to make target `subdir_do'. Stop. make[1]: Leaving directory `[...]' make: *** [distclean] Error 2 gdb/gdbserver/ChangeLog: * Makefile.in (maintainer-clean realclean distclean): Remove "make ... subdir_do" command.
2011-03-092011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+1
* gdbserver/tracepoint.c: Fix small comment typo.
2011-03-09gdb/Yao Qi4-149/+26
2011-03-09 Yao Qi <yao@codesourcery.com> Revert: 2011-02-11 Yao Qi <yao@codesourcery.com> * common/Makefile.in: Add copyright header. 2011-02-11 Yao Qi <yao@codesourcery.com> * Makefile.in: Remove signals.o from COMMON_OBS. Link libcommon.a. * configure.ac: Add common to sub dir. * configure: Regenerate. gdb/gdbserver/ 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-07gdb/gdbserver/Jan Kratochvil2-1/+5
* remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
2011-03-06gdbserver: configure + make clean fails (no 'common' subdir)Joel Brobecker2-1/+5
This problem was noticed during the nightly snapshot build, but can be reduced to: % /path/to/gdb/gdbserver/configure % make clean The "make clean" fails, because it tries to do a "make clean" in the common/ subdirectory. But the problem is that this common/ subdirectory is NOT created during the configure phase, but rather during the build phase. The error is fatal because we had put the common subdirectory in the list of REQUIRED_SUBDIRS. This fixes the problem by removing it from the REQUIRED_SUBDIRS list. gdb/gdbserver/ChangeLog: * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
2011-03-05fix make clean doesn't run in gdbserver/commonJoel Brobecker2-0/+28
011-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-052011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+1
* gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
2011-03-042011-03-04 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+5
* Makefile.in: Remove GNU make feature --directory.
2011-03-022011-03-02 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+1
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
2011-02-282011-02-28 Michael Snyder <msnyder@vmware.com>Michael Snyder2-4/+6
* utils.c (decimal2str): Initialize 'width' to nine, then don't mess with it.
2011-02-28 * hostio.c (require_data): Free *data, not data.Ulrich Weigand2-1/+5
2011-02-28gdb/gdbserver/Jan Kratochvil2-1/+5
* hostio.c (require_data): Use free, not xfree.
2011-02-282011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+3
* server.c (handle_query): Discard unused value.
2011-02-272011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+9
* hostio.c (require_data): Free malloc memory before returning error.
2011-02-272011-02-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* linux-low.c (list_threads): Call closedir for dirent.
2011-02-272011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+4
* i386-low.c (i386-length_and_rw_bits): Comment the fact that a case statement falls through.
2011-02-272011-02-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+3
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
2011-02-272011-02-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+6
* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error in comparison.
2011-02-262011-02-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2-7/+12
* utils.c (decimal2str): Eliminate dead code and dead param. (pulongest): Drop dead param from call to decimal2str. (plongest): Ditto.
2011-02-24Revert the following patch (printf tracepoint op) (not approved yet)Joel Brobecker2-44/+7
2011-02-21 Hui Zhu <teawater@gmail.com> * tracepoint.c (tp_printf): New function. (eval_agent_expr): Handle gdb_agent_op_printf.
2011-02-212011-02-21 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+49
* tracepoint.c (tp_printf): New function. (eval_agent_expr): Handle gdb_agent_op_printf.
2011-02-18gdbTom Tromey3-106/+30
* common/ax.def: New file. * ax.h (enum agent_op): Use ax.def. * ax-general.c (aop_map): Use ax.def. gdbserver * 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-18gdbTom Tromey2-0/+30
* ax-general.c (aop_map): Add pick and rot. * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. <DW_OP_rot>: Implement. * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. (ax_pick): Declare. * ax-general.c (ax_pick): New function. doc * agentexpr.texi (Bytecode Descriptions): Document pick and rot. gdbserver * 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-15gdb/Jan Kratochvil2-1/+5
* Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. * aclocal.m4: Regenerated with aclocal-1.11.1. * common/configure: Regenerate with autoconf-2.64. gdb/gdbserver/ * aclocal.m4: Regenerated with aclocal-1.11.1.
2011-02-14 gdb/Pedro Alves4-3/+176
* target.h (struct traceframe_info): Forward declare. (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. (struct target_ops) <to_traceframe_info>: New field. (target_traceframe_info): New. * target.c (update_current_target): Inherit and default to_traceframe_info. * remote.c (PACKET_qXfer_traceframe_info): New. (remote_protocol_features): Register qXfer:traceframe-info:read. (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. (remote_traceframe_info): New. (init_remote_ops): Install it. (_initialize_remote): Install "set/show remote traceframe-info" commands. * tracepoint.h (parse_traceframe_info): Declare. * tracepoint.c (struct mem_range): New. (mem_range_s): New typedef. (struct traceframe_info): New. (traceframe_info): New global. (free_traceframe_info): New function. (clear_traceframe_info): New function. (start_tracing, tfind_1, set_traceframe_number): Clear traceframe info. (build_traceframe_info): New function. (tfile_traceframe_info): New function. (init_tfile_ops): Install tfile_traceframe_info. (traceframe_info_start_memory, free_result): New functions. (memory_attributes, traceframe_info_elements): New globals. (parse_traceframe_info, get_traceframe_info): New functions. * features/traceframe-info.dtd: New file. * Makefile.in (XMLFILES): Add traceframe-info.dtd. gdb/gdbserver/ * 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. gdb/doc/ * gdb.texinfo (Remote Configuration): Mention set/show remote traceframe-info. (Tools/Packages Optional for Building GDB): Mention that expat is used for traceframe info. (Remote Protocol) <Menu>: Add "Traceframe Info Format". (General Query Packets) <qSupported>: Describe the qXfer:traceframe-info:read feature. (qXfer::read): Describe qXfer:traceframe-info:read. (Traceframe Info Format): New section.
2011-02-112011-02-11 Yao Qi <yao@codesourcery.com>Yao Qi4-6/+135
* Makefile.in: Remove signals.o from COMMON_OBS. Link libcommon.a. * configure.ac: Add common to sub dir. * configure: Regenerate. common/ 2011-02-11 Yao Qi <yao@codesourcery.com> Build libcommon.a. * Makefile.in: New. * configure.ac: New. * aclocal.m4: New. * configure: Generate. gdbserver/ 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 gdb/server/Pedro Alves3-20/+46
* 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. gdb/testsuite/ * gdb.trace/collection.c (global_pieces): New. * gdb.trace/collection.exp (gdb_collect_global_in_pieces_test): New procedure. (gdb_trace_collection_test): Call it.
2011-01-28 gdb/gdbserver/Pedro Alves5-10/+124
* 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-282011-01-28 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-27/+32
* i387-fp.c (i387_xsave_to_cache): Make passing NULL as register buffer explicit.
2011-01-252011-01-25 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-427/+404
* 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-062011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder18-66/+151
* 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-05Update the copyright year for most remaining files in GDBJoel Brobecker3-2/+7
2011-01-01run copyright.sh for 2011.Joel Brobecker58-58/+62
2011-01-01Update copyright year in version of output (gdb/gdbserver/gdbreplay)Joel Brobecker3-2/+8
gdb/ChangeLog: * top.c (print_gdb_version): Update copyright year in version output. gdb/gdbserverChangeLog: * server.c (gdbserver_version): Update copyright year in version output. * gdbreplay.c (gdbreplay_version): Ditto.
2010-12-29gdbserver: bfin: new portMike Frysinger6-3/+136
Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-23gdbserver: start a gitignoreMike Frysinger2-0/+8
2010-11-16gdbserver: fix warning in nommu cloneMike Frysinger2-1/+5
Building gdbserver for nommu targets atm fails with: linux-low.c: In function 'linux_tracefork_child': linux-low.c:4151: error: pointer of type 'void *' used in arithmetic So cast the void* to a char*. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-21 * Makefile.in (install): Remove dependency of install-only andJie Zhang2-1/+41
recursively invoke make for install-only. * data-directory/Makefile.in: Add FLAGS_TO_PASS variable. (install): Pass FLAGS_TO_PASS when recursively make install-only. gdbserver/ * Makefile.in: Add FLAGS_TO_PASS variable. (install): Remove dependency of install-only and recursively invoke make for install-only.
2010-10-04* Makefile.in (uninstall): Use $(DESTDIR).Doug Evans2-1/+5
2010-09-24 PR gdb/11842Pedro Alves1-0/+2
gdb/ * amd64-linux-nat.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. gdb/gdbserver/ * 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-24 gdb/Pedro Alves2-8/+19
* amd64-linux-nat.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. gdb/gdbserver/ * 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-13Add support for x86 LynxOSJoel Brobecker3-0/+328
This patch adds support for x86 LynxOS (tested on LynxOS 5.0). gdb/gdbserver/ChangeLog: * lynx-i386-low.c: New file. * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
2010-09-13[LynxOS] Remove handling of PTRACE_* values removed in Lynx5.Joel Brobecker2-40/+5
Some of the PTRACE_ macros/values were removed in LynxOS 5.x. Since we have not use them so far, the chances that we will use them one day are very small. So I decided to delete them. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Remove handling for request values that have been removed in LynxOS 5.x.
2010-09-13[LynxOS] Include sys/ptrace.h instead of ptrace.h.Joel Brobecker3-2/+7
This is one of the changes needed in order to build gdbserver on LynxOS 5.x. Really interesting: On LynxOS 4.x, there is a #warning when sys/ptrace.h is used (explaining that ptrace.h will be used instead), whereas this file was removed from LynxOS 5.x. The contents of sys/ptrace.h on 4.x (or at least the meat of it): #if defined(__GNUC__) || defined(__GNUG__) #if !defined(__NO_INCLUDE_WARN__) #warning Using <ptrace.h> instead of <sys/ptrace.h> #endif /* defined(__NO_INCLUDE_WARN__) */ #endif /* defined(__GNUC__) || defined(__GNUG__) */ #include <ptrace.h> The fix I went for, for now, is to just include <sys/ptrace.h> unconditionally. I could have done some configury, but we already have to build with -D__NO_INCLUDE_WARN__ to avoid the warnings anyway, and that's unvoidable, due to system includes themselves including the "wrong" header file. Since <sys/ptrace.h> seems to be the choice that was made for LynxOS, and since it works to include it on LynxOS 4.x, I think that's the simplest solution. gdb/gdbserver/ChangeLog: * lynx-low.c, lynx-ppc-low.c: Include <sys/ptrace.h> instead of <ptrace.h>