diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-07 14:50:03 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-03-07 15:25:09 +0000 |
commit | 284e6217cf8f96c7648b13274431dcf73aa084a9 (patch) | |
tree | ad8b6ccfe3f9e7c0f88cc7410563ee5c5b12f34d /gdb/main.c | |
parent | 6c63c96a22d216fb5d51c5d93646066d29e08ea1 (diff) | |
download | gdb-284e6217cf8f96c7648b13274431dcf73aa084a9.zip gdb-284e6217cf8f96c7648b13274431dcf73aa084a9.tar.gz gdb-284e6217cf8f96c7648b13274431dcf73aa084a9.tar.bz2 |
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.
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |