gdb failing to import backtrace module

Yaakov Selkowitz
Fri Sep 12 20:15:00 GMT 2014

On 2014-09-08 20:04, Aidan Gauland wrote:
> I am trying to run a non-cygwin program in gdb, and when I enter the `run`
> command, I get the following error.
> Traceback (most recent call last):
>    File "/usr/share/gdb/auto-load/usr/bin/", line
> 9, in <module>
>      from gobject import register
>    File "/usr/share/glib-2.0/gdb/", line 3, in <module>
>      import gdb.backtrace
> ImportError: No module named backtrace
> gdb continues to run the program as expected, but the backtrace commands are
> missing.
> I tried reinstalling the Cygwin package "gdb" and rerunning, but the problem
> persisted.  Is this a problem with my Cygwin GDB installation, and if so,
> how can I fix it?

This is actually an upstream issue due to an API change in gdb-7.7:

I'm building a glib2.0 update now that includes the latest upstream 
changes for the gdb scripts, which should fix this error message.



Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list