Edwin.Wayne.Lee 2022-03-03 12:29 采纳率: 0%
浏览 260
已结题

vscode 远程调试openwrt的hostapd不进入断点,报错

json文件

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [     
        {
            "name": "gdb server",//配置名称;在启动配置下拉菜单中显示
            "type": "cppdbg",//配置类型。
            "request": "launch",//请求配置类型。可以是“启动”或“附加”。
            "program": "/home/cloud/soc_ow_sdk/openwrt/build_dir/target-aarch64_cortex-a53_musl/hostapd-wpad-full-internal/hostapd-2020-06-08-5a8b3662/wpad",//需要调试的可执行文件 .pkgdir/wpad/usr/sbin/
            //"args": ["hostapd"],
            "stopAtEntry": false,//可选参数。如果为true,则调试器应在目标的入口点停止。如果传递了进程ID,则无效。
            "cwd": "/home/cloud/soc_ow_sdk/openwrt/build_dir/target-aarch64_cortex-a53_musl/hostapd-wpad-full-internal/hostapd-2020-06-08-5a8b3662",//目标的工作目录
            "linux": {//特定于 Linux 的启动配置属性。
                "MIMode": "gdb",//指示midebugengine将连接到的控制台调试器。允许值为“gdb”“lldb”。
                "miDebuggerPath": "/home/cloud/soc_ow_sdk/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/bin/aarch64-openwrt-linux-musl-gdb",//调试器的路径。
                //"targetArchitecture": "x64",
                "miDebuggerServerAddress": "192.168.1.1:3559",
                "externalConsole": false,//如果为true,则为调试对象启动控制台。如果为false,则在Linux和Windows上,它将出现在集成控制台中。
            },
        },
    ]
}

提示

Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
=tsv-created,name="trace_timestamp",initial="0"\n
Reading /lib/ld-musl-aarch64.so.1 from remote target...
Reading /lib/ld-musl-aarch64.so.1 from remote target...
0x0000007ff7fd2a84 in ?? ()
Loaded 'target:/lib/ld-musl-aarch64.so.1'. Symbols loaded.
ERROR: Command aborted. See the output window for additional details.
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 3月11日
    • 创建了问题 3月3日

    悬赏问题

    • ¥15 ogg dd trandata 报错
    • ¥15 高缺失率数据如何选择填充方式
    • ¥50 potsgresql15备份问题
    • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
    • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
    • ¥60 pb数据库修改与连接
    • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
    • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
    • ¥20 神经网络Sequential name=sequential, built=False
    • ¥16 Qphython 用xlrd读取excel报错