Build system of sys-devel/gdb-7.1 checks Python versions in the following order: 2.6, 2.5, 2.4
I would also recommend to add an option to `configure`, which would allow to override Python version.
It looks like it's fixed in gdb cvs: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/configure.ac?cvsroot=src I might try it later.
Yeah, I thought I'd let you guys know I have no idea how to deal with autotools patches, so...
gdb-7.2 should work fine with python-2.7