gdb: Add an overloaded ui_out::text accepting a const std::string &
[binutils-gdb.git] / gdb / ada-lang.c
index 2a257c2fd6dbed74aeeb53b7220048851ef7be91..1b5067662593504940a369a0127a177d50adf190 100644 (file)
@@ -11865,7 +11865,7 @@ print_mention_exception (struct breakpoint *b)
          {
            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"));
@@ -11881,7 +11881,7 @@ print_mention_exception (struct breakpoint *b)
            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"));