While the primary intention of this pretty printing implementation is
to provide what Qt Creator needs, it can be used in a plain commandline
GDB session, too.
With
python sys.path.insert(1, '<path/to/qtcreator>/share/qtcreator/debugger/')
python from gdbbridge import *
in .gdbinit there is a new "GDB command", called "pp".
With code like
int main(int argc, char *argv[])
{
QString ss = "Hello";
QApplication app(argc, argv);
app.setObjectName(ss);
// break here
}
the "pp" command can be used as follows:
(gdb) pp app
app =
[
<QGuiApplication> = {"Hello"}
staticMetaObject = <QMetaObject> = {""}
[parent] = <QObject *> = {"0x0"}
[children] = <QObjectList> = {"<3 items>"}
[properties] = "<>0 items>"
[methods] = "<6 items>"
[signals] = "<1 items>"
],<QApplication> = {"Hello"}
(gdb) pp app [properties],[children]
app =
[
<QGuiApplication> = {"Hello"}
staticMetaObject = <QMetaObject> = {""}
[parent] = <QObject *> = {"0x0"}
[children] = [
<QObject> = {""}
<QObject> = {""}
<QObject> = {"fusion"}
],<QObjectList> = {"<3 items>"}
[properties] = [
windowIcon = <QVariant (QIcon)> = {""}
cursorFlashTime = <QVariant (int)> = {"1000"}
doubleClickInterval = <QVariant (int)> = {"400"}
keyboardInputInterval = <QVariant (int)> = {"400"}
wheelScrollLines = <QVariant (int)> = {"3"}
globalStrut = <QVariant (QSize)> = {"(0, 0)"}
startDragTime = <QVariant (int)> = {"500"}
startDragDistance = <QVariant (int)> = {"10"}
styleSheet = <QVariant (QString)> = {""}
autoSipEnabled = <QVariant (bool)> = {"true"}
],"<10 items>"
[methods] = "<6 items>"
[signals] = "<1 items>"
],<QApplication> = {"Hello"}
(gdb) pp ss
ss =
<QString> = {"Hello"}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
型号:昭阳 R5000T-1 系统:Kylin-4.0.2-desktop-sp2_lenovo-20180409-arm64 QT-Creator:编译版本是qt-creator-4.0.3 测试编译qt-creator-4.0.3 其他设备、系统、自行测试 ----------------------------------------------------------------------------- qt-creator-4.0.3,亲测可用 qt-creator-4.0.3,亲测可用 qt-creator-4.0.3,亲测可用 qt-creator-4.0.3,亲测可用
资源推荐
资源详情
资源评论
收起资源包目录
Kylin-4.0.2-desktop-sp2-arm64 编译完成qt-creator-4.0.3 (961个子文件)
libCPlusPlus.so.1.0.0 2.49MB
libCPlusPlus.so.1.0 2.49MB
libQtcSsh.so.1.0 2.18MB
libQtcSsh.so.1.0.0 2.18MB
libModeling.so.1.0.0 1.91MB
libModeling.so.1.0 1.91MB
libUtils.so.1.0.0 1.78MB
libUtils.so.1.0 1.78MB
libQmlJS.so.1.0.0 1.55MB
libQmlJS.so.1.0 1.55MB
libSqlite.so.1.0 865KB
libSqlite.so.1.0.0 865KB
libQmlEditorWidgets.so.1.0.0 452KB
libQmlEditorWidgets.so.1.0 452KB
libGLSL.so.1.0.0 332KB
libGLSL.so.1.0 332KB
libExtensionSystem.so.1.0.0 286KB
libExtensionSystem.so.1.0 286KB
libClangbackendipc.so.1.0 273KB
libClangbackendipc.so.1.0.0 273KB
libTimeline.so.1.0.0 241KB
libTimeline.so.1.0 241KB
libQmlDebug.so.1.0 216KB
libQmlDebug.so.1.0.0 216KB
libLanguageUtils.so.1.0.0 63KB
libLanguageUtils.so.1.0 63KB
libAggregation.so.1.0 23KB
libAggregation.so.1.0.0 23KB
libCPlusPlus.so.1 2.49MB
libQtcSsh.so.1 2.18MB
libqbscore.so.1 2.14MB
libModeling.so.1 1.91MB
libUtils.so.1 1.78MB
libQmlJS.so.1 1.55MB
libSqlite.so.1 865KB
libQmlEditorWidgets.so.1 452KB
libGLSL.so.1 332KB
libExtensionSystem.so.1 286KB
libClangbackendipc.so.1 273KB
libTimeline.so.1 241KB
libQmlDebug.so.1 216KB
libqbsqtprofilesetup.so.1 131KB
libLanguageUtils.so.1 63KB
libAggregation.so.1 23KB
libqbscore.so.1.5.2 2.14MB
libqbsqtprofilesetup.so.1.5.2 131KB
libqbscore.so.1.5 2.14MB
libqbsqtprofilesetup.so.1.5 131KB
buildoutputparser 23KB
main.c 102B
cpaster 100KB
nodeinstanceserver.cpp 45KB
qmlprivategate.cpp 25KB
objectnodeinstance.cpp 24KB
quickitemnodeinstance.cpp 22KB
servernodeinstance.cpp 18KB
nodeinstanceclientproxy.cpp 18KB
qmlprivategate_56.cpp 14KB
sharedmemory_unix.cpp 12KB
qt5testnodeinstanceserver.cpp 12KB
metaobject.cpp 11KB
qt5informationnodeinstanceserver.cpp 10KB
designercustomobjectdata.cpp 10KB
nodeinstanceserverinterface.cpp 8KB
imagecontainer.cpp 8KB
qt5rendernodeinstanceserver.cpp 6KB
mouse.cpp 6KB
valueschangedcommand.cpp 5KB
qml2puppetmain.cpp 5KB
instancecontainer.cpp 5KB
informationcontainer.cpp 5KB
createscenecommand.cpp 5KB
nodeinstancesignalspy.cpp 4KB
qmlpropertychangesnodeinstance.cpp 4KB
qmlstatenodeinstance.cpp 4KB
qt5previewnodeinstanceserver.cpp 4KB
qt5nodeinstanceserver.cpp 4KB
reparentcontainer.cpp 4KB
propertyvaluecontainer.cpp 3KB
childrenchangedcommand.cpp 3KB
addimportcontainer.cpp 3KB
propertybindingcontainer.cpp 3KB
enumeration.cpp 3KB
qt5nodeinstanceclientproxy.cpp 3KB
main.cpp 3KB
tokencommand.cpp 3KB
itemmodel.cpp 3KB
propertyabstractcontainer.cpp 3KB
sharedmemory_qt.cpp 3KB
debugoutputcommand.cpp 3KB
anchorchangesnodeinstance.cpp 2KB
myplugin.cpp 2KB
componentnodeinstance.cpp 2KB
positionernodeinstance.cpp 2KB
informationchangedcommand.cpp 2KB
removesharedmemorycommand.cpp 2KB
main.cpp 2KB
statepreviewimagechangedcommand.cpp 2KB
dummynodeinstance.cpp 2KB
tablemodel.cpp 2KB
共 961 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
alin、m
- 粉丝: 161
- 资源: 58
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功