aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.c
AgeCommit message (Collapse)AuthorFilesLines
2005-01-10* inf-ptrace.h: Update copyright year. Sync comment withMark Kettenis1-1/+131
inf-ptrace.c. (inf_ptrace_trad_target): New prototype. * inf-ptrace.c: Update copyright year. Include "regcache.h" and "gdb_assert.h" (inf_ptrace_target): Add comment. (inf_ptrace+register_u_offset): New variable. (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) (inf_ptrace_store_register, inf_ptrace_store_registers) (inf_ptrace_trad_target): New functions. * Makefile.in (inf-ptrace.o): Update dependencies.
2004-11-21* inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".Mark Kettenis1-10/+9
Reorder includes a bit. Fix comment. * Makefile.in (inf-ptrace.o): Update dependencies.
2004-11-20* inf-ptrace.c: Fix coding style.Mark Kettenis1-32/+27
2004-11-07 * Makefile.in (symfile-mem.o): Update dependencies.Daniel Jacobowitz1-0/+4
* i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New. (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p. * inf-ptrace.c (inf_ptrace_attach): Call observer_notify_inferior_created. * inftarg.c (child_attach): Likewise. * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h". (symbol_file_add_from_memory): Take NAME argument. Use it for the new BFD's filename. (add_symbol_file_from_memory_command): Update call to symbol_file_add_from_memory. (struct symbol_file_add_from_memory_args, add_vsyscall_page) (symbol_file_add_from_memory_wrapper): New. (_initialize_symfile_mem): Register add_vsyscall_page as an inferior_created observer.
2004-10-152004-10-15 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out. * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>. * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc. Update dependencies.
2004-10-012004-10-01 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-14/+16
* target.c (xfer_using_stratum): Change return type to LONGEST. On each iteration offset, readbuf and writebuf. * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of partial_length, and read/modify/write predicate, update comments. Pass buffer.word to ptrace write.
2004-09-30Really delete inf_ptrace_xfer_memory!Andrew Cagney1-139/+0
2004-09-302004-09-30 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory. (inf_ptrace_xfer_memory): Delete. * target.c (target_xfer_partial_p, xfer_using_stratum): New. (target_read_memory, target_write_memory): Use xfer_using_stratum when target_xfer_partial_p. (debug_target): Move to start of file. (target_read_memory_partial, target_write_memory_partial): Use to_xfer_partial when target_xfer_partial_p.
2004-09-302004-09-30 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-7/+91
* inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to inf_ptrace_xfer_memory with equivalent code. * inftarg.c (child_xfer_partial): When performing a write, pass writebuf to child_xfer_memory.
2004-09-292004-09-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-10/+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-25* inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.Mark Kettenis1-5/+21
Inline attach call. (inf_ptrace_detach): Inline detach call.
2004-09-24* inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.Mark Kettenis1-1/+1
2004-09-24* inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directlyMark Kettenis1-4/+5
instead of call_ptrace. Call wait directly instead of ptrace_wait. (inf_ptrace_me): Call ptrace directly instead of call_ptrace. (inf_ptrace_wait): Inline ptrace_wait call.
2004-09-162004-09-16 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+1
* inf-child.c: Include "gdb_string.h". (inf_child_core_file_to_sym_file): Delete. (inf_child_target): Set to_fetch_registers and to_store_registers. * inf-ptrace.c: Include "gdb_string.h". * Makefile.in: Update all dependencies.
2004-09-122004-09-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+685
* ppcnbsd-nat.c: Include "inf-ptrace.h". (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers. (ppcnbsd_store_inferior_registers): Rename store_inferior_registers. (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace target. * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with inf-ptrace.o and inf-child.o. * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files. * Makefile.in: Update dependencies.