aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
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
1999-11-02import gdb-1999-11-01 snapshotJason Molenda12-43/+378
1999-07-07import gdb-1999-07-07 post reformatJason Molenda11-451/+476
1999-06-28import gdb-1999-06-28 snapshotJason Molenda1-0/+3
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs15-0/+4390
1999-04-16Initial creation of sourceware repositoryStan Shebs14-4059/+0
1998-12-08Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>Edith Epstein1-2/+35
* config/m68k/tm-m68k.h (NUM_FREGS): m68k-linux patch. Added NUM_FREGS macro. * config/m68k/xm-linux.h: m68k-linux patch. New file. * config/m68k/tm-linux.h: m68k-linux patch. New file. * config/m68k/nm-linux.h: m68k-linux patch. New file. * config/m68k/linux.mt: m68k-linux patch. New file. * config/m68k/linux.mh: m68k-linux patch. New file. * gdbserver/low-linux.c: m68k-linux patch. Added an ifdef that checks the value of __GLIBC to decide whether or not to include sys/reg.h. * m68klinux-nat.c: m68k-linux patch. New file. Note both m68k-tdep.c and m68klinux-nat.c contain definitions for supply_gregset and supply_fpregset. The definitions in m68k-tdep.c are valid is USE_PROC_FS is defined. Otherwise, the definitions in m68klinux-nat.c will be used. This is a bit of a hack. The supply_* routines do not belong in *_tdep.c files. But, there are several lynx ports that currently depend on these definitions. * configure.tgt: m68k-linux patch. Added m68*-*-linux* gdb_target. * configure.host: m68k-linux patch. Added m68*-*-linux* gdb_host. * Makefile.in: m68k-linux patch. Added compile line for m68klinux-nat.o
1998-03-20Fri Mar 20 14:45:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-107/+257
* gdbserver/Makefile.in: add dependency on XM_CLIBS. * gdbserver/low-sim.c (registers) force into alignment. (create_inferior): Fix typo on new_argv; add abfd arg to sim_open, sim_create_inferior. Add reg_size arg to sim_fetch_register, sim_store_register. Make simulator take a single-step to get into a known running state. * gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL. * gdbserver/server.c: Add remote_debug variable to control debug output. * gdbserver/server.h: Add prototypes for enable/disable_async_io. * gdbserver/remote-utils.c: add verbose debugging output controlled by "remote_debug" variable. Add call to "disable_async_io()" to avoid being killed by async SIGIO signals. * config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES), so that gdbserver can be built with the m32r simulator.
1997-08-09start-sanitize-tic80Mark Alexander1-19/+40
* config/tic80/tic80.mt: (GDBSERVER-DEPFILES, GDBSERVER_LIBS): Define for gdbserver. (SIM): Remove -lm to prevent make errors. * configure.tgt: add gdbserver to configdirs for tic80. end-sanitize-tic80 * gdbserver/utils.c (error): Change prototype to match defs.h. * gdbserver/low-sim.c: Change simulator calls to use new interface. * remote.c (remote_write_bytes): Include '$' at start of packet and checksum at end of packet in overhead calculation.
1997-03-11First cut at supporting simulators in gdbserver:Mark Alexander4-242/+267
* configure, configure.in: Allow gdbserver to be configured for cross-target environments. * gdbserver/Makefile.in: Add simulator support. * gdbserver/configure.in: Eliminate assumption that host == target. Simplify using gdb/configure.tgt and gdb/configure.host. Fix other minor configuration errors. * gdbserver/low-sparc.c: Fix compile error. * gdbserver/remote-utils.c: Eliminate assumption that registers and addresses are four bytes. Fix minor compile errors and warnings. * gdbserver/server.c: Rewrite numerous instances of identical code for starting inferior processes to call new function start_inferior. Eliminate assumption that registers and addresses are four bytes. * gdbserver/server.h: Add missing prototypes to eliminate compiler warnings. * gdbserver/low-sim.c: New file to mate gdbserver with simulators. * config/mips/vr5000.mt: Add Vr5000 simulator support to gdbserver. * config/i386/linux.mh: Eliminate gdbserver support as a first step in moving such support from host to target makefile fragments. * config/i386/linux.mt: Move gdbserver support here from linux.mh.
1996-10-24 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:Mark Alexander1-0/+1
Correct for pc-linux-gnu problem in config.guess.
1996-10-11 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:Mark Alexander1-3/+1
Make it compile on Linux and eliminate some warnings.
1996-09-09 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototypeFred Fish2-6/+6
change for core_read_registers in struct core_fns. * core-regset.c (fetch_core_registers): Ditto & add prototype. * core-sol2.c (fetch_core_registers): Ditto & add prototype. * i386aix-nat.c (fetch_core_registers): Ditto & add prototype. * i386b-nat.c (fetch_core_registers): Ditto. * i386mach-nat.c (fetch_core_registers): Ditto & add prototype. * irix4-nat.c (fetch_core_registers): Ditto. * irix5-nat.c (fetch_core_registers): Ditto. * lynx-nat.c (fetch_core_registers): Ditto & add prototype. * m68knbsd-nat.c (fetch_core_registers): Ditto. * mips-nat.c (fetch_core_registers): Ditto & add prototype. * rs6000-nat.c (fetch_core_registers): Ditto. * sparc-nat.c (fetch_core_registers): Ditto. * sun3-nat.c (fetch_core_registers): Ditto & add prototype. * ultra3-nat.c (fetch_core_registers): Ditto & add prototype. * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change. * delta68-nat.c (register_addr): Ditto. * gdbserver/low-linux.c (register_addr): Ditto. * gdbserver/low-hppabsd.c (register_addr): Ditto. * i386m3-nat.c (register_addr): Ditto. * mips-nat.c (register_addr): Ditto. * ultra3-nat.c (register_addr): Ditto.
1996-08-29Recognize i686 as pentium proMichael Meissner1-32/+32
1996-06-25 * gdb/gdbserver/Makefile.in (docdir): Removed.Jason Molenda1-1/+0
1996-06-25 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):Jason Molenda1-85/+45
Use autoconf set values. (docdir): Removed. * configure.in (AC_PREREQ): autoconf 2.5 or higher. * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir): Use autoconf set values. (docdir): Removed. * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher. * nlm/configure: Rebuilt. * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1996-01-24Add gdbreplay.cFred Fish1-0/+1
1996-01-24 * NEWS: Make note of new record and replay feature forFred Fish2-1/+319
remote debug sessions. * serial.c (gdbcmd.h): Include. (serial_logfile, serial_logfp, serial_reading, serial_writing): Define here, for remote debug session logging. (serial_log_command, serial_logchar, serial_write, serial_readchar): New functions for remote debug session logging. (serial_open): Open remote debug session log file when needed. (serial_close): Close remote debug session log file when needed. (_initialize_serial): Add set/show commands for name of remote debug session log file. * serial.h (serial_readchar): Declare (SERIAL_READCHAR): Call serial_readchar(). (SERIAL_WRITE): Call serial_write(). (serial_close): Declare as extern. (serial_logfile, serial_logfp): Declare. * top.c (execute_command): Declare serial_logfp. Log user command in remote debug session log if log file is open. * remote-array.c (array_wait): #ifdef out echo to gdb_stdout. (array_read_inferior_memory): Rewrite to fix memory overwrite bug. * remote-array.c (SREC_SIZE): Remove, duplicates define in monitor.h. * remote-array.c (hexchars, hex2mem): Remove, unused. * gdbserver/low-linux.c (store_inferior_registers): Remove unnecessary extern declaration of registers[]. * gdbserver/Makefile.in (all): Add gdbreplay. * gdbserver/gdbreplay.c: New file. * gdbserver/README: Give example of recording a remote debug session with gdb and then replaying it with gdbreplay.
1996-01-11Forget to add low-linux.c during recent checkins.Fred Fish1-0/+1
1996-01-10 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:Fred Fish1-0/+421
* gdbserver/low-linux.c: New file. * remote.c (remote_read_bytes): Fix aborts on larger packets. * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS): Define. * stabsread.c (define_symbol): If register value is too large, tell what it is and what max is.
1995-08-02Update FSF address.Fred Fish4-4/+4
1995-07-20 * gdbserver/low-hppabsd.c: Remove error declaration.Jeff Law3-3/+3
* gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. * gdbserver/server.h: Remove error and fatal declaration. * gdbserver/utils.c (error): Update to be compatable with recent changes in defs.h. (fatal): Likewise.