bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)


The GDB provided by HPE on HP-UX contains a modified version string. Therefore
the tests fail. Adapt the regex to match that string.

Patch by Michael Osipov.

Co-Authored-by: Michael Osipov <michael.osipov@siemens.com>
(cherry picked from commit b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 files changed