This is just a minor cleanup of an ARI violation. As this affects
code that is normally unreachable (you'd need a runtime where
the unit providing the exception hook has been compiled without
debugging information), I tested this manually by commenting out
the code just above, thus forcing this part of the code to be
exercised.
gdb/ChangeLog:
* ada-lang.c (print_it_exception): Avoid use of sprintf.
Tested on x86_64-linux.
+2011-05-18 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (print_it_exception): Avoid use of sprintf.
+
2011-05-18 Tom Tromey <tromey@redhat.com>
* value.c (value_fn_field): Constify.
just replace the exception name by the generic string
"exception" - it will read as "an exception" in the
notification we are about to print. */
- sprintf (exception_name, "exception");
+ memcpy (exception_name, "exception", sizeof ("exception"));
}
/* In the case of unhandled exception breakpoints, we print
the exception name as "unhandled EXCEPTION_NAME", to make