]> git.lizzy.rs Git - rust.git/commit
[rust-gdb] relax the GDB version regex
authorJosh Stone <jistone@redhat.com>
Tue, 15 Jan 2019 23:14:17 +0000 (15:14 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 15 Jan 2019 23:14:17 +0000 (15:14 -0800)
commit9430423cab6909792fb1b3a850f1c3c8974a5111
tree4ab990bc3f8e682449ac5da3b6b6069dd0b6b124
parente2f221c75932de7a29845c8d6f1f73536ad00c41
[rust-gdb] relax the GDB version regex

The pretty-printer script is checking `gdb.VERSION` to see if it's at
least 8.1 for some features. With `re.match`, it will only find the
version at the beginning of that string, but in Fedora the string is
something like "Fedora 8.2-5.fc29". Using `re.search` instead will find
the first location that matches anywhere, so it will find my 8.2.
src/etc/gdb_rust_pretty_printing.py