This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 35/36] kill volatile struct gdb_exception
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 9 Feb 2015 23:20:45 +0000
- Subject: [PATCH 35/36] kill volatile struct gdb_exception
- Authentication-results: sourceware.org; auth=none
- References: <1423524046-20605-1-git-send-email-palves at redhat dot com>
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-02-09 Pedro Alves <palves@redhat.com>
* main.c (handle_command_errors): Remove volatile qualifier from
parameter.
---
gdb/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/main.c b/gdb/main.c
index ceca807..72b8714 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)
{
--
1.9.3