zoukankan      html  css  js  c++  java
  • Qtcreator远程调试出现“The selected build of GDB does not support Python scripting.It cannot be used .."

     

    版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/aristolto/article/details/77370853

        之前使用的是Qt4.7后来换成了Qt5.x,Qtcreator的版本使用4.0,使用中发现Qtcreator远程调试出现“The selected build of GDB does not support Python scripting.It cannot be used in Qt Creator.”

        意思是gdb不支持Python脚本不能再Qtcreator中使用。有问题问度娘找了半天终于发现一个能解决问题的分享一下:

        sudo apt-get install gdb-multiarch

       安装这个gdb工具。然后Qtcreator中Tools-->Options-->Build & Run 找到Debuggers选项卡添加/usr/bin/gdb-multiarch,对应的Kits中使用的gdb换成添加的这个。

        剩下的就是开启调试了。假设开发板的IP是192.168.1.123,虚拟机的IP是192.168.1.124。

    1.登录到开发板telnet 192.168.1.123,

    2.挂载nfs服务器 mount -t nfs  192.168.1.124:/nfsshare /mnt/nfs -o nolock,

    3.然后gdbserver 192.168.1.124:8888 /mnt/nfs/yourapp -qws 回车,

    4.最后Qtcreator中Debug菜单-->Start Debugging-->Attach to Running Debug Server

    在弹出的窗口中kit选择自己配置的嵌入式的,

    端口号8888,

    Override Server Address:192.168.1.123, 

    Local executable:可执行文件在虚拟机中的位置

    点击OK就可以正常调试了。

  • 相关阅读:
    View Controller 生命周期的各个方法的用法
    IOS开发之Post 方式获取服务器数据
    委托代理
    Function
    SKPhysicsContactDelegate协议
    UITouch附加
    Remove Duplicates from Sorted Array II
    4Sum
    [Text Justification
    Count and Say
  • 原文地址:https://www.cnblogs.com/lvdongjie/p/11314483.html
Copyright © 2011-2022 走看看