diff options
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index d251dab..2153323 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1989,7 +1989,6 @@ extern const struct language_data rust_language_data = macro_expansion_no, rust_extensions, &exp_descriptor_rust, - rust_parse, null_post_parser, rust_printchar, /* Print a character constant */ rust_printstr, /* Function to print string constant */ @@ -2142,6 +2141,13 @@ public: } return result; } + + /* See language.h. */ + + int parser (struct parser_state *ps) const override + { + return rust_parse (ps); + } }; /* Single instance of the Rust language class. */ |