aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
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.
1995-07-18 * gdbserver/low-hppabsd.c: New file.Jeff Law2-0/+380
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c. * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o (GDBSERVER_DEPFILES): Add low-hppabsd.o * config/hppaosf.mh: LIkewise. Needed this for the gdbserver framework development. Trying to avoid doing development work on lynx for the obvious reasons.
1995-07-13 * inftarg.c (child_thread_alive): New function to see if aJeff Law3-6/+41
particular thread is still running. (child_ops): Add child_thread_alive entry. * remote.c (remote_thread_alive): New function to see if a particular thread is still alive. (remote_ops): Add remote_thread_alive. * target.c (dummy_target): Add dummy entry for thread_alive. (cleanup_target): de_fault thread_alive too. (update_current_target): INHERIT thread_alive too. (debug_to_thread_alive): New function. (setup_target_debug): Add debug_to_thread_alive. * target.h (struct target_ops): Add to_thread_alive. (target_thread_alive): Define. * thread.c (info_threads_command): Don't call kill; use target_thread_alive instead. * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define. * gdbserver/low-lynx.c (mythread_alive): New function. (mywait): Don't restart any threads after a new thread notification, let the generic code handle it. * gdbserver/low-sparc.c (mythread_alive): Dummy version. * gdbserver/low-sun3.c (mythread_alive): Likewise. * gdbserver/server.c (main): Handle thread_alive requests. * gdbserver/server.h (mythread_alive): Declare. * corelow.c (core_ops): Add dummy entry for thread_alive. * exec.c (exec_ops): Likewise. * m3-nat.c (m3_ops): Likewise. * monitor.c (monitor_ops): Likewise. * procfs.c (procfs_ops): Likewise. * remote-arc.c (arc_ops): Likewise. * remote-array.c (array_ops): Likewise. * remote-e7000.c (e7000_ops): Likewise. * remote-es.c (es1800_ops, es1800_child_ops): Likewise. * remote-mips.c (mips_ops): Likewise. * remote-pa.c (remote_hppro_ops): Likewise. * remote-sim.c (gdbsim_ops): Likewise. * sparcl-tdep.c (sparclite_ops): Likewise. More lynx-6100 work
1995-04-25Linux configuration name fixesJason Merrill1-2/+2
1994-12-09* gdbserver/low-lynx.c (mywait): Remove debugging printf.Jim Kingdon1-2/+0
1994-12-08 * gdbserver/remote-utils.c (write_ok): Write "OK", not "Ok", toJim Kingdon3-33/+64
match stubs and protocol spec. * gdbserver/remote-utils.c (remote_open): Cast to struct sockaddr when passing to function which expects that. The following changes aren't quite enough to make things work with LynxOS (apprently kernel problems). * infrun.c (wait_for_inferior): When resuming new thread, pass pid not -1 for remote case. * thread.c (info_threads_command): Give error if !target_has_stack. * infrun.c (start_remote): Call init_thread_list. * thread.c (info_threads_command): Don't call kill for remote debugging target. * target.c (normal_pid_to_str): Print "thread" not "process" for remote. * remote.c, gdbserver/*: Add 'H', 'S', and 'C' requests, 'X' response, and `thread' part of 'T' response. * gdbserver/*: If program exits, send packet to GDB before exiting. Handle termination with a signal the same as exiting with an exitstatus. * remote.c: Don't try to kill program after getting an 'X' response. * infrun.c (wait_for_inferior): Add comment about kill versus mourn.
1994-10-03 * gdbserver/server.c (main): Silently accept query requestsPeter Schauer1-0/+118
and send back a zero length acknowledge.
1994-09-30* gdbserver/low-lynx.c (create_inferior): Pass all 4 args to ptrace.Jim Kingdon1-1/+1
1994-08-24 * configure.in: Change i[34]86 to i[345]86.Ian Lance Taylor1-32/+32
* nlm/configure.in: Likewise. * gdbserver/configure.in: Likewise.
1994-05-06Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-2/+296
* gdbserver/Makefile.in: Remove irrelevant definitions and comments inherited from the gdb Makefile. (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile. (VERSION): Update to 4.12.3. (gdbserver): Remove any existing executable first. (distclean, realclean): Remove nm.h. * gdbserver/low-lynx.c: Add Sparc Lynx support. * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h): Don't use absolute pathname.
1994-01-15* gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h.Jim Kingdon1-1/+1
1993-11-12 * coff-solib.c (coff_solib_add): Cast result of alloca().Stu Grossman1-37/+96
* m68k-tdep.c (m68k_saved_pc_after_call): Get rid of GDB_TARGET_IS_SUN3. Use more general SYSCALL_TRAP macro. * config/m68k/m68klynx.mh (NATDEPFILES): Remove exec.o (it's already in TDEPFILES). * config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL): Use m68k_saved_pc_after_call. * Remove all Sun3 specific stuff. * (FIX_CALL_DUMMY): Cast arg to bfd_putb32 to unsigned char *. * config/m68k/tm-m68klynx.h: Define SYSCALL_TRAP as trap #10. Disable REMOTE_BREAKPOINT mechanism. * config/m68k/tm-sun3.h: Get rid of GDB_TARGET_IS_SUN3. * Protect from multiple includion. * Move Sun3 specific stuff from tm-m68k.h to here. * Define SYSCALL_TRAP as trap #0. * Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h). * gdbserver/low-lynx.c: Redo all register store/fetch stuff to make it portable for 386 and 68k.
1993-11-02 * gdbserver/configure.in: Recognize *-*-lynxos* instead ofStan Shebs2-2/+7
*-*-lynx*, recognize sparc-*-lynxos*. * gdbserver/Makefile.in (install, install_only): Add. * gdbserver/gdbserver.1: New file, man page for gdbserver.
1993-10-25 * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,Jim Kingdon3-11/+13
m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
1993-08-27 * Rename files for 14-character limits:Jim Kingdon1-1/+1
gdbserver/remote-gutils.c -> gdbserver/utils.c gdbserver/remote-inflow.c -> gdbserver/low-lynx.c gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c gdbserver/remote-server.c -> gdbserver/server.c remote-monitor.c -> remote-mon.c * Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in, config/m68k/monitor.mt, config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Change accordingly. * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1993-08-27 * gdbserver/low-sun3.c: New file.Jim Kingdon3-64/+43
* gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.
1993-08-27new for sun3 gdbserverJim Kingdon1-0/+326
1993-08-27 * Rename files for 14-character limits:Jim Kingdon6-121/+288
gdbserver/remote-gutils.c -> gdbserver/utils.c gdbserver/remote-inflow.c -> gdbserver/low-lynx.c gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c gdbserver/remote-server.c -> gdbserver/server.c remote-monitor.c -> remote-mon.c * Makefile.in, gdbserver/Makefile.in, config/m68k/monitor.mt: Change accordingly. * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1993-08-13 * gdbserver/Makefile.in: Use GDBSERVER_LIBS andJim Kingdon1-0/+2
GDBSERVER_DEPFILES. Also remove much (but not all that could be removed) crud inherited from gdb Makefile.in. * config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*. * gdbserver/README: Say it works on Sun and change configuration instructions slightly.
1993-08-03Keep server.h.Stu Grossman1-1/+1
1993-08-02Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitlyFred Fish1-1/+0
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
1993-08-02Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)Stu Grossman1-7/+25
* gdbserver/remote-inflow.c (create_inferior): Fix comments, and error msg. Setup seperate process group for child. * (write_inferior_memory): Sleep for 1 second and retry on ptrace failure.
1993-07-30Add .Sanitize to Things-to-lose list.Fred Fish1-0/+2
1993-07-30Add remote-inflow-sparc.c and server.h to Things-to-lose list.Fred Fish1-0/+3
1993-07-08test of branches. please ignore.Stu Grossman1-32/+40
1993-06-26 * gdbserver/Makefile.in: Add dependancies on server.h.Stu Grossman3-463/+81
* gdbserver/remote-gutils.c: Remove lots of unused functions and variables. * gdbserver/remote-inflow.c: Remove lots of unused variables and #includes. Also, use PTRACE_* symbols instead of constants. (mywait): Surround calls to wait() with enable/disable_async_io() so that we can be interrupted from GDB while waiting for the child. Also, handle child exit more gracefully. * gdbserver/remote-server.c: Remove lots of unused variables. Move all extern defs into server.h. Redo main loop so that failure from getpkt() causes communications to be re-established. Fix 'k' command so that it restarts the child. * gdbserver/remote-utils.c: Remove lots of unloved vars and subrs. Move many extern decls into server.h. (remote_open): For tcp, seperate usage of proto fd from connected fd. Close proto fd after getting connection. (putpkt/getpkt): Pay attention to errors when reading/writing. Report these to the caller. New routines input_interrupt/enable_async_io/disable_async_io to make it possible to get an I/O interrupt when data arrives from the comm link. * serial.h: New file to contain common defs for all remote files.
1993-06-03 * gdbserver/Makefile.in (gdbserver): Use -lbsd.Stu Grossman3-50/+13
* gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a shell when running the child, as args have been expanded by the time we get here. Simplify calling convention. * gdbserver/remote-server.c (main): Use new calling convention for create_inferior, remove defunct code for coalescing argv. Remove extra calls to mywait(), as we no longer have to wade through a shell.
1993-05-29Add README.Stu Grossman1-0/+1
1993-05-29Doc for gdbserver!Stu Grossman1-0/+85
1993-05-29 * Makefile.in: Add new file ser-tcp.c.Stu Grossman2-168/+119
* defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED. * findvar.c (write_register): See if we are writing back the same value that's already in the register. If so, don't bother. * remote.c (putpkt, getpkt): Improve handling of communication problems. * ser-go32.c: Prototype it to death. Update serial_ops and add dummy routines where appropriate. * ser-tcp.c: New module to implement serial I/O via TCP connections. * ser-unix.c: Clean up getting/setting of tty state. Get rid of SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces. * serial.c: Add start of support for connect command. (serial_open): Distinguish between tcp and local devices. * serial.h (struct serial_ops): Get rid of restore, add get_tty_state and set_tty_state. Define protoypes and macros for this mess. * gdbserver/remote-utils.c: Add tcp support. (readchar): Do some real buffering. Handle error conditions gracefully. * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c (Lynx), remove lots of cruft.
1993-05-27added things-to-lose sectionsK. Richard Pixley1-0/+2
1993-05-26Sparc version of remote-inflow.c. Hasn't been made portable yet.Stu Grossman1-0/+451
1993-05-26Keep appropriate files in gdbserver directory.Stu Grossman1-0/+35
1993-05-26 * gdbserver/{remote-gutils.c remote-server.c Makefile.inStu Grossman5-0/+1599
configure.in remote-inflow.c remote-utils.c}: New files to support GDB remote server. Currently only works for Lynx.