summaryrefslogtreecommitdiff
path: root/gdb/infttrace.c
Commit message (Collapse)AuthorAgeFilesLines
* 2003-03-30 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-301-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-29 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-291-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.
* Checked in as obvious fixes. Also updated FSF copyright year to 2003Fred Fish2003-02-061-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.
* * corelow.c (init_core_ops): Delete references to to_require_attachDaniel Jacobowitz2002-12-121-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.
* * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.Daniel Jacobowitz2002-12-111-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.
* * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,Daniel Jacobowitz2002-11-161-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.
* * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.Daniel Jacobowitz2002-11-161-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.
* * infttrace.c (child_resume): Simplify and rework to avoidJeff Law2002-09-101-80/+23
| | | | TT_PROC_CONTINUE.
* * infttrace.c: Include <sys/pstat.h>.Andrew Cagney2002-01-211-56/+28
| | | | | (child_pid_to_exec_file): Revamp. Use pstat call to get the exec file if the ttrace equivalent fails.
* 2002-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-081-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.
* * infttrate.c (child_acknowledge_created_inferior): PassJeff Law2001-12-191-2/+2
| | | | | correct argument to add_thread. (update_thread_state_after_attach): Likewise.
* kill_inferior: Issue a TT_PROC_EXIT request rather than a TT_PROC_STOPJoel Brobecker2001-09-271-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.
* Fix some PID/TPID fallout for HP/UX.Andrew Cagney2001-07-281-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.
* * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.Daniel Jacobowitz2001-07-261-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.
* From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:Andrew Cagney2001-07-191-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.
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-50/+54
|
* malloc() -> xmalloc.Andrew Cagney2001-03-201-3/+3
| | | | Move malloc() decl to utils.c
* Add ``attrib'' parameter to *xfer_memory() functions.Andrew Cagney2001-03-151-0/+1
|
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* Replace calls to abort() with calls to internal_error().Kevin Buettner2001-02-251-1/+1
|
* Replace free() with xfree().Kevin Buettner2000-12-151-4/+4
|
* From 2000-09-06 Angela Marie Thomas <angela@cygnus.com>:Andrew Cagney2000-10-241-1/+1
| | | | | * infttrace.c (get_dictionary_entry_of_page): Function require_memory_page_dictionary takes no args.
* * infttrace.c (update_thread_state_after_attach): Pass addressFred Fish2000-09-211-1/+1
| | | | of ttstate_t object, not the object itself.
* Protoization.Kevin Buettner2000-09-091-7/+3
|
* Protoization.Kevin Buettner2000-07-301-258/+114
|
* Replace ../include/wait.h with gdb_wait.h.Andrew Cagney2000-02-091-1/+1
|
* import gdb-1999-12-21 snapshotJason Molenda1999-12-221-1/+1
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-4/+1
|
* import gdb-1999-08-16 snapshotJason Molenda1999-08-161-0/+49
|
* import gdb-1999-08-02 snapshotJason Molenda1999-08-021-8/+12
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-2549/+2755
|
* Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1999-04-161-0/+5674
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-5711/+0
|
* change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion.David Taylor1999-01-041-1/+3
|
* all remaining *.c *.h files from hp merge.David Taylor1998-12-311-0/+5709