]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Implement Rust raw identifiers
authorTom Tromey <tom@tromey.com>
Fri, 11 Jun 2021 14:14:09 +0000 (08:14 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 11 Jun 2021 14:14:09 +0000 (08:14 -0600)
commit48ec4c05c68bfec4b79e95807bd82e0df4634a6c
tree27c232057de54ea162dcdbfcf7466063119f19d9
parent2748c1b17e37c5acfae9d5dbcc627350c3d38167
Implement Rust raw identifiers

This patch implements Rust raw identifiers in the lexer in gdb.  There
was an earlier patch to do this, but the contributor didn't reply to
my email asking whether he had sorted out his copyright assignment.

This is relatively straightforward, but a small test suite addition
was needd to ensure that the new test is skipped on older versions of
rustc -- ones that predate the introduction of raw identifiers.

gdb/ChangeLog
2021-06-11  Tom Tromey  <tom@tromey.com>

PR rust/23427
* rust-parse.c (rust_parser::lex_identifier): Handle raw
identifiers.
(rust_lex_tests): Add raw identifier tests.

gdb/testsuite/ChangeLog
2021-06-11  Tom Tromey  <tom@tromey.com>

PR rust/23427
* lib/rust-support.exp (rust_compiler_version): New caching proc.
* gdb.rust/rawids.exp: New file.
* gdb.rust/rawids.rs: New file.
gdb/ChangeLog
gdb/rust-parse.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/rawids.exp [new file with mode: 0644]
gdb/testsuite/gdb.rust/rawids.rs [new file with mode: 0644]
gdb/testsuite/lib/rust-support.exp