[RTEMS Project] #2391: 'python import rtems' fails in gdb

RTEMS trac trac at rtems.org
Mon Aug 17 14:55:29 UTC 2015


#2391: 'python import rtems' fails in gdb
----------------------+--------------------
 Reporter:  ricclaus  |      Owner:  chrisj
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  4.11.1
Component:  RSB       |    Version:  4.11
 Severity:  normal    |   Keywords:
----------------------+--------------------
 When following
 [https://devel.rtems.org/wiki/Developer/Tools/RTEMS_GDB_Python] I got:
 {{{
 (gdb) python import rtems
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File
 "/home/claus/development/rtems/4.11/share/gdb/python/rtems/__init__.py",
 line 31, in <module>
   File
 "/home/claus/development/rtems/4.11/share/gdb/python/rtems/rtems.py", line
 38, in <module>
   File
 "/home/claus/development/rtems/4.11/share/gdb/python/rtems/threads.py",
 line 39, in <module>
 ImportError: No module named rbtrees
 Error while executing Python code.
 (gdb)
 }}}

 rbtrees.py is in the tree, so I modified the rtems-source-
 builder/rtems/sources/git/rtems-tools.git/tools/gdb/python/wscript to
 include this and two other missing .py files (mutex.py and time.py).  I
 didn't figure out how to apply my change as the file just reverted when I
 tried.  Attached is an untested patch.

--
Ticket URL: <http://devel.rtems.org/ticket/2391>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list