aboutsummaryrefslogtreecommitdiff
path: root/gdb/infttrace.c
AgeCommit message (Collapse)AuthorFilesLines
2004-10-052004-10-05 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+4
* 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-3/+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-3/+3
* 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-06* infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead ofMark Kettenis1-1/+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-06-082004-06-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-5/+0
* 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.
2004-04-082004-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+3
* breakpoint.h (deprecated_exception_catchpoints_are_fragile) (deprecated_exception_support_initialized): Declare. * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support) (initialize_hp_cxx_exception_support) (child_enable_exception_callback): Update. * breakpoint.c (deprecated_exception_catchpoints_are_fragile) (deprecated_exception_support_initialized): Rename deprecated_exception_catchpoints_are_fragile and deprecated_exception_support_initialized. (breakpoint_init_inferior, breakpoint_init_inferior): Update. * symtab.c (deprecated_hp_som_som_object_present): Rename hp_som_som_object_present. * symtab.h (deprecated_hp_som_som_object_present): Declare. * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS): Update. Delete extern declaration. * valops.c (hp_som_som_object_present): Ditto. * parse.c (deprecated_hp_som_som_object_present) (parse_nested_classes_for_hpacc): Ditto. * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto. * hppa-hpux-tdep.c (hp_som_som_object_present) (initialize_hp_cxx_exception_support): Ditto. * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto. * cp-valprint.c (hp_som_som_object_present) (cp_print_class_method): Ditto. * c-typeprint.c (hp_som_som_object_present): (c_type_print_base): Ditto. * c-exp.y (hp_som_som_object_present): Ditto.
2004-04-062004-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+1
* infttrace.c: Include "infttrace.h". * infttrace.h: Include "target.h". * Makefile.in (infttrace_h): Update. (infttrace.o): Update.
2003-09-142003-09-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-4/+4
* 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-06-19 * arch-utils.c (default_prepare_to_proceed): Remove.Daniel Jacobowitz1-70/+0
(generic_prepare_to_proceed): Remove. * arch-utils.h (default_prepare_to_proceed): Remove prototype. (generic_prepare_to_proceed): Remove prototype. * gdbarch.sh (PREPARE_TO_PROCEED): Remove. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype. * hppah-nat.c (hppa_switched_threads): Remove. * infrun.c (prepare_to_proceed): New static function, copied from generic_prepare_to_proceed. Remove select_it argument. (proceed): Call prepare_to_proceed. * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove variables. (ptrace_wait): Don't set the removed variables. (hppa_switched_threads): Remove. * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove. * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define. (lin_lwp_prepare_to_proceed): Remove prototype. * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine. * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2003-03-302003-03-30 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+3
* infttrace.c: Include "gdbthread.h". (parent_attach_all): Fix function signature. (call_ptrace): Update call. * Makefile.in (infttrace.o): Update dependencies.
2003-03-292003-03-29 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+2
* infttrace.h: New file. * hpread.c: Include "gdb_assert.h" and "somsolib.h". (hpread_get_textlow): Detect an uninitialized dn_bufp. (hpread_read_doc_function_type): Detect an initialized type1. (hpread_quick_traverse): Initialize mod_name_string. * somsolib.h: Add #ifdef SOMSOLIB_H wrapper. (som_solib_get_solib_by_pc): Declare. (so_lib_thread_start_addr): Declare. (no_shared_libraries): Declare. * somread.c (init_import_symbols): Make static. Add forward declaration. * config/pa/nm-hppah.h: Include "infttrace.h" for parent_attach_all. (hppa_insert_hw_watchpoint): Declare. (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare. * hppah-nat.c: Include "gdb_string.h". (parent_attach_all): Delete extern declaration, moved to "infttrace.h". (hppa_can_use_hw_watchpoint): Change type of "type" parameter to int. (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto. * Makefile.in (infttrace_h): Define. (hpread.o): Update dependencies. (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto. * hppa-hpux-tdep.c: Include "gdb_string.h". * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc". * infrun.c (handle_inferior_event): Always initialize stepped_after_stopped_by_watchpoint. Add default and remove fallthrough in switch statement. * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type" parameter to int. (hppa_remove_hw_watchpoint): Ditto.
2003-02-06Checked in as obvious fixes. Also updated FSF copyright year to 2003Fred Fish1-3/+3
for remote-e7000.c and infttrace.c. 2003-02-05 Fred Fish <fnf@intrinsity.com> * remote-e7000.c (e7000_drain_command): Fix precedence problem with '=' and '!='. * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem with '&' and '=='. (angel_RDI_info): Ditto. * infttrace.c (threads_continue_all_but_one): Fix precedence problem with '&' and '!='. (threads_continue_all_with_signals): Ditto.
2002-12-12 * corelow.c (init_core_ops): Delete references to to_require_attachDaniel Jacobowitz1-3/+1
and to_require_detach. * exec.c (init_exec_ops): Likewise. * hppah-nat.c (child_follow_fork): Call hppa_require_attach and hppa_require_detach directly. * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete. * inftarg.c (child_detach): Remove. (child_detach_from_process): Rename to child_detach, remove after_fork argument. (child_attach): Remove. (child_attach_to_process): Rename to child_attach, remove after_fork argument. (init_child_ops): Delete references to to_require_attach and to_require_detach. * infttrace.c (hppa_require_attach): Update comment. * target.c (cleanup_target, update_current_target) (init_dummy_target, setup_target_debug): Delete references to to_require_attach and to_require_detach. (find_default_require_detach, find_default_require_attach) (debug_to_require_attach, debug_to_require_detach): Remove functions. * target.h (struct target_ops): Remove to_require_attach and to_require_detach. (target_require_attach, target_require_detach): Delete macros. (find_default_require_detach, find_default_require_attach): Delete prototypes. * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
2002-12-11 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.Daniel Jacobowitz1-1/+9
(child_post_follow_vfork): Cancel pending exec event if we follow the parent. (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary events have been processed. Return a fake TARGET_WAITKIND_EXECD event at the following wait call if necessary. * infrun.c (follow_vfork): Don't follow_exec here. (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD case about HP/UX 10.20. Remove code pushed down to hppah-nat.c:child_wait. * infttrace.c (child_resume): Use TT_PROC_CONTINUE if vfork_in_flight is set.
2002-11-16 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,Daniel Jacobowitz1-17/+6
inferior_has_vforked, and inferior_has_execd instead of target_has_forked, target_has_vforked, and target_has_execd. * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED) (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define. (CHILD_WAIT): Define. (child_wait): Add prototype. * hppah-nat.c (hpux_has_forked): Rename from child_has_forked. Add prototype. (hpux_has_vforked): Likewise, from child_has_vforked. (hpux_has_execd): Likewise, from child_has_execd. (hpux_has_syscall_event): Likewise, from child_has_syscall_event. (not_same_real_pid, child_wait): New, copied from inftarg.c. Call hpux_has_forked, hpux_has_vforked, hpux_has_execd, and hpux_has_syscall_event instead of the target hooks. * infrun.c (inferior_has_forked, inferior_has_vforked) (inferior_has_execd): New functions. * inftarg.c (not_same_real_pid): Remove. (child_wait): Remove references to not_same_real_pid, target_has_forked, target_has_vforked, target_has_execd, and target_has_syscall_event. (child_has_forked, child_has_vforked, child_has_execd) (child_has_syscall_event): Remove. (init_child_ops): Remove references to child_has_forked, child_has_vforked, child_has_execd, and child_has_syscall_event. * infttrace.c (hpux_has_forked): Rename from child_has_forked. (hpux_has_vforked): Likewise, from child_has_vforked. (hpux_has_execd): Likewise, from child_has_execd. (hpux_has_syscall_event): Likewise, from child_has_syscall_event. * target.c (cleanup_target): Remove references to to_has_forked, to_has_vforked, to_has_execd, and to_has_syscall_event. (update_current_target): Likewise. (setup_target_debug): Likewise. (debug_to_has_forked): Remove. (debug_to_has_vforked): Remove. (debug_to_has_execd): Remove. (debug_to_has_syscall_event): Remove. * target.h (struct target_ops): Remove to_has_forked. to_has_vforked, to_has_execd, and to_has_syscall_event. (child_has_forked, child_has_vforked, child_has_execd) (child_has_syscall_event): Remove prototypes. (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add prototypes. (target_has_forked, target_has_vforked, target_has_execd) (target_has_syscall_event): Remove macros.
2002-11-16 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.Daniel Jacobowitz1-15/+0
* inftarg.c (child_can_follow_vfork_prior_to_exec): Remove. (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec. * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove. * target.c (cleanup_target): Remove reference to to_can_follow_vfork_prior_to_exec. (update_current_target): Likewise. (debug_to_can_follow_vfork_prior_to_exec): Remove. (setup_target_debug): Remove reference to to_can_follow_vfork_prior_to_exec. * target.h (struct target_ops): Remove to_can_follow_vfork_prior_to_exec. (child_can_follow_vfork_prior_to_exec): Remove prototype. (target_can_follow_vfork_prior_to_exec): Remove definition. * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't define. * infrun.c (follow_vfork_when_exec): Remove. (follow_inferior_fork): Remove references to follow_vfork_when_exec. (follow_exec): Likewise. (handle_inferior_event): Likewise. (keep_going): Likewise.
2002-09-10 * infttrace.c (child_resume): Simplify and rework to avoidJeff Law1-80/+23
TT_PROC_CONTINUE.
2002-01-21* infttrace.c: Include <sys/pstat.h>.Andrew Cagney1-56/+28
(child_pid_to_exec_file): Revamp. Use pstat call to get the exec file if the ttrace equivalent fails.
2002-01-082002-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+4
* 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-12-19 * infttrate.c (child_acknowledge_created_inferior): PassJeff Law1-2/+2
correct argument to add_thread. (update_thread_state_after_attach): Likewise.
2001-09-27kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOPJoel Brobecker1-11/+2
request to kill the inferior and its child processes. Otherwise, the inferior is not killed on HPUX 11.0. Removed the code that detaches the child processes since we just killed them.
2001-07-28Fix some PID/TPID fallout for HP/UX.Andrew Cagney1-5/+5
From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>: * infttrace.c (ptrace_wait): Match external declaration, and match target_post_wait declaration.
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-07-19From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:Andrew Cagney1-1/+1
* infttrace.c (child_thread_alive): Fix gdb_tid typo. * somsolib.c (no_shared_libraries): Provide stub. * xcoffsolib.c (no_shared_libraries): Provide stub.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-50/+54
2001-03-20malloc() -> xmalloc.Andrew Cagney1-3/+3
Move malloc() decl to utils.c
2001-03-15Add ``attrib'' parameter to *xfer_memory() functions.Andrew Cagney1-0/+1
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-02-25Replace calls to abort() with calls to internal_error().Kevin Buettner1-1/+1
2000-12-15Replace free() with xfree().Kevin Buettner1-4/+4
2000-10-24From 2000-09-06 Angela Marie Thomas <angela@cygnus.com>:Andrew Cagney1-1/+1
* infttrace.c (get_dictionary_entry_of_page): Function require_memory_page_dictionary takes no args.
2000-09-21 * infttrace.c (update_thread_state_after_attach): Pass addressFred Fish1-1/+1
of ttstate_t object, not the object itself.
2000-09-09Protoization.Kevin Buettner1-7/+3
2000-07-30Protoization.Kevin Buettner1-258/+114
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-1/+1
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-1/+1
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-4/+1
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-0/+49
1999-08-02import gdb-1999-08-02 snapshotJason Molenda1-8/+12
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-2549/+2755
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+5674
1999-04-16Initial creation of sourceware repositoryStan Shebs1-5711/+0
1999-01-04change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion.David Taylor1-1/+3
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-0/+5709