aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-19 10:04:35 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-19 10:04:35 +0000
commit53283f867b4157d728963a9699bce30e2d24f033 (patch)
tree5f6f9bf6cd77b4c0d1b28e9d492f324455748d66 /gdb
parenta1e0f4e42f71b7588febf49a9e5e833e52c5969d (diff)
downloadgdb-53283f867b4157d728963a9699bce30e2d24f033.zip
gdb-53283f867b4157d728963a9699bce30e2d24f033.tar.gz
gdb-53283f867b4157d728963a9699bce30e2d24f033.tar.bz2
* inf-ptrace.c (inf_ptrace_prepare_to_store)
(inf_ptrace_post_startup_inferior) (inf_ptrace_acknowledge_created_inferior) (inf_ptrace_insert_fork_catchpoint) (inf_ptrace_remove_fork_catchpoint) (inf_ptrace_insert_vfork_catchpoint): (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork) (inf_ptrace_insert_exec_catchpoint) (inf_ptrace_remove_exec_catchpoint): Remove functions. (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment. (inf_ptrace_target): Don't set to_prepare_to_store, to_post_startup_inferior, to_acknowledge_created_inferior, to_insert_fork_ctachpoint, to_remove_fork_catchpoint, to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, to_follow_fork, to_insert_exec_catchpoint, to_remove_exec_catchpoint.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog19
-rw-r--r--gdb/inf-ptrace.c87
2 files changed, 20 insertions, 86 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f3cd0a..38b9549 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,22 @@
+2005-01-19 Mark Kettenis <kettenis@gnu.org>
+
+ * inf-ptrace.c (inf_ptrace_prepare_to_store)
+ (inf_ptrace_post_startup_inferior)
+ (inf_ptrace_acknowledge_created_inferior)
+ (inf_ptrace_insert_fork_catchpoint)
+ (inf_ptrace_remove_fork_catchpoint)
+ (inf_ptrace_insert_vfork_catchpoint):
+ (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
+ (inf_ptrace_insert_exec_catchpoint)
+ (inf_ptrace_remove_exec_catchpoint): Remove functions.
+ (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
+ (inf_ptrace_target): Don't set to_prepare_to_store,
+ to_post_startup_inferior, to_acknowledge_created_inferior,
+ to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
+ to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
+ to_follow_fork, to_insert_exec_catchpoint,
+ to_remove_exec_catchpoint.
+
2005-01-18 Andrew Cagney <cagney@gnu.org>
* target.h (struct target_ops): Change return type of
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 821e424..71afc3a 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -275,17 +275,6 @@ inf_ptrace_detach (char *args, int from_tty)
unpush_target (ptrace_ops_hack);
}
-/* Get ready to modify the registers array. On machines which store
- individual registers, this doesn't need to do anything. On
- machines which store all the registers in one fell swoop, this
- makes sure that registers contains all the registers from the
- program being debugged. */
-
-static void
-inf_ptrace_prepare_to_store (void)
-{
-}
-
/* Print status information about what we're accessing. */
static void
@@ -354,73 +343,10 @@ inf_ptrace_create_inferior (char *exec_file, char *allargs, char **env,
proceed ((CORE_ADDR) -1, TARGET_SIGNAL_0, 0);
}
-static void
-inf_ptrace_post_startup_inferior (ptid_t ptid)
-{
- /* This version of Unix doesn't require a meaningful "post startup
- inferior" operation by a debugger. */
-}
-
-static void
-inf_ptrace_acknowledge_created_inferior (int pid)
-{
- /* This version of Unix doesn't require a meaningful "acknowledge
- created inferior" operation by a debugger. */
-}
-
-static int
-inf_ptrace_insert_fork_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of fork events. */
- return 0;
-}
-
-static int
-inf_ptrace_remove_fork_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of fork events. */
- return 0;
-}
-
-static int
-inf_ptrace_insert_vfork_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of vfork events. */
- return 0;
-}
-
-static int
-inf_ptrace_remove_vfork_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of vfork events. */
- return 0;
-}
-
-static int
-inf_ptrace_follow_fork (int follow_child)
-{
- /* This version of Unix doesn't support following fork or vfork events. */
- return 0;
-}
-
-static int
-inf_ptrace_insert_exec_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of exec events. */
- return 0;
-}
-
-static int
-inf_ptrace_remove_exec_catchpoint (int pid)
-{
- /* This version of Unix doesn't support notification of exec events. */
- return 0;
-}
-
static int
inf_ptrace_reported_exec_events_per_exec_call (void)
{
- /* This version of Unix doesn't support notification of exec events. */
+ /* Typically, we get a single SIGTRAP per exec. */
return 1;
}
@@ -609,21 +535,10 @@ inf_ptrace_target (void)
t->to_detach = inf_ptrace_detach;
t->to_resume = inf_ptrace_resume;
t->to_wait = inf_ptrace_wait;
- t->to_prepare_to_store = inf_ptrace_prepare_to_store;
t->to_xfer_partial = inf_ptrace_xfer_partial;
t->to_files_info = inf_ptrace_files_info;
t->to_kill = inf_ptrace_kill_inferior;
t->to_create_inferior = inf_ptrace_create_inferior;
- t->to_post_startup_inferior = inf_ptrace_post_startup_inferior;
- t->to_acknowledge_created_inferior =
- inf_ptrace_acknowledge_created_inferior;
- t->to_insert_fork_catchpoint = inf_ptrace_insert_fork_catchpoint;
- t->to_remove_fork_catchpoint = inf_ptrace_remove_fork_catchpoint;
- t->to_insert_vfork_catchpoint = inf_ptrace_insert_vfork_catchpoint;
- t->to_remove_vfork_catchpoint = inf_ptrace_remove_vfork_catchpoint;
- t->to_follow_fork = inf_ptrace_follow_fork;
- t->to_insert_exec_catchpoint = inf_ptrace_insert_exec_catchpoint;
- t->to_remove_exec_catchpoint = inf_ptrace_remove_exec_catchpoint;
t->to_reported_exec_events_per_exec_call =
inf_ptrace_reported_exec_events_per_exec_call;
t->to_has_exited = inf_ptrace_has_exited;