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

RTEMS trac trac at rtems.org
Wed Jan 20 06:15:48 UTC 2016


#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    |  Resolution:
 Keywords:            |
----------------------+---------------------

Comment (by nick.withers):

 Tested successfully here (at least insofar as the ''python import rtems''
 works):
 {{{
 GNU gdb (GDB) 7.9
 Copyright (C) 2015 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "--host=x86_64-freebsd10.2 --target=powerpc-
 rtems4.11".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from sem_isr.debug...done.
 (gdb) target remote bdi:2159
 Remote debugging using bdi:2159
 _Thread_Idle_body (ignored=0) at /home/nick/rtems/rtems-4.11/powerpc-
 rtems4.11/mvme3100/lib/include/rtems/confdefs.h:1004
 1004            for( ; ; ) ;
 (gdb) python import rtems
 RTEMS GDB Support
 (gdb) rtems task
 ----------------------------------------------------------------------
  classic/tasks: 10 [0a010001 -> 0a01000a]
 ----------------------------------------------------------------------
          Id: 0x0a010001 (@ 0x0004af70)
        Name: UI1
  Active CPU: not executing
       State: waiting-for-semaphore
     Current: 1
        Real: 1
     Preempt: false
    T Budget: 0
        Time: 0 nsec
   Resources: 0
   Regsters:
 Python Exception <class 'gdb.error'> Cannot convert value to int.:
 Error occurred in Python command: Cannot convert value to int.
 (gdb) q
 }}}

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


More information about the bugs mailing list