Change pid_to_str to return std::string
[deliverable/binutils-gdb.git] / gdb / top.c
index 4065df708154499be33a849d9d02c5e4946f5e0c..b10b0649e9c571c241a7eb4bb49a66fd585b2921 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1548,11 +1548,11 @@ print_inferior_quit_action (struct inferior *inf, void *arg)
   if (inf->attach_flag)
     fprintf_filtered (stb,
                      _("\tInferior %d [%s] will be detached.\n"), inf->num,
-                     target_pid_to_str (ptid_t (inf->pid)));
+                     target_pid_to_str (ptid_t (inf->pid)).c_str ());
   else
     fprintf_filtered (stb,
                      _("\tInferior %d [%s] will be killed.\n"), inf->num,
-                     target_pid_to_str (ptid_t (inf->pid)));
+                     target_pid_to_str (ptid_t (inf->pid)).c_str ());
 
   return 0;
 }
This page took 0.026096 seconds and 4 git commands to generate.