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

Jesus Cea jcea at jcea.es
Thu Mar 17 05:21:17 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/11/10 16:46, Matthias Klose wrote:
> On 26.11.2010 05:11, Jesus Cea wrote:
>> 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

I compiled GDB 64 bits to debug both 32 and 64 bits binaries. There are
some thread debugging issues when debugging 32 bits, but we can live
with them for now.

Details in <http://bugs.python.org/issue8600#msg131073>.

Thanks for the suggestion, Matthias.

Closing old threads...

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTYGMPZlgi5GaxT1NAQLDNwP/Rswr2jZvxBoif98dIS7bwk/OA+uIB18k
p3dNs71cGAV4emcuz+e+fMS138WXwN5c1epo5QrAQ9eQTr0KoJIo6bBaFKHzg03m
RFNIEF4bpB4VvtSvTlIZYHQayecJGHRZxEewEzW9+562ZFa79qvhaYEPxAEVh6jT
6kvt0pQoAIw=
=v9N0
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list