aboutsummaryrefslogtreecommitdiff
path: root/gdb/v850ice.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-05-04 04:15:33 +0000
committerKevin Buettner <kevinb@redhat.com>2001-05-04 04:15:33 +0000
commit39f770628a4eaf018fec8d55684bf2ec16ada9cc (patch)
tree69027cfb7df2ecc521ab2cc1d25a7dd6cbe56632 /gdb/v850ice.c
parentb1af961c8433821f61dd1849cff9eb9a8bb974e8 (diff)
downloadgdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.zip
gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.gz
gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.bz2
Phase 1 of the ptid_t changes.
Diffstat (limited to 'gdb/v850ice.c')
-rw-r--r--gdb/v850ice.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/v850ice.c b/gdb/v850ice.c
index 704d2a2..1aec483 100644
--- a/gdb/v850ice.c
+++ b/gdb/v850ice.c
@@ -73,7 +73,8 @@ static void v850ice_prepare_to_store (void);
static void v850ice_fetch_registers (int regno);
-static void v850ice_resume (int pid, int step, enum target_signal siggnal);
+static void v850ice_resume (ptid_t ptid, int step,
+ enum target_signal siggnal);
static void v850ice_open (char *name, int from_tty);
@@ -85,7 +86,8 @@ static void v850ice_store_registers (int regno);
static void v850ice_mourn (void);
-static int v850ice_wait (int pid, struct target_waitstatus *status);
+static ptid_t v850ice_wait (ptid_t ptid,
+ struct target_waitstatus *status);
static void v850ice_kill (void);
@@ -367,7 +369,7 @@ v850ice_open (char *name, int from_tty)
target is active. These functions should be split out into seperate
variables, especially since GDB will someday have a notion of debugging
several processes. */
- inferior_pid = 42000;
+ inferior_ptid = pid_to_ptid (42000);
start_remote ();
return;
@@ -383,7 +385,7 @@ v850ice_close (int quitting)
{
UnregisterClient ();
ice_open = 0;
- inferior_pid = 0;
+ inferior_ptid = null_ptid;
}
}
@@ -409,7 +411,7 @@ v850ice_detach (char *args, int from_tty)
/* Tell the remote machine to resume. */
static void
-v850ice_resume (int pid, int step, enum target_signal siggnal)
+v850ice_resume (ptid_t ptid, int step, enum target_signal siggnal)
{
long retval;
char buf[256];
@@ -432,8 +434,8 @@ v850ice_resume (int pid, int step, enum target_signal siggnal)
Returns "pid" (though it's not clear what, if anything, that
means in the case of this target). */
-static int
-v850ice_wait (int pid, struct target_waitstatus *status)
+static ptid_t
+v850ice_wait (ptid_t ptid, struct target_waitstatus *status)
{
long v850_status;
char buf[256];
@@ -485,7 +487,7 @@ v850ice_wait (int pid, struct target_waitstatus *status)
}
while (!done);
- return inferior_pid;
+ return inferior_ptid;
}
static int
@@ -752,7 +754,7 @@ static void
v850ice_kill (void)
{
target_mourn_inferior ();
- inferior_pid = 0;
+ inferior_ptid = null_ptid;
}
static void