aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
2013-02-19gdbserver:server.c - use unpack_varlen_hex to extract hex numbers.Pedro Alves2-5/+17
Addresses, as most numbers in the RSP are hex encoded, with variable length (that just means the width isn't specified, and there's no top cap. So they should be extracted with unpack_varlen_hex. A couple spots in server.c are using strto(u)l, which doesn't work on LLP64 targets. This patch fixes it. Tested on x86_64 Fedora 17. 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-18gdb/gdbserverYao Qi2-1/+5
* linux-bfin-low.c (the_low_target): Use NULL instead of 0.
2013-02-14gdbserver: QTNotes, plug memory leak.Pedro Alves2-0/+10
The previous notes aren't being released before setting new ones. Tested on x86_64 Fedora 17. gdb/gdbserver/ 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-14gdbserver:tracepoint.c:cmd_qtdpsrc use savestring.Pedro Alves1-0/+4
An obvious use case for savestring. Tested on x86_64 Fedora 17. 2013-02-14 Pedro Alves <palves@redhat.com> * tracepoint.c (cmd_qtdpsrc): Use savestring.
2013-02-14Move savestring to common/common-utils.c, make gdbserver use it.Pedro Alves2-14/+7
This makes gdbserver share gdb's savestring, instead of baking its own. Tested on x86_64 Fedora 17. gdb/ 2013-02-14 Pedro Alves <palves@redhat.com> * utils.c (savestring): Don't #undef it. Move function to common/common-utils.c. * common/common-utils.c: Include gdb_string.h. (savestring): Move here from utils.c. * common/common-utils.h (savestring): Declare. gdb/gdbserver/ 2013-02-14 Pedro Alves <palves@redhat.com> * tracepoint.c (save_string): Delete. (add_tracepoint_action): Use savestring instead of save_string.
2013-02-12Consistent use of (C) after "Copyright".Pedro Alves3-2/+7
While writing the previous patch, I noticed that we're not consistent with the (C) in the copyright header. The maintainers manual prefers having it, though also says it's optional. We have over 10x more files with (C) than without in gdb's code, so I spent a few minutes grepping and fixing. Funny enough, the testsuite has it backwards. I'll leave that for another time. gdb/ 2013-02-12 Pedro Alves <palves@redhat.com> * amd64-darwin-tdep.c: Add (C) after Copyright. * cli/cli-cmds.h: Ditto. * cli/cli-decode.c: Ditto. * cli/cli-decode.h: Ditto. * cli/cli-dump.c: Ditto. * cli/cli-dump.h: Ditto. * cli/cli-interp.c: Ditto. * cli/cli-logging.c: Ditto. * cli/cli-script.c: Ditto. * cli/cli-script.h: Ditto. * cli/cli-setshow.c: Ditto. * cli/cli-setshow.h: Ditto. * cli/cli-utils.c: Ditto. * cli/cli-utils.h: Ditto. * config/alpha/nm-osf3.h: Ditto. * config/djgpp/djconfig.sh: Ditto. * config/i386/nm-fbsd.h: Ditto. * config/i386/nm-i386gnu.h: Ditto. * config/nm-linux.h: Ditto. * config/nm-nto.h: Ditto. * config/rs6000/nm-rs6000.h: Ditto. * config/sparc/nm-sol2.h: Ditto. * darwin-nat-info.c: Ditto. * dfp.c: Ditto. * dfp.h: Ditto. * gdb-demangle.h: Ditto. * i386-darwin-nat.c: Ditto. * i386-darwin-tdep.c: Ditto. * linux-fork.h: Ditto. * m32c-tdep.c: Ditto. * microblaze-linux-tdep.c: Ditto. * microblaze-rom.c: Ditto. * microblaze-tdep.c: Ditto. * microblaze-tdep.h: Ditto. * mips-linux-tdep.h: Ditto. * ppc-ravenscar-thread.c: Ditto. * ppc-ravenscar-thread.h: Ditto. * prologue-value.c: Ditto. * prologue-value.h: Ditto. * ravenscar-thread.c: Ditto. * ravenscar-thread.h: Ditto. * sparc-ravenscar-thread.c: Ditto. * sparc-ravenscar-thread.h: Ditto. * tilegx-linux-tdep.c: Ditto. * unwind_stop_reasons.def: Ditto. * windows-nat.h: Ditto. * xtensa-linux-tdep.c: Ditto. * xtensa-xtregs.c: Ditto. * regformats/regdat.sh: Ditto. * regformats/regdef.h: Ditto. gdb/gdbserver/ 2013-02-12 Pedro Alves <palves@redhat.com> * linux-xtensa-low.c: Ditto. * xtensa-xtregs.c: Ditto.
2013-02-12Fix whitespace.Pedro Alves1-40/+43
2013-02-12From: Sanimir Agovic <sanimir.agovic@intel.com>Pedro Alves2-1/+6
null ptr check to prevent gdbserver from crashing Evaluating a thread local storage variable in a remote scenario crashes gdbserver if libthread-db could not be loaded. 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> gdbserver/ * thread-db.c (thread_db_get_tls_address): NULL pointer check thread_db. testsuite/ * gdb.server/no-thread-db.exp: New file. * gdb.server/no-thread-db.c: New file. * gdb.server/Makefile.in (EXECUTABLES): Add no-thread-db.
2013-02-072013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>Marcus Shawcroft2-7/+19
* 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-07Switch AArch64 gdbserver ps_get_thread_area to PTRACE_GETREGSET.Marcus Shawcroft2-3/+14
2013-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com> * linux-aarch64-low.c (ps_get_thread_area): Replace PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
2013-02-04AArch64 GDBserver support.Marcus Shawcroft4-0/+1297
gdb/ * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes. gdb/gdbserver/ * 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-04Ensure ptrace() calls cast arguments 3 and 4 appropriately.Marcus Shawcroft2-31/+63
* 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-25gdb/gdbserverYao Qi4-81/+45
* 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-18gdb/gdbserver:Yao Qi6-60/+95
* 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. Callers update. gdb/testsuite: * gdb.trace/infotrace.exp: Check 'traceframe usage' in the output of 'info tracepoints'. * gdb.trace/disconnected-tracing.exp (disconnected_tracing): Likewise. * gdb.trace/tstatus.exp (run_trace_experiment): Likewise. * gdb.trace/disconnected-tracing.c (struct foo): New.
2013-01-16gdb/gdbserver/Yao Qi2-1/+6
* linux-low.c (linux_resume_one_lwp): Don't check 'lwp->bp_reinsert != 0'.
2013-01-07Simplifly ptrace_request_to_str's implementation...Joel Brobecker2-147/+58
... following Pedro's advice of using a temporary macro. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Define a temporary macro and use it to simplify this function's implementation.
2013-01-07Add ptrace error handling in lynx_resumeJoel Brobecker2-0/+9
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace sets errno.
2013-01-07Make x86-lynx GDBserver pass XML register map to GDB.Joel Brobecker2-0/+7
This is not strictly needed, since both GDB and GDBserver seem to agree on the register numbering without this. But this allows us to make sure that this is always going to be the case. gdb/gdbserver/ChangeLog: * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
2013-01-07Allow powerpc-*-lynxos* GDBserver to send register map via XML...Joel Brobecker2-0/+7
... back to GDB. The transfer occurs when GDB sends the 'qXfer:features:read:target.xml' packet. This allows us to make sure that GDB and GDBserver use the same register numbering. This is important on Lynx 178, where GDB selects the rs6000:6000 architecture by default instead of the powerpc:common architecture. gdb/gdbserver/ChangeLog: * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
2013-01-07LynxOS: Resume the same thread when receiving a thread create/exit event.Joel Brobecker2-4/+17
Before this patch, the ptid passed to lynx_resume was completely ignored, and we used the current_inferior. This resulted in trying to resume the inferior execution using the wrong ptid after having received a thread create/exit event, because the inferior_ptid was still set to the ptid prior to receiving the signal. gdb/gdbserver/ChangeLog: * 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-07Delete unused variable in lynx_resumeJoel Brobecker2-2/+5
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Delete variable ret.
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker69-89/+69
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2013-01-01Update copyright year in gdb/gdbserver/gdbreplay version output.Joel Brobecker3-2/+7
gdb/ChangeLog: * top.c (print_gdb_version): Update copyright year. gdb/gdbserver/ChangeLog: * gdbreplay.c (gdbreplay_version): Update copyright year. * server.c (gdbserver_version): Likewise.
2012-12-18Fix ChangeLog format.Markus Metzger1-2/+2
2012-12-17lynx-low: Add debug trace when new thread is discovered.Joel Brobecker2-1/+10
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_wait_1): Add debug trace before adding new thread.
2012-12-17Add PTRACE_GETTRACESIG handling in ptrace_request_to_strJoel Brobecker2-0/+8
We use this ptrace request when handling SIGTRAP signals, and without this change, the debug trances show: PTRACE (<unknown-request>, ... This patch fixes this. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Add handling for PTRACE_GETTRACESIG.
2012-12-17Delete unused variable in lynx_attach.Joel Brobecker2-2/+5
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_attach): Delete variable new_process.
2012-12-17remove unused variable in lynx_create_inferior.Joel Brobecker2-2/+6
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_create_inferior): Delete variable new_process.
2012-12-17lynx-low.c: PTRACE_GETTHREADLIST may not be defined.Joel Brobecker2-0/+7
LynxOS 178 does not define this macro. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Do not handle PTRACE_GETTHREADLIST if this macro does not exist.
2012-12-15gdb/gdbserver/Yao Qi6-113/+313
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 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)Tom Tromey5-183/+375
(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 PR gdb/14917:Tom Tromey2-2/+7
* server.h (current_insn_ptr, emit_error): Declare 'extern'.
2012-11-282012-11-28 Markus Metzger <markus.t.metzger@intel.com>Markus Metzger4-2/+12
gdb/ * configure.ac: Check for linux/perf_event.h. * config.in: Regenerated. * configure: Regenerated. gdb/gdbserver/ * configure.ac: Check for linux/perf_event.h. * config.in: Regenerated. * configure: Regenerated.
2012-11-26gdb/Pedro Alves2-1/+6
2012-11-26 Maxime Villard <rustyBSD@gmx.fr> Pedro Alves <palves@redhat.com> * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer size parameter passed to readlink by one byte. * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto. * linux-nat.c (linux_child_pid_to_exec_file): Ditto. * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto. * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's size by one byte. gdb/gdbserver/ 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> * hostio.c (handle_readlink): Decrease buffer size parameter passed to readlink by one byte.
2012-11-26gdb/gdbserver/Yao Qi4-3/+12
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-152012-11-15 Pierre Muller <muller@sourceware.org>Pierre Muller9-10/+25
ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory. * gdb_stat.h: Delete. Moved to common directory. * common/gdb_stat.h: New file. * gdb_wait.h: Delete. Moved to common directory. * common/gdb_wait.h: New file. * Makefile.in (H_FILES_NO_SRC): Adapt to new header location. * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h location. (stat.h rule): Adapt to new gdb_stat.h location. * common/linux-osdata.c: Include "gdb_stat.h" header instead of <sys/stat.h> header. * common/linux-ptrace.c: Include "gdb_wait.h" header instead of <sys/wait.h> header. gdbserver ChangeLog entry: 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 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVERMarkus Metzger2-14/+19
(various make rules): Remove -DGDBSERVER
2012-11-09gdb/gdbserver:Yao Qi7-10/+16
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-01http://sourceware.org/ml/gdb-patches/2012-09/msg00568.htmlAndrew Burgess2-4/+10
gdb/ChangeLog * target.c (simple_search_memory): Include access length in warning message. gdb/gdbserver/ChangeLog * server.c (handle_search_memory_1): Include access length in warning message. gdb/testsuite/ChangeLog Test find command on unmapped memory. * gdb.base/find-unmapped.c: New file. * gdb.base/find-unmapped.exp: New file.
2012-09-04 * linux-crisv32-low.c: Fix compile errors.Hans-Peter Nilsson2-12/+15
2012-09-04gdb/gdbserver/Yao Qi2-8/+7
* tracepoint.c (cmd_qtsv): Adjust debug message. Don't check CUR_TPOINT.
2012-08-28gdb/gdbserver/Yao Qi5-38/+23
* 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-23gdb/gdbserver/Yao Qi2-2/+5
* server.h: Remove declaration of 'xsnprintf'.
2012-08-22 * defs.h: Include build-gnulib/config.hKeith Seitz3-0/+8
* server.h: Include build-gnulib-gbserver/config.h. * gdbreplay.c: Likewise.
2012-08-08 * gdb_string.h: Moved to ...Doug Evans6-24/+52
* common/gdb_string.h: ... here. * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of gdb_string.h and gdb_assert.h. gdbserver/ * configure.ac: Add check for strstr. * config.in: Regenerate. * configure: Regenerate. * linux-thread-db.c: #include "gdb_vecs.h". (try_thread_db_load_from_pdir_1): New arg "subdir". All callers updated. (try_thread_db_load_from_pdir): New arg "subdir". All callers updated. (thread_db_load_search): Use a vector to iterate over path elements. Handle text appearing after "$pdir". gdbserver/ * 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".
2012-08-02ChangeLog:Ulrich Weigand2-6/+22
* inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back to attempting lseek/write. (inf_child_fileio_pread): Likewise for pread. gdbserver/ChangeLog: * hostio.c (handle_pread): If pread fails, fall back to attempting lseek/read. (handle_pwrite): Likewise for pwrite.
2012-08-01gdbserver/ChangeLog:Ulrich Weigand2-7/+14
* 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. testsuite/ChangeLog: * gdb.base/watchpoint.exp (test_wide_location_1): Expect software watchpoints on ARM. When expecting software watchpoints, tolerate (remote) targets that report unsupported hardware watchpoint only at continue time. (test_wide_location_2): Likewise.
2012-07-312012-07-31 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+9
* 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-30ChangeLog:Ulrich Weigand2-3/+8
* arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not attempt to 4-byte-align HW breakpoint addresses for Thumb. gdbserver/ChangeLog: * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt to 4-byte-align HW breakpoint addresses for Thumb.
2012-07-27gdb/gdbserver/Yao Qi5-7/+93
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. gdb/doc/ * gdb.texinfo (IPA Protocol Commands): Document new command 'close'. gdb/testsuite/ KFAIL for PR remote/14161. * gdb.trace/strace.exp (strace_remove_socket): kfail for native. Cleanup socket files. (strace_info_marker): Detach inferior.