aboutsummaryrefslogtreecommitdiff
path: root/gdb/standalone.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/standalone.c')
-rw-r--r--gdb/standalone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/standalone.c b/gdb/standalone.c
index 2395189..6ae8f53 100644
--- a/gdb/standalone.c
+++ b/gdb/standalone.c
@@ -336,7 +336,7 @@ have_core_file_p (void)
kill_command (void)
{
- inferior_pid = 0;
+ inferior_ptid = null_ptid;
}
terminal_inferior (void)
@@ -531,7 +531,7 @@ int
wait (WAITTYPE *w)
{
WSETSTOP (*w, fault_table[fault_code / FAULT_CODE_UNITS]);
- return inferior_pid;
+ return PIDGET (inferior_ptid);
}
/* Allocate a big space in which files for kdb to read will be stored.