From: Pedro Alves Date: Sat, 7 Mar 2015 14:50:03 +0000 (+0000) Subject: kill volatile struct gdb_exception X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=284e6217cf8f96c7648b13274431dcf73aa084a9;p=deliverable%2Fbinutils-gdb.git 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 * main.c (handle_command_errors): Remove volatile qualifier from parameter. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a18830fc10..8f5029a448 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-03-07 Pedro Alves + + * main.c (handle_command_errors): Remove volatile qualifier from + parameter. + 2015-03-07 Pedro Alves * breakpoint.c (save_breakpoints): Adjust to avoid code between diff --git a/gdb/main.c b/gdb/main.c index ceca80738e..72b8714eb0 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -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) {