aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppah-nat.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-12-12 01:39:34 +0000
committerDaniel Jacobowitz <drow@false.org>2002-12-12 01:39:34 +0000
commit4c9ba7e0a610fe6e6c9b96a493a5cf3d8cce761d (patch)
tree4bcfeebc176aae98fb181f6ebec68151aeeef4fc /gdb/hppah-nat.c
parent0394eb2acb98a44baf700c4811bf47d39a542c87 (diff)
downloadgdb-4c9ba7e0a610fe6e6c9b96a493a5cf3d8cce761d.zip
gdb-4c9ba7e0a610fe6e6c9b96a493a5cf3d8cce761d.tar.gz
gdb-4c9ba7e0a610fe6e6c9b96a493a5cf3d8cce761d.tar.bz2
* corelow.c (init_core_ops): Delete references to to_require_attach
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.
Diffstat (limited to 'gdb/hppah-nat.c')
-rw-r--r--gdb/hppah-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c
index 8ff6c28..84d1f3f 100644
--- a/gdb/hppah-nat.c
+++ b/gdb/hppah-nat.c
@@ -423,7 +423,9 @@ child_follow_fork (int follow_child)
}
/* Detach from the child. */
- target_require_detach (child_pid, "", 1);
+ printf_unfiltered ("Detaching after fork from %s\n",
+ target_pid_to_str (pid_to_ptid (child_pid)));
+ hppa_require_detach (child_pid, 0);
/* The parent and child of a vfork share the same address space.
Also, on some targets the order in which vfork and exec events
@@ -465,8 +467,6 @@ child_follow_fork (int follow_child)
}
else
{
- char child_pid_spelling[40];
-
/* Needed to keep the breakpoint lists in sync. */
if (! has_vforked)
detach_breakpoints (child_pid);
@@ -483,10 +483,10 @@ child_follow_fork (int follow_child)
target_detach (NULL, 1);
/* Attach to the child. */
+ printf_unfiltered ("Attaching after fork to %s\n",
+ target_pid_to_str (pid_to_ptid (child_pid)));
+ hppa_require_attach (child_pid);
inferior_ptid = pid_to_ptid (child_pid);
- sprintf (child_pid_spelling, "%d", child_pid);
-
- target_require_attach (child_pid_spelling, 1);
/* If we vforked, then we've also execed by now. The exec will be
reported momentarily. follow_exec () will handle breakpoints, so