[PATCH] [rust-gdb] relax the GDB version regex
authorJosh Stone <jistone@redhat.com>
Tue, 15 Jan 2019 23:14:17 +0000 (15:14 -0800)
committerXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
commit0b13492637babba2ee6aae4feefd2b0aa8fb02d1
treec54f801de414cae82a75fae44ec695e39a1d1fce
parenta779c483bc4cd340d42e2bf75e7025003b3715f5
[PATCH] [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.

Gbp-Pq: Name u-0001-rust-gdb-relax-the-GDB-version-regex.patch
src/etc/gdb_rust_pretty_printing.py