This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Fwd: GDB/Python conflicts between HEAD and Fedora
- From: Kevin Pouget <kevin dot pouget at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 24 Oct 2012 17:05:16 +0200
- Subject: Fwd: GDB/Python conflicts between HEAD and Fedora
- References: <CAPftXUKL9Qst0057rU9SVwiUp=otsVO_Y3h1KGNP+NVBYGVJ0w@mail.gmail.com>
Hello,
It looks like I have a conflict in my system (Fedora 17) between the
package provided GDB and the version I build from the tree, am I the
only one ?
> ./gdb/gdb #from up-to-date git tree
> Python Exception <type 'exceptions.NameError'> name 'os' is not defined:
>
> warning: Could not load the Python gdb module from `/usr/share/gdb/python'.
>
> warning: Limited Python support is available from the _gdb module.
> [...license details ...]
> Couldn't load Python: name 'os' is not defined
> Traceback (most recent call last):
> [local python file imported from .gdbinit]
> import gdb
> File "/usr/share/gdb/python/gdb/__init__.py", line 25, in <module>
> 'gdb.function': os.path.join(gdb.PYTHONDIR, 'gdb', 'function'),
> NameError: name 'os' is not defined
/usr/share/gdb/python/gdb/__init__.py is provided by Fedora, and 'os'
is indeed not imported
On the other hand, the GDB version provided by fedora package works as
expected, with my Python scripts taken into account.
So, do you have any clue why gdb tries to load these system files, and
certainly bugs because of a version mismatch ?
Just for information the two versions I use are :
GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17)
GNU gdb (GDB) 7.5.50.20121024-cvs
Cordially,
Kevin