aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
2002-03-042002-03-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-9/+8
* gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long. (num_regs, regmap): Move inside HAVE_LINUX_USRREGS. (register_addr, REGISTER_RAW_SIZE): Likewise. (usr_store_inferior_registers): Use PTRACE_XFER_TYPE. * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2002-02-282002-02-27 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz3-0/+96
* gdbserver/linux-s390-low.c: New file. * regformats/reg-s390.dat: New file. * regformats/reg-s390x.dat: New file. * gdbserver/configure.srv: Add S/390. * gdbserver/Makefile.in: Add S/390. * configure.tgt: Enable gdbserver for S/390.
2002-02-272002-02-27 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz19-23/+840
* gdbserver/acconfig.h: New file. * gdbserver/i387-fp.c: New file. * gdbserver/i387-fp.h: New file. * gdbserver/linux-x86-64.c: New file. * regformats/reg-x86-64.dat: New file. * configure.tgt: Add x86_64-*-linux* gdbserver support. & gdbserver/configure.srv: Add x86_64-*-linux* and regset support. * gdbserver/configure.in: Add support for regsets. * gdbserver/config.in: Regenerate. * gdbserver/configure: Regenerate. * gdbserver/Makefile.in: Likewise. Add $(linux_low_h). * gdbserver/linux-low.h: New file. * gdbserver/linux-low.c: Include "linux-low.h". Add support for regsets. * gdbserver/linux-arm-low.c: Include "linux-low.h". * gdbserver/linux-ia64-low.c: Include "linux-low.h". * gdbserver/linux-m68k-low.c: Include "linux-low.h". * gdbserver/linux-mips-low.c: Include "linux-low.h". * gdbserver/linux-ppc-low.c: Include "linux-low.h". * gdbserver/linux-sh-low.c: Include "linux-low.h". * gdbserver/linux-i386-low.c: Include "linux-low.h". Include "i387-fp.h". Add PTRACE_GETREGS and friends. * gdbserver/regcache.c (supply_register): New function. (supply_register_by_name): New function. (collect_register): New function. (collect_register_by_name): New function.
2002-02-272002-02-27 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-3/+3
* gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER. (config.status): Add configure.srv dependency. (server_h): Add config.h dependency.
2002-02-272002-02-27 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-2/+5
* regformats/reg-i386-linux.dat: New file, with $orig_eax. * gdbserver/Makefile.in: Add rules for reg-i386-linux.o. * gdbserver/configure.srv: Change i386-*-linux* to use reg-i386-linux.o.
2002-02-262002-02-25 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
From Eliot Dresselhaus <eliot@ayrnetworks.com>: * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2002-02-252002-02-24 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz5-86/+106
* gdbserver/configure.srv: New file. * gdbserver/configure.in: Use configure.srv instead of the host/target makefile fragments. Set GDBSERVER_DEPFILES from it. * gdbserver/configure: Regenerated. * gdbserver/terminal.h: New file. * gdbserver/Makefile.in: Update for configure changes. Remove more unneeded include paths.
2002-02-202002-02-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-2/+2
* gdbserver/linux-low.c (mywait): Change argument to waitpid to be an integer instead of a `union wait'.
2002-02-202002-02-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-103/+22
* gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change AC_STDC_HEADERS to AC_HEADER_STDC. * gdbserver/configure: Regenerated.
2002-02-192002-02-19 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz6-153/+799
* gdbserver/README: Update documentation. * gdbserver/configure.in: Update configury to match documentation. * gdbserver/Makefile.in: Likewise. * gdbserver/configure: Regenerated. * gdbserver/aclocal.m4: New file, generated by aclocal. * gdbserver/config.in: New file, generated by autoheader.
2002-02-152002-02-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-13/+5
* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno instead of find_register_by_number. (cannot_store_register): Likewise.
2002-02-152002-02-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-0/+13
* gdbserver/gdbserver.1: Document --attach.
2002-02-152002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-6/+6
* gdbserver/Makefile.in: Fix typos in target rules.
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz16-1302/+992
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS, and remove unused $(INCLUDE_DIR). Add regcache.c to OBS. Add generated register protocol files to clean target. Update dependencies for new objects, obsolete old target code. * gdbserver/linux-low.c: Remove all platform-specific code to new files. Remove various dead code. Update to use regcache functionality. * gdbserver/remote-utils.c (fromhex): Add return statement to quiet warning. (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer constant. (input_interrupt): Add integer parameter to match prototype of a signal handler. (outreg): Use register_data (). (prepare_resume_reply): Use gdbserver_expedite_regs. * gdbserver/server.c (main): Dynamically allocate own_buf because PBUFSIZ is no longer constant. Use registers_to_string () and registers_from_string (). * gdbserver/server.h: No longer include "defs.h". Add prototypes for error (), fatal (), and warning (). Update definition of PBUFSIZ to use regcache functionality. Add include guard. * gdbserver/utils.c (fatal): Add missing ``const''. (warning): New function. * regformats/regdat.sh: Include "regcache.h" in generated files. Provide init_registers () function. * regformats/regdef.h: Add prototype for set_register_cache (). Add include guard. * gdbserver/linux-arm-low.c: New file. * gdbserver/linux-i386-low.c: New file. * gdbserver/linux-ia64-low.c: New file. * gdbserver/linux-m68k-low.c: New file. * gdbserver/linux-mips-low.c: New file. * gdbserver/linux-ppc-low.c: New file. * gdbserver/linux-sh-low.c: New file. * gdbserver/regcache.c: New file. * gdbserver/regcache.h: New file. * gdbserver/low-linux.c: Removed obsolete file.
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
* gdbserver/linux-low.c (mywait): Cast second argument of waitpid to (int *).
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+0
* gdbserver/linux-low.c (kill_inferior): Remove commented out code.
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-2/+0
* gdbserver/linux-low.c: Remove unused include files.
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-7/+8
* gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE. (read_inferior_memory): Use it. (write_inferior_memory): Likewise.
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+2
* gdbserver/linux-low.c (create_inferior): Call strerror instead of grubbing through sys_errlist.
2002-02-052002-02-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-0/+777
* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2002-02-042002-02-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+28
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS. Add rules for building the register data files.
2002-01-20Assume TARGET_BYTE_ORDER_SELECTABLE{,_P} is always true.Andrew Cagney1-4/+0
2002-01-172002-01-17 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz8-8/+8
* gdbserver/low-hppabsd.c, gdbserver/low-lynx.c, gdbserver/low-nbsd.c, gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c, gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2002-01-172002-01-17 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz8-9/+126
* low-hppabsd.c (myattach): New function, returning -1. * low-lynx.c (myattach): Likewise. * low-nbsd.c (myattach): Likewise. * low-sim.c (myattach): Likewise. * low-sparc.c (myattach): Likewise. * low-sun3.c (myattach): Likewise. * low-linux.c (myattach): New function. * server.c (attach_inferior): New function. (main): Handle "--attach".
2001-12-05* gdbserver/low-linux.c (arm_register_u_addr): added.Keith Walker1-0/+13
(initialize_arch): added for ARM target. * config/arm/nm-linux.h (U_REGS_OFFSET) defined. (REGISTER_U_ADDR) defined. * config/arm/tm-linux.h (ARM_GNULINUX_TARGET) defined.
2001-07-26 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.Daniel Jacobowitz6-12/+12
* infttrace.c (child_xfer_memory): Likewise. * symm-nat.c (child_xfer_memory): Likewise. * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-linux.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-lynx.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-nbsd.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-sparc.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-sun3.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise.
2001-07-12 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1Daniel Jacobowitz1-2/+2
in HAVE_TERMIO/HAVE_TERMIOS cases.
2001-07-11minor F_SETOWN nitDaniel Jacobowitz1-1/+1
2001-07-11* gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"J.T. Conklin5-14/+38
of SIGIO. (input_interrupt): Don't block on read, in case we got redundant SIGIO. Don't gripe about redundant SIGIO. * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO handler while waiting. * gdbserver/low-linux.c (mywait): Likewise. * gdbserver/low-nbsd.c (mywait): Likewise. * gdbserver/low-sparc.c (mywait): Likewise.
2001-04-06* gdbserver/low-hppabsd.c (read_inferior_memory): Add explicitJ.T. Conklin4-0/+4
void return value; * gdbserver/low-nbsd.c: Likewise. * gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. ---------------------------------------------------------------------
2001-03-28* gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code andMark Kettenis1-27/+32
make it work again. (NUM_FREGS): Redefine to 0. (NUM_REGS): Redefine as NUM_GREGS. (i386_register_byte, i386_register_raw_size): Update from i386-tdep.c. Add comment about their origin. (regmap, register_u_addr): Take these from i386-linux-nat.c. (i386_register_u_addr): Removed.
2001-03-13Eliminate ARCH_NUM_REGS.Andrew Cagney2-2/+2
2001-03-06Update/correct copyright notices.Kevin Buettner14-14/+24
2001-01-23* config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.J.T. Conklin6-22/+8
* config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise. * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise. * gdbserver/low-sim.c (#include "defs.h"): Removed. (mygeneric_load): Rename from generic_load. * gdbserver/low-hppabsd.c (#include "server.h"): Added. (#include "defs.h"): Removed. (inferior_pid, perror_with_name): Remove declarations. * gdbserver/low-linux.c: Likewise. * gdbserver/low-nbsd.c: Likewise. * gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. * i386-stub.c: Re-indent. * m68k-stub.c: Re-indent.
2000-12-08* gdbserver/low-hppabsd.c (buf2, environ, quit, quit_flag):J.T. Conklin5-59/+153
Removed unused variables and declarations. * gdbserver/low-linux.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-nbsd.c (buf2, environ, quit, quit_flag): Likewise. * gdbserver/low-sparc.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-sun.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-hppabsd.c, gdbserver/low-linux.c, gdbserver/low-nbsd.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c (create_inferior): Update comment. * gdbserver/low-nbsd.c (initialize_arch, fetch_inferior_registers, store_inferior_registers): Provide implementations for the m68k and ns32k. * config/m68k/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o * config/ns32k/nbsd.mt (GDBSERVER_DEPFILES): Likewise. * configure.tgt (m68*-*-netbsd*, ns32k-*-netbsd*): Add gdbserver to configdirs. -------------------------------------------------------------------
2000-11-21* gdbserver/low-nbsd.c (fetch_inferior_registers,J.T. Conklin1-14/+22
store_inferior_registers): Support older NetBSD/powerpc systems from before fp reg support was added. Adapt to register number changes caused when powerpc target was multi-arched.
2000-11-20* gdbserver/low-nbsd.c: Fix typos.J.T. Conklin1-32/+32
2000-11-08* gdbserver/configure.in (files): Don't link nm-empty.h when aAndrew Cagney2-32/+43
non-native target. * configure: Regenerate.
2000-08-29Protoization.Kevin Buettner1-30/+0
2000-08-26Protoization.Kevin Buettner2-9/+3
2000-07-30Protoization.Kevin Buettner10-262/+116
2000-06-13Use PT_CFM in place of PT_CR_IFS.Kevin Buettner1-1/+1
2000-05-28PARAMS removal.Kevin Buettner1-25/+25
2000-05-24* config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...J.T. Conklin1-18/+166
* config/i386/nbsd.mh (NATDEPFILES): ...to here. * config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here... * config/m68k/nbsd.mh (NATDEPFILES): ...to here. * config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here... * config/ns32k/nbsd.mh (NATDEPFILES): ...to here. * config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o. * configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs. * gdbserver/low-nbsd.c (initialize_arch): Define for PPC. (fetch_inferior_registers): Likewise. (store_inferior_registers): Likewise. * gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86 floating point registers. (store_inferior_registers): Likewise. -------------------------------------------------------------------
2000-05-02Multi-arch NPC_REGNUM NNPC_REGNUM.Andrew Cagney1-3/+3
2000-03-21IA-64 changes.Kevin Buettner1-3/+284
2000-02-132000-02-10 J.T. Conklin <jtc@redback.com>Jim Kingdon4-88/+1486
* config/i386/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o * configure.tgt (i[3456]86-*-netbsd*): add gdbserver to configdirs. * gdbserver/low-nbsd.c: New file. * gdbserver/Makefile.in: convert to autoconf. * gdbserver/configure.in: likewise. * gdbserver/configure: generate.
1999-12-08import gdb-1999-12-07 snapshotJason Molenda1-261/+0
1999-11-17import gdb-1999-11-16 snapshotJason Molenda8-42/+24
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-1/+1