Messages in this thread |  | | From | Tom Tromey <> | Subject | Re: [PATCH v5 01/20] scripts/gdb: Add infrastructure | Date | Wed, 13 Feb 2013 14:43:37 -0700 |
| |
>>>>> "Jan" == Jan Kiszka <jan.kiszka@siemens.com> writes:
Jan> +if gdb_version < "7.1": Jan> + print "NOTE: gdb 7.1 or later required for Linux helper scripts " \ Jan> + "to work."
FWIW you can just directly feature-test for the things you know you need. Like: if not hasattr(gdb, 'parse_and_eval'): ... In this case, 7.1 is old enough that it probably doesn't matter. For newer things, though, it is better to feature-test because distros sometimes forward-port patches, so the version number isn't a reliable indicator.
Tom
|  |