aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/inf-ptrace.c2
-rw-r--r--gdb/nto-procfs.c2
-rw-r--r--gdb/procfs.c2
-rw-r--r--gdb/windows-nat.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index a335165..ececf0e 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -522,7 +522,7 @@ inf_ptrace_target::files_info ()
gdb_printf (_("\tUsing the running image of %s %s.\n"),
inf->attach_flag ? "attached" : "child",
- target_pid_to_str (inferior_ptid).c_str ());
+ target_pid_to_str (ptid_t (inf->pid)).c_str ());
}
std::string
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index ffe11c6..8e40efa 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -658,7 +658,7 @@ nto_procfs_target::files_info ()
gdb_printf ("\tUsing the running image of %s %s via %s.\n",
inf->attach_flag ? "attached" : "child",
- target_pid_to_str (inferior_ptid).c_str (),
+ target_pid_to_str (ptid_t (inf->pid)).c_str (),
(nodestr != NULL) ? nodestr : "local node");
}
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 2c009c3..741e62a 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -2533,7 +2533,7 @@ procfs_target::files_info ()
gdb_printf (_("\tUsing the running image of %s %s via /proc.\n"),
inf->attach_flag? "attached": "child",
- target_pid_to_str (inferior_ptid).c_str ());
+ target_pid_to_str (ptid_t (inf->pid)).c_str ());
}
/* Make it die. Wait for it to die. Clean up after it. Note: this
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index a8ce053..26ad04b 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2123,7 +2123,7 @@ windows_nat_target::files_info ()
gdb_printf ("\tUsing the running image of %s %s.\n",
inf->attach_flag ? "attached" : "child",
- target_pid_to_str (inferior_ptid).c_str ());
+ target_pid_to_str (ptid_t (inf->pid)).c_str ());
}
/* Modify CreateProcess parameters for use of a new separate console.