gdbarch software_single_step frame_info to regcache: rs6000
[deliverable/binutils-gdb.git] / gdb / utils.c
index e552685efa70eaaead9d593fb9bf65b3d5754ae3..751f09949d624da8c10d20e279d60d114028dc63 100644 (file)
@@ -480,10 +480,9 @@ verror (const char *string, va_list args)
 void
 error_stream (struct ui_file *stream)
 {
-  char *message = ui_file_xstrdup (stream, NULL);
+  std::string message = ui_file_as_string (stream);
 
-  make_cleanup (xfree, message);
-  error (("%s"), message);
+  error (("%s"), message.c_str ());
 }
 
 /* Emit a message and abort.  */
@@ -1642,7 +1641,7 @@ static char *wrap_indent;
 static int wrap_column;
 \f
 
-/* Inialize the number of lines per page and chars per line.  */
+/* Initialize the number of lines per page and chars per line.  */
 
 void
 init_page_info (void)
@@ -1873,7 +1872,7 @@ prompt_for_continue (void)
   do_cleanups (old_chain);
 }
 
-/* Initalize timer to keep track of how long we waited for the user.  */
+/* Initialize timer to keep track of how long we waited for the user.  */
 
 void
 reset_prompt_for_continue_wait_time (void)
This page took 0.025396 seconds and 4 git commands to generate.