summaryrefslogtreecommitdiff
path: root/gdb/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r--gdb/exceptions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index ff7e1b4c966..c8cc610581e 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -71,7 +71,7 @@ print_flush (void)
}
static void
-print_exception (struct ui_file *file, struct gdb_exception e)
+print_exception (struct ui_file *file, const gdb_exception &e)
{
/* KLUGE: cagney/2005-01-13: Write the string out one line at a time
as that way the MI's behavior is preserved. */
@@ -107,7 +107,7 @@ print_exception (struct ui_file *file, struct gdb_exception e)
}
void
-exception_print (struct ui_file *file, struct gdb_exception e)
+exception_print (struct ui_file *file, const gdb_exception &e)
{
if (e.reason < 0 && e.message != NULL)
{
@@ -117,7 +117,7 @@ exception_print (struct ui_file *file, struct gdb_exception e)
}
void
-exception_fprintf (struct ui_file *file, struct gdb_exception e,
+exception_fprintf (struct ui_file *file, const gdb_exception &e,
const char *prefix, ...)
{
if (e.reason < 0 && e.message != NULL)