aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/low-linux.c
AgeCommit message (Collapse)AuthorFilesLines
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-777/+0
* 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-01-172002-01-17 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
* 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 Jacobowitz1-0/+17
* 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 Jacobowitz1-2/+2
* 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-11* gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"J.T. Conklin1-1/+3
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-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 Cagney1-1/+1
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-01-23* config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.J.T. Conklin1-3/+1
* 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. Conklin1-12/+2
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-07-30Protoization.Kevin Buettner1-38/+17
2000-06-13Use PT_CFM in place of PT_CR_IFS.Kevin Buettner1-1/+1
2000-03-21IA-64 changes.Kevin Buettner1-3/+284
1999-12-08import gdb-1999-12-07 snapshotJason Molenda1-261/+0
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-8/+12
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-1/+1
1999-11-02import gdb-1999-11-01 snapshotJason Molenda1-29/+325
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-38/+39
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+451
1999-04-16Initial creation of sourceware repositoryStan Shebs1-451/+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
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 Fish1-3/+3
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-01-24 * NEWS: Make note of new record and replay feature forFred Fish1-1/+0
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-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.