[Python-Dev] Question about GDB bindings and 32/64 bits

Matthias Klose doko at ubuntu.com
Sun Nov 28 16:46:09 CET 2010


On 26.11.2010 05:11, Jesus Cea wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have installed GDB 7.2 32 bits and 32 bits buildslaves are green.
> Nevertheless 64 bits buildslaves are failing test_gdb.
>
> Is there any expectation that a 32 bits GDB be able to debug a 64 bits
> python?. If not, gdb test should compare "platform.architecture()" (for
> python and gdb in the system) and run only when they are the same.

that would be too restrictive, as an 64bit gdb is able to handle 32bit binaries too.

> If
> this should work, I would open a bug and maybe spend some time with it.
>
> But before thinking about investing time, I would like to know if this
> mix is actually expected or not to work.
>
> If not, I would consider to install a 64 bits GDB too and do some tricks
> (like using an "/usr/local/bin/gdb" script wrapper to choose 32/64
> "real" gdb version) to actually execute "test_gdb" in both buildslaves
> (they are running in the same physical machine).

yes, and then you should be able to use this gdb for both 32 and 64bit builds. 
No need for a wrapper (Such a gdb is available in the gdb64 package on 
Debian/Ubuntu).

   Matthias


More information about the Python-Dev mailing list