kill volatile struct gdb_exception

After the previous patch, this is the last remaining use of a volatile
struct gdb_exception.  Kill it, as it's troublesome for C++: we can't
assign volatile <-> non-volatile without copy constructors /
assignment operators that do that, which I'd rather avoid.

gdb/ChangeLog:
2015-03-07  Pedro Alves  <palves@redhat.com>

	* main.c (handle_command_errors): Remove volatile qualifier from
	parameter.
This commit is contained in:
Pedro Alves
2015-03-07 14:50:03 +00:00
parent 6c63c96a22
commit 284e6217cf
2 changed files with 6 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ captured_command_loop (void *data)
catch_command_errors/catch_command_errors_const. */
static int
handle_command_errors (volatile struct gdb_exception e)
handle_command_errors (struct gdb_exception e)
{
if (e.reason < 0)
{