Re: [PATCH v5 01/20] scripts/gdb: Add infrastructure

From: Tom Tromey
Date: Wed Feb 13 2013 - 16:44:50 EST


>>>>> "Jan" == Jan Kiszka <jan.kiszka@xxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/