Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Pouget <kevin.pouget@gmail.com>
To: gdb@sourceware.org
Subject: Fwd: GDB/Python conflicts between HEAD and Fedora
Date: Wed, 24 Oct 2012 15:05:00 -0000	[thread overview]
Message-ID: <CAPftXULQBNCg131rsFJQqOU3WpuhnWxKLSRwzwKoTVLdeTJ8fA@mail.gmail.com> (raw)
In-Reply-To: <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


       reply	other threads:[~2012-10-24 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPftXUKL9Qst0057rU9SVwiUp=otsVO_Y3h1KGNP+NVBYGVJ0w@mail.gmail.com>
2012-10-24 15:05 ` Kevin Pouget [this message]
2012-10-24 15:17   ` Joel Brobecker
2012-10-25  7:41     ` Kevin Pouget

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPftXULQBNCg131rsFJQqOU3WpuhnWxKLSRwzwKoTVLdeTJ8fA@mail.gmail.com \
    --to=kevin.pouget@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox