Make exceptions use std::string and be self-managing
[deliverable/binutils-gdb.git] / gdb / mi / mi-main.c
index 065598517459fbffbba69a4662249e6500dafbc5..2fbcd6556d002b9ba1c87f547f7760e643bda2a5 100644 (file)
@@ -1884,7 +1884,7 @@ mi_print_exception (const char *token, struct gdb_exception exception)
   if (exception.message == NULL)
     fputs_unfiltered ("unknown error", mi->raw_stdout);
   else
-    fputstr_unfiltered (exception.message, '"', mi->raw_stdout);
+    fputstr_unfiltered (exception.what (), '"', mi->raw_stdout);
   fputs_unfiltered ("\"", mi->raw_stdout);
 
   switch (exception.error)
This page took 0.028918 seconds and 4 git commands to generate.