{
std::string info = string_printf (_("`%s' Ada exception"),
c->excep_string.c_str ());
- uiout->text (info.c_str ());
+ uiout->text (info);
}
else
uiout->text (_("all Ada exceptions"));
std::string info
= string_printf (_("`%s' Ada exception handlers"),
c->excep_string.c_str ());
- uiout->text (info.c_str ());
+ uiout->text (info);
}
else
uiout->text (_("all Ada exceptions handlers"));
std::string prefixname = list->prefix->prefixname ();
prefixname = (!list->prefix->is_prefix () ? ""
: strstr (prefixname.c_str (), "show ") + 5);
- uiout->text (prefixname.c_str ());
+ uiout->text (prefixname);
}
uiout->field_string ("name", list->name);
uiout->text (": ");
if (iter > start)
{
std::string text (start, iter);
- uiout->text (text.c_str ());
+ uiout->text (text);
}
if (*iter == '\r')
{
uiout->text ("[Switching to thread ");
uiout->field_string ("new-thread-id", print_thread_id (tp));
uiout->text (" (");
- uiout->text (target_pid_to_str (inferior_ptid).c_str ());
+ uiout->text (target_pid_to_str (inferior_ptid));
uiout->text (")]");
}
}
do_text (string);
}
+void
+ui_out::text (const std::string &string)
+{
+ text (string.c_str ());
+}
+
void
ui_out::call_do_message (const ui_file_style &style, const char *format,
...)
void spaces (int numspaces);
void text (const char *string);
+ void text (const std::string &string);
/* Output a printf-style formatted string. In addition to the usual
printf format specs, this supports a few GDB-specific