gdb: move all "current target" wrapper implementations to target.c
[deliverable/binutils-gdb.git] / gdb / remote-sim.c
index 1746b626fa11d51019d342a5fcefa9d351298183..f2cf8dbd7117985c3e5b94f9b9389c2c8cdc295b 100644 (file)
@@ -836,7 +836,7 @@ gdbsim_target::detach (inferior *inf, int from_tty)
 
   inf->unpush_target (this);           /* calls gdbsim_close to do the real work */
   if (from_tty)
-    printf_filtered ("Ending simulator %s debugging\n", target_shortname);
+    printf_filtered ("Ending simulator %s debugging\n", target_shortname ());
 }
 
 /* Resume execution of the target process.  STEP says whether to single-step
@@ -1119,7 +1119,7 @@ gdbsim_target::files_info ()
   if (current_program_space->exec_bfd ())
     {
       fprintf_unfiltered (gdb_stdlog, "\tAttached to %s running program %s\n",
-                         target_shortname, file);
+                         target_shortname (), file);
       sim_info (sim_data->gdbsim_desc, 0);
     }
 }
This page took 0.023441 seconds and 4 git commands to generate.