aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
AgeCommit message (Collapse)AuthorFilesLines
2005-12-23 * linux-arm-low.c:Eli Zaretskii36-101/+141
* linux-cris-low.c: * inferiors.c: * i387-fp.h: * i387-fp.c: * gdbreplay.c: * regcache.c: * proc-service.c: * mem-break.h: * mem-break.c: * linux-x86-64-low.c: * linux-sh-low.c: * linux-s390-low.c: * linux-ppc64-low.c: * linux-ppc-low.c: * linux-mips-low.c: * linux-m68k-low.c: * linux-m32r-low.c: * linux-low.h: * linux-low.c: * linux-ia64-low.c: * linux-i386-low.c: * linux-crisv32-low.c: * thread-db.c: * terminal.h: * target.h: * target.c: * server.h: * server.c: * remote-utils.c: * regcache.h: * utils.c: * Makefile.in: * configure.ac: * gdbserver.1: Add (C) after Copyright. Update the FSF address.
2005-11-13 * linux-arm-low.c (arm_eabi_breakpoint): New variable.Daniel Jacobowitz2-1/+21
(arm_breakpoint_at): Recognize both breakpoints. (the_low_target): Use the correct breakpoint instruction.
2005-11-02 * configure.srv (x86_64-*-linux*): Turn on thread_db support.Daniel Jacobowitz3-1/+53
* linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. (the_low_target): Update.
2005-10-25 * regformats/reg-ia64.dat: Remove NAT registers.Andreas Schwab3-20/+10
gdbserver: * server.c (main): Allocate mem_buf with PBUFSIZ bytes. * linux-ia64-low.c (ia64_regmap): Remove NAT registers. (ia64_num_regs): Reduce to 462.
2005-09-17 * acinclude.m4: Correct quoting.Daniel Jacobowitz7-59/+124
* aclocal.m4: Regenerated. Suggested by SZOKOVACS Robert <szo@ies.hu>: * thread-db.c (thread_db_err_str): Handle TD_VERSION. (thread_db_init): Call thread_db_err_str. * configure.ac: Check for TD_VERSION. * config.in, configure: Regenerated.
2005-07-31From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>:Daniel Jacobowitz2-3/+7
gdb/ * cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF. * complaints.c (vcomplaint): Likewise. * defs.h (xvasprintf, xstrvprintf, verror, vfatal) (internal_verror, internal_vwarning, vwarning) (deprecated_query_hook, deprecated_warning_hook) (deprecated_readline_begin_hook): Likewise. * disasm.c (fprintf_disasm): Likewise. * exceptions.c (throw_it): Likewise. * exceptions.h (throw_verror, throw_vfatal): Likewise. * mi/mi-interp.c (mi_interp_query_hook): Likewise. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. * tui/tui-hooks.c (tui_query_hook): Likewise. * tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt): Likewise. * ui-out.c (default_field_fmt, default_message, uo_field_fmt) (uo_message): Likewise. * ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype) (message_ftype): Likewise. * utils.c (vfprintf_maybe_filtered, internal_vproblem) (defaulted_query, printchar): Likewise. gdb/gdbserver/ * server.h (error, fatal, warning): Add ATTR_FORMAT.
2005-07-13 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGSDaniel Jacobowitz10-12/+93
is not available. Define HAVE_PTRACE_GETREGS if it is. * config.in, configure: Regenerated. * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. * linux-i386-low.c, linux-m68k-low.c: Update to use HAVE_PTRACE_GETREGS. * linux-low.c (regsets_fetch_inferior_registers) (regsets_store_inferior_registers): Only return 0 if we processed GENERAL_REGS. * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
2005-07-13 * inferiors.c (struct thread_info): Add gdb_id.Daniel Jacobowitz6-27/+115
(add_thread): Add gdb_id argument. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. * linux-low.c (linux_create_inferior, linux_attach_lwp): Update calls to add_thread. * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. * server.c (handle_query): Use thread_to_gdb_id. (handle_v_cont, main): Use gdb_id_to_thread_id. * server.h (add_thread): Update prototype. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New prototypes.
2005-07-13 * linux-low.c (fetch_register, usr_store_inferior_registers): HandleDaniel Jacobowitz4-2/+27
left-padded registers. * linux-low.h (struct linux_target_ops): Add left_pad_xfer. * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
2005-07-01 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.Steve Ellcey5-31/+36
* configure: Regenerate. * config.in: Regenerate. * server.h (NEED_DECLARATION_STRERROR): Replace with !HAVE_DECL_STRERROR.
2005-06-17 * linux-low.c (linux_wait, linux_send_signal): Don't testDaniel Jacobowitz4-5/+13
an unsigned long variable for > 0 if it could be MAX_ULONG. * server.c (myresume): Likewise. * target.c (set_desired_inferior): Likewise.
2005-06-14* configure.ac: Simplify and improve check for socklen_t.Mark Kettenis4-35/+62
* configure, config.in: Regenerate.
2005-06-13 * acconfig.h: Remove.Daniel Jacobowitz28-135/+284
* configure.ac: Add a test for socklen_t. Use three-argument AC_DEFINE throughout. * config.in: Regenerated using autoheader 2.59. * configure: Regenerated. * gdbreplay.c (socklen_t): Provide a default. (remote_open): Use socklen_t. * remote-utils.c (socklen_t): Provide a default. (remote_open): Use socklen_t. (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use unsigned char. * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned char for buffers. * linux-low.c (linux_read_memory, linux_write_memory) (linux_read_auxv): Likewise. * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) (check_mem_write): Likewise. * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): Likewise. * regcache.c (struct inferior_rgcache_data, registers_to_string) (registers_from_string, register_data): Likewise. * server.c (handle_query, main): Likewise. * server.h (convert_ascii_to_int, convert_int_to_ascii) (decode_M_packet): Likewise. * target.c (read_inferior_memory, write_inferior_memory): Likewise. * target.h (struct target_ops): Update read_memory, write_memory, and read_auxv. (read_inferior_memory, write_inferior_memory): Update. * linux-low.h (struct linux_target_ops): Change type of breakpoint to unsigned char *. * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, linux-s390-low.c, linux-sh-low.c: Update for changes in read_inferior_memory and the_low_target->breakpoint.
2005-05-28gdb/Daniel Jacobowitz4-3/+131
* configure.tgt (powerpc64-*-linux*): Enable gdbserver. * regformats/reg-ppc64.dat: New file. gdbserver/ * Makefile.in (SFILES): Add linux-ppc64-low.c. (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. * configure.srv: Add powerpc64-*-linux*. * linux-ppc64-low.c: New file.
2005-05-232005-05-23 Orjan Friberg <orjanf@axis.com>Orjan Friberg5-1/+536
* linux-cris-low.c: New file with support for CRIS. * linux-crisv32-low.c: Ditto for CRISv32. * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. (clean): Add reg-cris.c and reg-crisv32.c. Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, reg-crisv32.o, and reg-crisv32.c to make rules. * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of recognized targets.
2005-05-16 * linux-low.c (fetch_register): Ensure buffer size is a multipleUlrich Weigand2-6/+17
of sizeof (PTRACE_XFER_TYPE). (usr_store_inferior_registers): Likewise. Zero out excess bytes.
2005-05-122005-05-12 Orjan Friberg <orjanf@axis.com>Orjan Friberg6-1/+168
* target.h (struct target_ops): Add insert_watchpoint, remove_watchpoint, stopped_by_watchpoint, stopped_data_address function pointers for hardware watchpoint support. * linux-low.h (struct linux_target_ops): Ditto. * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add to linux_target_ops. * remote-utils.c (prepare_resume_reply): Add watchpoint information to reply packet. * server.c (main): Recognize 'Z' and 'z' packets.
2005-05-10 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.Ulrich Weigand2-1/+49
(s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. (the_low_target): Add new members.
2005-05-04 * proc-service.c (ps_lgetregs): Search all_processes instead ofDaniel Jacobowitz2-4/+11
all_threads.
2005-05-04 * server.c (start_inferior): Change return type to int.Daniel Jacobowitz2-6/+13
(attach_inferior): Change sigptr to int *. (handle_v_cont, handle_v_requests): Change signal to int *. (main): Change signal to int.
2005-04-152005-04-15 Ke Sakamoto <sakamoto.kei@renesas.com>Kazuhiro Inaoka4-1/+115
* Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. * configure.srv: Add m32r*-*-linux*. * linux-m32r-low.c: New file.
2005-03-04 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.Daniel Jacobowitz2-1/+5
2005-03-03 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):Daniel Jacobowitz8-57/+84
Take unsigned long arguments for PIDs. * linux-low.c (add_process, linux_attach_lwp, linux_attach) (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) (wait_for_sigstop, linux_resume_one_process) (regsets_fetch_inferior_registers, linux_send_signal) (linux_read_auxv): Likewise. Update the types of variables holding PIDs. Update format string specifiers. * linux-low.h (struct process_info, linux_attach_lwp): Likewise. * remote-utils.c (prepare_resume_reply): Likewise. * server.c (cont_thread, general_thread, step_thread) (thread_from_wait, old_thread_from_wait, signal_pid): Change type to unsigned long. (handle_query): Update format specifiers. (handle_v_cont, main): Use strtoul for thread IDs. * server.h (struct inferior_list_entry): Use unsigned long for ID. (add_thread, find_inferior_id, change_inferior_id, cont_thread) (general_thread, step_thread, thread_from_wait) (old_thread_from_wait): Update. * target.h (struct thread_resume): Use unsigned long for THREAD. (struct target_ops): Use unsigned long for arguments to attach and thread_alive.
2005-02-24 * acinclude.m4: Include bfd/bfd.m4 directly.Daniel Jacobowitz5-101/+68
* configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis <agriffis@toolchain.org>. * aclocal.m4, configure: Regenerated.
2005-01-07Index: ChangeLogAndrew Cagney3-1177/+4300
2005-01-07 Andrew Cagney <cagney@gnu.org> * configure.ac: Rename configure.in, require autoconf 2.59. * configure: Re-generate. Index: doc/ChangeLog 2005-01-07 Andrew Cagney <cagney@gnu.org> * configure.ac: Rename configure.in, require autoconf 2.59. * configure: Re-generate. Index: gdbserver/ChangeLog 2005-01-07 Andrew Cagney <cagney@gnu.org> * configure.ac: Rename configure.in, require autoconf 2.59. * configure: Re-generate. Index: testsuite/ChangeLog 2005-01-07 Andrew Cagney <cagney@gnu.org> * configure.ac: Rename configure.in, require autoconf 2.59. * configure: Re-generate. * gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.stabs/configure: Re-generate. * gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/configure: Re-generate. * gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/gdb.objdbg/configure: Re-generate. * gdb.hp/gdb.defects/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/gdb.defects/configure: Re-generate. * gdb.hp/gdb.compat/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/gdb.compat/configure: Re-generate. * gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/gdb.base-hp/configure: Re-generate. * gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require autoconf 2.59. * gdb.hp/gdb.aCC/configure: Re-generate.
2004-12-08 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. ResetDaniel Jacobowitz4-75/+99
LIBS when finished. * aclocal.m4: Regenerated. * configure: Regenerated.
2004-11-21 * linux-m68k-low.c (m68k_num_gregs): Define.Andreas Schwab3-1/+109
(m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) (m68k_breakpoint_at): New. Add to the_low_target. * configure.srv (m68*-*-linux*): Set srv_linux_regsets and srv_linux_thread_db to yes.
2004-10-21 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.Joel Brobecker2-0/+16
(ARCH_SET_FS): Likewise. (ARCH_GET_FS): Likewise. (ARCH_GET_GS): Likewise.
2004-10-16 * linux-i386-low.c (ps_get_thread_area): New.Daniel Jacobowitz7-101/+241
* linux-x86-64-low.c (ps_get_thread_area): New. * linux-low.c: Include <sys/syscall.h>. (linux_kill_one_process): Don't kill the first thread here. (linux_kill): Kill the first thread here. (kill_lwp): New function. (send_sigstop, linux_send_signal): Use it. * proc-service.c: Clean up #ifdefs. (fpregset_info): Delete. (ps_lgetregs): Update and enable implementation. (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled implementations. * remote-utils.c (struct sym_cache, symbol_cache): New. (input_interrupt): Print a clearer message. (async_io_enabled): New variable. (enable_async_io, disable_async_io): Use it. Update comments. (look_up_one_symbol): Use the symbol cache. * thread-db.c (thread_db_look_up_symbols): New function. (thread_db_init): Update comments. Call thread_db_look_up_symbols.
2004-10-16 * configure.in: Test for -rdynamic.Daniel Jacobowitz4-3/+39
* configure: Regenerated. * Makefile (INTERNAL_LDFLAGS): New. (gdbserver, gdbreplay): Use it.
2004-09-13Index: ChangeLogAndrew Cagney2-1/+5
2004-09-13 Andrew Cagney <cagney@gnu.org> * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE. * configure: Re-generate. * nlm/Makefile.in (TAGS): Update. * Makefile.in (TAGS): Update. * config/vax/nbsd.mt (TM_FILE): Update. * config/sparc/vxworks.mt (TM_FILE): Update. * config/sparc/sol2.mt (TM_FILE): Update. * config/sparc/sol2-64.mt (TM_FILE): Update. * config/sparc/obsd64.mt (TM_FILE): Update. * config/sparc/obsd.mt (TM_FILE): Update. * config/sparc/nbsd64.mt (TM_FILE): Update. * config/sparc/nbsd.mt (TM_FILE): Update. * config/sparc/linux64.mt (TM_FILE): Update. * config/sparc/linux.mt (TM_FILE): Update. * config/sparc/fbsd.mt (TM_FILE): Update. * config/sh/wince.mt (TM_FILE): Update. * config/sh/nbsd.mt (TM_FILE): Update. * config/sh/linux.mt (TM_FILE): Update. * config/sh/embed.mt (TM_FILE): Update. * config/s390/s390.mt (TM_FILE): Update. * config/rs6000/rs6000lynx.mt (TM_FILE): Update. * config/rs6000/rs6000.mt (TM_FILE): Update. * config/rs6000/aix4.mt (TM_FILE): Update. * config/powerpc/vxworks.mt (TM_FILE): Update. * config/powerpc/ppc-sim.mt (TM_FILE): Update. * config/powerpc/ppc-eabi.mt (TM_FILE): Update. * config/powerpc/obsd.mt (TM_FILE): Update. * config/powerpc/nbsd.mt (TM_FILE): Update. * config/powerpc/linux.mt (TM_FILE): Update. * config/powerpc/aix.mt (TM_FILE): Update. * config/pa/obsd.mt (TM_FILE): Update. * config/pa/linux.mt (TM_FILE): Update. * config/pa/hppahpux.mt (TM_FILE): Update. * config/pa/hppa64.mt (TM_FILE): Update. * config/pa/hppa.mt (TM_FILE): Update. * config/ns32k/nbsdaout.mt (TM_FILE): Update. * config/mips/wince.mt (TM_FILE): Update. * config/mips/vxmips.mt (TM_FILE): Update. * config/mips/nbsd.mt (TM_FILE): Update. * config/mips/linux.mt (TM_FILE): Update. * config/mips/irix6.mt (TM_FILE): Update. * config/mips/irix5.mt (TM_FILE): Update. * config/mips/embed.mt (TM_FILE): Update. * config/m68k/vxworks68.mt (TM_FILE): Update. * config/m68k/st2000.mt (TM_FILE): Update. * config/m68k/os68k.mt (TM_FILE): Update. * config/m68k/obsd.mt (TM_FILE): Update. * config/m68k/nbsd.mt (TM_FILE): Update. * config/m68k/monitor.mt (TM_FILE): Update. * config/m68k/linux.mt (TM_FILE): Update. * config/m68k/cisco.mt (TM_FILE): Update. * config/ia64/linux.mt (TM_FILE): Update. * config/ia64/aix.mt (TM_FILE): Update. * config/ia64/ia64.mt (TM_FILE): Update. * config/i386/vxworks.mt (TM_FILE): Update. * config/i386/obsd64.mt (TM_FILE): Update. * config/i386/obsd.mt (TM_FILE): Update. * config/i386/nto.mt (TM_FILE): Update. * config/i386/nbsd64.mt (TM_FILE): Update. * config/i386/nbsd.mt (TM_FILE): Update. * config/i386/linux64.mt (TM_FILE): Update. * config/i386/linux.mt (TM_FILE): Update. * config/i386/i386sol2.mt (TM_FILE): Update. * config/i386/i386lynx.mt (TM_FILE): Update. * config/i386/fbsd64.mt (TM_FILE): Update. * config/i386/fbsd.mt (TM_FILE): Update. * config/i386/cygwin.mt (TM_FILE): Update. * config/h8300/h8300.mt (TM_FILE): Update. * config/frv/frv.mt (TM_FILE): Update. * config/cris/cris.mt (TM_FILE): Update. * config/arm/wince.mt (TM_FILE): Update. * config/arm/nbsd.mt (TM_FILE): Update. * config/arm/linux.mt (TM_FILE): Update. * config/arm/embed.mt (TM_FILE): Update. * config/alpha/nbsd.mt (TM_FILE): Update. * config/alpha/fbsd.mt (TM_FILE): Update. * config/alpha/alpha.mt (TM_FILE): Update. * config/alpha/alpha-osf1.mt (TM_FILE): Update. * config/alpha/alpha-linux.mt (TM_FILE): Update. Index: gdbserver/ChangeLog 2004-09-02 Andrew Cagney <cagney@gnu.org> * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
2004-03-23 * linux-low.c (linux_wait): Clear all_processes list also.Daniel Jacobowitz2-1/+9
2004-03-12 * linux-low.c: Include <errno.h>. Remove extern declaration ofDaniel Jacobowitz2-2/+6
errno.
2004-03-12 * gdbreplay.c, server.h, utils.c: Update copyright years.Daniel Jacobowitz4-3/+7
2004-03-05 * server.c (main): Print child status or termination signal fromDaniel Jacobowitz2-2/+8
variable 'signal', not 'sig'.
2004-03-05 * linux-low.c (linux_read_memory): Change return type toDaniel Jacobowitz5-9/+32
int. Check for and return error from ptrace(). * target.c (read_inferior_memory): Change return type to int. Pass back return status from the_target->read_memory(). * target.h (struct target_ops): Adapt *read_memory() prototype. Update comment. (read_inferior_memory): Adapt prototype. * server.c (main): Return an error packet if read_inferior_memory() returns an error.
2004-03-04 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.Daniel Jacobowitz2-7/+8
Unify with other clean targets.
2004-02-29 * server.c (handle_v_cont): Call set_desired_inferior.Daniel Jacobowitz2-0/+5
2004-02-29 * remote-utils.c (prepare_resume_reply): Always supply "thread:".Daniel Jacobowitz2-1/+9
2004-02-29 * linux-low.c (linux_wait): Unblock async I/O.Daniel Jacobowitz4-1/+33
(linux_resume): Block and enable async I/O. * remote-utils.c (block_async_io, unblock_async_io): New functions. * server.h (block_async_io, unblock_async_io): Add prototypes.
2004-02-29 * remote-utils.c (remote_open): Print a status notice afterDaniel Jacobowitz3-1/+12
opening a TCP port. * server.c (attach_inferior): Print a status notice after attaching.
2004-02-29 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.Daniel Jacobowitz2-1/+9
2004-02-26 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for theDaniel Jacobowitz4-5/+12
error packet. * server.c, target.h: Update copyright years.
2004-02-25.Roland McGrath1-4/+10
2004-02-252004-02-25 Roland McGrath <roland@redhat.com>Roland McGrath3-9/+62
* target.h (struct target_ops): New member `read_auxv'. * server.c (handle_query): Handle qPart:auxv:read: query using that. * linux-low.c (linux_read_auxv): New function. (linux_target_ops): Initialize `read_auxv' member to that.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy1-0/+8
Committed by Jim Blandy <jimb@redhat.com>. * linux-s390-low.c (s390_num_regs): Update. (s390_regmap): Remove control registers. Use __s390x__ predefine instead of GPR_SIZE to distiguish s390 and s390x targets.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy1-8/+2
Committed by Jim Blandy <jimb@redhat.com>. * config/s390/nm-linux.h: Update comments. Do not include "solib.h". (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove. (FETCH_INFERIOR_REGISTERS): Define. * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and core-regset.o. * config/s390/s390x.mt: Remove. * config/s390/tm-s390.h: Remove. * config/s390/tm-linux.h: Do not include "s390/tm-s390.h". (TARGET_ELF64): Remove. (SKIP_TRAMPOLINE_CODE): Do not undefine. * configure.tgt [s390-*-*, s390x-*-*]: Merge into single s390*-*-* case; always set gdb_target to s390. * regformats/reg-s390.dat: Remove control registers. * regformats/reg-s390x.dat: Likewise. * s390-tdep.h: New file. * s390-nat.c: Do not include <asm/processor.h> or <value.h>. Include "inferior.h" and "s390-tdep.h". Remove private definition of offsetof. (s390_register_u_addr): Remove. (regmap_gregset, regmap_fpregset): Define. (supply_gregset, fill_gregset): Reimplement. (supply_fpregset, fill_fpregset): Likewise. (s390_inferior_tid): New function. (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise. (fetch_inferior_registers, store_inferior_registers): Likewise. * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h". Global replace of S390_GP0_REGNUM by S390_R0_REGNUM. Global replace of S390_FP0_REGNUM by S390_F0_REGNUM. (struct gdbarch_tdep): Define. (struct s390_register_info): Define. (s390_register_info): New variable. (s390_register_name): Reimplement. (s390_register_type): New function. (s390_register_raw_size, s390x_register_raw_size): Remove. (s390_cannot_fetch_register): Remove. (s390_register_byte): Remove. (s390_register_virtual_type, s390x_register_virtual_type): Remove. (s390_dwarf_regmap): New variable. (s390_dwarf_reg_to_regnum): New function. (s390_stab_reg_to_regnum): Remove. (s390_pseudo_register_read, s390_pseudo_register_write): New functions. (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise. (s390_convert_register_p): Likewise. (s390_register_to_value, s390_value_to_register): Likewise. (s390_register_reggroup_p): Likewise. (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset, s390_gregset, s390x_gregset, s390_fpregset): New variables. (s390_supply_regset, s390_regset_from_core_section): New functions. (GDB_TARGET_IS_ESAME): Move here from tm-s390.h. (S390_FPR_SIZE): Likewise. (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME. Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE. (S390_NUM_GPRS): Move here from tm-s390.h. (S390_NUM_FPRS): Likewise. (s390_in_function_epilogue_p): New function. (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE. Replace S390_PC_REGNUM by S390_PSWA_REGNUM. (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure. Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum. Replace S390_FP_REGNUM by S390_SP_REGNUM. Remove calls to: set_gdbarch_deprecated_max_register_raw_size, set_gdbarch_deprecated_max_register_virtual_size, set_gdbarch_deprecated_register_byte, set_gdbarch_cannot_fetch_register, set_gdbarch_cannot_store_register, set_gdbarch_deprecated_register_size, set_gdbarch_deprecated_register_raw_size, set_gdbarch_deprecated_register_virtual_size, set_gdbarch_deprecated_register_virtual_type, set_gdbarch_deprecated_register_bytes. Add calls to: set_gdbarch_num_pseudo_regs, set_gdbarch_register_type, set_gdbarch_convert_register_p, set_gdbarch_register_to_value, set_gdbarch_value_to_register, set_gdbarch_register_reggroup_p, set_gdbarch_regset_from_core_section, set_gdbarch_pseudo_register_read, set_gdbarch_pseudo_register_write, set_gdbarch_in_function_epilogue_p. * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies. (s390_tdep_h): New variable.
2004-01-31 * linux-low.c: Update copyright year.Daniel Jacobowitz3-18/+138
(check_removed_breakpoint): Clear pending_is_breakpoint. (linux_set_resume_request, linux_queue_one_thread) (resume_status_pending_p): New functions. (linux_continue_one_thread): Use process->resume. (linux_resume): Only resume threads if there are no pending events. * linux-low.h (struct process_info): Add resume request pointer.
2004-01-30 * regcache.c (new_register_cache): Clear the allocated registerDaniel Jacobowitz2-2/+10
buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2003-10-13 * linux-low.c (linux_resume): Take a struct thread_resume *Daniel Jacobowitz4-30/+231
argument. (linux_wait): Update call. (resume_ptr): New static variable. (linux_continue_one_thread): Renamed from linux_continue_one_process. Use resume_ptr. (linux_resume): Use linux_continue_one_thread. * server.c (handle_v_cont, handle_v_requests): New functions. (myresume): New function. (main): Handle 'v' case. * target.h (struct thread_resume): New type. (struct target_ops): Change argument of "resume" to struct thread_resume *. (myresume): Delete macro.