aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rust-exp.y')
-rw-r--r--gdb/rust-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y
index 6e22620..ba145b1 100644
--- a/gdb/rust-exp.y
+++ b/gdb/rust-exp.y
@@ -2623,7 +2623,7 @@ rust_lex_exception_test (rust_parser *parser, const char *input,
}
CATCH (except, RETURN_MASK_ERROR)
{
- SELF_CHECK (strcmp (except.message, err) == 0);
+ SELF_CHECK (strcmp (except.what (), err) == 0);
}
END_CATCH
}