Hello! I've been playing around with gdb python and qt-creator. My ultimate goal is to get some kind of thread naming for qtcreator (other than the thread id). Digging through blogs and code I found the class ThreadNamesCommand in dumper.py, which seems like a good point to start. I see the scripts beeing executed when I attach the debugger (dumper.py and gdbmacros.py) from qtcreator. But if I run the threadnames command, I only get a python exception:
>&"threadnames\n" >~"Traceback (most recent call last):\n" >~" File \"/opt/kqtcreator2/share/qtcreator/gdbmacros/dumper.py\", line 1746, >in invoke\n" >~" for thread in gdb.inferiors()[0].threads():\n" >~"AttributeError: 'module' object has no attribute 'inferiors'\n" >&"Error occurred in Python command: 'module' object has no attribute >'inferiors'\n" >^error,msg="Error occurred in Python command: 'module' object has no attribute >'inferiors'" What gdb version do I need to use all the functionality that is implemented in dumper.py? Apparanly, the function inferiors() is still missing from my gdb (7.1 btw)? Oh, and does someone now where I could find a documentation of the python api for gdb 7.1? Looking through gdb code isn't exactly convenient... FWIW, I'm using qtcreator 2.1 on ubuntu 10.04. Christoph _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
