aboutsummaryrefslogtreecommitdiff
path: root/gdb/m3-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-06 22:38:28 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-06 22:38:28 +0000
commit01cd70b98538cd45dbfa04f85afdb0ae25a40992 (patch)
tree564bf88ce443cc69baff2a479fd5382c16b8f505 /gdb/m3-nat.c
parentd41b3eed26bf734c2989f9d282542be152714e3b (diff)
downloadgdb-01cd70b98538cd45dbfa04f85afdb0ae25a40992.zip
gdb-01cd70b98538cd45dbfa04f85afdb0ae25a40992.tar.gz
gdb-01cd70b98538cd45dbfa04f85afdb0ae25a40992.tar.bz2
* config/mips/mipsm3.mh, config/i386/i386m3.mh,
config/ns32k/ns32km3.mh: Define NAT_FILE. * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H (it was inconsistent and namespace-wrong) to NM_M3_H. * m3-nat.c (mach_really_wait): Change parameter name to ourstatus. (m3_open): New function. (m3_ops): Use it. * TODO: Update Mach section. * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
Diffstat (limited to 'gdb/m3-nat.c')
-rw-r--r--gdb/m3-nat.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/m3-nat.c b/gdb/m3-nat.c
index 90cddb0..e3f41d3 100644
--- a/gdb/m3-nat.c
+++ b/gdb/m3-nat.c
@@ -1211,7 +1211,7 @@ int mach_really_waiting;
Returns the inferior_pid for rest of gdb.
Side effects: Set *OURSTATUS. */
int
-mach_really_wait (w)
+mach_really_wait (ourstatus)
struct target_waitstatus *ourstatus;
{
int pid;
@@ -4225,6 +4225,14 @@ m3_detach (args, from_tty)
}
#endif /* ATTACH_DETACH */
+static void
+m3_open (arg, from_tty)
+ char *arg;
+ int from_tty;
+{
+ error ("Use the \"run\" command to start a Unix child process.");
+}
+
#ifdef DUMP_SYSCALL
#ifdef __STDC__
#define STR(x) #x
@@ -4445,7 +4453,7 @@ struct target_ops m3_ops = {
"mach", /* to_shortname */
"Mach child process", /* to_longname */
"Mach child process (started by the \"run\" command).", /* to_doc */
- ??_open, /* to_open */
+ m3_open, /* to_open */
0, /* to_close */
m3_attach, /* to_attach */
m3_detach, /* to_detach */