aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
AgeCommit message (Collapse)AuthorFilesLines
2004-10-052004-10-05 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+2
* target.h (deprecated_child_ops): Rename child_ops. * wince.c: Update copyright. Rename child_ops. * win32-nat.c: Rename child_ops. * target.c: Rename child_ops. * rs6000-nat.c: Rename child_ops. * linux-nat.c: Rename child_ops. * infttrace.c: Rename child_ops. * inftarg.c: Rename child_ops. * infptrace.c: Rename child_ops. * hppah-nat.c: Update copyright. Rename child_ops. * hpux-thread.c: Update copyright. Rename child_ops.
2004-09-292004-09-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* infptrace.c (kill_inferior): Fix typo, in previous inline. Pass the address of status.
2004-09-292004-09-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+5
* infptrace.c (ptrace_wait): Mention problem with HPUX. (kill_inferior): Inline ptrace_wait call. * linux-nat.c (kill_inferior): Inline ptrace_wait call. * inftarg.c (child_wait): Inline ptrace_wait call.
2004-09-292004-09-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* target.h (struct target_ops): Delete field to_post_wait. (target_post_wait): Delete macro. (child_post_wait): Delete declaration. * target.c (update_current_target, update_current_target) (debug_to_post_wait, setup_target_debug): Delete functions and references. * infttrace.c (ptrace_wait): Delete call to target_post_wait. * inftarg.c (child_post_wait): Delete. (init_child_ops): Do not set to_post_wait. * infptrace.c (ptrace_wait): Delete call to target_post_wait. * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait. * inf-child.c (inf_child_post_wait): Delete. (inf_child_target): Do not set to_post_wait. * inf-ptrace.c (inf_ptrace_post_wait): Delete. (inf_ptrace_target): Do not set to_post_wait.
2004-09-202004-09-20 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+11
* config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate CHILD_RESUME. * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto. * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate KILL_INFERIOR. * infptrace.c: Update.
2004-09-072004-09-07 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+0
* vx-share/wait.h: Delete #ifdef USG. * utils.c (request_quit): Ditto. * tui/tui.c (tui_reset): Ditto. * remote.c: Ditto. * remote-sds.c: Ditto. * remote-rdi.c: Ditto. * mdebugread.c: Ditto. * m68klinux-nat.c: Ditto. * infttrace.c: Ditto. * infptrace.c: Ditto. * i386v-nat.c: Ditto. * exec.c: Ditto. * dbxread.c: Ditto. * core-aout.c: Ditto.
2004-08-22* infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.Mark Kettenis1-49/+32
Reorder includes. (fetch_register, store_register): Remove prototypes. (child_resume): Reorganize code and comments such that it is grouped a bit more logically. (attach): Explicitly compare errno against 0. (detach): Likewise. Use perror_with_name instead of print_sys_errmsg. * Makefile.in (infptrace.o): Update dependencies.
2004-08-22* infptrace.c: Include "gdb_assert.h".Mark Kettenis1-95/+74
(PTRACE_XFER_TYPE): Remove define. (offsetof): Only define if U_REGS_OFFSET isn't defined. (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET. Tweak comment. (fetch_inferior_registers, store_inferior_registers): Remove redundant culry braces. Tweak comment. s/regno/regnum. * Makefile.in (infptrace.o): Update dependencies.
2004-08-21* gdb_ptrace.h: New file.Mark Kettenis1-47/+3
* infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or <sys/ptrace.h>. (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D) (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines. (attach): Don't define PT_ATTACH. (detach): Don't define PT_DETACH. * Makefile.in (gdb_ptrace_h): New variable. (infptrace.o): Update dependencies.
2004-08-16* inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3Mark Kettenis1-1/+1
instead of `int' if not already defined. (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * infptrace.c (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2004-08-15* infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE withMark Kettenis1-13/+13
PTRACE_TYPE_RET.
2004-08-14* inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE withMark Kettenis1-16/+16
PTRACE_TYPE_ARG3. * infptrace.c (call_ptrace, child_resume, attach, detach) (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory) (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2004-08-11* infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5Mark Kettenis1-3/+3
instead of FIVE_ARG_PTRACE.
2004-08-06* infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead ofMark Kettenis1-28/+1
!NO_SYS_FILE. [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>. [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable. (_initialize_kernel_u_addr): Remove prototype and function. * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of !NO_SYS_FILE. * xcoffread.c: Likewise.
2004-08-032004-08-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+2
Replace DEPRECATED_REGISTER_RAW_SIZE with register_size. * rs6000-tdep.c (rs6000_push_dummy_call) (rs6000_extract_return_value): Use register_size. * xstormy16-tdep.c (xstormy16_get_saved_register) (xstormy16_extract_return_value): Ditto. * valops.c (value_assign): Ditto. * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): * v850-tdep.c (v850_extract_return_value): Ditto. * tracepoint.c (collect_symbol): Ditto. * target.c (debug_print_register): Ditto. * stack.c (frame_info): Ditto. * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto. * rom68k-rom.c (rom68k_supply_one_register): Ditto. * remote.c (struct packet_reg, remote_wait, remote_async_wait) (store_register_using_P): Ditto. * remote-vxmips.c (vx_read_register, vx_write_register): Ditto. * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto. * remote-mips.c (mips_wait, mips_fetch_registers): Ditto. * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto. * regcache.c (deprecated_read_register_bytes) (deprecated_write_register_bytes, read_register) (write_register): Ditto. * ppc-linux-nat.c (fetch_altivec_register, fetch_register) (supply_vrregset, store_altivec_register, fill_vrregset): Ditto. * monitor.c (monitor_supply_register, monitor_fetch_register) (monitor_store_register): Ditto. * mn10300-tdep.c (mn10300_pop_frame_regular) (mn10300_print_register): Ditto. * mipsv4-nat.c (fill_fpregset): Ditto. * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) (mips64_fill_fpregset): Ditto. * mi/mi-main.c (register_changed_p, get_register) (mi_cmd_data_write_register_values): Ditto. * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): * irix5-nat.c (fill_gregset, fetch_core_registers): * infrun.c (write_inferior_status_register): Ditto. * infptrace.c (fetch_register, store_register): Ditto. * infcmd.c (default_print_registers_info): Ditto. * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto. * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto. * i386gnu-nat.c (gnu_store_registers, fill): Ditto. * hpux-thread.c (hpux_thread_fetch_registers) (hpux_thread_store_registers): Ditto. * hppah-nat.c (store_inferior_registers, fetch_register): * findvar.c (value_from_register): Ditto. * dve3900-rom.c (fetch_bitmapped_register): * cris-tdep.c (cris_gdbarch_init): Ditto. * alpha-tdep.h: Ditto. * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2004-07-31* infptrace.c: Update copyright year.Mark Kettenis1-3/+2
(fetch_register): Pass NULL in regcache_raw_supply call instead of explicitly setting the buffer to all zeroes.
2004-07-242004-07-23 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
Use regcache_raw_collect instead of regcache_collect. * regcache.h (regcache_collect): Delete declaration. * regcache.c (regcache_colect): Delete function. * win32-nat.c (do_child_store_inferior_registers): Update. * sol-thread.c (sol_thread_store_registers): Update. * shnbsd-tdep.c (shnbsd_fill_reg): Update. * rs6000-nat.c (store_register): Update. * remote.c (store_register_using_P, remote_store_registers): Update. * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update. * ppc-linux-nat.c (store_altivec_register, store_spe_register) (fill_vrregset, store_spe_registers, fill_gregset) (fill_gregset): Update. * nto-procfs.c (procfs_store_registers): Update. * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update. * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update. * m68klinux-nat.c (store_register, fill_gregset): Update. * m68k-tdep.c (fill_gregset): Update. * infptrace.c (store_register): Update. * i386-nto-tdep.c (i386nto_regset_fill): Update. * i386-linux-nat.c (store_register, fill_gregset): Update. * hppa-linux-nat.c (fill_gregset): Update. * go32-nat.c (store_register): Update. * armnbsd-nat.c (store_register, store_regs, store_fp_register) (store_fp_regs): Update. * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) (store_nwfpe_extended, store_fpregister, store_fpregs) (store_register, store_regs, fill_gregset, fill_fpregset): Update. * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update. * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32) (store_regs_user_thread, store_regs_kernel_thread): Update.
2004-07-222004-07-21 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+2
Use regcache_raw_supply instead of supply_register. * regcache.h (supply_register): Delete declaration. * regcache.c (supply_register): Delete function. * wince.c (do_child_fetch_inferior_registers): Update. * win32-nat.c (do_child_fetch_inferior_registers) (fetch_elf_core_registers): Update. * v850ice.c (v850ice_fetch_registers): Update. * thread-db.c (thread_db_store_registers): Update. * sol-thread.c (sol_thread_store_registers): Update. * shnbsd-tdep.c (shnbsd_supply_reg): Update. * rs6000-nat.c (fetch_register): Update. * rom68k-rom.c (rom68k_supply_one_register): Update. * remote.c (remote_wait, remote_async_wait): Update. * remote-st.c (get_hex_regs): Update. * remote-sim.c (gdbsim_fetch_register): Update. * remote-sds.c (sds_fetch_registers): Update. * remote-rdp.c (remote_rdp_fetch_register): Update. * remote-rdi.c (arm_rdi_fetch_registers): Update. * remote-mips.c (mips_wait, mips_fetch_registers): Update. * remote-m32r-sdi.c (m32r_fetch_register): Update. * remote-hms.c (init_hms_cmds): Update. * remote-est.c (init_est_cmds): Update. * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update. * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update. * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) (fetch_register, supply_vrregset, supply_vrregset) (fetch_spe_registers): Update. * ppc-bdm.c (bdm_ppc_fetch_registers): Update. * monitor.c (monitor_supply_register): Update. * mipsv4-nat.c (supply_gregset, supply_fpregset): Update. * mipsnbsd-tdep.c (mipsnbsd_supply_reg) (mipsnbsd_supply_fpreg): Update. * mips-nat.c (fetch_inferior_registers) (fetch_core_registers): Update. * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) (supply_fpregset, mips64_supply_gregset) (mips64_supply_fpregset): Update. * m68klinux-nat.c (fetch_register, supply_gregset) (supply_fpregset): Update. * m68k-tdep.c (supply_gregset, supply_fpregset): Update. * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update. * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update. * irix5-nat.c (supply_gregset, supply_fpregset): Update. * infptrace.c (fetch_register): Update. * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update. * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update. * i386gnu-nat.c (fetch_fpregs, supply_gregset) (gnu_fetch_registers, gnu_store_registers): Update. * i386-nto-tdep.c (i386nto_supply_gregset): Update. * i386-linux-nat.c (fetch_register, supply_gregset) (dummy_sse_values): Update. * hpux-thread.c (hpux_thread_fetch_registers): Update. * hppah-nat.c (fetch_register): Update. * hppa-linux-nat.c (fetch_register, supply_gregset) (supply_fpregset): Update. * go32-nat.c (fetch_register): Update. * dve3900-rom.c (fetch_bitmapped_register) (_initialize_r3900_rom): Update. * cris-tdep.c (supply_gregset): Update. * abug-rom.c (init_abug_cmds): Update. * core-aout.c (fetch_core_registers): Update. * armnbsd-nat.c (supply_gregset, supply_fparegset) (fetch_register, fetch_fp_register): Update. * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none) (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs) (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update. * alphanbsd-tdep.c (fetch_core_registers): Update. * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update. * alpha-nat.c (fetch_osf_core_registers) (fetch_osf_core_registers, fetch_osf_core_registers): Update. * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2004-06-092004-06-09 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-3/+0
* infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete #ifdef CLEAR_INSN_CACHE code. * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]: Delete #ifdef CLEAR_DEFERRED_STORES code.
2004-06-082004-06-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-10/+18
* infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers. (attach, detach): When neither PT_ATTACH / PT_DETACH nor PTRACE_ATTACH / PTRACE_DETACH available call error. (PT_ATTACH, PT_DETACH): Move definition to attach / detach. * infttrace.c (update_thread_state_after_attach, attach, detach): Remove #ifdef wrappers. * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers. * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers. * config/nm-bsd.h (ATTACH_DETACH): Delete. * config/nm-sysv4.h (ATTACH_DETACH): Delete. * config/nm-nbsd.h (ATTACH_DETACH): Delete. * config/nm-linux.h (ATTACH_DETACH): Delete. * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete. * config/pa/nm-hppah.h (ATTACH_DETACH): Delete. * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete. * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete. * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete. Index: doc/ChangeLog 2004-06-08 Andrew Cagney <cagney@gnu.org> * gdbint.texinfo (Native Debugging): Delete documentation on ATTACH_DETACH.
2003-10-022003-10-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+3
* gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename REGISTER_RAW_SIZE. * gdbarch.h, gdbarch.c: Re-generate. * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update. * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update. * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update. * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update. * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update. * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update. * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update. * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update. * remote-e7000.c, remote-mips.c, remote-sim.c: Update. * remote-vxmips.c, remote-vxsparc.c, remote.c: Update. * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update. * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update. * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update. * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update. * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update. * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update. 2003-10-02 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Rename REGISTER_RAW_SIZE to DEPRECATED_REGISTER_RAW_SIZE. * gdb.texinfo (Packets, Stop Reply Packets): Ditto. * gdbint.texinfo (Target Architecture Definition): Rename 2003-10-02 Andrew Cagney <cagney@redhat.com> * mi-main.c: Rename REGISTER_RAW_SIZE to DEPRECATED_REGISTER_RAW_SIZE.
2003-09-142003-09-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* alpha-nat.c: Remove some occurances of "register". * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto. * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto. * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto. * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto. * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto. * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto. * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto. * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto. * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto. * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto. * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto. * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto. * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto. * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto. * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto. * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto. * solib.c, somread.c, source.c, sparc-tdep.c: Ditto. * stabsread.c, stack.c, standalone.c, symfile.c: Ditto. * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto. * typeprint.c, utils.c, valarith.c, valops.c: Ditto. * values.c, vax-tdep.c, xcoffread.c: Ditto.
2003-08-17 * Makefile.in (i386-linux-nat.o): Update dependencies.Daniel Jacobowitz1-0/+2
* config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define. * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH) (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define. * i386-linux-nat.c: Include "linux-nat.h". (child_post_startup_inferior): New function. * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef. * infptrace.c (kill_inferior): Wrap in #ifdef. * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after attaching to each LWP. (child_wait, lin_lwp_wait): Call linux_handle_extended_wait. (init_lin_lwp_ops): Fill in some more operations. * linux-nat.h (linux_enable_event_reporting) (linux_handle_extended_wait, linux_child_post_startup_inferior): New prototypes. * linux-nat.c (linux_enable_event_reporting): New function. (child_post_attach, linux_child_post_startup_inferior) (child_post_startup_inferior, child_follow_fork) (linux_handle_extended_wait, kill_inferior): New functions.
2003-05-222003-05-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-2/+2
* infptrace.c (detach): Call print_sys_errmsg rather than perror_with_name to issue warning message when errno is non-zero after calling ptrace detach.
2003-05-082003-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE. * gdbarch.h: Re-generate. * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro. (legacy_max_register_raw_size): Delete declaration. * regcache.c (legacy_max_register_raw_size): Delete function. * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE. * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Update. * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Update. * remote-rdp.c, remote-array.c, regcache.c: Update. * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Update. * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Update. * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Update. * findvar.c, dwarf2cfi.c: Update. Index: tui/ChangeLog 2003-05-08 Andrew Cagney <cagney@redhat.com> * tuiRegs.c: Use MAX_REGISTER_SIZE instead of MAX_REGISTER_RAW_SIZE. Index: mi/ChangeLog 2003-05-08 Andrew Cagney <cagney@redhat.com> * mi-main.c (register_changed_p): Use MAX_REGISTER_SIZE instead of MAX_REGISTER_RAW_SIZE.
2003-02-252003-02-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+1
* infptrace.c (detach): Do not flag error if ptrace detach fails and errno is set to ESRCH.
2003-02-242003-02-24 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+4
* infptrace.c (udot_info): Change type of udot_off to long. Use paddr when printing udot_off's value.
2002-11-08* infptrace.c (child_xfer_memory): Make use of the new PT_IOMark Kettenis1-0/+31
request that's available in *BSD.
2002-01-19Remove ATTRIBUTE_UNUSED. Update (C).Andrew Cagney1-4/+3
2002-01-082002-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder1-2/+20
* infptrace.c (GDB_MAX_ALLOCA): New define. (child_xfer_memory): Use xmalloc/xfree instead of alloca if the size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte, can be overridden with whatever value is appropriate to the host). * infttrace.c (child_xfer_memory): Add FIXME warning about use of alloca to allocate potentially large buffer. * rs6000-nat.c (child_xfer_memory): Ditto. * symm-nat.c (child_xfer_memory): Ditto. * x86-64-linux-nat.c (child_xfer_memory): Ditto.
2001-11-192001-11-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+8
* infptrace.c (fetch_register): Dynamically allocate buffer for register. (store_register): Use regcache_collect, instead of accessing the register buffer directly.
2001-10-21* infptrace.c (child_xfer_memory): Fix a few coding standardsMark Kettenis1-32/+27
violations.
2001-07-26 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.Daniel Jacobowitz1-1/+1
* 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-06-15Multi-arch CANNOT_FETCH_REGISTER() and CANNOT_STORE_REGISTER().Andrew Cagney1-10/+0
2001-05-15Redefine ptid_t to be a struct rather than an int.Kevin Buettner1-16/+0
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-20/+24
2001-03-20Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().Andrew Cagney1-1/+1
2001-03-13Eliminate ARCH_NUM_REGS.Andrew Cagney1-2/+2
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-25Replace calls to abort() with calls to internal_error().Kevin Buettner1-1/+1
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-1/+2
internal_verror().
2001-01-23* exec.c (xfer_memory): Add attrib argument.J.T. Conklin1-1/+2
* infptrace.c (child_xfer_memory): Likewise. * monitor.c (monitor_xfer_memory): Likewise. * remote-adapt.c (adapt_xfer_inferior_memory): Likewise. * remote-array.c (array_xfer_memory): Likewise. * remote-bug.c (bug_xfer_memory): Likewise. * remote-e7000.c (e7000_xfer_inferior_memory): Likewise. * remote-eb.c (eb_xfer_inferior_memory): Likewise. * remote-es.c (es1800_xfer_inferior_memory): Likewise. * remote-mips.c (mips_xfer_memory): Likewise. * remote-mm.c (mm_xfer_inferior_memory): Likewise. * remote-nindy.c (nindy_xfer_inferior_memory): Likewise. * remote-os9k.c (rombug_xfer_inferior_memory): Likewise. * remote-rdi.c (arm_rdi_xfer_memory): Likewise. * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise. * remote-sds.c (sds_xfer_memory): Likewise. * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise. * remote-st.c (st2000_xfer_inferior_memory): Likewise. * remote-udi.c (udi_xfer_inferior_memory): Likewise. * remote-vx.c (vx_xfer_memory): Likewise. * remote.c (remote_xfer_memory): Likewise. * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise. * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise. * target.h (#include "memattr.h"): Added. (target_ops.to_xfer_memory): Add attrib argument. * wince.c (_initialize_inftarg): Removed call to set_dcache_state. * dcache.h (set_dcache_state): Removed declaration. * dcache.c (set_dcache_state): Removed definition * dcache.c: Update module comment, as dcache is now enabled and disabled with memory region attributes instead of by the global variable "remotecache". Add comment describing the interaction between dcache and memory region attributes. (dcache_xfer_memory): Add comment describing benefits of moving cache writeback to a higher level. (dcache_struct): Removed cache_has_stuff field. This was used to record whether the cache had been accessed in order to invalidate it when it was disabled. However, this is not needed because the cache is write through and the code that enables, disables, and deletes memory regions invalidate the cache. Add comment which suggests that we could be more selective and only invalidate those cache lines containing data from those memory regions. (dcache_invalidate): Updated. (dcache_xfer_memory): Updated. (dcache_alloc): Don't abort() if dcache_enabled_p is clear. (dcache_xfer_memory): Removed code that called do_xfer_memory() to perform a uncached transfer if dcache_enabled_p was clear. This function is now only called if caching is enabled for the memory region. (dcache_info): Always print cache info. * target.c (do_xfer_memory): Add attrib argument. (target_xfer_memory, target_xfer_memory_partial): Break transfer into chunks defined by memory regions, pass region attributes to do_xfer_memory(). * dcache.c (dcache_read_line, dcache_write_line): Likewise. * Makefile.in (SFILES): Add memattr.c. (COMMON_OBS): Add memattr.o. (dcache.o): Add target.h to dependencies. * memattr.c: New file. * memattr.h: Likewise.
2000-09-09Protoization.Kevin Buettner1-7/+3
2000-07-30Protoization.Kevin Buettner1-29/+13
2000-05-28PARAMS removal.Kevin Buettner1-5/+5
2000-05-25Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h".Andrew Cagney1-1/+1
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-10/+1
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-25/+63
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-4/+1